@microsoft/msgraph-sdk 1.0.0-preview.10

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 (38) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +11 -0
  3. package/graphRequestAdapter.d.ts +15 -0
  4. package/graphRequestAdapter.d.ts.map +1 -0
  5. package/graphRequestAdapter.js +21 -0
  6. package/graphServiceClient.d.ts +19 -0
  7. package/graphServiceClient.d.ts.map +1 -0
  8. package/graphServiceClient.js +51 -0
  9. package/index.d.ts +3 -0
  10. package/index.d.ts.map +1 -0
  11. package/index.js +18 -0
  12. package/models/callRecords/index.d.ts +1414 -0
  13. package/models/callRecords/index.d.ts.map +1 -0
  14. package/models/callRecords/index.js +1104 -0
  15. package/models/externalConnectors/index.d.ts +975 -0
  16. package/models/externalConnectors/index.d.ts.map +1 -0
  17. package/models/externalConnectors/index.js +928 -0
  18. package/models/identityGovernance/index.d.ts +1334 -0
  19. package/models/identityGovernance/index.d.ts.map +1 -0
  20. package/models/identityGovernance/index.js +1189 -0
  21. package/models/index.d.ts +86017 -0
  22. package/models/index.d.ts.map +1 -0
  23. package/models/index.js +74768 -0
  24. package/models/oDataErrors/index.d.ts +158 -0
  25. package/models/oDataErrors/index.d.ts.map +1 -0
  26. package/models/oDataErrors/index.js +139 -0
  27. package/models/security/index.d.ts +6556 -0
  28. package/models/security/index.d.ts.map +1 -0
  29. package/models/security/index.js +5717 -0
  30. package/models/termStore/index.d.ts +454 -0
  31. package/models/termStore/index.d.ts.map +1 -0
  32. package/models/termStore/index.js +406 -0
  33. package/package.json +51 -0
  34. package/tsconfig.json +9 -0
  35. package/tsconfig.tsbuildinfo +1 -0
  36. package/version.d.ts +2 -0
  37. package/version.d.ts.map +1 -0
  38. package/version.js +4 -0
@@ -0,0 +1,406 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TermGroupScopeObject = exports.RelationTypeObject = exports.serializeTermCollectionResponse = exports.serializeTerm = exports.serializeStoreCollectionResponse = exports.serializeStore = exports.serializeSetCollectionResponse = exports.serializeSet = exports.serializeRelationCollectionResponse = exports.serializeRelation = exports.serializeLocalizedName = exports.serializeLocalizedLabel = exports.serializeLocalizedDescription = exports.serializeGroupCollectionResponse = exports.serializeGroup = exports.deserializeIntoTermCollectionResponse = exports.deserializeIntoTerm = exports.deserializeIntoStoreCollectionResponse = exports.deserializeIntoStore = exports.deserializeIntoSetCollectionResponse = exports.deserializeIntoSet = exports.deserializeIntoRelationCollectionResponse = exports.deserializeIntoRelation = exports.deserializeIntoLocalizedName = exports.deserializeIntoLocalizedLabel = exports.deserializeIntoLocalizedDescription = exports.deserializeIntoGroupCollectionResponse = exports.deserializeIntoGroup = exports.createTermFromDiscriminatorValue = exports.createTermCollectionResponseFromDiscriminatorValue = exports.createStoreFromDiscriminatorValue = exports.createStoreCollectionResponseFromDiscriminatorValue = exports.createSetFromDiscriminatorValue = exports.createSetCollectionResponseFromDiscriminatorValue = exports.createRelationFromDiscriminatorValue = exports.createRelationCollectionResponseFromDiscriminatorValue = exports.createLocalizedNameFromDiscriminatorValue = exports.createLocalizedLabelFromDiscriminatorValue = exports.createLocalizedDescriptionFromDiscriminatorValue = exports.createGroupFromDiscriminatorValue = exports.createGroupCollectionResponseFromDiscriminatorValue = 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 a groupCollectionResponse
12
+ */
13
+ function createGroupCollectionResponseFromDiscriminatorValue(parseNode) {
14
+ return deserializeIntoGroupCollectionResponse;
15
+ }
16
+ exports.createGroupCollectionResponseFromDiscriminatorValue = createGroupCollectionResponseFromDiscriminatorValue;
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 a group
21
+ */
22
+ function createGroupFromDiscriminatorValue(parseNode) {
23
+ return deserializeIntoGroup;
24
+ }
25
+ exports.createGroupFromDiscriminatorValue = createGroupFromDiscriminatorValue;
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 a localizedDescription
30
+ */
31
+ function createLocalizedDescriptionFromDiscriminatorValue(parseNode) {
32
+ return deserializeIntoLocalizedDescription;
33
+ }
34
+ exports.createLocalizedDescriptionFromDiscriminatorValue = createLocalizedDescriptionFromDiscriminatorValue;
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 a localizedLabel
39
+ */
40
+ function createLocalizedLabelFromDiscriminatorValue(parseNode) {
41
+ return deserializeIntoLocalizedLabel;
42
+ }
43
+ exports.createLocalizedLabelFromDiscriminatorValue = createLocalizedLabelFromDiscriminatorValue;
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 a localizedName
48
+ */
49
+ function createLocalizedNameFromDiscriminatorValue(parseNode) {
50
+ return deserializeIntoLocalizedName;
51
+ }
52
+ exports.createLocalizedNameFromDiscriminatorValue = createLocalizedNameFromDiscriminatorValue;
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 a relationCollectionResponse
57
+ */
58
+ function createRelationCollectionResponseFromDiscriminatorValue(parseNode) {
59
+ return deserializeIntoRelationCollectionResponse;
60
+ }
61
+ exports.createRelationCollectionResponseFromDiscriminatorValue = createRelationCollectionResponseFromDiscriminatorValue;
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 a relation
66
+ */
67
+ function createRelationFromDiscriminatorValue(parseNode) {
68
+ return deserializeIntoRelation;
69
+ }
70
+ exports.createRelationFromDiscriminatorValue = createRelationFromDiscriminatorValue;
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 a setCollectionResponse
75
+ */
76
+ function createSetCollectionResponseFromDiscriminatorValue(parseNode) {
77
+ return deserializeIntoSetCollectionResponse;
78
+ }
79
+ exports.createSetCollectionResponseFromDiscriminatorValue = createSetCollectionResponseFromDiscriminatorValue;
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 a set
84
+ */
85
+ function createSetFromDiscriminatorValue(parseNode) {
86
+ return deserializeIntoSet;
87
+ }
88
+ exports.createSetFromDiscriminatorValue = createSetFromDiscriminatorValue;
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 a storeCollectionResponse
93
+ */
94
+ function createStoreCollectionResponseFromDiscriminatorValue(parseNode) {
95
+ return deserializeIntoStoreCollectionResponse;
96
+ }
97
+ exports.createStoreCollectionResponseFromDiscriminatorValue = createStoreCollectionResponseFromDiscriminatorValue;
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 a store
102
+ */
103
+ function createStoreFromDiscriminatorValue(parseNode) {
104
+ return deserializeIntoStore;
105
+ }
106
+ exports.createStoreFromDiscriminatorValue = createStoreFromDiscriminatorValue;
107
+ /**
108
+ * Creates a new instance of the appropriate class based on discriminator value
109
+ * @param parseNode The parse node to use to read the discriminator value and create the object
110
+ * @returns a termCollectionResponse
111
+ */
112
+ function createTermCollectionResponseFromDiscriminatorValue(parseNode) {
113
+ return deserializeIntoTermCollectionResponse;
114
+ }
115
+ exports.createTermCollectionResponseFromDiscriminatorValue = createTermCollectionResponseFromDiscriminatorValue;
116
+ /**
117
+ * Creates a new instance of the appropriate class based on discriminator value
118
+ * @param parseNode The parse node to use to read the discriminator value and create the object
119
+ * @returns a term
120
+ */
121
+ function createTermFromDiscriminatorValue(parseNode) {
122
+ return deserializeIntoTerm;
123
+ }
124
+ exports.createTermFromDiscriminatorValue = createTermFromDiscriminatorValue;
125
+ /**
126
+ * The deserialization information for the current model
127
+ * @returns a Record<string, (node: ParseNode) => void>
128
+ */
129
+ function deserializeIntoGroup(group = {}) {
130
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(group)), { "createdDateTime": n => { group.createdDateTime = n.getDateValue(); }, "description": n => { group.description = n.getStringValue(); }, "displayName": n => { group.displayName = n.getStringValue(); }, "parentSiteId": n => { group.parentSiteId = n.getStringValue(); }, "scope": n => { group.scope = n.getEnumValue(exports.TermGroupScopeObject); }, "sets": n => { group.sets = n.getCollectionOfObjectValues(createSetFromDiscriminatorValue); } });
131
+ }
132
+ exports.deserializeIntoGroup = deserializeIntoGroup;
133
+ /**
134
+ * The deserialization information for the current model
135
+ * @returns a Record<string, (node: ParseNode) => void>
136
+ */
137
+ function deserializeIntoGroupCollectionResponse(groupCollectionResponse = {}) {
138
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(groupCollectionResponse)), { "value": n => { groupCollectionResponse.value = n.getCollectionOfObjectValues(createGroupFromDiscriminatorValue); } });
139
+ }
140
+ exports.deserializeIntoGroupCollectionResponse = deserializeIntoGroupCollectionResponse;
141
+ /**
142
+ * The deserialization information for the current model
143
+ * @returns a Record<string, (node: ParseNode) => void>
144
+ */
145
+ function deserializeIntoLocalizedDescription(localizedDescription = {}) {
146
+ return {
147
+ "backingStoreEnabled": n => { localizedDescription.backingStoreEnabled = true; },
148
+ "description": n => { localizedDescription.description = n.getStringValue(); },
149
+ "languageTag": n => { localizedDescription.languageTag = n.getStringValue(); },
150
+ "@odata.type": n => { localizedDescription.odataType = n.getStringValue(); },
151
+ };
152
+ }
153
+ exports.deserializeIntoLocalizedDescription = deserializeIntoLocalizedDescription;
154
+ /**
155
+ * The deserialization information for the current model
156
+ * @returns a Record<string, (node: ParseNode) => void>
157
+ */
158
+ function deserializeIntoLocalizedLabel(localizedLabel = {}) {
159
+ return {
160
+ "backingStoreEnabled": n => { localizedLabel.backingStoreEnabled = true; },
161
+ "isDefault": n => { localizedLabel.isDefault = n.getBooleanValue(); },
162
+ "languageTag": n => { localizedLabel.languageTag = n.getStringValue(); },
163
+ "name": n => { localizedLabel.name = n.getStringValue(); },
164
+ "@odata.type": n => { localizedLabel.odataType = n.getStringValue(); },
165
+ };
166
+ }
167
+ exports.deserializeIntoLocalizedLabel = deserializeIntoLocalizedLabel;
168
+ /**
169
+ * The deserialization information for the current model
170
+ * @returns a Record<string, (node: ParseNode) => void>
171
+ */
172
+ function deserializeIntoLocalizedName(localizedName = {}) {
173
+ return {
174
+ "backingStoreEnabled": n => { localizedName.backingStoreEnabled = true; },
175
+ "languageTag": n => { localizedName.languageTag = n.getStringValue(); },
176
+ "name": n => { localizedName.name = n.getStringValue(); },
177
+ "@odata.type": n => { localizedName.odataType = n.getStringValue(); },
178
+ };
179
+ }
180
+ exports.deserializeIntoLocalizedName = deserializeIntoLocalizedName;
181
+ /**
182
+ * The deserialization information for the current model
183
+ * @returns a Record<string, (node: ParseNode) => void>
184
+ */
185
+ function deserializeIntoRelation(relation = {}) {
186
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(relation)), { "fromTerm": n => { relation.fromTerm = n.getObjectValue(createTermFromDiscriminatorValue); }, "relationship": n => { relation.relationship = n.getEnumValue(exports.RelationTypeObject); }, "set": n => { relation.set = n.getObjectValue(createSetFromDiscriminatorValue); }, "toTerm": n => { relation.toTerm = n.getObjectValue(createTermFromDiscriminatorValue); } });
187
+ }
188
+ exports.deserializeIntoRelation = deserializeIntoRelation;
189
+ /**
190
+ * The deserialization information for the current model
191
+ * @returns a Record<string, (node: ParseNode) => void>
192
+ */
193
+ function deserializeIntoRelationCollectionResponse(relationCollectionResponse = {}) {
194
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(relationCollectionResponse)), { "value": n => { relationCollectionResponse.value = n.getCollectionOfObjectValues(createRelationFromDiscriminatorValue); } });
195
+ }
196
+ exports.deserializeIntoRelationCollectionResponse = deserializeIntoRelationCollectionResponse;
197
+ /**
198
+ * The deserialization information for the current model
199
+ * @returns a Record<string, (node: ParseNode) => void>
200
+ */
201
+ function deserializeIntoSet(set = {}) {
202
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(set)), { "children": n => { set.children = n.getCollectionOfObjectValues(createTermFromDiscriminatorValue); }, "createdDateTime": n => { set.createdDateTime = n.getDateValue(); }, "description": n => { set.description = n.getStringValue(); }, "localizedNames": n => { set.localizedNames = n.getCollectionOfObjectValues(createLocalizedNameFromDiscriminatorValue); }, "parentGroup": n => { set.parentGroup = n.getObjectValue(createGroupFromDiscriminatorValue); }, "properties": n => { set.properties = n.getCollectionOfObjectValues(__1.createKeyValueFromDiscriminatorValue); }, "relations": n => { set.relations = n.getCollectionOfObjectValues(createRelationFromDiscriminatorValue); }, "terms": n => { set.terms = n.getCollectionOfObjectValues(createTermFromDiscriminatorValue); } });
203
+ }
204
+ exports.deserializeIntoSet = deserializeIntoSet;
205
+ /**
206
+ * The deserialization information for the current model
207
+ * @returns a Record<string, (node: ParseNode) => void>
208
+ */
209
+ function deserializeIntoSetCollectionResponse(setCollectionResponse = {}) {
210
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(setCollectionResponse)), { "value": n => { setCollectionResponse.value = n.getCollectionOfObjectValues(createSetFromDiscriminatorValue); } });
211
+ }
212
+ exports.deserializeIntoSetCollectionResponse = deserializeIntoSetCollectionResponse;
213
+ /**
214
+ * The deserialization information for the current model
215
+ * @returns a Record<string, (node: ParseNode) => void>
216
+ */
217
+ function deserializeIntoStore(store = {}) {
218
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(store)), { "defaultLanguageTag": n => { store.defaultLanguageTag = n.getStringValue(); }, "groups": n => { store.groups = n.getCollectionOfObjectValues(createGroupFromDiscriminatorValue); }, "languageTags": n => { store.languageTags = n.getCollectionOfPrimitiveValues(); }, "sets": n => { store.sets = n.getCollectionOfObjectValues(createSetFromDiscriminatorValue); } });
219
+ }
220
+ exports.deserializeIntoStore = deserializeIntoStore;
221
+ /**
222
+ * The deserialization information for the current model
223
+ * @returns a Record<string, (node: ParseNode) => void>
224
+ */
225
+ function deserializeIntoStoreCollectionResponse(storeCollectionResponse = {}) {
226
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(storeCollectionResponse)), { "value": n => { storeCollectionResponse.value = n.getCollectionOfObjectValues(createStoreFromDiscriminatorValue); } });
227
+ }
228
+ exports.deserializeIntoStoreCollectionResponse = deserializeIntoStoreCollectionResponse;
229
+ /**
230
+ * The deserialization information for the current model
231
+ * @returns a Record<string, (node: ParseNode) => void>
232
+ */
233
+ function deserializeIntoTerm(term = {}) {
234
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(term)), { "children": n => { term.children = n.getCollectionOfObjectValues(createTermFromDiscriminatorValue); }, "createdDateTime": n => { term.createdDateTime = n.getDateValue(); }, "descriptions": n => { term.descriptions = n.getCollectionOfObjectValues(createLocalizedDescriptionFromDiscriminatorValue); }, "labels": n => { term.labels = n.getCollectionOfObjectValues(createLocalizedLabelFromDiscriminatorValue); }, "lastModifiedDateTime": n => { term.lastModifiedDateTime = n.getDateValue(); }, "properties": n => { term.properties = n.getCollectionOfObjectValues(__1.createKeyValueFromDiscriminatorValue); }, "relations": n => { term.relations = n.getCollectionOfObjectValues(createRelationFromDiscriminatorValue); }, "set": n => { term.set = n.getObjectValue(createSetFromDiscriminatorValue); } });
235
+ }
236
+ exports.deserializeIntoTerm = deserializeIntoTerm;
237
+ /**
238
+ * The deserialization information for the current model
239
+ * @returns a Record<string, (node: ParseNode) => void>
240
+ */
241
+ function deserializeIntoTermCollectionResponse(termCollectionResponse = {}) {
242
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(termCollectionResponse)), { "value": n => { termCollectionResponse.value = n.getCollectionOfObjectValues(createTermFromDiscriminatorValue); } });
243
+ }
244
+ exports.deserializeIntoTermCollectionResponse = deserializeIntoTermCollectionResponse;
245
+ /**
246
+ * Serializes information the current object
247
+ * @param writer Serialization writer to use to serialize this model
248
+ */
249
+ function serializeGroup(writer, group = {}) {
250
+ (0, __1.serializeEntity)(writer, group);
251
+ writer.writeDateValue("createdDateTime", group.createdDateTime);
252
+ writer.writeStringValue("description", group.description);
253
+ writer.writeStringValue("displayName", group.displayName);
254
+ writer.writeStringValue("parentSiteId", group.parentSiteId);
255
+ writer.writeEnumValue("scope", group.scope);
256
+ writer.writeCollectionOfObjectValues("sets", group.sets, serializeSet);
257
+ }
258
+ exports.serializeGroup = serializeGroup;
259
+ /**
260
+ * Serializes information the current object
261
+ * @param writer Serialization writer to use to serialize this model
262
+ */
263
+ function serializeGroupCollectionResponse(writer, groupCollectionResponse = {}) {
264
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, groupCollectionResponse);
265
+ writer.writeCollectionOfObjectValues("value", groupCollectionResponse.value, serializeGroup);
266
+ }
267
+ exports.serializeGroupCollectionResponse = serializeGroupCollectionResponse;
268
+ /**
269
+ * Serializes information the current object
270
+ * @param writer Serialization writer to use to serialize this model
271
+ */
272
+ function serializeLocalizedDescription(writer, localizedDescription = {}) {
273
+ writer.writeStringValue("description", localizedDescription.description);
274
+ writer.writeStringValue("languageTag", localizedDescription.languageTag);
275
+ writer.writeStringValue("@odata.type", localizedDescription.odataType);
276
+ writer.writeAdditionalData(localizedDescription.additionalData);
277
+ }
278
+ exports.serializeLocalizedDescription = serializeLocalizedDescription;
279
+ /**
280
+ * Serializes information the current object
281
+ * @param writer Serialization writer to use to serialize this model
282
+ */
283
+ function serializeLocalizedLabel(writer, localizedLabel = {}) {
284
+ writer.writeBooleanValue("isDefault", localizedLabel.isDefault);
285
+ writer.writeStringValue("languageTag", localizedLabel.languageTag);
286
+ writer.writeStringValue("name", localizedLabel.name);
287
+ writer.writeStringValue("@odata.type", localizedLabel.odataType);
288
+ writer.writeAdditionalData(localizedLabel.additionalData);
289
+ }
290
+ exports.serializeLocalizedLabel = serializeLocalizedLabel;
291
+ /**
292
+ * Serializes information the current object
293
+ * @param writer Serialization writer to use to serialize this model
294
+ */
295
+ function serializeLocalizedName(writer, localizedName = {}) {
296
+ writer.writeStringValue("languageTag", localizedName.languageTag);
297
+ writer.writeStringValue("name", localizedName.name);
298
+ writer.writeStringValue("@odata.type", localizedName.odataType);
299
+ writer.writeAdditionalData(localizedName.additionalData);
300
+ }
301
+ exports.serializeLocalizedName = serializeLocalizedName;
302
+ /**
303
+ * Serializes information the current object
304
+ * @param writer Serialization writer to use to serialize this model
305
+ */
306
+ function serializeRelation(writer, relation = {}) {
307
+ (0, __1.serializeEntity)(writer, relation);
308
+ writer.writeObjectValue("fromTerm", relation.fromTerm, serializeTerm);
309
+ writer.writeEnumValue("relationship", relation.relationship);
310
+ writer.writeObjectValue("set", relation.set, serializeSet);
311
+ writer.writeObjectValue("toTerm", relation.toTerm, serializeTerm);
312
+ }
313
+ exports.serializeRelation = serializeRelation;
314
+ /**
315
+ * Serializes information the current object
316
+ * @param writer Serialization writer to use to serialize this model
317
+ */
318
+ function serializeRelationCollectionResponse(writer, relationCollectionResponse = {}) {
319
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, relationCollectionResponse);
320
+ writer.writeCollectionOfObjectValues("value", relationCollectionResponse.value, serializeRelation);
321
+ }
322
+ exports.serializeRelationCollectionResponse = serializeRelationCollectionResponse;
323
+ /**
324
+ * Serializes information the current object
325
+ * @param writer Serialization writer to use to serialize this model
326
+ */
327
+ function serializeSet(writer, set = {}) {
328
+ (0, __1.serializeEntity)(writer, set);
329
+ writer.writeCollectionOfObjectValues("children", set.children, serializeTerm);
330
+ writer.writeDateValue("createdDateTime", set.createdDateTime);
331
+ writer.writeStringValue("description", set.description);
332
+ writer.writeCollectionOfObjectValues("localizedNames", set.localizedNames, serializeLocalizedName);
333
+ writer.writeObjectValue("parentGroup", set.parentGroup, serializeGroup);
334
+ writer.writeCollectionOfObjectValues("properties", set.properties, __1.serializeKeyValue);
335
+ writer.writeCollectionOfObjectValues("relations", set.relations, serializeRelation);
336
+ writer.writeCollectionOfObjectValues("terms", set.terms, serializeTerm);
337
+ }
338
+ exports.serializeSet = serializeSet;
339
+ /**
340
+ * Serializes information the current object
341
+ * @param writer Serialization writer to use to serialize this model
342
+ */
343
+ function serializeSetCollectionResponse(writer, setCollectionResponse = {}) {
344
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, setCollectionResponse);
345
+ writer.writeCollectionOfObjectValues("value", setCollectionResponse.value, serializeSet);
346
+ }
347
+ exports.serializeSetCollectionResponse = serializeSetCollectionResponse;
348
+ /**
349
+ * Serializes information the current object
350
+ * @param writer Serialization writer to use to serialize this model
351
+ */
352
+ function serializeStore(writer, store = {}) {
353
+ (0, __1.serializeEntity)(writer, store);
354
+ writer.writeStringValue("defaultLanguageTag", store.defaultLanguageTag);
355
+ writer.writeCollectionOfObjectValues("groups", store.groups, serializeGroup);
356
+ writer.writeCollectionOfPrimitiveValues("languageTags", store.languageTags);
357
+ writer.writeCollectionOfObjectValues("sets", store.sets, serializeSet);
358
+ }
359
+ exports.serializeStore = serializeStore;
360
+ /**
361
+ * Serializes information the current object
362
+ * @param writer Serialization writer to use to serialize this model
363
+ */
364
+ function serializeStoreCollectionResponse(writer, storeCollectionResponse = {}) {
365
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, storeCollectionResponse);
366
+ writer.writeCollectionOfObjectValues("value", storeCollectionResponse.value, serializeStore);
367
+ }
368
+ exports.serializeStoreCollectionResponse = serializeStoreCollectionResponse;
369
+ /**
370
+ * Serializes information the current object
371
+ * @param writer Serialization writer to use to serialize this model
372
+ */
373
+ function serializeTerm(writer, term = {}) {
374
+ (0, __1.serializeEntity)(writer, term);
375
+ writer.writeCollectionOfObjectValues("children", term.children, serializeTerm);
376
+ writer.writeDateValue("createdDateTime", term.createdDateTime);
377
+ writer.writeCollectionOfObjectValues("descriptions", term.descriptions, serializeLocalizedDescription);
378
+ writer.writeCollectionOfObjectValues("labels", term.labels, serializeLocalizedLabel);
379
+ writer.writeDateValue("lastModifiedDateTime", term.lastModifiedDateTime);
380
+ writer.writeCollectionOfObjectValues("properties", term.properties, __1.serializeKeyValue);
381
+ writer.writeCollectionOfObjectValues("relations", term.relations, serializeRelation);
382
+ writer.writeObjectValue("set", term.set, serializeSet);
383
+ }
384
+ exports.serializeTerm = serializeTerm;
385
+ /**
386
+ * Serializes information the current object
387
+ * @param writer Serialization writer to use to serialize this model
388
+ */
389
+ function serializeTermCollectionResponse(writer, termCollectionResponse = {}) {
390
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, termCollectionResponse);
391
+ writer.writeCollectionOfObjectValues("value", termCollectionResponse.value, serializeTerm);
392
+ }
393
+ exports.serializeTermCollectionResponse = serializeTermCollectionResponse;
394
+ exports.RelationTypeObject = {
395
+ Pin: "pin",
396
+ Reuse: "reuse",
397
+ UnknownFutureValue: "unknownFutureValue",
398
+ };
399
+ exports.TermGroupScopeObject = {
400
+ Global: "global",
401
+ System: "system",
402
+ SiteCollection: "siteCollection",
403
+ UnknownFutureValue: "unknownFutureValue",
404
+ };
405
+ /* tslint:enable */
406
+ /* eslint-enable */
package/package.json ADDED
@@ -0,0 +1,51 @@
1
+ {
2
+ "name": "@microsoft/msgraph-sdk",
3
+ "version": "1.0.0-preview.10",
4
+ "description": "Microsoft Graph JavaScript client library",
5
+ "keywords": [
6
+ "microsoft",
7
+ "graph",
8
+ "msgraph"
9
+ ],
10
+ "author": "Microsoft <graphsdkpub+javascript@microsoft.com>",
11
+ "homepage": "https://github.com/microsoftgraph/msgraph-sdk-typescript#readme",
12
+ "license": "MIT",
13
+ "main": "index.js",
14
+ "types": "index.d.ts",
15
+ "publishConfig": {
16
+ "access": "public"
17
+ },
18
+ "repository": {
19
+ "type": "git",
20
+ "url": "git+https://github.com/microsoftgraph/msgraph-sdk-typescript.git"
21
+ },
22
+ "scripts": {
23
+ "build": "tsc -p tsconfig.json",
24
+ "lint": "eslint . --ext .ts",
25
+ "lint:fix": "eslint . --ext .ts --fix",
26
+ "clean": "rimraf -g **/*.d.ts && rimraf -g **/*.d.ts.map && rimraf -g **/*.js.map && rimraf -g **/*.js && rimraf tsconfig.tsbuildinfo"
27
+ },
28
+ "bugs": {
29
+ "url": "https://github.com/microsoftgraph/msgraph-sdk-typescript/issues"
30
+ },
31
+ "dependencies": {
32
+ "@microsoft/kiota-abstractions": "^1.0.0-preview.38",
33
+ "@microsoft/kiota-serialization-form": "^1.0.0-preview.27",
34
+ "@microsoft/kiota-serialization-json": "^1.0.0-preview.38",
35
+ "@microsoft/kiota-serialization-multipart": "^1.0.0-preview.17",
36
+ "@microsoft/kiota-serialization-text": "^1.0.0-preview.35",
37
+ "@microsoft/msgraph-sdk-core": "^1.0.0-preview.1",
38
+ "guid-typescript": "^1.0.9",
39
+ "tslib": "^2.6.2"
40
+ },
41
+ "devDependencies": {
42
+ "@azure/identity": "^4.0.0",
43
+ "@types/chai": "^4.3.11",
44
+ "@types/mocha": "^10.0.6",
45
+ "@types/node": "^20.11.2",
46
+ "chai": "^5.0.0",
47
+ "mocha": "^10.2.0",
48
+ "typescript": "^5.3.3"
49
+ },
50
+ "gitHead": "15d9675ebafd32092472a638aa8d5d9276e283b1"
51
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "$schema": "https://json.schemastore.org/tsconfig",
3
+ "extends": "../tsconfig.base.json",
4
+ "compilerOptions": {
5
+ "baseUrl": "./"
6
+ },
7
+ "include": ["**/*.ts"],
8
+ "exclude": ["node_modules", "**/__tests__/*", "**/__e2e__/*"]
9
+ }