@useshortcut/client 1.0.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.
@@ -1,12 +1,18 @@
1
1
  "use strict";
2
- /* eslint-disable */
3
- /* tslint:disable */
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
- Object.defineProperty(exports, "__esModule", { value: true });
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 { AxiosInstance, AxiosRequestConfig, AxiosResponse, ResponseType } from "axios";
2
- export declare type QueryParamsType = Record<string | number, any>;
3
- export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "params" | "url" | "responseType"> {
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,22 +15,23 @@ export interface FullRequestParams extends Omit<AxiosRequestConfig, "data" | "pa
14
15
  /** request body */
15
16
  body?: unknown;
16
17
  }
17
- export declare type RequestParams = Omit<FullRequestParams, "body" | "method" | "query" | "path">;
18
- export interface ApiConfig<SecurityDataType = unknown> extends Omit<AxiosRequestConfig, "data" | "cancelToken"> {
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
- export declare enum ContentType {
24
+ declare enum ContentType {
24
25
  Json = "application/json",
25
26
  FormData = "multipart/form-data",
26
- UrlEncoded = "application/x-www-form-urlencoded"
27
+ UrlEncoded = "application/x-www-form-urlencoded",
28
+ Text = "text/plain"
27
29
  }
28
30
  /**
29
- * @internal
30
- * @private
31
- */
32
- export declare class HttpClient<SecurityDataType = unknown> {
31
+ * @internal
32
+ * @private
33
+ */
34
+ declare class HttpClient<SecurityDataType = unknown> {
33
35
  instance: AxiosInstance;
34
36
  private securityData;
35
37
  private securityWorker?;
@@ -37,7 +39,10 @@ export declare class HttpClient<SecurityDataType = unknown> {
37
39
  private format?;
38
40
  constructor({ securityWorker, secure, format, ...axiosConfig }?: ApiConfig<SecurityDataType>);
39
41
  setSecurityData: (data: SecurityDataType | null) => void;
40
- private mergeRequestParams;
41
- private createFormData;
42
+ protected mergeRequestParams(params1: AxiosRequestConfig, params2?: AxiosRequestConfig): AxiosRequestConfig;
43
+ protected stringifyFormItem(formItem: unknown): string;
44
+ protected createFormData(input: Record<string, unknown>): FormData;
42
45
  request: <T = any, _E = any>({ secure, path, type, query, format, body, ...params }: FullRequestParams) => Promise<AxiosResponse<T>>;
43
46
  }
47
+
48
+ export { type ApiConfig, ContentType, type FullRequestParams, HttpClient, type QueryParamsType, type RequestParams };
@@ -1,138 +1,137 @@
1
1
  "use strict";
2
- /* eslint-disable */
3
- /* tslint:disable */
4
- /*
5
- * ---------------------------------------------------------------
6
- * ## THIS FILE WAS GENERATED VIA SWAGGER-TYPESCRIPT-API ##
7
- * ## ##
8
- * ## AUTHOR: acacode ##
9
- * ## SOURCE: https://github.com/acacode/swagger-typescript-api ##
10
- * ---------------------------------------------------------------
11
- */
12
- var __assign = (this && this.__assign) || function () {
13
- __assign = Object.assign || function(t) {
14
- for (var s, i = 1, n = arguments.length; i < n; i++) {
15
- s = arguments[i];
16
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
17
- t[p] = s[p];
18
- }
19
- return t;
20
- };
21
- return __assign.apply(this, arguments);
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 });
22
11
  };
23
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
24
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
25
- return new (P || (P = Promise))(function (resolve, reject) {
26
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
27
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
28
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
29
- step((generator = generator.apply(thisArg, _arguments || [])).next());
30
- });
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
- var __generator = (this && this.__generator) || function (thisArg, body) {
33
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
34
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
35
- function verb(n) { return function (v) { return step([n, v]); }; }
36
- function step(op) {
37
- if (f) throw new TypeError("Generator is already executing.");
38
- while (_) try {
39
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
40
- if (y = 0, t) op = [op[0] & 2, t.value];
41
- switch (op[0]) {
42
- case 0: case 1: t = op; break;
43
- case 4: _.label++; return { value: op[1], done: false };
44
- case 5: _.label++; y = op[1]; op = [0]; continue;
45
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
46
- default:
47
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
48
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
49
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
50
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
51
- if (t[2]) _.ops.pop();
52
- _.trys.pop(); continue;
53
- }
54
- op = body.call(thisArg, _);
55
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
56
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
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}`;
57
86
  }
58
- };
59
- var __rest = (this && this.__rest) || function (s, e) {
60
- var t = {};
61
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
62
- t[p] = s[p];
63
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
64
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
65
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
66
- t[p[i]] = s[p[i]];
67
- }
68
- return t;
69
- };
70
- Object.defineProperty(exports, "__esModule", { value: true });
71
- exports.HttpClient = exports.ContentType = void 0;
72
- var axios_1 = require("axios");
73
- var FormData = require("form-data");
74
- var ContentType;
75
- (function (ContentType) {
76
- ContentType["Json"] = "application/json";
77
- ContentType["FormData"] = "multipart/form-data";
78
- ContentType["UrlEncoded"] = "application/x-www-form-urlencoded";
79
- })(ContentType = exports.ContentType || (exports.ContentType = {}));
80
- /**
81
- * @internal
82
- * @private
83
- */
84
- var HttpClient = /** @class */ (function () {
85
- function HttpClient(_a) {
86
- var _this = this;
87
- if (_a === void 0) { _a = {}; }
88
- var securityWorker = _a.securityWorker, secure = _a.secure, format = _a.format, axiosConfig = __rest(_a, ["securityWorker", "secure", "format"]);
89
- this.securityData = null;
90
- this.setSecurityData = function (data) {
91
- _this.securityData = data;
92
- };
93
- this.request = function (_a) { return __awaiter(_this, void 0, void 0, function () {
94
- var secureParams, _b, requestParams, responseFormat;
95
- var secure = _a.secure, path = _a.path, type = _a.type, query = _a.query, format = _a.format, body = _a.body, params = __rest(_a, ["secure", "path", "type", "query", "format", "body"]);
96
- return __generator(this, function (_c) {
97
- switch (_c.label) {
98
- case 0:
99
- _b = (typeof secure === "boolean" ? secure : this.secure) &&
100
- this.securityWorker;
101
- if (!_b) return [3 /*break*/, 2];
102
- return [4 /*yield*/, this.securityWorker(this.securityData)];
103
- case 1:
104
- _b = (_c.sent());
105
- _c.label = 2;
106
- case 2:
107
- secureParams = (_b) ||
108
- {};
109
- requestParams = this.mergeRequestParams(params, secureParams);
110
- responseFormat = (format && this.format) || void 0;
111
- if (type === ContentType.FormData && body && body !== null && typeof body === "object") {
112
- requestParams.headers.common = { Accept: "*/*" };
113
- requestParams.headers.post = {};
114
- requestParams.headers.put = {};
115
- body = this.createFormData(body);
116
- }
117
- return [2 /*return*/, this.instance.request(__assign(__assign({}, requestParams), { headers: __assign(__assign(__assign({}, (type && type !== ContentType.FormData ? { "Content-Type": type } : {})), (body instanceof FormData ? { "Content-Type": body.getHeaders()["content-type"] } : {})), (requestParams.headers || {})), params: query, responseType: responseFormat, data: body, url: path }))];
118
- }
119
- });
120
- }); };
121
- this.instance = axios_1.default.create(__assign(__assign({}, axiosConfig), { baseURL: axiosConfig.baseURL || "https://api.app.shortcut.com" }));
122
- this.secure = secure;
123
- this.format = format;
124
- this.securityWorker = securityWorker;
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);
125
116
  }
126
- HttpClient.prototype.mergeRequestParams = function (params1, params2) {
127
- return __assign(__assign(__assign(__assign({}, this.instance.defaults), params1), (params2 || {})), { headers: __assign(__assign(__assign({}, (this.instance.defaults.headers || {})), (params1.headers || {})), ((params2 && params2.headers) || {})) });
128
- };
129
- HttpClient.prototype.createFormData = function (input) {
130
- return Object.keys(input || {}).reduce(function (formData, key) {
131
- var property = input[key];
132
- formData.append(key, property);
133
- return formData;
134
- }, new FormData());
135
- };
136
- return HttpClient;
137
- }());
138
- exports.HttpClient = HttpClient;
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
+ };
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
+ };
@@ -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 * from './ShortcutClient';
3
- export * from './generated/data-contracts';
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';