@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,158 @@
1
+ import { type AdditionalDataHolder, type ApiError, type BackedModel, type Parsable, type ParseNode, type SerializationWriter } from '@microsoft/kiota-abstractions';
2
+ /**
3
+ * Creates a new instance of the appropriate class based on discriminator value
4
+ * @param parseNode The parse node to use to read the discriminator value and create the object
5
+ * @returns a ErrorDetails
6
+ */
7
+ export declare function createErrorDetailsFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoErrorDetails;
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 InnerError
12
+ */
13
+ export declare function createInnerErrorFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoInnerError;
14
+ /**
15
+ * Creates a new instance of the appropriate class based on discriminator value
16
+ * @param parseNode The parse node to use to read the discriminator value and create the object
17
+ * @returns a MainError
18
+ */
19
+ export declare function createMainErrorFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoMainError;
20
+ /**
21
+ * Creates a new instance of the appropriate class based on discriminator value
22
+ * @param parseNode The parse node to use to read the discriminator value and create the object
23
+ * @returns a ODataError
24
+ */
25
+ export declare function createODataErrorFromDiscriminatorValue(parseNode: ParseNode | undefined): typeof deserializeIntoODataError;
26
+ /**
27
+ * The deserialization information for the current model
28
+ * @returns a Record<string, (node: ParseNode) => void>
29
+ */
30
+ export declare function deserializeIntoErrorDetails(errorDetails?: ErrorDetails | undefined): Record<string, (node: ParseNode) => void>;
31
+ /**
32
+ * The deserialization information for the current model
33
+ * @returns a Record<string, (node: ParseNode) => void>
34
+ */
35
+ export declare function deserializeIntoInnerError(innerError?: InnerError | undefined): Record<string, (node: ParseNode) => void>;
36
+ /**
37
+ * The deserialization information for the current model
38
+ * @returns a Record<string, (node: ParseNode) => void>
39
+ */
40
+ export declare function deserializeIntoMainError(mainError?: MainError | undefined): Record<string, (node: ParseNode) => void>;
41
+ /**
42
+ * The deserialization information for the current model
43
+ * @returns a Record<string, (node: ParseNode) => void>
44
+ */
45
+ export declare function deserializeIntoODataError(oDataError?: ODataError | undefined): Record<string, (node: ParseNode) => void>;
46
+ export interface ErrorDetails extends AdditionalDataHolder, BackedModel, Parsable {
47
+ /**
48
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
49
+ */
50
+ additionalData?: Record<string, unknown>;
51
+ /**
52
+ * Stores model information.
53
+ */
54
+ backingStoreEnabled?: boolean;
55
+ /**
56
+ * The code property
57
+ */
58
+ code?: string;
59
+ /**
60
+ * The message property
61
+ */
62
+ message?: string;
63
+ /**
64
+ * The target property
65
+ */
66
+ target?: string;
67
+ }
68
+ export interface InnerError extends AdditionalDataHolder, BackedModel, Parsable {
69
+ /**
70
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
71
+ */
72
+ additionalData?: Record<string, unknown>;
73
+ /**
74
+ * Stores model information.
75
+ */
76
+ backingStoreEnabled?: boolean;
77
+ /**
78
+ * Client request Id as sent by the client application.
79
+ */
80
+ clientRequestId?: string;
81
+ /**
82
+ * Date when the error occured.
83
+ */
84
+ date?: Date;
85
+ /**
86
+ * The OdataType property
87
+ */
88
+ odataType?: string;
89
+ /**
90
+ * Request Id as tracked internally by the service
91
+ */
92
+ requestId?: string;
93
+ }
94
+ export interface MainError extends AdditionalDataHolder, BackedModel, Parsable {
95
+ /**
96
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
97
+ */
98
+ additionalData?: Record<string, unknown>;
99
+ /**
100
+ * Stores model information.
101
+ */
102
+ backingStoreEnabled?: boolean;
103
+ /**
104
+ * The code property
105
+ */
106
+ code?: string;
107
+ /**
108
+ * The details property
109
+ */
110
+ details?: ErrorDetails[];
111
+ /**
112
+ * The innerError property
113
+ */
114
+ innerError?: InnerError;
115
+ /**
116
+ * The message property
117
+ */
118
+ message?: string;
119
+ /**
120
+ * The target property
121
+ */
122
+ target?: string;
123
+ }
124
+ export interface ODataError extends AdditionalDataHolder, ApiError, BackedModel, Parsable {
125
+ /**
126
+ * Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.
127
+ */
128
+ additionalData?: Record<string, unknown>;
129
+ /**
130
+ * Stores model information.
131
+ */
132
+ backingStoreEnabled?: boolean;
133
+ /**
134
+ * The error property
135
+ */
136
+ errorEscaped?: MainError;
137
+ }
138
+ /**
139
+ * Serializes information the current object
140
+ * @param writer Serialization writer to use to serialize this model
141
+ */
142
+ export declare function serializeErrorDetails(writer: SerializationWriter, errorDetails?: ErrorDetails | undefined): void;
143
+ /**
144
+ * Serializes information the current object
145
+ * @param writer Serialization writer to use to serialize this model
146
+ */
147
+ export declare function serializeInnerError(writer: SerializationWriter, innerError?: InnerError | undefined): void;
148
+ /**
149
+ * Serializes information the current object
150
+ * @param writer Serialization writer to use to serialize this model
151
+ */
152
+ export declare function serializeMainError(writer: SerializationWriter, mainError?: MainError | undefined): void;
153
+ /**
154
+ * Serializes information the current object
155
+ * @param writer Serialization writer to use to serialize this model
156
+ */
157
+ export declare function serializeODataError(writer: SerializationWriter, oDataError?: ODataError | undefined): void;
158
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,oBAAoB,EAAE,KAAK,QAAQ,EAAE,KAAK,WAAW,EAAqB,KAAK,QAAQ,EAAE,KAAK,SAAS,EAAE,KAAK,mBAAmB,EAAE,MAAM,+BAA+B,CAAC;AAEvL;;;;GAIG;AACH,wBAAgB,wCAAwC,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,sCAExF;AACD;;;;GAIG;AACH,wBAAgB,sCAAsC,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,oCAEtF;AACD;;;;GAIG;AACH,wBAAgB,qCAAqC,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,mCAErF;AACD;;;;GAIG;AACH,wBAAgB,sCAAsC,CAAC,SAAS,EAAE,SAAS,GAAG,SAAS,oCAEtF;AACD;;;GAGG;AACH,wBAAgB,2BAA2B,CAAC,YAAY,GAAE,YAAY,GAAG,SAA8B,GAAI,MA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@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.serializeODataError = exports.serializeMainError = exports.serializeInnerError = exports.serializeErrorDetails = exports.deserializeIntoODataError = exports.deserializeIntoMainError = exports.deserializeIntoInnerError = exports.deserializeIntoErrorDetails = exports.createODataErrorFromDiscriminatorValue = exports.createMainErrorFromDiscriminatorValue = exports.createInnerErrorFromDiscriminatorValue = exports.createErrorDetailsFromDiscriminatorValue = void 0;
4
+ /**
5
+ * Creates a new instance of the appropriate class based on discriminator value
6
+ * @param parseNode The parse node to use to read the discriminator value and create the object
7
+ * @returns a ErrorDetails
8
+ */
9
+ function createErrorDetailsFromDiscriminatorValue(parseNode) {
10
+ return deserializeIntoErrorDetails;
11
+ }
12
+ exports.createErrorDetailsFromDiscriminatorValue = createErrorDetailsFromDiscriminatorValue;
13
+ /**
14
+ * Creates a new instance of the appropriate class based on discriminator value
15
+ * @param parseNode The parse node to use to read the discriminator value and create the object
16
+ * @returns a InnerError
17
+ */
18
+ function createInnerErrorFromDiscriminatorValue(parseNode) {
19
+ return deserializeIntoInnerError;
20
+ }
21
+ exports.createInnerErrorFromDiscriminatorValue = createInnerErrorFromDiscriminatorValue;
22
+ /**
23
+ * Creates a new instance of the appropriate class based on discriminator value
24
+ * @param parseNode The parse node to use to read the discriminator value and create the object
25
+ * @returns a MainError
26
+ */
27
+ function createMainErrorFromDiscriminatorValue(parseNode) {
28
+ return deserializeIntoMainError;
29
+ }
30
+ exports.createMainErrorFromDiscriminatorValue = createMainErrorFromDiscriminatorValue;
31
+ /**
32
+ * Creates a new instance of the appropriate class based on discriminator value
33
+ * @param parseNode The parse node to use to read the discriminator value and create the object
34
+ * @returns a ODataError
35
+ */
36
+ function createODataErrorFromDiscriminatorValue(parseNode) {
37
+ return deserializeIntoODataError;
38
+ }
39
+ exports.createODataErrorFromDiscriminatorValue = createODataErrorFromDiscriminatorValue;
40
+ /**
41
+ * The deserialization information for the current model
42
+ * @returns a Record<string, (node: ParseNode) => void>
43
+ */
44
+ function deserializeIntoErrorDetails(errorDetails = {}) {
45
+ return {
46
+ "backingStoreEnabled": n => { errorDetails.backingStoreEnabled = true; },
47
+ "code": n => { errorDetails.code = n.getStringValue(); },
48
+ "message": n => { errorDetails.message = n.getStringValue(); },
49
+ "target": n => { errorDetails.target = n.getStringValue(); },
50
+ };
51
+ }
52
+ exports.deserializeIntoErrorDetails = deserializeIntoErrorDetails;
53
+ /**
54
+ * The deserialization information for the current model
55
+ * @returns a Record<string, (node: ParseNode) => void>
56
+ */
57
+ function deserializeIntoInnerError(innerError = {}) {
58
+ return {
59
+ "backingStoreEnabled": n => { innerError.backingStoreEnabled = true; },
60
+ "client-request-id": n => { innerError.clientRequestId = n.getStringValue(); },
61
+ "date": n => { innerError.date = n.getDateValue(); },
62
+ "@odata.type": n => { innerError.odataType = n.getStringValue(); },
63
+ "request-id": n => { innerError.requestId = n.getStringValue(); },
64
+ };
65
+ }
66
+ exports.deserializeIntoInnerError = deserializeIntoInnerError;
67
+ /**
68
+ * The deserialization information for the current model
69
+ * @returns a Record<string, (node: ParseNode) => void>
70
+ */
71
+ function deserializeIntoMainError(mainError = {}) {
72
+ return {
73
+ "backingStoreEnabled": n => { mainError.backingStoreEnabled = true; },
74
+ "code": n => { mainError.code = n.getStringValue(); },
75
+ "details": n => { mainError.details = n.getCollectionOfObjectValues(createErrorDetailsFromDiscriminatorValue); },
76
+ "innerError": n => { mainError.innerError = n.getObjectValue(createInnerErrorFromDiscriminatorValue); },
77
+ "message": n => { mainError.message = n.getStringValue(); },
78
+ "target": n => { mainError.target = n.getStringValue(); },
79
+ };
80
+ }
81
+ exports.deserializeIntoMainError = deserializeIntoMainError;
82
+ /**
83
+ * The deserialization information for the current model
84
+ * @returns a Record<string, (node: ParseNode) => void>
85
+ */
86
+ function deserializeIntoODataError(oDataError = {}) {
87
+ return {
88
+ "backingStoreEnabled": n => { oDataError.backingStoreEnabled = true; },
89
+ "error": n => { var _a, _b; oDataError.errorEscaped = n.getObjectValue(createMainErrorFromDiscriminatorValue); oDataError.message = (_b = (_a = oDataError.errorEscaped) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : ""; },
90
+ };
91
+ }
92
+ exports.deserializeIntoODataError = deserializeIntoODataError;
93
+ /**
94
+ * Serializes information the current object
95
+ * @param writer Serialization writer to use to serialize this model
96
+ */
97
+ function serializeErrorDetails(writer, errorDetails = {}) {
98
+ writer.writeStringValue("code", errorDetails.code);
99
+ writer.writeStringValue("message", errorDetails.message);
100
+ writer.writeStringValue("target", errorDetails.target);
101
+ writer.writeAdditionalData(errorDetails.additionalData);
102
+ }
103
+ exports.serializeErrorDetails = serializeErrorDetails;
104
+ /**
105
+ * Serializes information the current object
106
+ * @param writer Serialization writer to use to serialize this model
107
+ */
108
+ function serializeInnerError(writer, innerError = {}) {
109
+ writer.writeStringValue("client-request-id", innerError.clientRequestId);
110
+ writer.writeDateValue("date", innerError.date);
111
+ writer.writeStringValue("@odata.type", innerError.odataType);
112
+ writer.writeStringValue("request-id", innerError.requestId);
113
+ writer.writeAdditionalData(innerError.additionalData);
114
+ }
115
+ exports.serializeInnerError = serializeInnerError;
116
+ /**
117
+ * Serializes information the current object
118
+ * @param writer Serialization writer to use to serialize this model
119
+ */
120
+ function serializeMainError(writer, mainError = {}) {
121
+ writer.writeStringValue("code", mainError.code);
122
+ writer.writeCollectionOfObjectValues("details", mainError.details, serializeErrorDetails);
123
+ writer.writeObjectValue("innerError", mainError.innerError, serializeInnerError);
124
+ writer.writeStringValue("message", mainError.message);
125
+ writer.writeStringValue("target", mainError.target);
126
+ writer.writeAdditionalData(mainError.additionalData);
127
+ }
128
+ exports.serializeMainError = serializeMainError;
129
+ /**
130
+ * Serializes information the current object
131
+ * @param writer Serialization writer to use to serialize this model
132
+ */
133
+ function serializeODataError(writer, oDataError = {}) {
134
+ writer.writeObjectValue("error", oDataError.errorEscaped, serializeMainError);
135
+ writer.writeAdditionalData(oDataError.additionalData);
136
+ }
137
+ exports.serializeODataError = serializeODataError;
138
+ /* tslint:enable */
139
+ /* eslint-enable */