@microsoft/teams.graph 0.2.12 → 0.2.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +15 -15
- package/dist/index.js +2 -2
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -813822,17 +813822,17 @@ type Simplify<T> = {
|
|
|
813822
813822
|
[KeyType in keyof T]: T[KeyType];
|
|
813823
813823
|
} & {};
|
|
813824
813824
|
type UnionToIntersection<U> = (U extends any ? (k: U) => void : never) extends (k: infer I) => void ? I : never;
|
|
813825
|
-
type ExtractParameters<T> =
|
|
813826
|
-
[K in keyof T[
|
|
813827
|
-
}[keyof T[
|
|
813828
|
-
type ExtractRequestBody<T> =
|
|
813825
|
+
type ExtractParameters<T> = 'parameters' extends keyof T ? UnionToIntersection<{
|
|
813826
|
+
[K in keyof T['parameters']]-?: T['parameters'][K];
|
|
813827
|
+
}[keyof T['parameters']]> : {};
|
|
813828
|
+
type ExtractRequestBody<T> = 'requestBody' extends keyof T ? 'content' extends keyof T['requestBody'] ? 'application/json' extends keyof T['requestBody']['content'] ? T['requestBody']['content']['application/json'] : {
|
|
813829
813829
|
data: {
|
|
813830
|
-
[K in keyof T[
|
|
813831
|
-
}[keyof T[
|
|
813832
|
-
} :
|
|
813830
|
+
[K in keyof T['requestBody']['content']]: T['requestBody']['content'][K];
|
|
813831
|
+
}[keyof T['requestBody']['content']];
|
|
813832
|
+
} : 'application/json' extends keyof T['requestBody'] ? T['requestBody']['application/json'] : {
|
|
813833
813833
|
data: {
|
|
813834
|
-
[K in keyof T[
|
|
813835
|
-
}[keyof T[
|
|
813834
|
+
[K in keyof T['requestBody']]: T['requestBody'][K];
|
|
813835
|
+
}[keyof T['requestBody']];
|
|
813836
813836
|
} : {};
|
|
813837
813837
|
type Operation<Url extends keyof paths, Method extends keyof paths[Url]> = {
|
|
813838
813838
|
url: Url;
|
|
@@ -813841,10 +813841,10 @@ type Operation<Url extends keyof paths, Method extends keyof paths[Url]> = {
|
|
|
813841
813841
|
body: ExtractRequestBody<Required<paths[Url][Method]>>;
|
|
813842
813842
|
response: ExtractResponse<paths[Url][Method]>;
|
|
813843
813843
|
};
|
|
813844
|
-
type SuccessStatuses =
|
|
813845
|
-
type RedirectStatuses =
|
|
813846
|
-
type EmptyResponseStatuses =
|
|
813847
|
-
type KnownJsonResponseTypes =
|
|
813844
|
+
type SuccessStatuses = '2XX' | '200' | '201' | '202' | '204' | '205';
|
|
813845
|
+
type RedirectStatuses = '3XX' | '301' | '302';
|
|
813846
|
+
type EmptyResponseStatuses = '201' | '204' | '205';
|
|
813847
|
+
type KnownJsonResponseTypes = 'application/json' | 'application/octocat-stream' | 'application/scim+json' | 'text/html' | 'text/plain';
|
|
813848
813848
|
type SuccessResponseDataType<Responses> = {
|
|
813849
813849
|
[K in SuccessStatuses & keyof Responses]: GetContentKeyIfPresent<Responses[K]> extends never ? never : GetContentKeyIfPresent<Responses[K]>;
|
|
813850
813850
|
}[SuccessStatuses & keyof Responses];
|
|
@@ -813854,11 +813854,11 @@ type RedirectResponseDataType<Responses> = {
|
|
|
813854
813854
|
type EmptyResponseDataType<Responses> = {
|
|
813855
813855
|
[K in EmptyResponseStatuses & keyof Responses]: never;
|
|
813856
813856
|
}[EmptyResponseStatuses & keyof Responses];
|
|
813857
|
-
type GetContentKeyIfPresent<T> =
|
|
813857
|
+
type GetContentKeyIfPresent<T> = 'content' extends keyof T ? DataType<T['content']> : DataType<T>;
|
|
813858
813858
|
type DataType<T> = {
|
|
813859
813859
|
[K in KnownJsonResponseTypes & keyof T]: T[K];
|
|
813860
813860
|
}[KnownJsonResponseTypes & keyof T];
|
|
813861
|
-
type ExtractResponse<R> =
|
|
813861
|
+
type ExtractResponse<R> = 'responses' extends keyof R ? SuccessResponseDataType<R['responses']> extends never ? RedirectResponseDataType<R['responses']> extends never ? EmptyResponseDataType<R['responses']> : RedirectResponseDataType<R['responses']> : SuccessResponseDataType<R['responses']> : unknown;
|
|
813862
813862
|
|
|
813863
813863
|
interface Endpoints$9H {
|
|
813864
813864
|
/**
|