@shortcut/client 2.0.0 → 2.1.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.
@@ -1,48 +1,62 @@
1
- import { AxiosInstance, AxiosRequestConfig, ResponseType, AxiosResponse } from 'axios';
1
+ import { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
2
2
 
3
+ //#region src/generated/http-client.d.ts
3
4
  type QueryParamsType = Record<string | number, any>;
4
5
  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;
6
+ /** set parameter to `true` for call `securityWorker` for this request */
7
+ secure?: boolean;
8
+ /** request path */
9
+ path: string;
10
+ /** content type of request body */
11
+ type?: ContentType;
12
+ /** query params */
13
+ query?: QueryParamsType;
14
+ /** format of response (i.e. response.json() -> format: "json") */
15
+ format?: ResponseType;
16
+ /** request body */
17
+ body?: unknown;
17
18
  }
18
19
  type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
19
20
  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;
21
+ securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
22
+ secure?: boolean;
23
+ format?: ResponseType;
23
24
  }
24
25
  declare enum ContentType {
25
- Json = "application/json",
26
- FormData = "multipart/form-data",
27
- UrlEncoded = "application/x-www-form-urlencoded",
28
- Text = "text/plain"
26
+ Json = "application/json",
27
+ FormData = "multipart/form-data",
28
+ UrlEncoded = "application/x-www-form-urlencoded",
29
+ Text = "text/plain",
29
30
  }
30
31
  /**
31
32
  * @internal
32
33
  * @private
33
34
  */
34
35
  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>>;
36
+ instance: AxiosInstance;
37
+ private securityData;
38
+ private securityWorker?;
39
+ private secure?;
40
+ private format?;
41
+ constructor({
42
+ securityWorker,
43
+ secure,
44
+ format,
45
+ ...axiosConfig
46
+ }?: ApiConfig<SecurityDataType>);
47
+ setSecurityData: (data: SecurityDataType | null) => void;
48
+ protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
49
+ protected stringifyFormItem(formItem: unknown): string;
50
+ protected createFormData(input: Record<string, unknown>): FormData;
51
+ request: <T = any, _E = any>({
52
+ secure,
53
+ path,
54
+ type,
55
+ query,
56
+ format,
57
+ body,
58
+ ...params
59
+ }: FullRequestParams) => Promise<AxiosResponse<T>>;
46
60
  }
47
-
48
- export { type ApiConfig, ContentType, type FullRequestParams, HttpClient, type QueryParamsType, type RequestParams };
61
+ //#endregion
62
+ export { ApiConfig, HttpClient, RequestParams };
@@ -1,48 +1,62 @@
1
- import { AxiosInstance, AxiosRequestConfig, ResponseType, AxiosResponse } from 'axios';
1
+ import { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
2
2
 
3
+ //#region src/generated/http-client.d.ts
3
4
  type QueryParamsType = Record<string | number, any>;
4
5
  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;
6
+ /** set parameter to `true` for call `securityWorker` for this request */
7
+ secure?: boolean;
8
+ /** request path */
9
+ path: string;
10
+ /** content type of request body */
11
+ type?: ContentType;
12
+ /** query params */
13
+ query?: QueryParamsType;
14
+ /** format of response (i.e. response.json() -> format: "json") */
15
+ format?: ResponseType;
16
+ /** request body */
17
+ body?: unknown;
17
18
  }
18
19
  type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
19
20
  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;
21
+ securityWorker?: (securityData: SecurityDataType | null) => Promise<AxiosRequestConfig | void> | AxiosRequestConfig | void;
22
+ secure?: boolean;
23
+ format?: ResponseType;
23
24
  }
24
25
  declare enum ContentType {
25
- Json = "application/json",
26
- FormData = "multipart/form-data",
27
- UrlEncoded = "application/x-www-form-urlencoded",
28
- Text = "text/plain"
26
+ Json = "application/json",
27
+ FormData = "multipart/form-data",
28
+ UrlEncoded = "application/x-www-form-urlencoded",
29
+ Text = "text/plain",
29
30
  }
30
31
  /**
31
32
  * @internal
32
33
  * @private
33
34
  */
34
35
  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>>;
36
+ instance: AxiosInstance;
37
+ private securityData;
38
+ private securityWorker?;
39
+ private secure?;
40
+ private format?;
41
+ constructor({
42
+ securityWorker,
43
+ secure,
44
+ format,
45
+ ...axiosConfig
46
+ }?: ApiConfig<SecurityDataType>);
47
+ setSecurityData: (data: SecurityDataType | null) => void;
48
+ protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
49
+ protected stringifyFormItem(formItem: unknown): string;
50
+ protected createFormData(input: Record<string, unknown>): FormData;
51
+ request: <T = any, _E = any>({
52
+ secure,
53
+ path,
54
+ type,
55
+ query,
56
+ format,
57
+ body,
58
+ ...params
59
+ }: FullRequestParams) => Promise<AxiosResponse<T>>;
46
60
  }
47
-
48
- export { type ApiConfig, ContentType, type FullRequestParams, HttpClient, type QueryParamsType, type RequestParams };
61
+ //#endregion
62
+ export { ApiConfig, HttpClient, RequestParams };
@@ -1,137 +1,84 @@
1
- "use strict";
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 });
11
- };
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;
19
- };
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);
1
+ const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
2
+ const axios = require_rolldown_runtime.__toESM(require("axios"));
29
3
 
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 || {});
4
+ //#region src/generated/http-client.ts
5
+ let ContentType = /* @__PURE__ */ function(ContentType$1) {
6
+ ContentType$1["Json"] = "application/json";
7
+ ContentType$1["FormData"] = "multipart/form-data";
8
+ ContentType$1["UrlEncoded"] = "application/x-www-form-urlencoded";
9
+ ContentType$1["Text"] = "text/plain";
10
+ return ContentType$1;
11
+ }({});
12
+ /**
13
+ * @internal
14
+ * @private
15
+ */
45
16
  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}`;
86
- }
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);
116
- }
117
- if (type === "text/plain" /* Text */ && body && body !== null && typeof body !== "string") {
118
- body = JSON.stringify(body);
119
- }
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
- };
17
+ instance;
18
+ securityData = null;
19
+ securityWorker;
20
+ secure;
21
+ format;
22
+ constructor({ securityWorker, secure, format,...axiosConfig } = {}) {
23
+ this.instance = axios.default.create({
24
+ ...axiosConfig,
25
+ baseURL: axiosConfig.baseURL || "https://api.app.shortcut.com"
26
+ });
27
+ this.secure = secure;
28
+ this.format = format;
29
+ this.securityWorker = securityWorker;
30
+ }
31
+ setSecurityData = (data) => {
32
+ this.securityData = data;
33
+ };
34
+ mergeRequestParams(params1, params2) {
35
+ const method = params1.method || params2 && params2.method;
36
+ return {
37
+ ...this.instance.defaults,
38
+ ...params1,
39
+ ...params2 || {},
40
+ headers: {
41
+ ...method && this.instance.defaults.headers[method.toLowerCase()] || {},
42
+ ...params1.headers || {},
43
+ ...params2 && params2.headers || {}
44
+ }
45
+ };
46
+ }
47
+ stringifyFormItem(formItem) {
48
+ if (typeof formItem === "object" && formItem !== null) return JSON.stringify(formItem);
49
+ else return `${formItem}`;
50
+ }
51
+ createFormData(input) {
52
+ return Object.keys(input || {}).reduce((formData, key) => {
53
+ const property = input[key];
54
+ const propertyContent = property instanceof Array ? property : [property];
55
+ for (const formItem of propertyContent) {
56
+ const isFileType = formItem instanceof Blob;
57
+ formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
58
+ }
59
+ return formData;
60
+ }, new FormData());
61
+ }
62
+ request = async ({ secure, path, type, query, format, body,...params }) => {
63
+ const secureParams = (typeof secure === "boolean" ? secure : this.secure) && this.securityWorker && await this.securityWorker(this.securityData) || {};
64
+ const requestParams = this.mergeRequestParams(params, secureParams);
65
+ const responseFormat = format || this.format || void 0;
66
+ if (type === ContentType.FormData && body && body !== null && typeof body === "object") body = this.createFormData(body);
67
+ if (type === ContentType.Text && body && body !== null && typeof body !== "string") body = JSON.stringify(body);
68
+ return this.instance.request({
69
+ ...requestParams,
70
+ headers: {
71
+ ...requestParams.headers || {},
72
+ ...type && type !== ContentType.FormData ? { "Content-Type": type } : {}
73
+ },
74
+ params: query,
75
+ responseType: responseFormat,
76
+ data: body,
77
+ url: path
78
+ });
79
+ };
132
80
  };
133
- // Annotate the CommonJS export names for ESM import in node:
134
- 0 && (module.exports = {
135
- ContentType,
136
- HttpClient
137
- });
81
+
82
+ //#endregion
83
+ exports.ContentType = ContentType;
84
+ exports.HttpClient = HttpClient;
@@ -1,101 +1,82 @@
1
- // src/generated/http-client.ts
2
1
  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 || {});
2
+
3
+ //#region src/generated/http-client.ts
4
+ let ContentType = /* @__PURE__ */ function(ContentType$1) {
5
+ ContentType$1["Json"] = "application/json";
6
+ ContentType$1["FormData"] = "multipart/form-data";
7
+ ContentType$1["UrlEncoded"] = "application/x-www-form-urlencoded";
8
+ ContentType$1["Text"] = "text/plain";
9
+ return ContentType$1;
10
+ }({});
11
+ /**
12
+ * @internal
13
+ * @private
14
+ */
10
15
  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
16
+ instance;
17
+ securityData = null;
18
+ securityWorker;
19
+ secure;
20
+ format;
21
+ constructor({ securityWorker, secure, format,...axiosConfig } = {}) {
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) return JSON.stringify(formItem);
48
+ else return `${formItem}`;
49
+ }
50
+ createFormData(input) {
51
+ return Object.keys(input || {}).reduce((formData, key) => {
52
+ const property = input[key];
53
+ const propertyContent = property instanceof Array ? property : [property];
54
+ for (const formItem of propertyContent) {
55
+ const isFileType = formItem instanceof Blob;
56
+ formData.append(key, isFileType ? formItem : this.stringifyFormItem(formItem));
57
+ }
58
+ return formData;
59
+ }, new FormData());
60
+ }
61
+ request = async ({ secure, path, type, query, format, body,...params }) => {
62
+ const secureParams = (typeof secure === "boolean" ? secure : this.secure) && this.securityWorker && await this.securityWorker(this.securityData) || {};
63
+ const requestParams = this.mergeRequestParams(params, secureParams);
64
+ const responseFormat = format || this.format || void 0;
65
+ if (type === ContentType.FormData && body && body !== null && typeof body === "object") body = this.createFormData(body);
66
+ if (type === ContentType.Text && body && body !== null && typeof body !== "string") body = JSON.stringify(body);
67
+ return this.instance.request({
68
+ ...requestParams,
69
+ headers: {
70
+ ...requestParams.headers || {},
71
+ ...type && type !== ContentType.FormData ? { "Content-Type": type } : {}
72
+ },
73
+ params: query,
74
+ responseType: responseFormat,
75
+ data: body,
76
+ url: path
77
+ });
78
+ };
101
79
  };
80
+
81
+ //#endregion
82
+ export { ContentType, HttpClient };
package/lib/index.d.mts CHANGED
@@ -1,5 +1,3 @@
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';
1
+ import { BaseTaskParams, BasicWorkspaceInfo, Branch, Category, Commit, CreateCategory, CreateCategoryParams, CreateCommentComment, CreateDoc, 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, DisabledFeatureError, DocSlim, 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, MemberInfoOrganization2, 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";
2
+ import { ShortcutClient } from "./ShortcutClient.mjs";
3
+ export { BaseTaskParams, BasicWorkspaceInfo, Branch, Category, Commit, CreateCategory, CreateCategoryParams, CreateCommentComment, CreateDoc, 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, DisabledFeatureError, DocSlim, 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, MemberInfoOrganization2, Milestone, MilestoneStats, Objective, ObjectiveSearchResult, ObjectiveSearchResults, ObjectiveStats, Profile, Project, ProjectStats, PullRequest, PullRequestLabel, RemoveCustomFieldParams, RemoveLabelParams, Repository, SearchResults, SearchStories, ShortcutClient, 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, ShortcutClient as default };