@microsoft/msgraph-sdk 1.0.0-preview.16 → 1.0.0-preview.18

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.
@@ -0,0 +1,380 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.AnswerStateObject = exports.serializeSearchAnswer = exports.serializeQnaCollectionResponse = exports.serializeQna = exports.serializeIdentitySet = exports.serializeIdentity = exports.serializeBookmarkCollectionResponse = exports.serializeBookmark = exports.serializeAnswerVariant = exports.serializeAnswerKeyword = exports.serializeAcronymCollectionResponse = exports.serializeAcronym = exports.deserializeIntoSearchAnswer = exports.deserializeIntoQnaCollectionResponse = exports.deserializeIntoQna = exports.deserializeIntoIdentitySet = exports.deserializeIntoIdentity = exports.deserializeIntoBookmarkCollectionResponse = exports.deserializeIntoBookmark = exports.deserializeIntoAnswerVariant = exports.deserializeIntoAnswerKeyword = exports.deserializeIntoAcronymCollectionResponse = exports.deserializeIntoAcronym = exports.createSearchAnswerFromDiscriminatorValue = exports.createQnaFromDiscriminatorValue = exports.createQnaCollectionResponseFromDiscriminatorValue = exports.createIdentitySetFromDiscriminatorValue = exports.createIdentityFromDiscriminatorValue = exports.createBookmarkFromDiscriminatorValue = exports.createBookmarkCollectionResponseFromDiscriminatorValue = exports.createAnswerVariantFromDiscriminatorValue = exports.createAnswerKeywordFromDiscriminatorValue = exports.createAcronymFromDiscriminatorValue = exports.createAcronymCollectionResponseFromDiscriminatorValue = void 0;
4
+ /* tslint:disable */
5
+ /* eslint-disable */
6
+ // Generated by Microsoft Kiota
7
+ const __1 = require("../");
8
+ /**
9
+ * Creates a new instance of the appropriate class based on discriminator value
10
+ * @param parseNode The parse node to use to read the discriminator value and create the object
11
+ * @returns {AcronymCollectionResponse}
12
+ */
13
+ function createAcronymCollectionResponseFromDiscriminatorValue(parseNode) {
14
+ return deserializeIntoAcronymCollectionResponse;
15
+ }
16
+ exports.createAcronymCollectionResponseFromDiscriminatorValue = createAcronymCollectionResponseFromDiscriminatorValue;
17
+ /**
18
+ * Creates a new instance of the appropriate class based on discriminator value
19
+ * @param parseNode The parse node to use to read the discriminator value and create the object
20
+ * @returns {Acronym}
21
+ */
22
+ function createAcronymFromDiscriminatorValue(parseNode) {
23
+ return deserializeIntoAcronym;
24
+ }
25
+ exports.createAcronymFromDiscriminatorValue = createAcronymFromDiscriminatorValue;
26
+ /**
27
+ * Creates a new instance of the appropriate class based on discriminator value
28
+ * @param parseNode The parse node to use to read the discriminator value and create the object
29
+ * @returns {AnswerKeyword}
30
+ */
31
+ function createAnswerKeywordFromDiscriminatorValue(parseNode) {
32
+ return deserializeIntoAnswerKeyword;
33
+ }
34
+ exports.createAnswerKeywordFromDiscriminatorValue = createAnswerKeywordFromDiscriminatorValue;
35
+ /**
36
+ * Creates a new instance of the appropriate class based on discriminator value
37
+ * @param parseNode The parse node to use to read the discriminator value and create the object
38
+ * @returns {AnswerVariant}
39
+ */
40
+ function createAnswerVariantFromDiscriminatorValue(parseNode) {
41
+ return deserializeIntoAnswerVariant;
42
+ }
43
+ exports.createAnswerVariantFromDiscriminatorValue = createAnswerVariantFromDiscriminatorValue;
44
+ /**
45
+ * Creates a new instance of the appropriate class based on discriminator value
46
+ * @param parseNode The parse node to use to read the discriminator value and create the object
47
+ * @returns {BookmarkCollectionResponse}
48
+ */
49
+ function createBookmarkCollectionResponseFromDiscriminatorValue(parseNode) {
50
+ return deserializeIntoBookmarkCollectionResponse;
51
+ }
52
+ exports.createBookmarkCollectionResponseFromDiscriminatorValue = createBookmarkCollectionResponseFromDiscriminatorValue;
53
+ /**
54
+ * Creates a new instance of the appropriate class based on discriminator value
55
+ * @param parseNode The parse node to use to read the discriminator value and create the object
56
+ * @returns {Bookmark}
57
+ */
58
+ function createBookmarkFromDiscriminatorValue(parseNode) {
59
+ return deserializeIntoBookmark;
60
+ }
61
+ exports.createBookmarkFromDiscriminatorValue = createBookmarkFromDiscriminatorValue;
62
+ /**
63
+ * Creates a new instance of the appropriate class based on discriminator value
64
+ * @param parseNode The parse node to use to read the discriminator value and create the object
65
+ * @returns {Identity}
66
+ */
67
+ function createIdentityFromDiscriminatorValue(parseNode) {
68
+ return deserializeIntoIdentity;
69
+ }
70
+ exports.createIdentityFromDiscriminatorValue = createIdentityFromDiscriminatorValue;
71
+ /**
72
+ * Creates a new instance of the appropriate class based on discriminator value
73
+ * @param parseNode The parse node to use to read the discriminator value and create the object
74
+ * @returns {IdentitySet}
75
+ */
76
+ function createIdentitySetFromDiscriminatorValue(parseNode) {
77
+ return deserializeIntoIdentitySet;
78
+ }
79
+ exports.createIdentitySetFromDiscriminatorValue = createIdentitySetFromDiscriminatorValue;
80
+ /**
81
+ * Creates a new instance of the appropriate class based on discriminator value
82
+ * @param parseNode The parse node to use to read the discriminator value and create the object
83
+ * @returns {QnaCollectionResponse}
84
+ */
85
+ function createQnaCollectionResponseFromDiscriminatorValue(parseNode) {
86
+ return deserializeIntoQnaCollectionResponse;
87
+ }
88
+ exports.createQnaCollectionResponseFromDiscriminatorValue = createQnaCollectionResponseFromDiscriminatorValue;
89
+ /**
90
+ * Creates a new instance of the appropriate class based on discriminator value
91
+ * @param parseNode The parse node to use to read the discriminator value and create the object
92
+ * @returns {Qna}
93
+ */
94
+ function createQnaFromDiscriminatorValue(parseNode) {
95
+ return deserializeIntoQna;
96
+ }
97
+ exports.createQnaFromDiscriminatorValue = createQnaFromDiscriminatorValue;
98
+ /**
99
+ * Creates a new instance of the appropriate class based on discriminator value
100
+ * @param parseNode The parse node to use to read the discriminator value and create the object
101
+ * @returns {SearchAnswer}
102
+ */
103
+ function createSearchAnswerFromDiscriminatorValue(parseNode) {
104
+ if (!parseNode)
105
+ throw new Error("parseNode cannot be undefined");
106
+ const mappingValueNode = parseNode.getChildNode("@odata.type");
107
+ if (mappingValueNode) {
108
+ const mappingValue = mappingValueNode.getStringValue();
109
+ if (mappingValue) {
110
+ switch (mappingValue) {
111
+ case "#microsoft.graph.search.acronym":
112
+ return deserializeIntoAcronym;
113
+ case "#microsoft.graph.search.bookmark":
114
+ return deserializeIntoBookmark;
115
+ case "#microsoft.graph.search.qna":
116
+ return deserializeIntoQna;
117
+ }
118
+ }
119
+ }
120
+ return deserializeIntoSearchAnswer;
121
+ }
122
+ exports.createSearchAnswerFromDiscriminatorValue = createSearchAnswerFromDiscriminatorValue;
123
+ /**
124
+ * The deserialization information for the current model
125
+ * @returns {Record<string, (node: ParseNode) => void>}
126
+ */
127
+ function deserializeIntoAcronym(acronym = {}) {
128
+ return Object.assign(Object.assign({}, deserializeIntoSearchAnswer(acronym)), { "standsFor": n => { acronym.standsFor = n.getStringValue(); }, "state": n => { acronym.state = n.getEnumValue(exports.AnswerStateObject); } });
129
+ }
130
+ exports.deserializeIntoAcronym = deserializeIntoAcronym;
131
+ /**
132
+ * The deserialization information for the current model
133
+ * @returns {Record<string, (node: ParseNode) => void>}
134
+ */
135
+ function deserializeIntoAcronymCollectionResponse(acronymCollectionResponse = {}) {
136
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(acronymCollectionResponse)), { "value": n => { acronymCollectionResponse.value = n.getCollectionOfObjectValues(createAcronymFromDiscriminatorValue); } });
137
+ }
138
+ exports.deserializeIntoAcronymCollectionResponse = deserializeIntoAcronymCollectionResponse;
139
+ /**
140
+ * The deserialization information for the current model
141
+ * @returns {Record<string, (node: ParseNode) => void>}
142
+ */
143
+ function deserializeIntoAnswerKeyword(answerKeyword = {}) {
144
+ return {
145
+ "backingStoreEnabled": n => { answerKeyword.backingStoreEnabled = true; },
146
+ "keywords": n => { answerKeyword.keywords = n.getCollectionOfPrimitiveValues(); },
147
+ "matchSimilarKeywords": n => { answerKeyword.matchSimilarKeywords = n.getBooleanValue(); },
148
+ "@odata.type": n => { answerKeyword.odataType = n.getStringValue(); },
149
+ "reservedKeywords": n => { answerKeyword.reservedKeywords = n.getCollectionOfPrimitiveValues(); },
150
+ };
151
+ }
152
+ exports.deserializeIntoAnswerKeyword = deserializeIntoAnswerKeyword;
153
+ /**
154
+ * The deserialization information for the current model
155
+ * @returns {Record<string, (node: ParseNode) => void>}
156
+ */
157
+ function deserializeIntoAnswerVariant(answerVariant = {}) {
158
+ return {
159
+ "backingStoreEnabled": n => { answerVariant.backingStoreEnabled = true; },
160
+ "description": n => { answerVariant.description = n.getStringValue(); },
161
+ "displayName": n => { answerVariant.displayName = n.getStringValue(); },
162
+ "languageTag": n => { answerVariant.languageTag = n.getStringValue(); },
163
+ "@odata.type": n => { answerVariant.odataType = n.getStringValue(); },
164
+ "platform": n => { answerVariant.platform = n.getEnumValue(__1.DevicePlatformTypeObject); },
165
+ "webUrl": n => { answerVariant.webUrl = n.getStringValue(); },
166
+ };
167
+ }
168
+ exports.deserializeIntoAnswerVariant = deserializeIntoAnswerVariant;
169
+ /**
170
+ * The deserialization information for the current model
171
+ * @returns {Record<string, (node: ParseNode) => void>}
172
+ */
173
+ function deserializeIntoBookmark(bookmark = {}) {
174
+ return Object.assign(Object.assign({}, deserializeIntoSearchAnswer(bookmark)), { "availabilityEndDateTime": n => { bookmark.availabilityEndDateTime = n.getDateValue(); }, "availabilityStartDateTime": n => { bookmark.availabilityStartDateTime = n.getDateValue(); }, "categories": n => { bookmark.categories = n.getCollectionOfPrimitiveValues(); }, "groupIds": n => { bookmark.groupIds = n.getCollectionOfPrimitiveValues(); }, "isSuggested": n => { bookmark.isSuggested = n.getBooleanValue(); }, "keywords": n => { bookmark.keywords = n.getObjectValue(createAnswerKeywordFromDiscriminatorValue); }, "languageTags": n => { bookmark.languageTags = n.getCollectionOfPrimitiveValues(); }, "platforms": n => { bookmark.platforms = n.getCollectionOfEnumValues(__1.DevicePlatformTypeObject); }, "powerAppIds": n => { bookmark.powerAppIds = n.getCollectionOfPrimitiveValues(); }, "state": n => { bookmark.state = n.getEnumValue(exports.AnswerStateObject); }, "targetedVariations": n => { bookmark.targetedVariations = n.getCollectionOfObjectValues(createAnswerVariantFromDiscriminatorValue); } });
175
+ }
176
+ exports.deserializeIntoBookmark = deserializeIntoBookmark;
177
+ /**
178
+ * The deserialization information for the current model
179
+ * @returns {Record<string, (node: ParseNode) => void>}
180
+ */
181
+ function deserializeIntoBookmarkCollectionResponse(bookmarkCollectionResponse = {}) {
182
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(bookmarkCollectionResponse)), { "value": n => { bookmarkCollectionResponse.value = n.getCollectionOfObjectValues(createBookmarkFromDiscriminatorValue); } });
183
+ }
184
+ exports.deserializeIntoBookmarkCollectionResponse = deserializeIntoBookmarkCollectionResponse;
185
+ /**
186
+ * The deserialization information for the current model
187
+ * @returns {Record<string, (node: ParseNode) => void>}
188
+ */
189
+ function deserializeIntoIdentity(identity = {}) {
190
+ return {
191
+ "backingStoreEnabled": n => { identity.backingStoreEnabled = true; },
192
+ "displayName": n => { identity.displayName = n.getStringValue(); },
193
+ "id": n => { identity.id = n.getStringValue(); },
194
+ "@odata.type": n => { identity.odataType = n.getStringValue(); },
195
+ };
196
+ }
197
+ exports.deserializeIntoIdentity = deserializeIntoIdentity;
198
+ /**
199
+ * The deserialization information for the current model
200
+ * @returns {Record<string, (node: ParseNode) => void>}
201
+ */
202
+ function deserializeIntoIdentitySet(identitySet = {}) {
203
+ return {
204
+ "application": n => { identitySet.application = n.getObjectValue(createIdentityFromDiscriminatorValue); },
205
+ "backingStoreEnabled": n => { identitySet.backingStoreEnabled = true; },
206
+ "device": n => { identitySet.device = n.getObjectValue(createIdentityFromDiscriminatorValue); },
207
+ "@odata.type": n => { identitySet.odataType = n.getStringValue(); },
208
+ "user": n => { identitySet.user = n.getObjectValue(createIdentityFromDiscriminatorValue); },
209
+ };
210
+ }
211
+ exports.deserializeIntoIdentitySet = deserializeIntoIdentitySet;
212
+ /**
213
+ * The deserialization information for the current model
214
+ * @returns {Record<string, (node: ParseNode) => void>}
215
+ */
216
+ function deserializeIntoQna(qna = {}) {
217
+ return Object.assign(Object.assign({}, deserializeIntoSearchAnswer(qna)), { "availabilityEndDateTime": n => { qna.availabilityEndDateTime = n.getDateValue(); }, "availabilityStartDateTime": n => { qna.availabilityStartDateTime = n.getDateValue(); }, "groupIds": n => { qna.groupIds = n.getCollectionOfPrimitiveValues(); }, "isSuggested": n => { qna.isSuggested = n.getBooleanValue(); }, "keywords": n => { qna.keywords = n.getObjectValue(createAnswerKeywordFromDiscriminatorValue); }, "languageTags": n => { qna.languageTags = n.getCollectionOfPrimitiveValues(); }, "platforms": n => { qna.platforms = n.getCollectionOfEnumValues(__1.DevicePlatformTypeObject); }, "state": n => { qna.state = n.getEnumValue(exports.AnswerStateObject); }, "targetedVariations": n => { qna.targetedVariations = n.getCollectionOfObjectValues(createAnswerVariantFromDiscriminatorValue); } });
218
+ }
219
+ exports.deserializeIntoQna = deserializeIntoQna;
220
+ /**
221
+ * The deserialization information for the current model
222
+ * @returns {Record<string, (node: ParseNode) => void>}
223
+ */
224
+ function deserializeIntoQnaCollectionResponse(qnaCollectionResponse = {}) {
225
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(qnaCollectionResponse)), { "value": n => { qnaCollectionResponse.value = n.getCollectionOfObjectValues(createQnaFromDiscriminatorValue); } });
226
+ }
227
+ exports.deserializeIntoQnaCollectionResponse = deserializeIntoQnaCollectionResponse;
228
+ /**
229
+ * The deserialization information for the current model
230
+ * @returns {Record<string, (node: ParseNode) => void>}
231
+ */
232
+ function deserializeIntoSearchAnswer(searchAnswer = {}) {
233
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(searchAnswer)), { "description": n => { searchAnswer.description = n.getStringValue(); }, "displayName": n => { searchAnswer.displayName = n.getStringValue(); }, "lastModifiedBy": n => { searchAnswer.lastModifiedBy = n.getObjectValue(createIdentitySetFromDiscriminatorValue); }, "lastModifiedDateTime": n => { searchAnswer.lastModifiedDateTime = n.getDateValue(); }, "webUrl": n => { searchAnswer.webUrl = n.getStringValue(); } });
234
+ }
235
+ exports.deserializeIntoSearchAnswer = deserializeIntoSearchAnswer;
236
+ /**
237
+ * Serializes information the current object
238
+ * @param writer Serialization writer to use to serialize this model
239
+ */
240
+ function serializeAcronym(writer, acronym = {}) {
241
+ serializeSearchAnswer(writer, acronym);
242
+ writer.writeStringValue("standsFor", acronym.standsFor);
243
+ writer.writeEnumValue("state", acronym.state);
244
+ }
245
+ exports.serializeAcronym = serializeAcronym;
246
+ /**
247
+ * Serializes information the current object
248
+ * @param writer Serialization writer to use to serialize this model
249
+ */
250
+ function serializeAcronymCollectionResponse(writer, acronymCollectionResponse = {}) {
251
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, acronymCollectionResponse);
252
+ writer.writeCollectionOfObjectValues("value", acronymCollectionResponse.value, serializeAcronym);
253
+ }
254
+ exports.serializeAcronymCollectionResponse = serializeAcronymCollectionResponse;
255
+ /**
256
+ * Serializes information the current object
257
+ * @param writer Serialization writer to use to serialize this model
258
+ */
259
+ function serializeAnswerKeyword(writer, answerKeyword = {}) {
260
+ writer.writeCollectionOfPrimitiveValues("keywords", answerKeyword.keywords);
261
+ writer.writeBooleanValue("matchSimilarKeywords", answerKeyword.matchSimilarKeywords);
262
+ writer.writeStringValue("@odata.type", answerKeyword.odataType);
263
+ writer.writeCollectionOfPrimitiveValues("reservedKeywords", answerKeyword.reservedKeywords);
264
+ writer.writeAdditionalData(answerKeyword.additionalData);
265
+ }
266
+ exports.serializeAnswerKeyword = serializeAnswerKeyword;
267
+ /**
268
+ * Serializes information the current object
269
+ * @param writer Serialization writer to use to serialize this model
270
+ */
271
+ function serializeAnswerVariant(writer, answerVariant = {}) {
272
+ writer.writeStringValue("description", answerVariant.description);
273
+ writer.writeStringValue("displayName", answerVariant.displayName);
274
+ writer.writeStringValue("languageTag", answerVariant.languageTag);
275
+ writer.writeStringValue("@odata.type", answerVariant.odataType);
276
+ writer.writeEnumValue("platform", answerVariant.platform);
277
+ writer.writeStringValue("webUrl", answerVariant.webUrl);
278
+ writer.writeAdditionalData(answerVariant.additionalData);
279
+ }
280
+ exports.serializeAnswerVariant = serializeAnswerVariant;
281
+ /**
282
+ * Serializes information the current object
283
+ * @param writer Serialization writer to use to serialize this model
284
+ */
285
+ function serializeBookmark(writer, bookmark = {}) {
286
+ serializeSearchAnswer(writer, bookmark);
287
+ writer.writeDateValue("availabilityEndDateTime", bookmark.availabilityEndDateTime);
288
+ writer.writeDateValue("availabilityStartDateTime", bookmark.availabilityStartDateTime);
289
+ writer.writeCollectionOfPrimitiveValues("categories", bookmark.categories);
290
+ writer.writeCollectionOfPrimitiveValues("groupIds", bookmark.groupIds);
291
+ writer.writeBooleanValue("isSuggested", bookmark.isSuggested);
292
+ writer.writeObjectValue("keywords", bookmark.keywords, serializeAnswerKeyword);
293
+ writer.writeCollectionOfPrimitiveValues("languageTags", bookmark.languageTags);
294
+ if (bookmark.platforms)
295
+ writer.writeEnumValue("platforms", ...bookmark.platforms);
296
+ writer.writeCollectionOfPrimitiveValues("powerAppIds", bookmark.powerAppIds);
297
+ writer.writeEnumValue("state", bookmark.state);
298
+ writer.writeCollectionOfObjectValues("targetedVariations", bookmark.targetedVariations, serializeAnswerVariant);
299
+ }
300
+ exports.serializeBookmark = serializeBookmark;
301
+ /**
302
+ * Serializes information the current object
303
+ * @param writer Serialization writer to use to serialize this model
304
+ */
305
+ function serializeBookmarkCollectionResponse(writer, bookmarkCollectionResponse = {}) {
306
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, bookmarkCollectionResponse);
307
+ writer.writeCollectionOfObjectValues("value", bookmarkCollectionResponse.value, serializeBookmark);
308
+ }
309
+ exports.serializeBookmarkCollectionResponse = serializeBookmarkCollectionResponse;
310
+ /**
311
+ * Serializes information the current object
312
+ * @param writer Serialization writer to use to serialize this model
313
+ */
314
+ function serializeIdentity(writer, identity = {}) {
315
+ writer.writeStringValue("displayName", identity.displayName);
316
+ writer.writeStringValue("id", identity.id);
317
+ writer.writeStringValue("@odata.type", identity.odataType);
318
+ writer.writeAdditionalData(identity.additionalData);
319
+ }
320
+ exports.serializeIdentity = serializeIdentity;
321
+ /**
322
+ * Serializes information the current object
323
+ * @param writer Serialization writer to use to serialize this model
324
+ */
325
+ function serializeIdentitySet(writer, identitySet = {}) {
326
+ writer.writeObjectValue("application", identitySet.application, serializeIdentity);
327
+ writer.writeObjectValue("device", identitySet.device, serializeIdentity);
328
+ writer.writeStringValue("@odata.type", identitySet.odataType);
329
+ writer.writeObjectValue("user", identitySet.user, serializeIdentity);
330
+ writer.writeAdditionalData(identitySet.additionalData);
331
+ }
332
+ exports.serializeIdentitySet = serializeIdentitySet;
333
+ /**
334
+ * Serializes information the current object
335
+ * @param writer Serialization writer to use to serialize this model
336
+ */
337
+ function serializeQna(writer, qna = {}) {
338
+ serializeSearchAnswer(writer, qna);
339
+ writer.writeDateValue("availabilityEndDateTime", qna.availabilityEndDateTime);
340
+ writer.writeDateValue("availabilityStartDateTime", qna.availabilityStartDateTime);
341
+ writer.writeCollectionOfPrimitiveValues("groupIds", qna.groupIds);
342
+ writer.writeBooleanValue("isSuggested", qna.isSuggested);
343
+ writer.writeObjectValue("keywords", qna.keywords, serializeAnswerKeyword);
344
+ writer.writeCollectionOfPrimitiveValues("languageTags", qna.languageTags);
345
+ if (qna.platforms)
346
+ writer.writeEnumValue("platforms", ...qna.platforms);
347
+ writer.writeEnumValue("state", qna.state);
348
+ writer.writeCollectionOfObjectValues("targetedVariations", qna.targetedVariations, serializeAnswerVariant);
349
+ }
350
+ exports.serializeQna = serializeQna;
351
+ /**
352
+ * Serializes information the current object
353
+ * @param writer Serialization writer to use to serialize this model
354
+ */
355
+ function serializeQnaCollectionResponse(writer, qnaCollectionResponse = {}) {
356
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, qnaCollectionResponse);
357
+ writer.writeCollectionOfObjectValues("value", qnaCollectionResponse.value, serializeQna);
358
+ }
359
+ exports.serializeQnaCollectionResponse = serializeQnaCollectionResponse;
360
+ /**
361
+ * Serializes information the current object
362
+ * @param writer Serialization writer to use to serialize this model
363
+ */
364
+ function serializeSearchAnswer(writer, searchAnswer = {}) {
365
+ (0, __1.serializeEntity)(writer, searchAnswer);
366
+ writer.writeStringValue("description", searchAnswer.description);
367
+ writer.writeStringValue("displayName", searchAnswer.displayName);
368
+ writer.writeObjectValue("lastModifiedBy", searchAnswer.lastModifiedBy, serializeIdentitySet);
369
+ writer.writeDateValue("lastModifiedDateTime", searchAnswer.lastModifiedDateTime);
370
+ writer.writeStringValue("webUrl", searchAnswer.webUrl);
371
+ }
372
+ exports.serializeSearchAnswer = serializeSearchAnswer;
373
+ exports.AnswerStateObject = {
374
+ Published: "published",
375
+ Draft: "draft",
376
+ Excluded: "excluded",
377
+ UnknownFutureValue: "unknownFutureValue",
378
+ };
379
+ /* tslint:enable */
380
+ /* eslint-enable */
@@ -1,5 +1,6 @@
1
1
  import { type BaseCollectionPaginationCountResponse, type Entity, type Group, type IdentitySet, type PhysicalAddress, type PublicError, type ResultInfo, type Site } from '../';
2
2
  import { type AdditionalDataHolder, type BackedModel, type Duration, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
3
+ import { type Guid } from 'guid-typescript';
3
4
  export type AdditionalDataOptions = (typeof AdditionalDataOptionsObject)[keyof typeof AdditionalDataOptionsObject];
4
5
  export interface Alert extends Entity, Parsable {
5
6
  /**
@@ -525,6 +526,10 @@ export interface CloudApplicationEvidence extends AlertEvidence, Parsable {
525
526
  * The identifier of the SaaS application.
526
527
  */
527
528
  saasAppId?: number;
529
+ /**
530
+ * The stream property
531
+ */
532
+ stream?: Stream;
528
533
  }
529
534
  export interface ContainerEvidence extends AlertEvidence, Parsable {
530
535
  /**
@@ -1238,6 +1243,12 @@ export declare function createKubernetesServicePortFromDiscriminatorValue(parseN
1238
1243
  * @returns {LoggedOnUser}
1239
1244
  */
1240
1245
  export declare function createLoggedOnUserFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1246
+ /**
1247
+ * Creates a new instance of the appropriate class based on discriminator value
1248
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1249
+ * @returns {MailboxConfigurationEvidence}
1250
+ */
1251
+ export declare function createMailboxConfigurationEvidenceFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1241
1252
  /**
1242
1253
  * Creates a new instance of the appropriate class based on discriminator value
1243
1254
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -1406,6 +1417,12 @@ export declare function createSslCertificateEntityFromDiscriminatorValue(parseNo
1406
1417
  * @returns {SslCertificate}
1407
1418
  */
1408
1419
  export declare function createSslCertificateFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1420
+ /**
1421
+ * Creates a new instance of the appropriate class based on discriminator value
1422
+ * @param parseNode The parse node to use to read the discriminator value and create the object
1423
+ * @returns {Stream}
1424
+ */
1425
+ export declare function createStreamFromDiscriminatorValue(parseNode: ParseNode | undefined): ((instance?: Parsable) => Record<string, (node: ParseNode) => void>);
1409
1426
  /**
1410
1427
  * Creates a new instance of the appropriate class based on discriminator value
1411
1428
  * @param parseNode The parse node to use to read the discriminator value and create the object
@@ -2218,6 +2235,11 @@ export declare function deserializeIntoKubernetesServicePort(kubernetesServicePo
2218
2235
  * @returns {Record<string, (node: ParseNode) => void>}
2219
2236
  */
2220
2237
  export declare function deserializeIntoLoggedOnUser(loggedOnUser?: Partial<LoggedOnUser> | undefined): Record<string, (node: ParseNode) => void>;
2238
+ /**
2239
+ * The deserialization information for the current model
2240
+ * @returns {Record<string, (node: ParseNode) => void>}
2241
+ */
2242
+ export declare function deserializeIntoMailboxConfigurationEvidence(mailboxConfigurationEvidence?: Partial<MailboxConfigurationEvidence> | undefined): Record<string, (node: ParseNode) => void>;
2221
2243
  /**
2222
2244
  * The deserialization information for the current model
2223
2245
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -2358,6 +2380,11 @@ export declare function deserializeIntoSslCertificateCollectionResponse(sslCerti
2358
2380
  * @returns {Record<string, (node: ParseNode) => void>}
2359
2381
  */
2360
2382
  export declare function deserializeIntoSslCertificateEntity(sslCertificateEntity?: Partial<SslCertificateEntity> | undefined): Record<string, (node: ParseNode) => void>;
2383
+ /**
2384
+ * The deserialization information for the current model
2385
+ * @returns {Record<string, (node: ParseNode) => void>}
2386
+ */
2387
+ export declare function deserializeIntoStream(stream?: Partial<Stream> | undefined): Record<string, (node: ParseNode) => void>;
2361
2388
  /**
2362
2389
  * The deserialization information for the current model
2363
2390
  * @returns {Record<string, (node: ParseNode) => void>}
@@ -3158,6 +3185,10 @@ export interface GitHubUserEvidence extends AlertEvidence, Parsable {
3158
3185
  }
3159
3186
  export type GoogleCloudLocationType = (typeof GoogleCloudLocationTypeObject)[keyof typeof GoogleCloudLocationTypeObject];
3160
3187
  export interface GoogleCloudResourceEvidence extends AlertEvidence, Parsable {
3188
+ /**
3189
+ * The fullResourceName property
3190
+ */
3191
+ fullResourceName?: string;
3161
3192
  /**
3162
3193
  * The zone or region where the resource is located.
3163
3194
  */
@@ -3984,6 +4015,10 @@ export interface IpEvidence extends AlertEvidence, Parsable {
3984
4015
  * The value of the IP Address, can be either in V4 address or V6 address format.
3985
4016
  */
3986
4017
  ipAddress?: string;
4018
+ /**
4019
+ * The stream property
4020
+ */
4021
+ stream?: Stream;
3987
4022
  }
3988
4023
  export interface KubernetesClusterEvidence extends AlertEvidence, Parsable {
3989
4024
  /**
@@ -4197,6 +4232,33 @@ export interface LoggedOnUser extends AdditionalDataHolder, BackedModel, Parsabl
4197
4232
  */
4198
4233
  odataType?: string;
4199
4234
  }
4235
+ export interface MailboxConfigurationEvidence extends AlertEvidence, Parsable {
4236
+ /**
4237
+ * The configurationId property
4238
+ */
4239
+ configurationId?: string;
4240
+ /**
4241
+ * The configurationType property
4242
+ */
4243
+ configurationType?: MailboxConfigurationType;
4244
+ /**
4245
+ * The displayName property
4246
+ */
4247
+ displayName?: string;
4248
+ /**
4249
+ * The externalDirectoryObjectId property
4250
+ */
4251
+ externalDirectoryObjectId?: Guid;
4252
+ /**
4253
+ * The mailboxPrimaryAddress property
4254
+ */
4255
+ mailboxPrimaryAddress?: string;
4256
+ /**
4257
+ * The upn property
4258
+ */
4259
+ upn?: string;
4260
+ }
4261
+ export type MailboxConfigurationType = (typeof MailboxConfigurationTypeObject)[keyof typeof MailboxConfigurationTypeObject];
4200
4262
  export interface MailboxEvidence extends AlertEvidence, Parsable {
4201
4263
  /**
4202
4264
  * The name associated with the mailbox.
@@ -5222,6 +5284,11 @@ export declare function serializeKubernetesServicePort(writer: SerializationWrit
5222
5284
  * @param writer Serialization writer to use to serialize this model
5223
5285
  */
5224
5286
  export declare function serializeLoggedOnUser(writer: SerializationWriter, loggedOnUser?: Partial<LoggedOnUser> | undefined): void;
5287
+ /**
5288
+ * Serializes information the current object
5289
+ * @param writer Serialization writer to use to serialize this model
5290
+ */
5291
+ export declare function serializeMailboxConfigurationEvidence(writer: SerializationWriter, mailboxConfigurationEvidence?: Partial<MailboxConfigurationEvidence> | undefined): void;
5225
5292
  /**
5226
5293
  * Serializes information the current object
5227
5294
  * @param writer Serialization writer to use to serialize this model
@@ -5362,6 +5429,11 @@ export declare function serializeSslCertificateCollectionResponse(writer: Serial
5362
5429
  * @param writer Serialization writer to use to serialize this model
5363
5430
  */
5364
5431
  export declare function serializeSslCertificateEntity(writer: SerializationWriter, sslCertificateEntity?: Partial<SslCertificateEntity> | undefined): void;
5432
+ /**
5433
+ * Serializes information the current object
5434
+ * @param writer Serialization writer to use to serialize this model
5435
+ */
5436
+ export declare function serializeStream(writer: SerializationWriter, stream?: Partial<Stream> | undefined): void;
5365
5437
  /**
5366
5438
  * Serializes information the current object
5367
5439
  * @param writer Serialization writer to use to serialize this model
@@ -5663,6 +5735,24 @@ export interface SslCertificateEntity extends AdditionalDataHolder, BackedModel,
5663
5735
  */
5664
5736
  surname?: string;
5665
5737
  }
5738
+ export interface Stream extends AdditionalDataHolder, BackedModel, Parsable {
5739
+ /**
5740
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
5741
+ */
5742
+ additionalData?: Record<string, unknown>;
5743
+ /**
5744
+ * Stores model information.
5745
+ */
5746
+ backingStoreEnabled?: boolean;
5747
+ /**
5748
+ * The name property
5749
+ */
5750
+ name?: string;
5751
+ /**
5752
+ * The OdataType property
5753
+ */
5754
+ odataType?: string;
5755
+ }
5666
5756
  export interface Subdomain extends Entity, Parsable {
5667
5757
  /**
5668
5758
  * The date and time when Microsoft Defender Threat Intelligence first observed the subdomain. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z.
@@ -5918,6 +6008,10 @@ export interface UserAccount extends AdditionalDataHolder, BackedModel, Parsable
5918
6008
  userSid?: string;
5919
6009
  }
5920
6010
  export interface UserEvidence extends AlertEvidence, Parsable {
6011
+ /**
6012
+ * The stream property
6013
+ */
6014
+ stream?: Stream;
5921
6015
  /**
5922
6016
  * The user account details.
5923
6017
  */
@@ -6551,6 +6645,14 @@ export declare const KubernetesServiceTypeObject: {
6551
6645
  readonly LoadBalancer: "loadBalancer";
6552
6646
  readonly UnknownFutureValue: "unknownFutureValue";
6553
6647
  };
6648
+ export declare const MailboxConfigurationTypeObject: {
6649
+ readonly MailForwardingRule: "mailForwardingRule";
6650
+ readonly OwaSettings: "owaSettings";
6651
+ readonly EwsSettings: "ewsSettings";
6652
+ readonly MailDelegation: "mailDelegation";
6653
+ readonly UserInboxRule: "userInboxRule";
6654
+ readonly UnknownFutureValue: "unknownFutureValue";
6655
+ };
6554
6656
  export declare const OnboardingStatusObject: {
6555
6657
  readonly InsufficientInfo: "insufficientInfo";
6556
6658
  readonly Onboarded: "onboarded";