@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,1189 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.deserializeIntoTask = exports.deserializeIntoRunSummary = exports.deserializeIntoRunCollectionResponse = exports.deserializeIntoRun = exports.deserializeIntoRuleBasedSubjectSet = exports.deserializeIntoParameter = exports.deserializeIntoOnDemandExecutionOnly = exports.deserializeIntoLifecycleWorkflowsContainer = exports.deserializeIntoLifecycleManagementSettings = exports.deserializeIntoCustomTaskExtensionCollectionResponse = exports.deserializeIntoCustomTaskExtensionCalloutData = exports.deserializeIntoCustomTaskExtensionCallbackData = exports.deserializeIntoCustomTaskExtensionCallbackConfiguration = exports.deserializeIntoCustomTaskExtension = exports.createWorkflowVersionFromDiscriminatorValue = exports.createWorkflowVersionCollectionResponseFromDiscriminatorValue = exports.createWorkflowTemplateFromDiscriminatorValue = exports.createWorkflowTemplateCollectionResponseFromDiscriminatorValue = exports.createWorkflowFromDiscriminatorValue = exports.createWorkflowExecutionTriggerFromDiscriminatorValue = exports.createWorkflowExecutionConditionsFromDiscriminatorValue = exports.createWorkflowCollectionResponseFromDiscriminatorValue = exports.createWorkflowBaseFromDiscriminatorValue = exports.createUserSummaryFromDiscriminatorValue = exports.createUserProcessingResultFromDiscriminatorValue = exports.createUserProcessingResultCollectionResponseFromDiscriminatorValue = exports.createTriggerAndScopeBasedConditionsFromDiscriminatorValue = exports.createTimeBasedAttributeTriggerFromDiscriminatorValue = exports.createTaskReportSummaryFromDiscriminatorValue = exports.createTaskReportFromDiscriminatorValue = exports.createTaskReportCollectionResponseFromDiscriminatorValue = exports.createTaskProcessingResultFromDiscriminatorValue = exports.createTaskProcessingResultCollectionResponseFromDiscriminatorValue = exports.createTaskFromDiscriminatorValue = exports.createTaskDefinitionFromDiscriminatorValue = exports.createTaskDefinitionCollectionResponseFromDiscriminatorValue = exports.createTaskCollectionResponseFromDiscriminatorValue = exports.createRunSummaryFromDiscriminatorValue = exports.createRunFromDiscriminatorValue = exports.createRunCollectionResponseFromDiscriminatorValue = exports.createRuleBasedSubjectSetFromDiscriminatorValue = exports.createParameterFromDiscriminatorValue = exports.createOnDemandExecutionOnlyFromDiscriminatorValue = exports.createLifecycleWorkflowsContainerFromDiscriminatorValue = exports.createLifecycleManagementSettingsFromDiscriminatorValue = exports.createCustomTaskExtensionFromDiscriminatorValue = exports.createCustomTaskExtensionCollectionResponseFromDiscriminatorValue = exports.createCustomTaskExtensionCalloutDataFromDiscriminatorValue = exports.createCustomTaskExtensionCallbackDataFromDiscriminatorValue = exports.createCustomTaskExtensionCallbackConfigurationFromDiscriminatorValue = void 0;
4
+ exports.serializeWorkflow = exports.serializeUserSummary = exports.serializeUserProcessingResultCollectionResponse = exports.serializeUserProcessingResult = exports.serializeTriggerAndScopeBasedConditions = exports.serializeTimeBasedAttributeTrigger = exports.serializeTaskReportSummary = exports.serializeTaskReportCollectionResponse = exports.serializeTaskReport = exports.serializeTaskProcessingResultCollectionResponse = exports.serializeTaskProcessingResult = exports.serializeTaskDefinitionCollectionResponse = exports.serializeTaskDefinition = exports.serializeTaskCollectionResponse = exports.serializeTask = exports.serializeRunSummary = exports.serializeRunCollectionResponse = exports.serializeRun = exports.serializeRuleBasedSubjectSet = exports.serializeParameter = exports.serializeOnDemandExecutionOnly = exports.serializeLifecycleWorkflowsContainer = exports.serializeLifecycleManagementSettings = exports.serializeCustomTaskExtensionCollectionResponse = exports.serializeCustomTaskExtensionCalloutData = exports.serializeCustomTaskExtensionCallbackData = exports.serializeCustomTaskExtensionCallbackConfiguration = exports.serializeCustomTaskExtension = exports.deserializeIntoWorkflowVersionCollectionResponse = exports.deserializeIntoWorkflowVersion = exports.deserializeIntoWorkflowTemplateCollectionResponse = exports.deserializeIntoWorkflowTemplate = exports.deserializeIntoWorkflowExecutionTrigger = exports.deserializeIntoWorkflowExecutionConditions = exports.deserializeIntoWorkflowCollectionResponse = exports.deserializeIntoWorkflowBase = exports.deserializeIntoWorkflow = exports.deserializeIntoUserSummary = exports.deserializeIntoUserProcessingResultCollectionResponse = exports.deserializeIntoUserProcessingResult = exports.deserializeIntoTriggerAndScopeBasedConditions = exports.deserializeIntoTimeBasedAttributeTrigger = exports.deserializeIntoTaskReportSummary = exports.deserializeIntoTaskReportCollectionResponse = exports.deserializeIntoTaskReport = exports.deserializeIntoTaskProcessingResultCollectionResponse = exports.deserializeIntoTaskProcessingResult = exports.deserializeIntoTaskDefinitionCollectionResponse = exports.deserializeIntoTaskDefinition = exports.deserializeIntoTaskCollectionResponse = void 0;
5
+ exports.WorkflowTriggerTimeBasedAttributeObject = exports.WorkflowExecutionTypeObject = exports.ValueTypeObject = exports.LifecycleWorkflowProcessingStatusObject = exports.LifecycleWorkflowCategoryObject = exports.LifecycleTaskCategoryObject = exports.CustomTaskExtensionOperationStatusObject = exports.serializeWorkflowVersionCollectionResponse = exports.serializeWorkflowVersion = exports.serializeWorkflowTemplateCollectionResponse = exports.serializeWorkflowTemplate = exports.serializeWorkflowExecutionTrigger = exports.serializeWorkflowExecutionConditions = exports.serializeWorkflowCollectionResponse = exports.serializeWorkflowBase = void 0;
6
+ /* tslint:disable */
7
+ /* eslint-disable */
8
+ // Generated by Microsoft Kiota
9
+ const __1 = require("../");
10
+ /**
11
+ * Creates a new instance of the appropriate class based on discriminator value
12
+ * @param parseNode The parse node to use to read the discriminator value and create the object
13
+ * @returns a customTaskExtensionCallbackConfiguration
14
+ */
15
+ function createCustomTaskExtensionCallbackConfigurationFromDiscriminatorValue(parseNode) {
16
+ return deserializeIntoCustomTaskExtensionCallbackConfiguration;
17
+ }
18
+ exports.createCustomTaskExtensionCallbackConfigurationFromDiscriminatorValue = createCustomTaskExtensionCallbackConfigurationFromDiscriminatorValue;
19
+ /**
20
+ * Creates a new instance of the appropriate class based on discriminator value
21
+ * @param parseNode The parse node to use to read the discriminator value and create the object
22
+ * @returns a customTaskExtensionCallbackData
23
+ */
24
+ function createCustomTaskExtensionCallbackDataFromDiscriminatorValue(parseNode) {
25
+ return deserializeIntoCustomTaskExtensionCallbackData;
26
+ }
27
+ exports.createCustomTaskExtensionCallbackDataFromDiscriminatorValue = createCustomTaskExtensionCallbackDataFromDiscriminatorValue;
28
+ /**
29
+ * Creates a new instance of the appropriate class based on discriminator value
30
+ * @param parseNode The parse node to use to read the discriminator value and create the object
31
+ * @returns a customTaskExtensionCalloutData
32
+ */
33
+ function createCustomTaskExtensionCalloutDataFromDiscriminatorValue(parseNode) {
34
+ return deserializeIntoCustomTaskExtensionCalloutData;
35
+ }
36
+ exports.createCustomTaskExtensionCalloutDataFromDiscriminatorValue = createCustomTaskExtensionCalloutDataFromDiscriminatorValue;
37
+ /**
38
+ * Creates a new instance of the appropriate class based on discriminator value
39
+ * @param parseNode The parse node to use to read the discriminator value and create the object
40
+ * @returns a customTaskExtensionCollectionResponse
41
+ */
42
+ function createCustomTaskExtensionCollectionResponseFromDiscriminatorValue(parseNode) {
43
+ return deserializeIntoCustomTaskExtensionCollectionResponse;
44
+ }
45
+ exports.createCustomTaskExtensionCollectionResponseFromDiscriminatorValue = createCustomTaskExtensionCollectionResponseFromDiscriminatorValue;
46
+ /**
47
+ * Creates a new instance of the appropriate class based on discriminator value
48
+ * @param parseNode The parse node to use to read the discriminator value and create the object
49
+ * @returns a customTaskExtension
50
+ */
51
+ function createCustomTaskExtensionFromDiscriminatorValue(parseNode) {
52
+ return deserializeIntoCustomTaskExtension;
53
+ }
54
+ exports.createCustomTaskExtensionFromDiscriminatorValue = createCustomTaskExtensionFromDiscriminatorValue;
55
+ /**
56
+ * Creates a new instance of the appropriate class based on discriminator value
57
+ * @param parseNode The parse node to use to read the discriminator value and create the object
58
+ * @returns a lifecycleManagementSettings
59
+ */
60
+ function createLifecycleManagementSettingsFromDiscriminatorValue(parseNode) {
61
+ return deserializeIntoLifecycleManagementSettings;
62
+ }
63
+ exports.createLifecycleManagementSettingsFromDiscriminatorValue = createLifecycleManagementSettingsFromDiscriminatorValue;
64
+ /**
65
+ * Creates a new instance of the appropriate class based on discriminator value
66
+ * @param parseNode The parse node to use to read the discriminator value and create the object
67
+ * @returns a lifecycleWorkflowsContainer
68
+ */
69
+ function createLifecycleWorkflowsContainerFromDiscriminatorValue(parseNode) {
70
+ return deserializeIntoLifecycleWorkflowsContainer;
71
+ }
72
+ exports.createLifecycleWorkflowsContainerFromDiscriminatorValue = createLifecycleWorkflowsContainerFromDiscriminatorValue;
73
+ /**
74
+ * Creates a new instance of the appropriate class based on discriminator value
75
+ * @param parseNode The parse node to use to read the discriminator value and create the object
76
+ * @returns a onDemandExecutionOnly
77
+ */
78
+ function createOnDemandExecutionOnlyFromDiscriminatorValue(parseNode) {
79
+ return deserializeIntoOnDemandExecutionOnly;
80
+ }
81
+ exports.createOnDemandExecutionOnlyFromDiscriminatorValue = createOnDemandExecutionOnlyFromDiscriminatorValue;
82
+ /**
83
+ * Creates a new instance of the appropriate class based on discriminator value
84
+ * @param parseNode The parse node to use to read the discriminator value and create the object
85
+ * @returns a parameter
86
+ */
87
+ function createParameterFromDiscriminatorValue(parseNode) {
88
+ return deserializeIntoParameter;
89
+ }
90
+ exports.createParameterFromDiscriminatorValue = createParameterFromDiscriminatorValue;
91
+ /**
92
+ * Creates a new instance of the appropriate class based on discriminator value
93
+ * @param parseNode The parse node to use to read the discriminator value and create the object
94
+ * @returns a ruleBasedSubjectSet
95
+ */
96
+ function createRuleBasedSubjectSetFromDiscriminatorValue(parseNode) {
97
+ return deserializeIntoRuleBasedSubjectSet;
98
+ }
99
+ exports.createRuleBasedSubjectSetFromDiscriminatorValue = createRuleBasedSubjectSetFromDiscriminatorValue;
100
+ /**
101
+ * Creates a new instance of the appropriate class based on discriminator value
102
+ * @param parseNode The parse node to use to read the discriminator value and create the object
103
+ * @returns a runCollectionResponse
104
+ */
105
+ function createRunCollectionResponseFromDiscriminatorValue(parseNode) {
106
+ return deserializeIntoRunCollectionResponse;
107
+ }
108
+ exports.createRunCollectionResponseFromDiscriminatorValue = createRunCollectionResponseFromDiscriminatorValue;
109
+ /**
110
+ * Creates a new instance of the appropriate class based on discriminator value
111
+ * @param parseNode The parse node to use to read the discriminator value and create the object
112
+ * @returns a run
113
+ */
114
+ function createRunFromDiscriminatorValue(parseNode) {
115
+ return deserializeIntoRun;
116
+ }
117
+ exports.createRunFromDiscriminatorValue = createRunFromDiscriminatorValue;
118
+ /**
119
+ * Creates a new instance of the appropriate class based on discriminator value
120
+ * @param parseNode The parse node to use to read the discriminator value and create the object
121
+ * @returns a runSummary
122
+ */
123
+ function createRunSummaryFromDiscriminatorValue(parseNode) {
124
+ return deserializeIntoRunSummary;
125
+ }
126
+ exports.createRunSummaryFromDiscriminatorValue = createRunSummaryFromDiscriminatorValue;
127
+ /**
128
+ * Creates a new instance of the appropriate class based on discriminator value
129
+ * @param parseNode The parse node to use to read the discriminator value and create the object
130
+ * @returns a taskCollectionResponse
131
+ */
132
+ function createTaskCollectionResponseFromDiscriminatorValue(parseNode) {
133
+ return deserializeIntoTaskCollectionResponse;
134
+ }
135
+ exports.createTaskCollectionResponseFromDiscriminatorValue = createTaskCollectionResponseFromDiscriminatorValue;
136
+ /**
137
+ * Creates a new instance of the appropriate class based on discriminator value
138
+ * @param parseNode The parse node to use to read the discriminator value and create the object
139
+ * @returns a taskDefinitionCollectionResponse
140
+ */
141
+ function createTaskDefinitionCollectionResponseFromDiscriminatorValue(parseNode) {
142
+ return deserializeIntoTaskDefinitionCollectionResponse;
143
+ }
144
+ exports.createTaskDefinitionCollectionResponseFromDiscriminatorValue = createTaskDefinitionCollectionResponseFromDiscriminatorValue;
145
+ /**
146
+ * Creates a new instance of the appropriate class based on discriminator value
147
+ * @param parseNode The parse node to use to read the discriminator value and create the object
148
+ * @returns a taskDefinition
149
+ */
150
+ function createTaskDefinitionFromDiscriminatorValue(parseNode) {
151
+ return deserializeIntoTaskDefinition;
152
+ }
153
+ exports.createTaskDefinitionFromDiscriminatorValue = createTaskDefinitionFromDiscriminatorValue;
154
+ /**
155
+ * Creates a new instance of the appropriate class based on discriminator value
156
+ * @param parseNode The parse node to use to read the discriminator value and create the object
157
+ * @returns a task
158
+ */
159
+ function createTaskFromDiscriminatorValue(parseNode) {
160
+ return deserializeIntoTask;
161
+ }
162
+ exports.createTaskFromDiscriminatorValue = createTaskFromDiscriminatorValue;
163
+ /**
164
+ * Creates a new instance of the appropriate class based on discriminator value
165
+ * @param parseNode The parse node to use to read the discriminator value and create the object
166
+ * @returns a taskProcessingResultCollectionResponse
167
+ */
168
+ function createTaskProcessingResultCollectionResponseFromDiscriminatorValue(parseNode) {
169
+ return deserializeIntoTaskProcessingResultCollectionResponse;
170
+ }
171
+ exports.createTaskProcessingResultCollectionResponseFromDiscriminatorValue = createTaskProcessingResultCollectionResponseFromDiscriminatorValue;
172
+ /**
173
+ * Creates a new instance of the appropriate class based on discriminator value
174
+ * @param parseNode The parse node to use to read the discriminator value and create the object
175
+ * @returns a taskProcessingResult
176
+ */
177
+ function createTaskProcessingResultFromDiscriminatorValue(parseNode) {
178
+ return deserializeIntoTaskProcessingResult;
179
+ }
180
+ exports.createTaskProcessingResultFromDiscriminatorValue = createTaskProcessingResultFromDiscriminatorValue;
181
+ /**
182
+ * Creates a new instance of the appropriate class based on discriminator value
183
+ * @param parseNode The parse node to use to read the discriminator value and create the object
184
+ * @returns a taskReportCollectionResponse
185
+ */
186
+ function createTaskReportCollectionResponseFromDiscriminatorValue(parseNode) {
187
+ return deserializeIntoTaskReportCollectionResponse;
188
+ }
189
+ exports.createTaskReportCollectionResponseFromDiscriminatorValue = createTaskReportCollectionResponseFromDiscriminatorValue;
190
+ /**
191
+ * Creates a new instance of the appropriate class based on discriminator value
192
+ * @param parseNode The parse node to use to read the discriminator value and create the object
193
+ * @returns a taskReport
194
+ */
195
+ function createTaskReportFromDiscriminatorValue(parseNode) {
196
+ return deserializeIntoTaskReport;
197
+ }
198
+ exports.createTaskReportFromDiscriminatorValue = createTaskReportFromDiscriminatorValue;
199
+ /**
200
+ * Creates a new instance of the appropriate class based on discriminator value
201
+ * @param parseNode The parse node to use to read the discriminator value and create the object
202
+ * @returns a taskReportSummary
203
+ */
204
+ function createTaskReportSummaryFromDiscriminatorValue(parseNode) {
205
+ return deserializeIntoTaskReportSummary;
206
+ }
207
+ exports.createTaskReportSummaryFromDiscriminatorValue = createTaskReportSummaryFromDiscriminatorValue;
208
+ /**
209
+ * Creates a new instance of the appropriate class based on discriminator value
210
+ * @param parseNode The parse node to use to read the discriminator value and create the object
211
+ * @returns a timeBasedAttributeTrigger
212
+ */
213
+ function createTimeBasedAttributeTriggerFromDiscriminatorValue(parseNode) {
214
+ return deserializeIntoTimeBasedAttributeTrigger;
215
+ }
216
+ exports.createTimeBasedAttributeTriggerFromDiscriminatorValue = createTimeBasedAttributeTriggerFromDiscriminatorValue;
217
+ /**
218
+ * Creates a new instance of the appropriate class based on discriminator value
219
+ * @param parseNode The parse node to use to read the discriminator value and create the object
220
+ * @returns a triggerAndScopeBasedConditions
221
+ */
222
+ function createTriggerAndScopeBasedConditionsFromDiscriminatorValue(parseNode) {
223
+ return deserializeIntoTriggerAndScopeBasedConditions;
224
+ }
225
+ exports.createTriggerAndScopeBasedConditionsFromDiscriminatorValue = createTriggerAndScopeBasedConditionsFromDiscriminatorValue;
226
+ /**
227
+ * Creates a new instance of the appropriate class based on discriminator value
228
+ * @param parseNode The parse node to use to read the discriminator value and create the object
229
+ * @returns a userProcessingResultCollectionResponse
230
+ */
231
+ function createUserProcessingResultCollectionResponseFromDiscriminatorValue(parseNode) {
232
+ return deserializeIntoUserProcessingResultCollectionResponse;
233
+ }
234
+ exports.createUserProcessingResultCollectionResponseFromDiscriminatorValue = createUserProcessingResultCollectionResponseFromDiscriminatorValue;
235
+ /**
236
+ * Creates a new instance of the appropriate class based on discriminator value
237
+ * @param parseNode The parse node to use to read the discriminator value and create the object
238
+ * @returns a userProcessingResult
239
+ */
240
+ function createUserProcessingResultFromDiscriminatorValue(parseNode) {
241
+ return deserializeIntoUserProcessingResult;
242
+ }
243
+ exports.createUserProcessingResultFromDiscriminatorValue = createUserProcessingResultFromDiscriminatorValue;
244
+ /**
245
+ * Creates a new instance of the appropriate class based on discriminator value
246
+ * @param parseNode The parse node to use to read the discriminator value and create the object
247
+ * @returns a userSummary
248
+ */
249
+ function createUserSummaryFromDiscriminatorValue(parseNode) {
250
+ return deserializeIntoUserSummary;
251
+ }
252
+ exports.createUserSummaryFromDiscriminatorValue = createUserSummaryFromDiscriminatorValue;
253
+ /**
254
+ * Creates a new instance of the appropriate class based on discriminator value
255
+ * @param parseNode The parse node to use to read the discriminator value and create the object
256
+ * @returns a workflowBase
257
+ */
258
+ function createWorkflowBaseFromDiscriminatorValue(parseNode) {
259
+ if (!parseNode)
260
+ throw new Error("parseNode cannot be undefined");
261
+ const mappingValueNode = parseNode.getChildNode("@odata.type");
262
+ if (mappingValueNode) {
263
+ const mappingValue = mappingValueNode.getStringValue();
264
+ if (mappingValue) {
265
+ switch (mappingValue) {
266
+ case "#microsoft.graph.identityGovernance.workflow":
267
+ return deserializeIntoWorkflow;
268
+ case "#microsoft.graph.identityGovernance.workflowVersion":
269
+ return deserializeIntoWorkflowVersion;
270
+ }
271
+ }
272
+ }
273
+ return deserializeIntoWorkflowBase;
274
+ }
275
+ exports.createWorkflowBaseFromDiscriminatorValue = createWorkflowBaseFromDiscriminatorValue;
276
+ /**
277
+ * Creates a new instance of the appropriate class based on discriminator value
278
+ * @param parseNode The parse node to use to read the discriminator value and create the object
279
+ * @returns a workflowCollectionResponse
280
+ */
281
+ function createWorkflowCollectionResponseFromDiscriminatorValue(parseNode) {
282
+ return deserializeIntoWorkflowCollectionResponse;
283
+ }
284
+ exports.createWorkflowCollectionResponseFromDiscriminatorValue = createWorkflowCollectionResponseFromDiscriminatorValue;
285
+ /**
286
+ * Creates a new instance of the appropriate class based on discriminator value
287
+ * @param parseNode The parse node to use to read the discriminator value and create the object
288
+ * @returns a workflowExecutionConditions
289
+ */
290
+ function createWorkflowExecutionConditionsFromDiscriminatorValue(parseNode) {
291
+ if (!parseNode)
292
+ throw new Error("parseNode cannot be undefined");
293
+ const mappingValueNode = parseNode.getChildNode("@odata.type");
294
+ if (mappingValueNode) {
295
+ const mappingValue = mappingValueNode.getStringValue();
296
+ if (mappingValue) {
297
+ switch (mappingValue) {
298
+ case "#microsoft.graph.identityGovernance.onDemandExecutionOnly":
299
+ return deserializeIntoOnDemandExecutionOnly;
300
+ case "#microsoft.graph.identityGovernance.triggerAndScopeBasedConditions":
301
+ return deserializeIntoTriggerAndScopeBasedConditions;
302
+ }
303
+ }
304
+ }
305
+ return deserializeIntoWorkflowExecutionConditions;
306
+ }
307
+ exports.createWorkflowExecutionConditionsFromDiscriminatorValue = createWorkflowExecutionConditionsFromDiscriminatorValue;
308
+ /**
309
+ * Creates a new instance of the appropriate class based on discriminator value
310
+ * @param parseNode The parse node to use to read the discriminator value and create the object
311
+ * @returns a workflowExecutionTrigger
312
+ */
313
+ function createWorkflowExecutionTriggerFromDiscriminatorValue(parseNode) {
314
+ if (!parseNode)
315
+ throw new Error("parseNode cannot be undefined");
316
+ const mappingValueNode = parseNode.getChildNode("@odata.type");
317
+ if (mappingValueNode) {
318
+ const mappingValue = mappingValueNode.getStringValue();
319
+ if (mappingValue) {
320
+ switch (mappingValue) {
321
+ case "#microsoft.graph.identityGovernance.timeBasedAttributeTrigger":
322
+ return deserializeIntoTimeBasedAttributeTrigger;
323
+ }
324
+ }
325
+ }
326
+ return deserializeIntoWorkflowExecutionTrigger;
327
+ }
328
+ exports.createWorkflowExecutionTriggerFromDiscriminatorValue = createWorkflowExecutionTriggerFromDiscriminatorValue;
329
+ /**
330
+ * Creates a new instance of the appropriate class based on discriminator value
331
+ * @param parseNode The parse node to use to read the discriminator value and create the object
332
+ * @returns a workflow
333
+ */
334
+ function createWorkflowFromDiscriminatorValue(parseNode) {
335
+ return deserializeIntoWorkflow;
336
+ }
337
+ exports.createWorkflowFromDiscriminatorValue = createWorkflowFromDiscriminatorValue;
338
+ /**
339
+ * Creates a new instance of the appropriate class based on discriminator value
340
+ * @param parseNode The parse node to use to read the discriminator value and create the object
341
+ * @returns a workflowTemplateCollectionResponse
342
+ */
343
+ function createWorkflowTemplateCollectionResponseFromDiscriminatorValue(parseNode) {
344
+ return deserializeIntoWorkflowTemplateCollectionResponse;
345
+ }
346
+ exports.createWorkflowTemplateCollectionResponseFromDiscriminatorValue = createWorkflowTemplateCollectionResponseFromDiscriminatorValue;
347
+ /**
348
+ * Creates a new instance of the appropriate class based on discriminator value
349
+ * @param parseNode The parse node to use to read the discriminator value and create the object
350
+ * @returns a workflowTemplate
351
+ */
352
+ function createWorkflowTemplateFromDiscriminatorValue(parseNode) {
353
+ return deserializeIntoWorkflowTemplate;
354
+ }
355
+ exports.createWorkflowTemplateFromDiscriminatorValue = createWorkflowTemplateFromDiscriminatorValue;
356
+ /**
357
+ * Creates a new instance of the appropriate class based on discriminator value
358
+ * @param parseNode The parse node to use to read the discriminator value and create the object
359
+ * @returns a workflowVersionCollectionResponse
360
+ */
361
+ function createWorkflowVersionCollectionResponseFromDiscriminatorValue(parseNode) {
362
+ return deserializeIntoWorkflowVersionCollectionResponse;
363
+ }
364
+ exports.createWorkflowVersionCollectionResponseFromDiscriminatorValue = createWorkflowVersionCollectionResponseFromDiscriminatorValue;
365
+ /**
366
+ * Creates a new instance of the appropriate class based on discriminator value
367
+ * @param parseNode The parse node to use to read the discriminator value and create the object
368
+ * @returns a workflowVersion
369
+ */
370
+ function createWorkflowVersionFromDiscriminatorValue(parseNode) {
371
+ return deserializeIntoWorkflowVersion;
372
+ }
373
+ exports.createWorkflowVersionFromDiscriminatorValue = createWorkflowVersionFromDiscriminatorValue;
374
+ /**
375
+ * The deserialization information for the current model
376
+ * @returns a Record<string, (node: ParseNode) => void>
377
+ */
378
+ function deserializeIntoCustomTaskExtension(customTaskExtension = {}) {
379
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoCustomCalloutExtension)(customTaskExtension)), { "callbackConfiguration": n => { customTaskExtension.callbackConfiguration = n.getObjectValue(__1.createCustomExtensionCallbackConfigurationFromDiscriminatorValue); }, "createdBy": n => { customTaskExtension.createdBy = n.getObjectValue(__1.createUserFromDiscriminatorValue); }, "createdDateTime": n => { customTaskExtension.createdDateTime = n.getDateValue(); }, "lastModifiedBy": n => { customTaskExtension.lastModifiedBy = n.getObjectValue(__1.createUserFromDiscriminatorValue); }, "lastModifiedDateTime": n => { customTaskExtension.lastModifiedDateTime = n.getDateValue(); } });
380
+ }
381
+ exports.deserializeIntoCustomTaskExtension = deserializeIntoCustomTaskExtension;
382
+ /**
383
+ * The deserialization information for the current model
384
+ * @returns a Record<string, (node: ParseNode) => void>
385
+ */
386
+ function deserializeIntoCustomTaskExtensionCallbackConfiguration(customTaskExtensionCallbackConfiguration = {}) {
387
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoCustomExtensionCallbackConfiguration)(customTaskExtensionCallbackConfiguration)), { "authorizedApps": n => { customTaskExtensionCallbackConfiguration.authorizedApps = n.getCollectionOfObjectValues(__1.createApplicationFromDiscriminatorValue); } });
388
+ }
389
+ exports.deserializeIntoCustomTaskExtensionCallbackConfiguration = deserializeIntoCustomTaskExtensionCallbackConfiguration;
390
+ /**
391
+ * The deserialization information for the current model
392
+ * @returns a Record<string, (node: ParseNode) => void>
393
+ */
394
+ function deserializeIntoCustomTaskExtensionCallbackData(customTaskExtensionCallbackData = {}) {
395
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoCustomExtensionData)(customTaskExtensionCallbackData)), { "operationStatus": n => { customTaskExtensionCallbackData.operationStatus = n.getEnumValue(exports.CustomTaskExtensionOperationStatusObject); } });
396
+ }
397
+ exports.deserializeIntoCustomTaskExtensionCallbackData = deserializeIntoCustomTaskExtensionCallbackData;
398
+ /**
399
+ * The deserialization information for the current model
400
+ * @returns a Record<string, (node: ParseNode) => void>
401
+ */
402
+ function deserializeIntoCustomTaskExtensionCalloutData(customTaskExtensionCalloutData = {}) {
403
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoCustomExtensionData)(customTaskExtensionCalloutData)), { "subject": n => { customTaskExtensionCalloutData.subject = n.getObjectValue(__1.createUserFromDiscriminatorValue); }, "task": n => { customTaskExtensionCalloutData.task = n.getObjectValue(createTaskFromDiscriminatorValue); }, "taskProcessingresult": n => { customTaskExtensionCalloutData.taskProcessingresult = n.getObjectValue(createTaskProcessingResultFromDiscriminatorValue); }, "workflow": n => { customTaskExtensionCalloutData.workflow = n.getObjectValue(createWorkflowFromDiscriminatorValue); } });
404
+ }
405
+ exports.deserializeIntoCustomTaskExtensionCalloutData = deserializeIntoCustomTaskExtensionCalloutData;
406
+ /**
407
+ * The deserialization information for the current model
408
+ * @returns a Record<string, (node: ParseNode) => void>
409
+ */
410
+ function deserializeIntoCustomTaskExtensionCollectionResponse(customTaskExtensionCollectionResponse = {}) {
411
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(customTaskExtensionCollectionResponse)), { "value": n => { customTaskExtensionCollectionResponse.value = n.getCollectionOfObjectValues(createCustomTaskExtensionFromDiscriminatorValue); } });
412
+ }
413
+ exports.deserializeIntoCustomTaskExtensionCollectionResponse = deserializeIntoCustomTaskExtensionCollectionResponse;
414
+ /**
415
+ * The deserialization information for the current model
416
+ * @returns a Record<string, (node: ParseNode) => void>
417
+ */
418
+ function deserializeIntoLifecycleManagementSettings(lifecycleManagementSettings = {}) {
419
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(lifecycleManagementSettings)), { "emailSettings": n => { lifecycleManagementSettings.emailSettings = n.getObjectValue(__1.createEmailSettingsFromDiscriminatorValue); }, "workflowScheduleIntervalInHours": n => { lifecycleManagementSettings.workflowScheduleIntervalInHours = n.getNumberValue(); } });
420
+ }
421
+ exports.deserializeIntoLifecycleManagementSettings = deserializeIntoLifecycleManagementSettings;
422
+ /**
423
+ * The deserialization information for the current model
424
+ * @returns a Record<string, (node: ParseNode) => void>
425
+ */
426
+ function deserializeIntoLifecycleWorkflowsContainer(lifecycleWorkflowsContainer = {}) {
427
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(lifecycleWorkflowsContainer)), { "customTaskExtensions": n => { lifecycleWorkflowsContainer.customTaskExtensions = n.getCollectionOfObjectValues(createCustomTaskExtensionFromDiscriminatorValue); }, "deletedItems": n => { lifecycleWorkflowsContainer.deletedItems = n.getObjectValue(__1.createDeletedItemContainerFromDiscriminatorValue); }, "settings": n => { lifecycleWorkflowsContainer.settings = n.getObjectValue(createLifecycleManagementSettingsFromDiscriminatorValue); }, "taskDefinitions": n => { lifecycleWorkflowsContainer.taskDefinitions = n.getCollectionOfObjectValues(createTaskDefinitionFromDiscriminatorValue); }, "workflows": n => { lifecycleWorkflowsContainer.workflows = n.getCollectionOfObjectValues(createWorkflowFromDiscriminatorValue); }, "workflowTemplates": n => { lifecycleWorkflowsContainer.workflowTemplates = n.getCollectionOfObjectValues(createWorkflowTemplateFromDiscriminatorValue); } });
428
+ }
429
+ exports.deserializeIntoLifecycleWorkflowsContainer = deserializeIntoLifecycleWorkflowsContainer;
430
+ /**
431
+ * The deserialization information for the current model
432
+ * @returns a Record<string, (node: ParseNode) => void>
433
+ */
434
+ function deserializeIntoOnDemandExecutionOnly(onDemandExecutionOnly = {}) {
435
+ return Object.assign({}, deserializeIntoWorkflowExecutionConditions(onDemandExecutionOnly));
436
+ }
437
+ exports.deserializeIntoOnDemandExecutionOnly = deserializeIntoOnDemandExecutionOnly;
438
+ /**
439
+ * The deserialization information for the current model
440
+ * @returns a Record<string, (node: ParseNode) => void>
441
+ */
442
+ function deserializeIntoParameter(parameter = {}) {
443
+ return {
444
+ "backingStoreEnabled": n => { parameter.backingStoreEnabled = true; },
445
+ "name": n => { parameter.name = n.getStringValue(); },
446
+ "@odata.type": n => { parameter.odataType = n.getStringValue(); },
447
+ "values": n => { parameter.values = n.getCollectionOfPrimitiveValues(); },
448
+ "valueType": n => { parameter.valueType = n.getEnumValue(exports.ValueTypeObject); },
449
+ };
450
+ }
451
+ exports.deserializeIntoParameter = deserializeIntoParameter;
452
+ /**
453
+ * The deserialization information for the current model
454
+ * @returns a Record<string, (node: ParseNode) => void>
455
+ */
456
+ function deserializeIntoRuleBasedSubjectSet(ruleBasedSubjectSet = {}) {
457
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoSubjectSet)(ruleBasedSubjectSet)), { "rule": n => { ruleBasedSubjectSet.rule = n.getStringValue(); } });
458
+ }
459
+ exports.deserializeIntoRuleBasedSubjectSet = deserializeIntoRuleBasedSubjectSet;
460
+ /**
461
+ * The deserialization information for the current model
462
+ * @returns a Record<string, (node: ParseNode) => void>
463
+ */
464
+ function deserializeIntoRun(run = {}) {
465
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(run)), { "completedDateTime": n => { run.completedDateTime = n.getDateValue(); }, "failedTasksCount": n => { run.failedTasksCount = n.getNumberValue(); }, "failedUsersCount": n => { run.failedUsersCount = n.getNumberValue(); }, "lastUpdatedDateTime": n => { run.lastUpdatedDateTime = n.getDateValue(); }, "processingStatus": n => { run.processingStatus = n.getEnumValue(exports.LifecycleWorkflowProcessingStatusObject); }, "scheduledDateTime": n => { run.scheduledDateTime = n.getDateValue(); }, "startedDateTime": n => { run.startedDateTime = n.getDateValue(); }, "successfulUsersCount": n => { run.successfulUsersCount = n.getNumberValue(); }, "taskProcessingResults": n => { run.taskProcessingResults = n.getCollectionOfObjectValues(createTaskProcessingResultFromDiscriminatorValue); }, "totalTasksCount": n => { run.totalTasksCount = n.getNumberValue(); }, "totalUnprocessedTasksCount": n => { run.totalUnprocessedTasksCount = n.getNumberValue(); }, "totalUsersCount": n => { run.totalUsersCount = n.getNumberValue(); }, "userProcessingResults": n => { run.userProcessingResults = n.getCollectionOfObjectValues(createUserProcessingResultFromDiscriminatorValue); }, "workflowExecutionType": n => { run.workflowExecutionType = n.getEnumValue(exports.WorkflowExecutionTypeObject); } });
466
+ }
467
+ exports.deserializeIntoRun = deserializeIntoRun;
468
+ /**
469
+ * The deserialization information for the current model
470
+ * @returns a Record<string, (node: ParseNode) => void>
471
+ */
472
+ function deserializeIntoRunCollectionResponse(runCollectionResponse = {}) {
473
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(runCollectionResponse)), { "value": n => { runCollectionResponse.value = n.getCollectionOfObjectValues(createRunFromDiscriminatorValue); } });
474
+ }
475
+ exports.deserializeIntoRunCollectionResponse = deserializeIntoRunCollectionResponse;
476
+ /**
477
+ * The deserialization information for the current model
478
+ * @returns a Record<string, (node: ParseNode) => void>
479
+ */
480
+ function deserializeIntoRunSummary(runSummary = {}) {
481
+ return {
482
+ "backingStoreEnabled": n => { runSummary.backingStoreEnabled = true; },
483
+ "failedRuns": n => { runSummary.failedRuns = n.getNumberValue(); },
484
+ "failedTasks": n => { runSummary.failedTasks = n.getNumberValue(); },
485
+ "@odata.type": n => { runSummary.odataType = n.getStringValue(); },
486
+ "successfulRuns": n => { runSummary.successfulRuns = n.getNumberValue(); },
487
+ "totalRuns": n => { runSummary.totalRuns = n.getNumberValue(); },
488
+ "totalTasks": n => { runSummary.totalTasks = n.getNumberValue(); },
489
+ "totalUsers": n => { runSummary.totalUsers = n.getNumberValue(); },
490
+ };
491
+ }
492
+ exports.deserializeIntoRunSummary = deserializeIntoRunSummary;
493
+ /**
494
+ * The deserialization information for the current model
495
+ * @returns a Record<string, (node: ParseNode) => void>
496
+ */
497
+ function deserializeIntoTask(task = {}) {
498
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(task)), { "arguments": n => { task.arguments = n.getCollectionOfObjectValues(__1.createKeyValuePairFromDiscriminatorValue); }, "category": n => { task.category = n.getCollectionOfEnumValues(exports.LifecycleTaskCategoryObject); }, "continueOnError": n => { task.continueOnError = n.getBooleanValue(); }, "description": n => { task.description = n.getStringValue(); }, "displayName": n => { task.displayName = n.getStringValue(); }, "executionSequence": n => { task.executionSequence = n.getNumberValue(); }, "isEnabled": n => { task.isEnabled = n.getBooleanValue(); }, "taskDefinitionId": n => { task.taskDefinitionId = n.getStringValue(); }, "taskProcessingResults": n => { task.taskProcessingResults = n.getCollectionOfObjectValues(createTaskProcessingResultFromDiscriminatorValue); } });
499
+ }
500
+ exports.deserializeIntoTask = deserializeIntoTask;
501
+ /**
502
+ * The deserialization information for the current model
503
+ * @returns a Record<string, (node: ParseNode) => void>
504
+ */
505
+ function deserializeIntoTaskCollectionResponse(taskCollectionResponse = {}) {
506
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(taskCollectionResponse)), { "value": n => { taskCollectionResponse.value = n.getCollectionOfObjectValues(createTaskFromDiscriminatorValue); } });
507
+ }
508
+ exports.deserializeIntoTaskCollectionResponse = deserializeIntoTaskCollectionResponse;
509
+ /**
510
+ * The deserialization information for the current model
511
+ * @returns a Record<string, (node: ParseNode) => void>
512
+ */
513
+ function deserializeIntoTaskDefinition(taskDefinition = {}) {
514
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(taskDefinition)), { "category": n => { taskDefinition.category = n.getCollectionOfEnumValues(exports.LifecycleTaskCategoryObject); }, "continueOnError": n => { taskDefinition.continueOnError = n.getBooleanValue(); }, "description": n => { taskDefinition.description = n.getStringValue(); }, "displayName": n => { taskDefinition.displayName = n.getStringValue(); }, "parameters": n => { taskDefinition.parameters = n.getCollectionOfObjectValues(createParameterFromDiscriminatorValue); }, "version": n => { taskDefinition.version = n.getNumberValue(); } });
515
+ }
516
+ exports.deserializeIntoTaskDefinition = deserializeIntoTaskDefinition;
517
+ /**
518
+ * The deserialization information for the current model
519
+ * @returns a Record<string, (node: ParseNode) => void>
520
+ */
521
+ function deserializeIntoTaskDefinitionCollectionResponse(taskDefinitionCollectionResponse = {}) {
522
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(taskDefinitionCollectionResponse)), { "value": n => { taskDefinitionCollectionResponse.value = n.getCollectionOfObjectValues(createTaskDefinitionFromDiscriminatorValue); } });
523
+ }
524
+ exports.deserializeIntoTaskDefinitionCollectionResponse = deserializeIntoTaskDefinitionCollectionResponse;
525
+ /**
526
+ * The deserialization information for the current model
527
+ * @returns a Record<string, (node: ParseNode) => void>
528
+ */
529
+ function deserializeIntoTaskProcessingResult(taskProcessingResult = {}) {
530
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(taskProcessingResult)), { "completedDateTime": n => { taskProcessingResult.completedDateTime = n.getDateValue(); }, "createdDateTime": n => { taskProcessingResult.createdDateTime = n.getDateValue(); }, "failureReason": n => { taskProcessingResult.failureReason = n.getStringValue(); }, "processingStatus": n => { taskProcessingResult.processingStatus = n.getEnumValue(exports.LifecycleWorkflowProcessingStatusObject); }, "startedDateTime": n => { taskProcessingResult.startedDateTime = n.getDateValue(); }, "subject": n => { taskProcessingResult.subject = n.getObjectValue(__1.createUserFromDiscriminatorValue); }, "task": n => { taskProcessingResult.task = n.getObjectValue(createTaskFromDiscriminatorValue); } });
531
+ }
532
+ exports.deserializeIntoTaskProcessingResult = deserializeIntoTaskProcessingResult;
533
+ /**
534
+ * The deserialization information for the current model
535
+ * @returns a Record<string, (node: ParseNode) => void>
536
+ */
537
+ function deserializeIntoTaskProcessingResultCollectionResponse(taskProcessingResultCollectionResponse = {}) {
538
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(taskProcessingResultCollectionResponse)), { "value": n => { taskProcessingResultCollectionResponse.value = n.getCollectionOfObjectValues(createTaskProcessingResultFromDiscriminatorValue); } });
539
+ }
540
+ exports.deserializeIntoTaskProcessingResultCollectionResponse = deserializeIntoTaskProcessingResultCollectionResponse;
541
+ /**
542
+ * The deserialization information for the current model
543
+ * @returns a Record<string, (node: ParseNode) => void>
544
+ */
545
+ function deserializeIntoTaskReport(taskReport = {}) {
546
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(taskReport)), { "completedDateTime": n => { taskReport.completedDateTime = n.getDateValue(); }, "failedUsersCount": n => { taskReport.failedUsersCount = n.getNumberValue(); }, "lastUpdatedDateTime": n => { taskReport.lastUpdatedDateTime = n.getDateValue(); }, "processingStatus": n => { taskReport.processingStatus = n.getEnumValue(exports.LifecycleWorkflowProcessingStatusObject); }, "runId": n => { taskReport.runId = n.getStringValue(); }, "startedDateTime": n => { taskReport.startedDateTime = n.getDateValue(); }, "successfulUsersCount": n => { taskReport.successfulUsersCount = n.getNumberValue(); }, "task": n => { taskReport.task = n.getObjectValue(createTaskFromDiscriminatorValue); }, "taskDefinition": n => { taskReport.taskDefinition = n.getObjectValue(createTaskDefinitionFromDiscriminatorValue); }, "taskProcessingResults": n => { taskReport.taskProcessingResults = n.getCollectionOfObjectValues(createTaskProcessingResultFromDiscriminatorValue); }, "totalUsersCount": n => { taskReport.totalUsersCount = n.getNumberValue(); }, "unprocessedUsersCount": n => { taskReport.unprocessedUsersCount = n.getNumberValue(); } });
547
+ }
548
+ exports.deserializeIntoTaskReport = deserializeIntoTaskReport;
549
+ /**
550
+ * The deserialization information for the current model
551
+ * @returns a Record<string, (node: ParseNode) => void>
552
+ */
553
+ function deserializeIntoTaskReportCollectionResponse(taskReportCollectionResponse = {}) {
554
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(taskReportCollectionResponse)), { "value": n => { taskReportCollectionResponse.value = n.getCollectionOfObjectValues(createTaskReportFromDiscriminatorValue); } });
555
+ }
556
+ exports.deserializeIntoTaskReportCollectionResponse = deserializeIntoTaskReportCollectionResponse;
557
+ /**
558
+ * The deserialization information for the current model
559
+ * @returns a Record<string, (node: ParseNode) => void>
560
+ */
561
+ function deserializeIntoTaskReportSummary(taskReportSummary = {}) {
562
+ return {
563
+ "backingStoreEnabled": n => { taskReportSummary.backingStoreEnabled = true; },
564
+ "failedTasks": n => { taskReportSummary.failedTasks = n.getNumberValue(); },
565
+ "@odata.type": n => { taskReportSummary.odataType = n.getStringValue(); },
566
+ "successfulTasks": n => { taskReportSummary.successfulTasks = n.getNumberValue(); },
567
+ "totalTasks": n => { taskReportSummary.totalTasks = n.getNumberValue(); },
568
+ "unprocessedTasks": n => { taskReportSummary.unprocessedTasks = n.getNumberValue(); },
569
+ };
570
+ }
571
+ exports.deserializeIntoTaskReportSummary = deserializeIntoTaskReportSummary;
572
+ /**
573
+ * The deserialization information for the current model
574
+ * @returns a Record<string, (node: ParseNode) => void>
575
+ */
576
+ function deserializeIntoTimeBasedAttributeTrigger(timeBasedAttributeTrigger = {}) {
577
+ return Object.assign(Object.assign({}, deserializeIntoWorkflowExecutionTrigger(timeBasedAttributeTrigger)), { "offsetInDays": n => { timeBasedAttributeTrigger.offsetInDays = n.getNumberValue(); }, "timeBasedAttribute": n => { timeBasedAttributeTrigger.timeBasedAttribute = n.getEnumValue(exports.WorkflowTriggerTimeBasedAttributeObject); } });
578
+ }
579
+ exports.deserializeIntoTimeBasedAttributeTrigger = deserializeIntoTimeBasedAttributeTrigger;
580
+ /**
581
+ * The deserialization information for the current model
582
+ * @returns a Record<string, (node: ParseNode) => void>
583
+ */
584
+ function deserializeIntoTriggerAndScopeBasedConditions(triggerAndScopeBasedConditions = {}) {
585
+ return Object.assign(Object.assign({}, deserializeIntoWorkflowExecutionConditions(triggerAndScopeBasedConditions)), { "scope": n => { triggerAndScopeBasedConditions.scope = n.getObjectValue(__1.createSubjectSetFromDiscriminatorValue); }, "trigger": n => { triggerAndScopeBasedConditions.trigger = n.getObjectValue(createWorkflowExecutionTriggerFromDiscriminatorValue); } });
586
+ }
587
+ exports.deserializeIntoTriggerAndScopeBasedConditions = deserializeIntoTriggerAndScopeBasedConditions;
588
+ /**
589
+ * The deserialization information for the current model
590
+ * @returns a Record<string, (node: ParseNode) => void>
591
+ */
592
+ function deserializeIntoUserProcessingResult(userProcessingResult = {}) {
593
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(userProcessingResult)), { "completedDateTime": n => { userProcessingResult.completedDateTime = n.getDateValue(); }, "failedTasksCount": n => { userProcessingResult.failedTasksCount = n.getNumberValue(); }, "processingStatus": n => { userProcessingResult.processingStatus = n.getEnumValue(exports.LifecycleWorkflowProcessingStatusObject); }, "scheduledDateTime": n => { userProcessingResult.scheduledDateTime = n.getDateValue(); }, "startedDateTime": n => { userProcessingResult.startedDateTime = n.getDateValue(); }, "subject": n => { userProcessingResult.subject = n.getObjectValue(__1.createUserFromDiscriminatorValue); }, "taskProcessingResults": n => { userProcessingResult.taskProcessingResults = n.getCollectionOfObjectValues(createTaskProcessingResultFromDiscriminatorValue); }, "totalTasksCount": n => { userProcessingResult.totalTasksCount = n.getNumberValue(); }, "totalUnprocessedTasksCount": n => { userProcessingResult.totalUnprocessedTasksCount = n.getNumberValue(); }, "workflowExecutionType": n => { userProcessingResult.workflowExecutionType = n.getEnumValue(exports.WorkflowExecutionTypeObject); }, "workflowVersion": n => { userProcessingResult.workflowVersion = n.getNumberValue(); } });
594
+ }
595
+ exports.deserializeIntoUserProcessingResult = deserializeIntoUserProcessingResult;
596
+ /**
597
+ * The deserialization information for the current model
598
+ * @returns a Record<string, (node: ParseNode) => void>
599
+ */
600
+ function deserializeIntoUserProcessingResultCollectionResponse(userProcessingResultCollectionResponse = {}) {
601
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(userProcessingResultCollectionResponse)), { "value": n => { userProcessingResultCollectionResponse.value = n.getCollectionOfObjectValues(createUserProcessingResultFromDiscriminatorValue); } });
602
+ }
603
+ exports.deserializeIntoUserProcessingResultCollectionResponse = deserializeIntoUserProcessingResultCollectionResponse;
604
+ /**
605
+ * The deserialization information for the current model
606
+ * @returns a Record<string, (node: ParseNode) => void>
607
+ */
608
+ function deserializeIntoUserSummary(userSummary = {}) {
609
+ return {
610
+ "backingStoreEnabled": n => { userSummary.backingStoreEnabled = true; },
611
+ "failedTasks": n => { userSummary.failedTasks = n.getNumberValue(); },
612
+ "failedUsers": n => { userSummary.failedUsers = n.getNumberValue(); },
613
+ "@odata.type": n => { userSummary.odataType = n.getStringValue(); },
614
+ "successfulUsers": n => { userSummary.successfulUsers = n.getNumberValue(); },
615
+ "totalTasks": n => { userSummary.totalTasks = n.getNumberValue(); },
616
+ "totalUsers": n => { userSummary.totalUsers = n.getNumberValue(); },
617
+ };
618
+ }
619
+ exports.deserializeIntoUserSummary = deserializeIntoUserSummary;
620
+ /**
621
+ * The deserialization information for the current model
622
+ * @returns a Record<string, (node: ParseNode) => void>
623
+ */
624
+ function deserializeIntoWorkflow(workflow = {}) {
625
+ return Object.assign(Object.assign({}, deserializeIntoWorkflowBase(workflow)), { "deletedDateTime": n => { workflow.deletedDateTime = n.getDateValue(); }, "executionScope": n => { workflow.executionScope = n.getCollectionOfObjectValues(createUserProcessingResultFromDiscriminatorValue); }, "id": n => { workflow.id = n.getStringValue(); }, "nextScheduleRunDateTime": n => { workflow.nextScheduleRunDateTime = n.getDateValue(); }, "runs": n => { workflow.runs = n.getCollectionOfObjectValues(createRunFromDiscriminatorValue); }, "taskReports": n => { workflow.taskReports = n.getCollectionOfObjectValues(createTaskReportFromDiscriminatorValue); }, "userProcessingResults": n => { workflow.userProcessingResults = n.getCollectionOfObjectValues(createUserProcessingResultFromDiscriminatorValue); }, "version": n => { workflow.version = n.getNumberValue(); }, "versions": n => { workflow.versions = n.getCollectionOfObjectValues(createWorkflowVersionFromDiscriminatorValue); } });
626
+ }
627
+ exports.deserializeIntoWorkflow = deserializeIntoWorkflow;
628
+ /**
629
+ * The deserialization information for the current model
630
+ * @returns a Record<string, (node: ParseNode) => void>
631
+ */
632
+ function deserializeIntoWorkflowBase(workflowBase = {}) {
633
+ return {
634
+ "backingStoreEnabled": n => { workflowBase.backingStoreEnabled = true; },
635
+ "category": n => { workflowBase.category = n.getEnumValue(exports.LifecycleWorkflowCategoryObject); },
636
+ "createdBy": n => { workflowBase.createdBy = n.getObjectValue(__1.createUserFromDiscriminatorValue); },
637
+ "createdDateTime": n => { workflowBase.createdDateTime = n.getDateValue(); },
638
+ "description": n => { workflowBase.description = n.getStringValue(); },
639
+ "displayName": n => { workflowBase.displayName = n.getStringValue(); },
640
+ "executionConditions": n => { workflowBase.executionConditions = n.getObjectValue(createWorkflowExecutionConditionsFromDiscriminatorValue); },
641
+ "isEnabled": n => { workflowBase.isEnabled = n.getBooleanValue(); },
642
+ "isSchedulingEnabled": n => { workflowBase.isSchedulingEnabled = n.getBooleanValue(); },
643
+ "lastModifiedBy": n => { workflowBase.lastModifiedBy = n.getObjectValue(__1.createUserFromDiscriminatorValue); },
644
+ "lastModifiedDateTime": n => { workflowBase.lastModifiedDateTime = n.getDateValue(); },
645
+ "@odata.type": n => { workflowBase.odataType = n.getStringValue(); },
646
+ "tasks": n => { workflowBase.tasks = n.getCollectionOfObjectValues(createTaskFromDiscriminatorValue); },
647
+ };
648
+ }
649
+ exports.deserializeIntoWorkflowBase = deserializeIntoWorkflowBase;
650
+ /**
651
+ * The deserialization information for the current model
652
+ * @returns a Record<string, (node: ParseNode) => void>
653
+ */
654
+ function deserializeIntoWorkflowCollectionResponse(workflowCollectionResponse = {}) {
655
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(workflowCollectionResponse)), { "value": n => { workflowCollectionResponse.value = n.getCollectionOfObjectValues(createWorkflowFromDiscriminatorValue); } });
656
+ }
657
+ exports.deserializeIntoWorkflowCollectionResponse = deserializeIntoWorkflowCollectionResponse;
658
+ /**
659
+ * The deserialization information for the current model
660
+ * @returns a Record<string, (node: ParseNode) => void>
661
+ */
662
+ function deserializeIntoWorkflowExecutionConditions(workflowExecutionConditions = {}) {
663
+ return {
664
+ "backingStoreEnabled": n => { workflowExecutionConditions.backingStoreEnabled = true; },
665
+ "@odata.type": n => { workflowExecutionConditions.odataType = n.getStringValue(); },
666
+ };
667
+ }
668
+ exports.deserializeIntoWorkflowExecutionConditions = deserializeIntoWorkflowExecutionConditions;
669
+ /**
670
+ * The deserialization information for the current model
671
+ * @returns a Record<string, (node: ParseNode) => void>
672
+ */
673
+ function deserializeIntoWorkflowExecutionTrigger(workflowExecutionTrigger = {}) {
674
+ return {
675
+ "backingStoreEnabled": n => { workflowExecutionTrigger.backingStoreEnabled = true; },
676
+ "@odata.type": n => { workflowExecutionTrigger.odataType = n.getStringValue(); },
677
+ };
678
+ }
679
+ exports.deserializeIntoWorkflowExecutionTrigger = deserializeIntoWorkflowExecutionTrigger;
680
+ /**
681
+ * The deserialization information for the current model
682
+ * @returns a Record<string, (node: ParseNode) => void>
683
+ */
684
+ function deserializeIntoWorkflowTemplate(workflowTemplate = {}) {
685
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoEntity)(workflowTemplate)), { "category": n => { workflowTemplate.category = n.getEnumValue(exports.LifecycleWorkflowCategoryObject); }, "description": n => { workflowTemplate.description = n.getStringValue(); }, "displayName": n => { workflowTemplate.displayName = n.getStringValue(); }, "executionConditions": n => { workflowTemplate.executionConditions = n.getObjectValue(createWorkflowExecutionConditionsFromDiscriminatorValue); }, "tasks": n => { workflowTemplate.tasks = n.getCollectionOfObjectValues(createTaskFromDiscriminatorValue); } });
686
+ }
687
+ exports.deserializeIntoWorkflowTemplate = deserializeIntoWorkflowTemplate;
688
+ /**
689
+ * The deserialization information for the current model
690
+ * @returns a Record<string, (node: ParseNode) => void>
691
+ */
692
+ function deserializeIntoWorkflowTemplateCollectionResponse(workflowTemplateCollectionResponse = {}) {
693
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(workflowTemplateCollectionResponse)), { "value": n => { workflowTemplateCollectionResponse.value = n.getCollectionOfObjectValues(createWorkflowTemplateFromDiscriminatorValue); } });
694
+ }
695
+ exports.deserializeIntoWorkflowTemplateCollectionResponse = deserializeIntoWorkflowTemplateCollectionResponse;
696
+ /**
697
+ * The deserialization information for the current model
698
+ * @returns a Record<string, (node: ParseNode) => void>
699
+ */
700
+ function deserializeIntoWorkflowVersion(workflowVersion = {}) {
701
+ return Object.assign(Object.assign({}, deserializeIntoWorkflowBase(workflowVersion)), { "versionNumber": n => { workflowVersion.versionNumber = n.getNumberValue(); } });
702
+ }
703
+ exports.deserializeIntoWorkflowVersion = deserializeIntoWorkflowVersion;
704
+ /**
705
+ * The deserialization information for the current model
706
+ * @returns a Record<string, (node: ParseNode) => void>
707
+ */
708
+ function deserializeIntoWorkflowVersionCollectionResponse(workflowVersionCollectionResponse = {}) {
709
+ return Object.assign(Object.assign({}, (0, __1.deserializeIntoBaseCollectionPaginationCountResponse)(workflowVersionCollectionResponse)), { "value": n => { workflowVersionCollectionResponse.value = n.getCollectionOfObjectValues(createWorkflowVersionFromDiscriminatorValue); } });
710
+ }
711
+ exports.deserializeIntoWorkflowVersionCollectionResponse = deserializeIntoWorkflowVersionCollectionResponse;
712
+ /**
713
+ * Serializes information the current object
714
+ * @param writer Serialization writer to use to serialize this model
715
+ */
716
+ function serializeCustomTaskExtension(writer, customTaskExtension = {}) {
717
+ (0, __1.serializeCustomCalloutExtension)(writer, customTaskExtension);
718
+ writer.writeObjectValue("callbackConfiguration", customTaskExtension.callbackConfiguration, __1.serializeCustomExtensionCallbackConfiguration);
719
+ writer.writeObjectValue("createdBy", customTaskExtension.createdBy, __1.serializeUser);
720
+ writer.writeDateValue("createdDateTime", customTaskExtension.createdDateTime);
721
+ writer.writeObjectValue("lastModifiedBy", customTaskExtension.lastModifiedBy, __1.serializeUser);
722
+ writer.writeDateValue("lastModifiedDateTime", customTaskExtension.lastModifiedDateTime);
723
+ }
724
+ exports.serializeCustomTaskExtension = serializeCustomTaskExtension;
725
+ /**
726
+ * Serializes information the current object
727
+ * @param writer Serialization writer to use to serialize this model
728
+ */
729
+ function serializeCustomTaskExtensionCallbackConfiguration(writer, customTaskExtensionCallbackConfiguration = {}) {
730
+ (0, __1.serializeCustomExtensionCallbackConfiguration)(writer, customTaskExtensionCallbackConfiguration);
731
+ writer.writeCollectionOfObjectValues("authorizedApps", customTaskExtensionCallbackConfiguration.authorizedApps, __1.serializeApplication);
732
+ }
733
+ exports.serializeCustomTaskExtensionCallbackConfiguration = serializeCustomTaskExtensionCallbackConfiguration;
734
+ /**
735
+ * Serializes information the current object
736
+ * @param writer Serialization writer to use to serialize this model
737
+ */
738
+ function serializeCustomTaskExtensionCallbackData(writer, customTaskExtensionCallbackData = {}) {
739
+ (0, __1.serializeCustomExtensionData)(writer, customTaskExtensionCallbackData);
740
+ writer.writeEnumValue("operationStatus", customTaskExtensionCallbackData.operationStatus);
741
+ }
742
+ exports.serializeCustomTaskExtensionCallbackData = serializeCustomTaskExtensionCallbackData;
743
+ /**
744
+ * Serializes information the current object
745
+ * @param writer Serialization writer to use to serialize this model
746
+ */
747
+ function serializeCustomTaskExtensionCalloutData(writer, customTaskExtensionCalloutData = {}) {
748
+ (0, __1.serializeCustomExtensionData)(writer, customTaskExtensionCalloutData);
749
+ writer.writeObjectValue("subject", customTaskExtensionCalloutData.subject, __1.serializeUser);
750
+ writer.writeObjectValue("task", customTaskExtensionCalloutData.task, serializeTask);
751
+ writer.writeObjectValue("taskProcessingresult", customTaskExtensionCalloutData.taskProcessingresult, serializeTaskProcessingResult);
752
+ writer.writeObjectValue("workflow", customTaskExtensionCalloutData.workflow, serializeWorkflow);
753
+ }
754
+ exports.serializeCustomTaskExtensionCalloutData = serializeCustomTaskExtensionCalloutData;
755
+ /**
756
+ * Serializes information the current object
757
+ * @param writer Serialization writer to use to serialize this model
758
+ */
759
+ function serializeCustomTaskExtensionCollectionResponse(writer, customTaskExtensionCollectionResponse = {}) {
760
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, customTaskExtensionCollectionResponse);
761
+ writer.writeCollectionOfObjectValues("value", customTaskExtensionCollectionResponse.value, serializeCustomTaskExtension);
762
+ }
763
+ exports.serializeCustomTaskExtensionCollectionResponse = serializeCustomTaskExtensionCollectionResponse;
764
+ /**
765
+ * Serializes information the current object
766
+ * @param writer Serialization writer to use to serialize this model
767
+ */
768
+ function serializeLifecycleManagementSettings(writer, lifecycleManagementSettings = {}) {
769
+ (0, __1.serializeEntity)(writer, lifecycleManagementSettings);
770
+ writer.writeObjectValue("emailSettings", lifecycleManagementSettings.emailSettings, __1.serializeEmailSettings);
771
+ writer.writeNumberValue("workflowScheduleIntervalInHours", lifecycleManagementSettings.workflowScheduleIntervalInHours);
772
+ }
773
+ exports.serializeLifecycleManagementSettings = serializeLifecycleManagementSettings;
774
+ /**
775
+ * Serializes information the current object
776
+ * @param writer Serialization writer to use to serialize this model
777
+ */
778
+ function serializeLifecycleWorkflowsContainer(writer, lifecycleWorkflowsContainer = {}) {
779
+ (0, __1.serializeEntity)(writer, lifecycleWorkflowsContainer);
780
+ writer.writeCollectionOfObjectValues("customTaskExtensions", lifecycleWorkflowsContainer.customTaskExtensions, serializeCustomTaskExtension);
781
+ writer.writeObjectValue("deletedItems", lifecycleWorkflowsContainer.deletedItems, __1.serializeDeletedItemContainer);
782
+ writer.writeObjectValue("settings", lifecycleWorkflowsContainer.settings, serializeLifecycleManagementSettings);
783
+ writer.writeCollectionOfObjectValues("taskDefinitions", lifecycleWorkflowsContainer.taskDefinitions, serializeTaskDefinition);
784
+ writer.writeCollectionOfObjectValues("workflows", lifecycleWorkflowsContainer.workflows, serializeWorkflow);
785
+ writer.writeCollectionOfObjectValues("workflowTemplates", lifecycleWorkflowsContainer.workflowTemplates, serializeWorkflowTemplate);
786
+ }
787
+ exports.serializeLifecycleWorkflowsContainer = serializeLifecycleWorkflowsContainer;
788
+ /**
789
+ * Serializes information the current object
790
+ * @param writer Serialization writer to use to serialize this model
791
+ */
792
+ function serializeOnDemandExecutionOnly(writer, onDemandExecutionOnly = {}) {
793
+ serializeWorkflowExecutionConditions(writer, onDemandExecutionOnly);
794
+ }
795
+ exports.serializeOnDemandExecutionOnly = serializeOnDemandExecutionOnly;
796
+ /**
797
+ * Serializes information the current object
798
+ * @param writer Serialization writer to use to serialize this model
799
+ */
800
+ function serializeParameter(writer, parameter = {}) {
801
+ writer.writeStringValue("name", parameter.name);
802
+ writer.writeStringValue("@odata.type", parameter.odataType);
803
+ writer.writeCollectionOfPrimitiveValues("values", parameter.values);
804
+ writer.writeEnumValue("valueType", parameter.valueType);
805
+ writer.writeAdditionalData(parameter.additionalData);
806
+ }
807
+ exports.serializeParameter = serializeParameter;
808
+ /**
809
+ * Serializes information the current object
810
+ * @param writer Serialization writer to use to serialize this model
811
+ */
812
+ function serializeRuleBasedSubjectSet(writer, ruleBasedSubjectSet = {}) {
813
+ (0, __1.serializeSubjectSet)(writer, ruleBasedSubjectSet);
814
+ writer.writeStringValue("rule", ruleBasedSubjectSet.rule);
815
+ }
816
+ exports.serializeRuleBasedSubjectSet = serializeRuleBasedSubjectSet;
817
+ /**
818
+ * Serializes information the current object
819
+ * @param writer Serialization writer to use to serialize this model
820
+ */
821
+ function serializeRun(writer, run = {}) {
822
+ (0, __1.serializeEntity)(writer, run);
823
+ writer.writeDateValue("completedDateTime", run.completedDateTime);
824
+ writer.writeNumberValue("failedTasksCount", run.failedTasksCount);
825
+ writer.writeNumberValue("failedUsersCount", run.failedUsersCount);
826
+ writer.writeDateValue("lastUpdatedDateTime", run.lastUpdatedDateTime);
827
+ writer.writeEnumValue("processingStatus", run.processingStatus);
828
+ writer.writeDateValue("scheduledDateTime", run.scheduledDateTime);
829
+ writer.writeDateValue("startedDateTime", run.startedDateTime);
830
+ writer.writeNumberValue("successfulUsersCount", run.successfulUsersCount);
831
+ writer.writeCollectionOfObjectValues("taskProcessingResults", run.taskProcessingResults, serializeTaskProcessingResult);
832
+ writer.writeNumberValue("totalTasksCount", run.totalTasksCount);
833
+ writer.writeNumberValue("totalUnprocessedTasksCount", run.totalUnprocessedTasksCount);
834
+ writer.writeNumberValue("totalUsersCount", run.totalUsersCount);
835
+ writer.writeCollectionOfObjectValues("userProcessingResults", run.userProcessingResults, serializeUserProcessingResult);
836
+ writer.writeEnumValue("workflowExecutionType", run.workflowExecutionType);
837
+ }
838
+ exports.serializeRun = serializeRun;
839
+ /**
840
+ * Serializes information the current object
841
+ * @param writer Serialization writer to use to serialize this model
842
+ */
843
+ function serializeRunCollectionResponse(writer, runCollectionResponse = {}) {
844
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, runCollectionResponse);
845
+ writer.writeCollectionOfObjectValues("value", runCollectionResponse.value, serializeRun);
846
+ }
847
+ exports.serializeRunCollectionResponse = serializeRunCollectionResponse;
848
+ /**
849
+ * Serializes information the current object
850
+ * @param writer Serialization writer to use to serialize this model
851
+ */
852
+ function serializeRunSummary(writer, runSummary = {}) {
853
+ writer.writeNumberValue("failedRuns", runSummary.failedRuns);
854
+ writer.writeNumberValue("failedTasks", runSummary.failedTasks);
855
+ writer.writeStringValue("@odata.type", runSummary.odataType);
856
+ writer.writeNumberValue("successfulRuns", runSummary.successfulRuns);
857
+ writer.writeNumberValue("totalRuns", runSummary.totalRuns);
858
+ writer.writeNumberValue("totalTasks", runSummary.totalTasks);
859
+ writer.writeNumberValue("totalUsers", runSummary.totalUsers);
860
+ writer.writeAdditionalData(runSummary.additionalData);
861
+ }
862
+ exports.serializeRunSummary = serializeRunSummary;
863
+ /**
864
+ * Serializes information the current object
865
+ * @param writer Serialization writer to use to serialize this model
866
+ */
867
+ function serializeTask(writer, task = {}) {
868
+ (0, __1.serializeEntity)(writer, task);
869
+ writer.writeCollectionOfObjectValues("arguments", task.arguments, __1.serializeKeyValuePair);
870
+ writer.writeEnumValue("category", task.category);
871
+ writer.writeBooleanValue("continueOnError", task.continueOnError);
872
+ writer.writeStringValue("description", task.description);
873
+ writer.writeStringValue("displayName", task.displayName);
874
+ writer.writeNumberValue("executionSequence", task.executionSequence);
875
+ writer.writeBooleanValue("isEnabled", task.isEnabled);
876
+ writer.writeStringValue("taskDefinitionId", task.taskDefinitionId);
877
+ writer.writeCollectionOfObjectValues("taskProcessingResults", task.taskProcessingResults, serializeTaskProcessingResult);
878
+ }
879
+ exports.serializeTask = serializeTask;
880
+ /**
881
+ * Serializes information the current object
882
+ * @param writer Serialization writer to use to serialize this model
883
+ */
884
+ function serializeTaskCollectionResponse(writer, taskCollectionResponse = {}) {
885
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, taskCollectionResponse);
886
+ writer.writeCollectionOfObjectValues("value", taskCollectionResponse.value, serializeTask);
887
+ }
888
+ exports.serializeTaskCollectionResponse = serializeTaskCollectionResponse;
889
+ /**
890
+ * Serializes information the current object
891
+ * @param writer Serialization writer to use to serialize this model
892
+ */
893
+ function serializeTaskDefinition(writer, taskDefinition = {}) {
894
+ (0, __1.serializeEntity)(writer, taskDefinition);
895
+ writer.writeEnumValue("category", taskDefinition.category);
896
+ writer.writeBooleanValue("continueOnError", taskDefinition.continueOnError);
897
+ writer.writeStringValue("description", taskDefinition.description);
898
+ writer.writeStringValue("displayName", taskDefinition.displayName);
899
+ writer.writeCollectionOfObjectValues("parameters", taskDefinition.parameters, serializeParameter);
900
+ writer.writeNumberValue("version", taskDefinition.version);
901
+ }
902
+ exports.serializeTaskDefinition = serializeTaskDefinition;
903
+ /**
904
+ * Serializes information the current object
905
+ * @param writer Serialization writer to use to serialize this model
906
+ */
907
+ function serializeTaskDefinitionCollectionResponse(writer, taskDefinitionCollectionResponse = {}) {
908
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, taskDefinitionCollectionResponse);
909
+ writer.writeCollectionOfObjectValues("value", taskDefinitionCollectionResponse.value, serializeTaskDefinition);
910
+ }
911
+ exports.serializeTaskDefinitionCollectionResponse = serializeTaskDefinitionCollectionResponse;
912
+ /**
913
+ * Serializes information the current object
914
+ * @param writer Serialization writer to use to serialize this model
915
+ */
916
+ function serializeTaskProcessingResult(writer, taskProcessingResult = {}) {
917
+ (0, __1.serializeEntity)(writer, taskProcessingResult);
918
+ writer.writeDateValue("completedDateTime", taskProcessingResult.completedDateTime);
919
+ writer.writeDateValue("createdDateTime", taskProcessingResult.createdDateTime);
920
+ writer.writeStringValue("failureReason", taskProcessingResult.failureReason);
921
+ writer.writeEnumValue("processingStatus", taskProcessingResult.processingStatus);
922
+ writer.writeDateValue("startedDateTime", taskProcessingResult.startedDateTime);
923
+ writer.writeObjectValue("subject", taskProcessingResult.subject, __1.serializeUser);
924
+ writer.writeObjectValue("task", taskProcessingResult.task, serializeTask);
925
+ }
926
+ exports.serializeTaskProcessingResult = serializeTaskProcessingResult;
927
+ /**
928
+ * Serializes information the current object
929
+ * @param writer Serialization writer to use to serialize this model
930
+ */
931
+ function serializeTaskProcessingResultCollectionResponse(writer, taskProcessingResultCollectionResponse = {}) {
932
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, taskProcessingResultCollectionResponse);
933
+ writer.writeCollectionOfObjectValues("value", taskProcessingResultCollectionResponse.value, serializeTaskProcessingResult);
934
+ }
935
+ exports.serializeTaskProcessingResultCollectionResponse = serializeTaskProcessingResultCollectionResponse;
936
+ /**
937
+ * Serializes information the current object
938
+ * @param writer Serialization writer to use to serialize this model
939
+ */
940
+ function serializeTaskReport(writer, taskReport = {}) {
941
+ (0, __1.serializeEntity)(writer, taskReport);
942
+ writer.writeDateValue("completedDateTime", taskReport.completedDateTime);
943
+ writer.writeNumberValue("failedUsersCount", taskReport.failedUsersCount);
944
+ writer.writeDateValue("lastUpdatedDateTime", taskReport.lastUpdatedDateTime);
945
+ writer.writeEnumValue("processingStatus", taskReport.processingStatus);
946
+ writer.writeStringValue("runId", taskReport.runId);
947
+ writer.writeDateValue("startedDateTime", taskReport.startedDateTime);
948
+ writer.writeNumberValue("successfulUsersCount", taskReport.successfulUsersCount);
949
+ writer.writeObjectValue("task", taskReport.task, serializeTask);
950
+ writer.writeObjectValue("taskDefinition", taskReport.taskDefinition, serializeTaskDefinition);
951
+ writer.writeCollectionOfObjectValues("taskProcessingResults", taskReport.taskProcessingResults, serializeTaskProcessingResult);
952
+ writer.writeNumberValue("totalUsersCount", taskReport.totalUsersCount);
953
+ writer.writeNumberValue("unprocessedUsersCount", taskReport.unprocessedUsersCount);
954
+ }
955
+ exports.serializeTaskReport = serializeTaskReport;
956
+ /**
957
+ * Serializes information the current object
958
+ * @param writer Serialization writer to use to serialize this model
959
+ */
960
+ function serializeTaskReportCollectionResponse(writer, taskReportCollectionResponse = {}) {
961
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, taskReportCollectionResponse);
962
+ writer.writeCollectionOfObjectValues("value", taskReportCollectionResponse.value, serializeTaskReport);
963
+ }
964
+ exports.serializeTaskReportCollectionResponse = serializeTaskReportCollectionResponse;
965
+ /**
966
+ * Serializes information the current object
967
+ * @param writer Serialization writer to use to serialize this model
968
+ */
969
+ function serializeTaskReportSummary(writer, taskReportSummary = {}) {
970
+ writer.writeNumberValue("failedTasks", taskReportSummary.failedTasks);
971
+ writer.writeStringValue("@odata.type", taskReportSummary.odataType);
972
+ writer.writeNumberValue("successfulTasks", taskReportSummary.successfulTasks);
973
+ writer.writeNumberValue("totalTasks", taskReportSummary.totalTasks);
974
+ writer.writeNumberValue("unprocessedTasks", taskReportSummary.unprocessedTasks);
975
+ writer.writeAdditionalData(taskReportSummary.additionalData);
976
+ }
977
+ exports.serializeTaskReportSummary = serializeTaskReportSummary;
978
+ /**
979
+ * Serializes information the current object
980
+ * @param writer Serialization writer to use to serialize this model
981
+ */
982
+ function serializeTimeBasedAttributeTrigger(writer, timeBasedAttributeTrigger = {}) {
983
+ serializeWorkflowExecutionTrigger(writer, timeBasedAttributeTrigger);
984
+ writer.writeNumberValue("offsetInDays", timeBasedAttributeTrigger.offsetInDays);
985
+ writer.writeEnumValue("timeBasedAttribute", timeBasedAttributeTrigger.timeBasedAttribute);
986
+ }
987
+ exports.serializeTimeBasedAttributeTrigger = serializeTimeBasedAttributeTrigger;
988
+ /**
989
+ * Serializes information the current object
990
+ * @param writer Serialization writer to use to serialize this model
991
+ */
992
+ function serializeTriggerAndScopeBasedConditions(writer, triggerAndScopeBasedConditions = {}) {
993
+ serializeWorkflowExecutionConditions(writer, triggerAndScopeBasedConditions);
994
+ writer.writeObjectValue("scope", triggerAndScopeBasedConditions.scope, __1.serializeSubjectSet);
995
+ writer.writeObjectValue("trigger", triggerAndScopeBasedConditions.trigger, serializeWorkflowExecutionTrigger);
996
+ }
997
+ exports.serializeTriggerAndScopeBasedConditions = serializeTriggerAndScopeBasedConditions;
998
+ /**
999
+ * Serializes information the current object
1000
+ * @param writer Serialization writer to use to serialize this model
1001
+ */
1002
+ function serializeUserProcessingResult(writer, userProcessingResult = {}) {
1003
+ (0, __1.serializeEntity)(writer, userProcessingResult);
1004
+ writer.writeDateValue("completedDateTime", userProcessingResult.completedDateTime);
1005
+ writer.writeNumberValue("failedTasksCount", userProcessingResult.failedTasksCount);
1006
+ writer.writeEnumValue("processingStatus", userProcessingResult.processingStatus);
1007
+ writer.writeDateValue("scheduledDateTime", userProcessingResult.scheduledDateTime);
1008
+ writer.writeDateValue("startedDateTime", userProcessingResult.startedDateTime);
1009
+ writer.writeObjectValue("subject", userProcessingResult.subject, __1.serializeUser);
1010
+ writer.writeCollectionOfObjectValues("taskProcessingResults", userProcessingResult.taskProcessingResults, serializeTaskProcessingResult);
1011
+ writer.writeNumberValue("totalTasksCount", userProcessingResult.totalTasksCount);
1012
+ writer.writeNumberValue("totalUnprocessedTasksCount", userProcessingResult.totalUnprocessedTasksCount);
1013
+ writer.writeEnumValue("workflowExecutionType", userProcessingResult.workflowExecutionType);
1014
+ writer.writeNumberValue("workflowVersion", userProcessingResult.workflowVersion);
1015
+ }
1016
+ exports.serializeUserProcessingResult = serializeUserProcessingResult;
1017
+ /**
1018
+ * Serializes information the current object
1019
+ * @param writer Serialization writer to use to serialize this model
1020
+ */
1021
+ function serializeUserProcessingResultCollectionResponse(writer, userProcessingResultCollectionResponse = {}) {
1022
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, userProcessingResultCollectionResponse);
1023
+ writer.writeCollectionOfObjectValues("value", userProcessingResultCollectionResponse.value, serializeUserProcessingResult);
1024
+ }
1025
+ exports.serializeUserProcessingResultCollectionResponse = serializeUserProcessingResultCollectionResponse;
1026
+ /**
1027
+ * Serializes information the current object
1028
+ * @param writer Serialization writer to use to serialize this model
1029
+ */
1030
+ function serializeUserSummary(writer, userSummary = {}) {
1031
+ writer.writeNumberValue("failedTasks", userSummary.failedTasks);
1032
+ writer.writeNumberValue("failedUsers", userSummary.failedUsers);
1033
+ writer.writeStringValue("@odata.type", userSummary.odataType);
1034
+ writer.writeNumberValue("successfulUsers", userSummary.successfulUsers);
1035
+ writer.writeNumberValue("totalTasks", userSummary.totalTasks);
1036
+ writer.writeNumberValue("totalUsers", userSummary.totalUsers);
1037
+ writer.writeAdditionalData(userSummary.additionalData);
1038
+ }
1039
+ exports.serializeUserSummary = serializeUserSummary;
1040
+ /**
1041
+ * Serializes information the current object
1042
+ * @param writer Serialization writer to use to serialize this model
1043
+ */
1044
+ function serializeWorkflow(writer, workflow = {}) {
1045
+ serializeWorkflowBase(writer, workflow);
1046
+ writer.writeDateValue("deletedDateTime", workflow.deletedDateTime);
1047
+ writer.writeCollectionOfObjectValues("executionScope", workflow.executionScope, serializeUserProcessingResult);
1048
+ writer.writeStringValue("id", workflow.id);
1049
+ writer.writeDateValue("nextScheduleRunDateTime", workflow.nextScheduleRunDateTime);
1050
+ writer.writeCollectionOfObjectValues("runs", workflow.runs, serializeRun);
1051
+ writer.writeCollectionOfObjectValues("taskReports", workflow.taskReports, serializeTaskReport);
1052
+ writer.writeCollectionOfObjectValues("userProcessingResults", workflow.userProcessingResults, serializeUserProcessingResult);
1053
+ writer.writeNumberValue("version", workflow.version);
1054
+ writer.writeCollectionOfObjectValues("versions", workflow.versions, serializeWorkflowVersion);
1055
+ }
1056
+ exports.serializeWorkflow = serializeWorkflow;
1057
+ /**
1058
+ * Serializes information the current object
1059
+ * @param writer Serialization writer to use to serialize this model
1060
+ */
1061
+ function serializeWorkflowBase(writer, workflowBase = {}) {
1062
+ writer.writeEnumValue("category", workflowBase.category);
1063
+ writer.writeObjectValue("createdBy", workflowBase.createdBy, __1.serializeUser);
1064
+ writer.writeDateValue("createdDateTime", workflowBase.createdDateTime);
1065
+ writer.writeStringValue("description", workflowBase.description);
1066
+ writer.writeStringValue("displayName", workflowBase.displayName);
1067
+ writer.writeObjectValue("executionConditions", workflowBase.executionConditions, serializeWorkflowExecutionConditions);
1068
+ writer.writeBooleanValue("isEnabled", workflowBase.isEnabled);
1069
+ writer.writeBooleanValue("isSchedulingEnabled", workflowBase.isSchedulingEnabled);
1070
+ writer.writeObjectValue("lastModifiedBy", workflowBase.lastModifiedBy, __1.serializeUser);
1071
+ writer.writeDateValue("lastModifiedDateTime", workflowBase.lastModifiedDateTime);
1072
+ writer.writeStringValue("@odata.type", workflowBase.odataType);
1073
+ writer.writeCollectionOfObjectValues("tasks", workflowBase.tasks, serializeTask);
1074
+ writer.writeAdditionalData(workflowBase.additionalData);
1075
+ }
1076
+ exports.serializeWorkflowBase = serializeWorkflowBase;
1077
+ /**
1078
+ * Serializes information the current object
1079
+ * @param writer Serialization writer to use to serialize this model
1080
+ */
1081
+ function serializeWorkflowCollectionResponse(writer, workflowCollectionResponse = {}) {
1082
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, workflowCollectionResponse);
1083
+ writer.writeCollectionOfObjectValues("value", workflowCollectionResponse.value, serializeWorkflow);
1084
+ }
1085
+ exports.serializeWorkflowCollectionResponse = serializeWorkflowCollectionResponse;
1086
+ /**
1087
+ * Serializes information the current object
1088
+ * @param writer Serialization writer to use to serialize this model
1089
+ */
1090
+ function serializeWorkflowExecutionConditions(writer, workflowExecutionConditions = {}) {
1091
+ writer.writeStringValue("@odata.type", workflowExecutionConditions.odataType);
1092
+ writer.writeAdditionalData(workflowExecutionConditions.additionalData);
1093
+ }
1094
+ exports.serializeWorkflowExecutionConditions = serializeWorkflowExecutionConditions;
1095
+ /**
1096
+ * Serializes information the current object
1097
+ * @param writer Serialization writer to use to serialize this model
1098
+ */
1099
+ function serializeWorkflowExecutionTrigger(writer, workflowExecutionTrigger = {}) {
1100
+ writer.writeStringValue("@odata.type", workflowExecutionTrigger.odataType);
1101
+ writer.writeAdditionalData(workflowExecutionTrigger.additionalData);
1102
+ }
1103
+ exports.serializeWorkflowExecutionTrigger = serializeWorkflowExecutionTrigger;
1104
+ /**
1105
+ * Serializes information the current object
1106
+ * @param writer Serialization writer to use to serialize this model
1107
+ */
1108
+ function serializeWorkflowTemplate(writer, workflowTemplate = {}) {
1109
+ (0, __1.serializeEntity)(writer, workflowTemplate);
1110
+ writer.writeEnumValue("category", workflowTemplate.category);
1111
+ writer.writeStringValue("description", workflowTemplate.description);
1112
+ writer.writeStringValue("displayName", workflowTemplate.displayName);
1113
+ writer.writeObjectValue("executionConditions", workflowTemplate.executionConditions, serializeWorkflowExecutionConditions);
1114
+ writer.writeCollectionOfObjectValues("tasks", workflowTemplate.tasks, serializeTask);
1115
+ }
1116
+ exports.serializeWorkflowTemplate = serializeWorkflowTemplate;
1117
+ /**
1118
+ * Serializes information the current object
1119
+ * @param writer Serialization writer to use to serialize this model
1120
+ */
1121
+ function serializeWorkflowTemplateCollectionResponse(writer, workflowTemplateCollectionResponse = {}) {
1122
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, workflowTemplateCollectionResponse);
1123
+ writer.writeCollectionOfObjectValues("value", workflowTemplateCollectionResponse.value, serializeWorkflowTemplate);
1124
+ }
1125
+ exports.serializeWorkflowTemplateCollectionResponse = serializeWorkflowTemplateCollectionResponse;
1126
+ /**
1127
+ * Serializes information the current object
1128
+ * @param writer Serialization writer to use to serialize this model
1129
+ */
1130
+ function serializeWorkflowVersion(writer, workflowVersion = {}) {
1131
+ serializeWorkflowBase(writer, workflowVersion);
1132
+ writer.writeNumberValue("versionNumber", workflowVersion.versionNumber);
1133
+ }
1134
+ exports.serializeWorkflowVersion = serializeWorkflowVersion;
1135
+ /**
1136
+ * Serializes information the current object
1137
+ * @param writer Serialization writer to use to serialize this model
1138
+ */
1139
+ function serializeWorkflowVersionCollectionResponse(writer, workflowVersionCollectionResponse = {}) {
1140
+ (0, __1.serializeBaseCollectionPaginationCountResponse)(writer, workflowVersionCollectionResponse);
1141
+ writer.writeCollectionOfObjectValues("value", workflowVersionCollectionResponse.value, serializeWorkflowVersion);
1142
+ }
1143
+ exports.serializeWorkflowVersionCollectionResponse = serializeWorkflowVersionCollectionResponse;
1144
+ exports.CustomTaskExtensionOperationStatusObject = {
1145
+ Completed: "completed",
1146
+ Failed: "failed",
1147
+ UnknownFutureValue: "unknownFutureValue",
1148
+ };
1149
+ exports.LifecycleTaskCategoryObject = {
1150
+ Joiner: "joiner",
1151
+ Leaver: "leaver",
1152
+ UnknownFutureValue: "unknownFutureValue",
1153
+ Mover: "mover",
1154
+ };
1155
+ exports.LifecycleWorkflowCategoryObject = {
1156
+ Joiner: "joiner",
1157
+ Leaver: "leaver",
1158
+ UnknownFutureValue: "unknownFutureValue",
1159
+ Mover: "mover",
1160
+ };
1161
+ exports.LifecycleWorkflowProcessingStatusObject = {
1162
+ Queued: "queued",
1163
+ InProgress: "inProgress",
1164
+ Completed: "completed",
1165
+ CompletedWithErrors: "completedWithErrors",
1166
+ Canceled: "canceled",
1167
+ Failed: "failed",
1168
+ UnknownFutureValue: "unknownFutureValue",
1169
+ };
1170
+ exports.ValueTypeObject = {
1171
+ EnumEscaped: "enum",
1172
+ String: "string",
1173
+ Int: "int",
1174
+ Bool: "bool",
1175
+ UnknownFutureValue: "unknownFutureValue",
1176
+ };
1177
+ exports.WorkflowExecutionTypeObject = {
1178
+ Scheduled: "scheduled",
1179
+ OnDemand: "onDemand",
1180
+ UnknownFutureValue: "unknownFutureValue",
1181
+ };
1182
+ exports.WorkflowTriggerTimeBasedAttributeObject = {
1183
+ EmployeeHireDate: "employeeHireDate",
1184
+ EmployeeLeaveDateTime: "employeeLeaveDateTime",
1185
+ UnknownFutureValue: "unknownFutureValue",
1186
+ CreatedDateTime: "createdDateTime",
1187
+ };
1188
+ /* tslint:enable */
1189
+ /* eslint-enable */