@shortcut/client 1.1.0 → 2.0.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/LICENSE +21 -0
- package/README.md +32 -39
- package/lib/ShortcutClient.d.mts +10 -0
- package/lib/ShortcutClient.d.ts +8 -3
- package/lib/ShortcutClient.js +2177 -13
- package/lib/ShortcutClient.mjs +2141 -0
- package/lib/generated/Api.d.mts +1415 -0
- package/lib/generated/Api.d.ts +511 -138
- package/lib/generated/Api.js +2163 -1030
- package/lib/generated/Api.mjs +2128 -0
- package/lib/generated/data-contracts.d.mts +5860 -0
- package/lib/generated/data-contracts.d.ts +1024 -462
- package/lib/generated/data-contracts.js +17 -11
- package/lib/generated/data-contracts.mjs +0 -0
- package/lib/generated/http-client.d.mts +48 -0
- package/lib/generated/http-client.d.ts +11 -8
- package/lib/generated/http-client.js +131 -92
- package/lib/generated/http-client.mjs +101 -0
- package/lib/index.d.mts +5 -0
- package/lib/index.d.ts +5 -3
- package/lib/index.js +2176 -18
- package/lib/index.mjs +2142 -0
- package/package.json +63 -43
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/generated/data-contracts.ts
|
|
17
|
+
var data_contracts_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(data_contracts_exports);
|
|
File without changes
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig, ResponseType, AxiosResponse } from 'axios';
|
|
2
|
+
|
|
3
|
+
type QueryParamsType = Record<string | number, any>;
|
|
4
|
+
interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
5
|
+
/** set parameter to `true` for call `securityWorker` for this request */
|
|
6
|
+
secure?: boolean;
|
|
7
|
+
/** request path */
|
|
8
|
+
path: string;
|
|
9
|
+
/** content type of request body */
|
|
10
|
+
type?: ContentType;
|
|
11
|
+
/** query params */
|
|
12
|
+
query?: QueryParamsType;
|
|
13
|
+
/** format of response (i.e. response.json() -> format: "json") */
|
|
14
|
+
format?: ResponseType;
|
|
15
|
+
/** request body */
|
|
16
|
+
body?: unknown;
|
|
17
|
+
}
|
|
18
|
+
type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
19
|
+
interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
20
|
+
securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
21
|
+
secure?: boolean;
|
|
22
|
+
format?: ResponseType;
|
|
23
|
+
}
|
|
24
|
+
declare enum ContentType {
|
|
25
|
+
Json = "application/json",
|
|
26
|
+
FormData = "multipart/form-data",
|
|
27
|
+
UrlEncoded = "application/x-www-form-urlencoded",
|
|
28
|
+
Text = "text/plain"
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* @internal
|
|
32
|
+
* @private
|
|
33
|
+
*/
|
|
34
|
+
declare class HttpClient<SecurityDataType = unknown> {
|
|
35
|
+
instance: AxiosInstance;
|
|
36
|
+
private securityData;
|
|
37
|
+
private securityWorker?;
|
|
38
|
+
private secure?;
|
|
39
|
+
private format?;
|
|
40
|
+
constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
|
|
41
|
+
setSecurityData: (data: SecurityDataType | null) => void;
|
|
42
|
+
protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
|
|
43
|
+
protected stringifyFormItem(formItem: unknown): string;
|
|
44
|
+
protected createFormData(input: Record<string, unknown>): FormData;
|
|
45
|
+
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T>>;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export { type ApiConfig, ContentType, type FullRequestParams, HttpClient, type QueryParamsType, type RequestParams };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig, ResponseType, AxiosResponse } from 'axios';
|
|
2
|
+
|
|
3
|
+
type QueryParamsType = Record<string | number, any>;
|
|
4
|
+
interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
|
|
4
5
|
/** set parameter to `true` for call `securityWorker` for this request */
|
|
5
6
|
secure?: boolean;
|
|
6
7
|
/** request path */
|
|
@@ -14,13 +15,13 @@ export interface FullRequestParams extends Omit<AxiosRequestConfig, 'data' | 'pa
|
|
|
14
15
|
/** request body */
|
|
15
16
|
body?: unknown;
|
|
16
17
|
}
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
|
|
19
|
+
interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
|
|
19
20
|
securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
|
|
20
21
|
secure?: boolean;
|
|
21
22
|
format?: ResponseType;
|
|
22
23
|
}
|
|
23
|
-
|
|
24
|
+
declare enum ContentType {
|
|
24
25
|
Json = "application/json",
|
|
25
26
|
FormData = "multipart/form-data",
|
|
26
27
|
UrlEncoded = "application/x-www-form-urlencoded",
|
|
@@ -30,7 +31,7 @@ export declare enum ContentType {
|
|
|
30
31
|
* @internal
|
|
31
32
|
* @private
|
|
32
33
|
*/
|
|
33
|
-
|
|
34
|
+
declare class HttpClient<SecurityDataType = unknown> {
|
|
34
35
|
instance: AxiosInstance;
|
|
35
36
|
private securityData;
|
|
36
37
|
private securityWorker?;
|
|
@@ -41,5 +42,7 @@ export declare class HttpClient<SecurityDataType = unknown> {
|
|
|
41
42
|
protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
|
|
42
43
|
protected stringifyFormItem(formItem: unknown): string;
|
|
43
44
|
protected createFormData(input: Record<string, unknown>): FormData;
|
|
44
|
-
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T
|
|
45
|
+
request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T>>;
|
|
45
46
|
}
|
|
47
|
+
|
|
48
|
+
export { type ApiConfig, ContentType, type FullRequestParams, HttpClient, type QueryParamsType, type RequestParams };
|
|
@@ -1,98 +1,137 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
*/
|
|
12
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
20
11
|
};
|
|
21
|
-
var
|
|
22
|
-
|
|
23
|
-
for (
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
t[p[i]] = s[p[i]];
|
|
29
|
-
}
|
|
30
|
-
return t;
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
31
19
|
};
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/generated/http-client.ts
|
|
31
|
+
var http_client_exports = {};
|
|
32
|
+
__export(http_client_exports, {
|
|
33
|
+
ContentType: () => ContentType,
|
|
34
|
+
HttpClient: () => HttpClient
|
|
35
|
+
});
|
|
36
|
+
module.exports = __toCommonJS(http_client_exports);
|
|
37
|
+
var import_axios = __toESM(require("axios"));
|
|
38
|
+
var ContentType = /* @__PURE__ */ ((ContentType2) => {
|
|
39
|
+
ContentType2["Json"] = "application/json";
|
|
40
|
+
ContentType2["FormData"] = "multipart/form-data";
|
|
41
|
+
ContentType2["UrlEncoded"] = "application/x-www-form-urlencoded";
|
|
42
|
+
ContentType2["Text"] = "text/plain";
|
|
43
|
+
return ContentType2;
|
|
44
|
+
})(ContentType || {});
|
|
45
|
+
var HttpClient = class {
|
|
46
|
+
instance;
|
|
47
|
+
securityData = null;
|
|
48
|
+
securityWorker;
|
|
49
|
+
secure;
|
|
50
|
+
format;
|
|
51
|
+
constructor({
|
|
52
|
+
securityWorker,
|
|
53
|
+
secure,
|
|
54
|
+
format,
|
|
55
|
+
...axiosConfig
|
|
56
|
+
} = {}) {
|
|
57
|
+
this.instance = import_axios.default.create({
|
|
58
|
+
...axiosConfig,
|
|
59
|
+
baseURL: axiosConfig.baseURL || "https://api.app.shortcut.com"
|
|
60
|
+
});
|
|
61
|
+
this.secure = secure;
|
|
62
|
+
this.format = format;
|
|
63
|
+
this.securityWorker = securityWorker;
|
|
64
|
+
}
|
|
65
|
+
setSecurityData = (data) => {
|
|
66
|
+
this.securityData = data;
|
|
67
|
+
};
|
|
68
|
+
mergeRequestParams(params1, params2) {
|
|
69
|
+
const method = params1.method || params2 && params2.method;
|
|
70
|
+
return {
|
|
71
|
+
...this.instance.defaults,
|
|
72
|
+
...params1,
|
|
73
|
+
...params2 || {},
|
|
74
|
+
headers: {
|
|
75
|
+
...method && this.instance.defaults.headers[method.toLowerCase()] || {},
|
|
76
|
+
...params1.headers || {},
|
|
77
|
+
...params2 && params2.headers || {}
|
|
78
|
+
}
|
|
79
|
+
};
|
|
80
|
+
}
|
|
81
|
+
stringifyFormItem(formItem) {
|
|
82
|
+
if (typeof formItem === "object" && formItem !== null) {
|
|
83
|
+
return JSON.stringify(formItem);
|
|
84
|
+
} else {
|
|
85
|
+
return `${formItem}`;
|
|
77
86
|
}
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
87
|
+
}
|
|
88
|
+
createFormData(input) {
|
|
89
|
+
return Object.keys(input || {}).reduce((formData, key) => {
|
|
90
|
+
const property = input[key];
|
|
91
|
+
const propertyContent = property instanceof Array ? property : [property];
|
|
92
|
+
for (const formItem of propertyContent) {
|
|
93
|
+
const isFileType = formItem instanceof Blob;
|
|
94
|
+
formData.append(
|
|
95
|
+
key,
|
|
96
|
+
isFileType ? formItem : this.stringifyFormItem(formItem)
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
return formData;
|
|
100
|
+
}, new FormData());
|
|
101
|
+
}
|
|
102
|
+
request = async ({
|
|
103
|
+
secure,
|
|
104
|
+
path,
|
|
105
|
+
type,
|
|
106
|
+
query,
|
|
107
|
+
format,
|
|
108
|
+
body,
|
|
109
|
+
...params
|
|
110
|
+
}) => {
|
|
111
|
+
const secureParams = (typeof secure === "boolean" ? secure : this.secure) && this.securityWorker && await this.securityWorker(this.securityData) || {};
|
|
112
|
+
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
113
|
+
const responseFormat = format || this.format || void 0;
|
|
114
|
+
if (type === "multipart/form-data" /* FormData */ && body && body !== null && typeof body === "object") {
|
|
115
|
+
body = this.createFormData(body);
|
|
85
116
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
const property = input[key];
|
|
89
|
-
const propertyContent = property instanceof Array ? property : [property];
|
|
90
|
-
for (const formItem of propertyContent) {
|
|
91
|
-
const isFileType = formItem instanceof Blob;
|
|
92
|
-
formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
|
|
93
|
-
}
|
|
94
|
-
return formData;
|
|
95
|
-
}, new FormData());
|
|
117
|
+
if (type === "text/plain" /* Text */ && body && body !== null && typeof body !== "string") {
|
|
118
|
+
body = JSON.stringify(body);
|
|
96
119
|
}
|
|
97
|
-
|
|
98
|
-
|
|
120
|
+
return this.instance.request({
|
|
121
|
+
...requestParams,
|
|
122
|
+
headers: {
|
|
123
|
+
...requestParams.headers || {},
|
|
124
|
+
...type && type !== "multipart/form-data" /* FormData */ ? { "Content-Type": type } : {}
|
|
125
|
+
},
|
|
126
|
+
params: query,
|
|
127
|
+
responseType: responseFormat,
|
|
128
|
+
data: body,
|
|
129
|
+
url: path
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
};
|
|
133
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
134
|
+
0 && (module.exports = {
|
|
135
|
+
ContentType,
|
|
136
|
+
HttpClient
|
|
137
|
+
});
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
// src/generated/http-client.ts
|
|
2
|
+
import axios from "axios";
|
|
3
|
+
var ContentType = /* @__PURE__ */ ((ContentType2) => {
|
|
4
|
+
ContentType2["Json"] = "application/json";
|
|
5
|
+
ContentType2["FormData"] = "multipart/form-data";
|
|
6
|
+
ContentType2["UrlEncoded"] = "application/x-www-form-urlencoded";
|
|
7
|
+
ContentType2["Text"] = "text/plain";
|
|
8
|
+
return ContentType2;
|
|
9
|
+
})(ContentType || {});
|
|
10
|
+
var HttpClient = class {
|
|
11
|
+
instance;
|
|
12
|
+
securityData = null;
|
|
13
|
+
securityWorker;
|
|
14
|
+
secure;
|
|
15
|
+
format;
|
|
16
|
+
constructor({
|
|
17
|
+
securityWorker,
|
|
18
|
+
secure,
|
|
19
|
+
format,
|
|
20
|
+
...axiosConfig
|
|
21
|
+
} = {}) {
|
|
22
|
+
this.instance = axios.create({
|
|
23
|
+
...axiosConfig,
|
|
24
|
+
baseURL: axiosConfig.baseURL || "https://api.app.shortcut.com"
|
|
25
|
+
});
|
|
26
|
+
this.secure = secure;
|
|
27
|
+
this.format = format;
|
|
28
|
+
this.securityWorker = securityWorker;
|
|
29
|
+
}
|
|
30
|
+
setSecurityData = (data) => {
|
|
31
|
+
this.securityData = data;
|
|
32
|
+
};
|
|
33
|
+
mergeRequestParams(params1, params2) {
|
|
34
|
+
const method = params1.method || params2 && params2.method;
|
|
35
|
+
return {
|
|
36
|
+
...this.instance.defaults,
|
|
37
|
+
...params1,
|
|
38
|
+
...params2 || {},
|
|
39
|
+
headers: {
|
|
40
|
+
...method && this.instance.defaults.headers[method.toLowerCase()] || {},
|
|
41
|
+
...params1.headers || {},
|
|
42
|
+
...params2 && params2.headers || {}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
stringifyFormItem(formItem) {
|
|
47
|
+
if (typeof formItem === "object" && formItem !== null) {
|
|
48
|
+
return JSON.stringify(formItem);
|
|
49
|
+
} else {
|
|
50
|
+
return `${formItem}`;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
createFormData(input) {
|
|
54
|
+
return Object.keys(input || {}).reduce((formData, key) => {
|
|
55
|
+
const property = input[key];
|
|
56
|
+
const propertyContent = property instanceof Array ? property : [property];
|
|
57
|
+
for (const formItem of propertyContent) {
|
|
58
|
+
const isFileType = formItem instanceof Blob;
|
|
59
|
+
formData.append(
|
|
60
|
+
key,
|
|
61
|
+
isFileType ? formItem : this.stringifyFormItem(formItem)
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
return formData;
|
|
65
|
+
}, new FormData());
|
|
66
|
+
}
|
|
67
|
+
request = async ({
|
|
68
|
+
secure,
|
|
69
|
+
path,
|
|
70
|
+
type,
|
|
71
|
+
query,
|
|
72
|
+
format,
|
|
73
|
+
body,
|
|
74
|
+
...params
|
|
75
|
+
}) => {
|
|
76
|
+
const secureParams = (typeof secure === "boolean" ? secure : this.secure) && this.securityWorker && await this.securityWorker(this.securityData) || {};
|
|
77
|
+
const requestParams = this.mergeRequestParams(params, secureParams);
|
|
78
|
+
const responseFormat = format || this.format || void 0;
|
|
79
|
+
if (type === "multipart/form-data" /* FormData */ && body && body !== null && typeof body === "object") {
|
|
80
|
+
body = this.createFormData(body);
|
|
81
|
+
}
|
|
82
|
+
if (type === "text/plain" /* Text */ && body && body !== null && typeof body !== "string") {
|
|
83
|
+
body = JSON.stringify(body);
|
|
84
|
+
}
|
|
85
|
+
return this.instance.request({
|
|
86
|
+
...requestParams,
|
|
87
|
+
headers: {
|
|
88
|
+
...requestParams.headers || {},
|
|
89
|
+
...type && type !== "multipart/form-data" /* FormData */ ? { "Content-Type": type } : {}
|
|
90
|
+
},
|
|
91
|
+
params: query,
|
|
92
|
+
responseType: responseFormat,
|
|
93
|
+
data: body,
|
|
94
|
+
url: path
|
|
95
|
+
});
|
|
96
|
+
};
|
|
97
|
+
};
|
|
98
|
+
export {
|
|
99
|
+
ContentType,
|
|
100
|
+
HttpClient
|
|
101
|
+
};
|
package/lib/index.d.mts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { ShortcutClient, ShortcutClient as default } from './ShortcutClient.mjs';
|
|
2
|
+
export { BaseTaskParams, BasicWorkspaceInfo, Branch, Category, Commit, CreateCategory, CreateCategoryParams, CreateCommentComment, CreateEntityTemplate, CreateEpic, CreateEpicComment, CreateEpicHealth, CreateGenericIntegration, CreateGroup, CreateIteration, CreateLabelParams, CreateLinkedFile, CreateMilestone, CreateObjective, CreateOrDeleteStoryReaction, CreateProject, CreateStories, CreateStoryComment, CreateStoryCommentParams, CreateStoryContents, CreateStoryFromTemplateParams, CreateStoryLink, CreateStoryLinkParams, CreateStoryParams, CreateSubTaskParams, CreateTask, CreateTaskParams, CustomField, CustomFieldEnumValue, CustomFieldValueParams, DataConflictError, DeleteStories, EntityTemplate, Epic, EpicAssociatedGroup, EpicPaginatedResults, EpicSearchResult, EpicSearchResults, EpicSlim, EpicState, EpicStats, EpicWorkflow, Group, Health, History, HistoryActionBranchCreate, HistoryActionBranchMerge, HistoryActionBranchPush, HistoryActionLabelCreate, HistoryActionLabelDelete, HistoryActionLabelUpdate, HistoryActionProjectUpdate, HistoryActionPullRequest, HistoryActionStoryCommentCreate, HistoryActionStoryCreate, HistoryActionStoryDelete, HistoryActionStoryLinkCreate, HistoryActionStoryLinkDelete, HistoryActionStoryLinkUpdate, HistoryActionStoryUpdate, HistoryActionTaskCreate, HistoryActionTaskDelete, HistoryActionTaskUpdate, HistoryActionWorkspace2BulkUpdate, HistoryChangesStory, HistoryChangesStoryLink, HistoryChangesTask, HistoryReferenceBranch, HistoryReferenceCommit, HistoryReferenceCustomFieldEnumValue, HistoryReferenceEpic, HistoryReferenceGeneral, HistoryReferenceGroup, HistoryReferenceIteration, HistoryReferenceLabel, HistoryReferenceProject, HistoryReferenceStory, HistoryReferenceStoryTask, HistoryReferenceWorkflowState, Icon, Identity, Iteration, IterationAssociatedGroup, IterationSearchResults, IterationSlim, IterationStats, KeyResult, KeyResultValue, Label, LabelSlim, LabelStats, LinkSubTaskParams, LinkedFile, MaxSearchResultsExceededError, Member, MemberInfo, Milestone, MilestoneStats, Objective, ObjectiveSearchResult, ObjectiveSearchResults, ObjectiveStats, Profile, Project, ProjectStats, PullRequest, PullRequestLabel, RemoveCustomFieldParams, RemoveLabelParams, Repository, SearchResults, SearchStories, Story, StoryComment, StoryContents, StoryContentsTask, StoryCustomField, StoryHistoryChangeAddsRemovesInt, StoryHistoryChangeAddsRemovesUuid, StoryHistoryChangeOldNewBool, StoryHistoryChangeOldNewInt, StoryHistoryChangeOldNewStr, StoryHistoryChangeOldNewUuid, StoryLink, StoryReaction, StorySearchResult, StorySearchResults, StorySlim, StoryStats, SyncedItem, Task, ThreadedComment, TypedStoryLink, UnusableEntitlementError, UpdateCategory, UpdateComment, UpdateCustomField, UpdateCustomFieldEnumValue, UpdateEntityTemplate, UpdateEpic, UpdateFile, UpdateGroup, UpdateHealth, UpdateIteration, UpdateKeyResult, UpdateLabel, UpdateLinkedFile, UpdateMilestone, UpdateObjective, UpdateProject, UpdateStories, UpdateStory, UpdateStoryComment, UpdateStoryContents, UpdateStoryLink, UpdateTask, UploadedFile, Workflow, WorkflowState } from './generated/data-contracts.mjs';
|
|
3
|
+
import './generated/Api.mjs';
|
|
4
|
+
import 'axios';
|
|
5
|
+
import './generated/http-client.mjs';
|
package/lib/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
export { ShortcutClient as default } from './ShortcutClient';
|
|
2
|
-
export
|
|
3
|
-
|
|
1
|
+
export { ShortcutClient, ShortcutClient as default } from './ShortcutClient.js';
|
|
2
|
+
export { BaseTaskParams, BasicWorkspaceInfo, Branch, Category, Commit, CreateCategory, CreateCategoryParams, CreateCommentComment, CreateEntityTemplate, CreateEpic, CreateEpicComment, CreateEpicHealth, CreateGenericIntegration, CreateGroup, CreateIteration, CreateLabelParams, CreateLinkedFile, CreateMilestone, CreateObjective, CreateOrDeleteStoryReaction, CreateProject, CreateStories, CreateStoryComment, CreateStoryCommentParams, CreateStoryContents, CreateStoryFromTemplateParams, CreateStoryLink, CreateStoryLinkParams, CreateStoryParams, CreateSubTaskParams, CreateTask, CreateTaskParams, CustomField, CustomFieldEnumValue, CustomFieldValueParams, DataConflictError, DeleteStories, EntityTemplate, Epic, EpicAssociatedGroup, EpicPaginatedResults, EpicSearchResult, EpicSearchResults, EpicSlim, EpicState, EpicStats, EpicWorkflow, Group, Health, History, HistoryActionBranchCreate, HistoryActionBranchMerge, HistoryActionBranchPush, HistoryActionLabelCreate, HistoryActionLabelDelete, HistoryActionLabelUpdate, HistoryActionProjectUpdate, HistoryActionPullRequest, HistoryActionStoryCommentCreate, HistoryActionStoryCreate, HistoryActionStoryDelete, HistoryActionStoryLinkCreate, HistoryActionStoryLinkDelete, HistoryActionStoryLinkUpdate, HistoryActionStoryUpdate, HistoryActionTaskCreate, HistoryActionTaskDelete, HistoryActionTaskUpdate, HistoryActionWorkspace2BulkUpdate, HistoryChangesStory, HistoryChangesStoryLink, HistoryChangesTask, HistoryReferenceBranch, HistoryReferenceCommit, HistoryReferenceCustomFieldEnumValue, HistoryReferenceEpic, HistoryReferenceGeneral, HistoryReferenceGroup, HistoryReferenceIteration, HistoryReferenceLabel, HistoryReferenceProject, HistoryReferenceStory, HistoryReferenceStoryTask, HistoryReferenceWorkflowState, Icon, Identity, Iteration, IterationAssociatedGroup, IterationSearchResults, IterationSlim, IterationStats, KeyResult, KeyResultValue, Label, LabelSlim, LabelStats, LinkSubTaskParams, LinkedFile, MaxSearchResultsExceededError, Member, MemberInfo, Milestone, MilestoneStats, Objective, ObjectiveSearchResult, ObjectiveSearchResults, ObjectiveStats, Profile, Project, ProjectStats, PullRequest, PullRequestLabel, RemoveCustomFieldParams, RemoveLabelParams, Repository, SearchResults, SearchStories, Story, StoryComment, StoryContents, StoryContentsTask, StoryCustomField, StoryHistoryChangeAddsRemovesInt, StoryHistoryChangeAddsRemovesUuid, StoryHistoryChangeOldNewBool, StoryHistoryChangeOldNewInt, StoryHistoryChangeOldNewStr, StoryHistoryChangeOldNewUuid, StoryLink, StoryReaction, StorySearchResult, StorySearchResults, StorySlim, StoryStats, SyncedItem, Task, ThreadedComment, TypedStoryLink, UnusableEntitlementError, UpdateCategory, UpdateComment, UpdateCustomField, UpdateCustomFieldEnumValue, UpdateEntityTemplate, UpdateEpic, UpdateFile, UpdateGroup, UpdateHealth, UpdateIteration, UpdateKeyResult, UpdateLabel, UpdateLinkedFile, UpdateMilestone, UpdateObjective, UpdateProject, UpdateStories, UpdateStory, UpdateStoryComment, UpdateStoryContents, UpdateStoryLink, UpdateTask, UploadedFile, Workflow, WorkflowState } from './generated/data-contracts.js';
|
|
3
|
+
import './generated/Api.js';
|
|
4
|
+
import 'axios';
|
|
5
|
+
import './generated/http-client.js';
|