appstore-connect-sdk 1.2.1 → 1.3.0
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/cjs/main.js +162 -0
- package/dist/cjs/main.js.map +2 -2
- package/dist/main.js +162 -0
- package/dist/main.js.map +2 -2
- package/dist/types/main.d.ts +26 -1
- package/package.json +1 -1
package/dist/types/main.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { FetchAPI,
|
|
1
|
+
import type { FetchAPI, InitOverrideFunction, HTTPMethod, HTTPHeaders } from "./openapi/runtime";
|
|
2
|
+
import { BaseAPI } from "./openapi/runtime";
|
|
2
3
|
import { Configuration } from "./openapi";
|
|
3
4
|
/**
|
|
4
5
|
* Options for configuring the AppStoreConnectAPI instance.
|
|
@@ -35,6 +36,23 @@ export interface AppStoreConnectAPIOptions {
|
|
|
35
36
|
*/
|
|
36
37
|
basePath?: string;
|
|
37
38
|
}
|
|
39
|
+
/**
|
|
40
|
+
* The request context for the API request.
|
|
41
|
+
* @param url - The URL of the API endpoint, must start with https://api.appstoreconnect.apple.com .
|
|
42
|
+
* @param path - The path of the API endpoint, if provided, the url parameter will be ignored.
|
|
43
|
+
* @param method - The HTTP method to use for the request (default GET).
|
|
44
|
+
* @param headers - The headers to use for the request.
|
|
45
|
+
*/
|
|
46
|
+
export type AppStoreConnectAPIRequest = ({
|
|
47
|
+
url: string;
|
|
48
|
+
path?: never;
|
|
49
|
+
} | {
|
|
50
|
+
url?: never;
|
|
51
|
+
path: string;
|
|
52
|
+
}) & {
|
|
53
|
+
method?: HTTPMethod;
|
|
54
|
+
headers?: HTTPHeaders;
|
|
55
|
+
};
|
|
38
56
|
/**
|
|
39
57
|
* The App Store Connect SDK for Node.js is written in TypeScript and supports all APIs
|
|
40
58
|
* based on OpenAPI Generator.
|
|
@@ -85,5 +103,12 @@ declare class AppStoreConnectAPI {
|
|
|
85
103
|
* @returns An instance of the specified API class.
|
|
86
104
|
*/
|
|
87
105
|
create<T extends BaseAPI>(apiClass: new (configuration?: Configuration) => T): Promise<T>;
|
|
106
|
+
/**
|
|
107
|
+
* Makes an API request.
|
|
108
|
+
* @param context - The request context for the API request.
|
|
109
|
+
* @param initOverrides - (Optional) The request options to use for the API request.
|
|
110
|
+
* @returns The response from the API request.
|
|
111
|
+
*/
|
|
112
|
+
request(context: AppStoreConnectAPIRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
88
113
|
}
|
|
89
114
|
export { AppStoreConnectAPI };
|