@microsoft/msgraph-sdk 1.0.0-preview.15 → 1.0.0-preview.17
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/callRecords/index.d.ts +4 -4
- package/models/index.d.ts +1603 -33
- package/models/index.d.ts.map +1 -1
- package/models/index.js +1569 -128
- package/models/search/index.d.ts +428 -0
- package/models/search/index.d.ts.map +1 -0
- package/models/search/index.js +380 -0
- package/package.json +2 -2
- package/tsconfig.tsbuildinfo +1 -1
|
@@ -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 */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/msgraph-sdk",
|
|
3
|
-
"version": "1.0.0-preview.
|
|
3
|
+
"version": "1.0.0-preview.17",
|
|
4
4
|
"description": "Microsoft Graph JavaScript client library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"microsoft",
|
|
@@ -47,5 +47,5 @@
|
|
|
47
47
|
"mocha": "^10.2.0",
|
|
48
48
|
"typescript": "^5.3.3"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "cf9344aac51247cf524bc8163ff07531d51c9b6c"
|
|
51
51
|
}
|