@makeplane/plane-node-sdk 0.1.2 → 0.1.4
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/.github/workflows/publish-node-sdk.yml +22 -3
- package/.openapi-generator/FILES +2 -1
- package/README.md +2 -2
- package/dist/apis/WorkItemPropertiesApi.d.ts +7 -7
- package/dist/apis/WorkItemPropertiesApi.js +3 -3
- package/dist/apis/WorkItemsApi.d.ts +3 -3
- package/dist/apis/WorkItemsApi.js +1 -1
- package/dist/models/IssueDetail.d.ts +211 -0
- package/dist/models/IssueDetail.js +108 -0
- package/dist/models/IssueExpand.d.ts +4 -6
- package/dist/models/IssueExpand.js +2 -4
- package/dist/models/IssuePropertyValueAPIDetail.d.ts +39 -0
- package/dist/models/IssuePropertyValueAPIDetail.js +54 -0
- package/dist/models/IssueSearch.d.ts +3 -4
- package/dist/models/index.d.ts +2 -1
- package/dist/models/index.js +2 -1
- package/dist/oauth/api.d.ts +1 -1
- package/dist/oauth/api.js +6 -4
- package/package.json +1 -1
- package/src/apis/WorkItemPropertiesApi.ts +12 -9
- package/src/apis/WorkItemsApi.ts +6 -3
- package/src/models/IssueDetail.ts +319 -0
- package/src/models/IssueExpand.ts +6 -20
- package/src/models/IssuePropertyValueAPIDetail.ts +76 -0
- package/src/models/IssueSearch.ts +3 -4
- package/src/models/index.ts +2 -1
- package/src/oauth/api.ts +7 -5
- package/dist/models/LabelLite.d.ts +0 -46
- package/dist/models/LabelLite.js +0 -53
- package/src/models/LabelLite.ts +0 -83
|
@@ -12,8 +12,8 @@ jobs:
|
|
|
12
12
|
- uses: actions/checkout@v4
|
|
13
13
|
- uses: actions/setup-node@v4
|
|
14
14
|
with:
|
|
15
|
-
node-version:
|
|
16
|
-
registry-url:
|
|
15
|
+
node-version: "20"
|
|
16
|
+
registry-url: "https://registry.npmjs.org"
|
|
17
17
|
|
|
18
18
|
- name: Install dependencies and build
|
|
19
19
|
run: npm ci
|
|
@@ -21,4 +21,23 @@ jobs:
|
|
|
21
21
|
- name: Publish to npm
|
|
22
22
|
run: npm publish --access public
|
|
23
23
|
env:
|
|
24
|
-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
24
|
+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
25
|
+
|
|
26
|
+
- name: Get version from package.json
|
|
27
|
+
id: package-version
|
|
28
|
+
run: |
|
|
29
|
+
VERSION=$(jq -r '.version' package.json)
|
|
30
|
+
if [ -z "$VERSION" ]; then
|
|
31
|
+
echo "Error: Could not extract version from package.json"
|
|
32
|
+
exit 1
|
|
33
|
+
fi
|
|
34
|
+
echo "current-version=$VERSION" >> $GITHUB_OUTPUT
|
|
35
|
+
|
|
36
|
+
- name: Create GitHub Release
|
|
37
|
+
uses: softprops/action-gh-release@v2
|
|
38
|
+
with:
|
|
39
|
+
tag_name: v${{ steps.package-version.outputs.current-version }}
|
|
40
|
+
name: v${{ steps.package-version.outputs.current-version }}
|
|
41
|
+
draft: false
|
|
42
|
+
prerelease: false
|
|
43
|
+
generate_release_notes: true
|
package/.openapi-generator/FILES
CHANGED
|
@@ -41,6 +41,7 @@ src/models/IssueAttachment.ts
|
|
|
41
41
|
src/models/IssueAttachmentUploadRequest.ts
|
|
42
42
|
src/models/IssueComment.ts
|
|
43
43
|
src/models/IssueCommentCreateRequest.ts
|
|
44
|
+
src/models/IssueDetail.ts
|
|
44
45
|
src/models/IssueExpand.ts
|
|
45
46
|
src/models/IssueForIntakeRequest.ts
|
|
46
47
|
src/models/IssueLink.ts
|
|
@@ -50,6 +51,7 @@ src/models/IssuePropertyAPIRequest.ts
|
|
|
50
51
|
src/models/IssuePropertyOptionAPI.ts
|
|
51
52
|
src/models/IssuePropertyOptionAPIRequest.ts
|
|
52
53
|
src/models/IssuePropertyValueAPI.ts
|
|
54
|
+
src/models/IssuePropertyValueAPIDetail.ts
|
|
53
55
|
src/models/IssuePropertyValueAPIRequest.ts
|
|
54
56
|
src/models/IssueRequest.ts
|
|
55
57
|
src/models/IssueSearch.ts
|
|
@@ -60,7 +62,6 @@ src/models/IssueWorkLogAPI.ts
|
|
|
60
62
|
src/models/IssueWorkLogAPIRequest.ts
|
|
61
63
|
src/models/Label.ts
|
|
62
64
|
src/models/LabelCreateUpdateRequest.ts
|
|
63
|
-
src/models/LabelLite.ts
|
|
64
65
|
src/models/Module.ts
|
|
65
66
|
src/models/ModuleCreateRequest.ts
|
|
66
67
|
src/models/ModuleIssue.ts
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## @makeplane/plane-node-sdk@0.1.
|
|
1
|
+
## @makeplane/plane-node-sdk@0.1.4
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install @makeplane/plane-node-sdk@0.1.
|
|
39
|
+
npm install @makeplane/plane-node-sdk@0.1.4 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
11
|
import * as runtime from '../runtime';
|
|
12
|
-
import type { IssuePropertyAPI, IssuePropertyAPIRequest, IssuePropertyOptionAPI, IssuePropertyOptionAPIRequest, IssuePropertyValueAPI, IssuePropertyValueAPIRequest, PatchedIssuePropertyAPIRequest, PatchedIssuePropertyOptionAPIRequest } from '../models/index';
|
|
12
|
+
import type { IssuePropertyAPI, IssuePropertyAPIRequest, IssuePropertyOptionAPI, IssuePropertyOptionAPIRequest, IssuePropertyValueAPI, IssuePropertyValueAPIDetail, IssuePropertyValueAPIRequest, PatchedIssuePropertyAPIRequest, PatchedIssuePropertyOptionAPIRequest } from '../models/index';
|
|
13
13
|
export interface CreateIssuePropertyRequest {
|
|
14
14
|
projectId: string;
|
|
15
15
|
slug: string;
|
|
@@ -141,32 +141,32 @@ export declare class WorkItemPropertiesApi extends runtime.BaseAPI {
|
|
|
141
141
|
* List issue properties
|
|
142
142
|
* List issue properties
|
|
143
143
|
*/
|
|
144
|
-
listIssuePropertiesRaw(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyAPI
|
|
144
|
+
listIssuePropertiesRaw(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssuePropertyAPI>>>;
|
|
145
145
|
/**
|
|
146
146
|
* List issue properties
|
|
147
147
|
* List issue properties
|
|
148
148
|
*/
|
|
149
|
-
listIssueProperties(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyAPI
|
|
149
|
+
listIssueProperties(requestParameters: ListIssuePropertiesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssuePropertyAPI>>;
|
|
150
150
|
/**
|
|
151
151
|
* List issue property options
|
|
152
152
|
* List issue property options
|
|
153
153
|
*/
|
|
154
|
-
listIssuePropertyOptionsRaw(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssuePropertyOptionAPI
|
|
154
|
+
listIssuePropertyOptionsRaw(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssuePropertyOptionAPI>>>;
|
|
155
155
|
/**
|
|
156
156
|
* List issue property options
|
|
157
157
|
* List issue property options
|
|
158
158
|
*/
|
|
159
|
-
listIssuePropertyOptions(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssuePropertyOptionAPI
|
|
159
|
+
listIssuePropertyOptions(requestParameters: ListIssuePropertyOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssuePropertyOptionAPI>>;
|
|
160
160
|
/**
|
|
161
161
|
* List issue property values
|
|
162
162
|
* List issue property values
|
|
163
163
|
*/
|
|
164
|
-
listIssuePropertyValuesRaw(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
164
|
+
listIssuePropertyValuesRaw(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<IssuePropertyValueAPIDetail>>>;
|
|
165
165
|
/**
|
|
166
166
|
* List issue property values
|
|
167
167
|
* List issue property values
|
|
168
168
|
*/
|
|
169
|
-
listIssuePropertyValues(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
169
|
+
listIssuePropertyValues(requestParameters: ListIssuePropertyValuesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<IssuePropertyValueAPIDetail>>;
|
|
170
170
|
/**
|
|
171
171
|
* Get issue property by id
|
|
172
172
|
* Get issue property by id
|
|
@@ -545,7 +545,7 @@ var WorkItemPropertiesApi = /** @class */ (function (_super) {
|
|
|
545
545
|
}, initOverrides)];
|
|
546
546
|
case 7:
|
|
547
547
|
response = _g.sent();
|
|
548
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (
|
|
548
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.IssuePropertyAPIFromJSON); })];
|
|
549
549
|
}
|
|
550
550
|
});
|
|
551
551
|
});
|
|
@@ -624,7 +624,7 @@ var WorkItemPropertiesApi = /** @class */ (function (_super) {
|
|
|
624
624
|
}, initOverrides)];
|
|
625
625
|
case 7:
|
|
626
626
|
response = _g.sent();
|
|
627
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (
|
|
627
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.IssuePropertyOptionAPIFromJSON); })];
|
|
628
628
|
}
|
|
629
629
|
});
|
|
630
630
|
});
|
|
@@ -706,7 +706,7 @@ var WorkItemPropertiesApi = /** @class */ (function (_super) {
|
|
|
706
706
|
}, initOverrides)];
|
|
707
707
|
case 7:
|
|
708
708
|
response = _g.sent();
|
|
709
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (
|
|
709
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.IssuePropertyValueAPIDetailFromJSON); })];
|
|
710
710
|
}
|
|
711
711
|
});
|
|
712
712
|
});
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* Do not edit the class manually.
|
|
10
10
|
*/
|
|
11
11
|
import * as runtime from '../runtime';
|
|
12
|
-
import type { Issue, IssueRequest, IssueSearch, PaginatedWorkItemResponse, PatchedIssueRequest } from '../models/index';
|
|
12
|
+
import type { Issue, IssueDetail, IssueRequest, IssueSearch, PaginatedWorkItemResponse, PatchedIssueRequest } from '../models/index';
|
|
13
13
|
export interface CreateWorkItemRequest {
|
|
14
14
|
projectId: string;
|
|
15
15
|
slug: string;
|
|
@@ -107,12 +107,12 @@ export declare class WorkItemsApi extends runtime.BaseAPI {
|
|
|
107
107
|
* Retrieve details of a specific work item.
|
|
108
108
|
* Retrieve work item
|
|
109
109
|
*/
|
|
110
|
-
retrieveWorkItemRaw(requestParameters: RetrieveWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<
|
|
110
|
+
retrieveWorkItemRaw(requestParameters: RetrieveWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<IssueDetail>>;
|
|
111
111
|
/**
|
|
112
112
|
* Retrieve details of a specific work item.
|
|
113
113
|
* Retrieve work item
|
|
114
114
|
*/
|
|
115
|
-
retrieveWorkItem(requestParameters: RetrieveWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<
|
|
115
|
+
retrieveWorkItem(requestParameters: RetrieveWorkItemRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<IssueDetail>;
|
|
116
116
|
/**
|
|
117
117
|
* Perform semantic search across issue names, sequence IDs, and project identifiers.
|
|
118
118
|
*/
|
|
@@ -479,7 +479,7 @@ var WorkItemsApi = /** @class */ (function (_super) {
|
|
|
479
479
|
}, initOverrides)];
|
|
480
480
|
case 7:
|
|
481
481
|
response = _g.sent();
|
|
482
|
-
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.
|
|
482
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.IssueDetailFromJSON)(jsonValue); })];
|
|
483
483
|
}
|
|
484
484
|
});
|
|
485
485
|
});
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Plane REST API
|
|
3
|
+
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
4
|
+
*
|
|
5
|
+
* The version of the API Spec: 0.0.1
|
|
6
|
+
* Contact: support@plane.so
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
import type { PriorityEnum } from './PriorityEnum';
|
|
12
|
+
import type { Label } from './Label';
|
|
13
|
+
import type { UserLite } from './UserLite';
|
|
14
|
+
/**
|
|
15
|
+
* Comprehensive work item serializer with full relationship management.
|
|
16
|
+
*
|
|
17
|
+
* Handles complete work item lifecycle including assignees, labels, validation,
|
|
18
|
+
* and related model updates. Supports dynamic field expansion and HTML content processing.
|
|
19
|
+
* @export
|
|
20
|
+
* @interface IssueDetail
|
|
21
|
+
*/
|
|
22
|
+
export interface IssueDetail {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof IssueDetail
|
|
27
|
+
*/
|
|
28
|
+
readonly id?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {Array<UserLite>}
|
|
32
|
+
* @memberof IssueDetail
|
|
33
|
+
*/
|
|
34
|
+
assignees: Array<UserLite>;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {Array<Label>}
|
|
38
|
+
* @memberof IssueDetail
|
|
39
|
+
*/
|
|
40
|
+
labels: Array<Label>;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof IssueDetail
|
|
45
|
+
*/
|
|
46
|
+
typeId?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {Date}
|
|
50
|
+
* @memberof IssueDetail
|
|
51
|
+
*/
|
|
52
|
+
readonly createdAt?: Date;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {Date}
|
|
56
|
+
* @memberof IssueDetail
|
|
57
|
+
*/
|
|
58
|
+
readonly updatedAt?: Date;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {Date}
|
|
62
|
+
* @memberof IssueDetail
|
|
63
|
+
*/
|
|
64
|
+
deletedAt?: Date | null;
|
|
65
|
+
/**
|
|
66
|
+
*
|
|
67
|
+
* @type {number}
|
|
68
|
+
* @memberof IssueDetail
|
|
69
|
+
*/
|
|
70
|
+
point?: number | null;
|
|
71
|
+
/**
|
|
72
|
+
*
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof IssueDetail
|
|
75
|
+
*/
|
|
76
|
+
name: string;
|
|
77
|
+
/**
|
|
78
|
+
*
|
|
79
|
+
* @type {string}
|
|
80
|
+
* @memberof IssueDetail
|
|
81
|
+
*/
|
|
82
|
+
descriptionHtml?: string;
|
|
83
|
+
/**
|
|
84
|
+
*
|
|
85
|
+
* @type {string}
|
|
86
|
+
* @memberof IssueDetail
|
|
87
|
+
*/
|
|
88
|
+
descriptionStripped?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {string}
|
|
92
|
+
* @memberof IssueDetail
|
|
93
|
+
*/
|
|
94
|
+
readonly descriptionBinary?: string | null;
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @type {PriorityEnum}
|
|
98
|
+
* @memberof IssueDetail
|
|
99
|
+
*/
|
|
100
|
+
priority?: PriorityEnum;
|
|
101
|
+
/**
|
|
102
|
+
*
|
|
103
|
+
* @type {Date}
|
|
104
|
+
* @memberof IssueDetail
|
|
105
|
+
*/
|
|
106
|
+
startDate?: Date | null;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* @type {Date}
|
|
110
|
+
* @memberof IssueDetail
|
|
111
|
+
*/
|
|
112
|
+
targetDate?: Date | null;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @type {number}
|
|
116
|
+
* @memberof IssueDetail
|
|
117
|
+
*/
|
|
118
|
+
sequenceId?: number;
|
|
119
|
+
/**
|
|
120
|
+
*
|
|
121
|
+
* @type {number}
|
|
122
|
+
* @memberof IssueDetail
|
|
123
|
+
*/
|
|
124
|
+
sortOrder?: number;
|
|
125
|
+
/**
|
|
126
|
+
*
|
|
127
|
+
* @type {Date}
|
|
128
|
+
* @memberof IssueDetail
|
|
129
|
+
*/
|
|
130
|
+
completedAt?: Date | null;
|
|
131
|
+
/**
|
|
132
|
+
*
|
|
133
|
+
* @type {Date}
|
|
134
|
+
* @memberof IssueDetail
|
|
135
|
+
*/
|
|
136
|
+
archivedAt?: Date | null;
|
|
137
|
+
/**
|
|
138
|
+
*
|
|
139
|
+
* @type {boolean}
|
|
140
|
+
* @memberof IssueDetail
|
|
141
|
+
*/
|
|
142
|
+
isDraft?: boolean;
|
|
143
|
+
/**
|
|
144
|
+
*
|
|
145
|
+
* @type {string}
|
|
146
|
+
* @memberof IssueDetail
|
|
147
|
+
*/
|
|
148
|
+
externalSource?: string | null;
|
|
149
|
+
/**
|
|
150
|
+
*
|
|
151
|
+
* @type {string}
|
|
152
|
+
* @memberof IssueDetail
|
|
153
|
+
*/
|
|
154
|
+
externalId?: string | null;
|
|
155
|
+
/**
|
|
156
|
+
*
|
|
157
|
+
* @type {string}
|
|
158
|
+
* @memberof IssueDetail
|
|
159
|
+
*/
|
|
160
|
+
createdBy?: string | null;
|
|
161
|
+
/**
|
|
162
|
+
*
|
|
163
|
+
* @type {string}
|
|
164
|
+
* @memberof IssueDetail
|
|
165
|
+
*/
|
|
166
|
+
readonly updatedBy?: string | null;
|
|
167
|
+
/**
|
|
168
|
+
*
|
|
169
|
+
* @type {string}
|
|
170
|
+
* @memberof IssueDetail
|
|
171
|
+
*/
|
|
172
|
+
readonly project?: string;
|
|
173
|
+
/**
|
|
174
|
+
*
|
|
175
|
+
* @type {string}
|
|
176
|
+
* @memberof IssueDetail
|
|
177
|
+
*/
|
|
178
|
+
readonly workspace?: string;
|
|
179
|
+
/**
|
|
180
|
+
*
|
|
181
|
+
* @type {string}
|
|
182
|
+
* @memberof IssueDetail
|
|
183
|
+
*/
|
|
184
|
+
parent?: string | null;
|
|
185
|
+
/**
|
|
186
|
+
*
|
|
187
|
+
* @type {string}
|
|
188
|
+
* @memberof IssueDetail
|
|
189
|
+
*/
|
|
190
|
+
state?: string | null;
|
|
191
|
+
/**
|
|
192
|
+
*
|
|
193
|
+
* @type {string}
|
|
194
|
+
* @memberof IssueDetail
|
|
195
|
+
*/
|
|
196
|
+
estimatePoint?: string | null;
|
|
197
|
+
/**
|
|
198
|
+
*
|
|
199
|
+
* @type {string}
|
|
200
|
+
* @memberof IssueDetail
|
|
201
|
+
*/
|
|
202
|
+
type?: string | null;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* Check if a given object implements the IssueDetail interface.
|
|
206
|
+
*/
|
|
207
|
+
export declare function instanceOfIssueDetail(value: object): value is IssueDetail;
|
|
208
|
+
export declare function IssueDetailFromJSON(json: any): IssueDetail;
|
|
209
|
+
export declare function IssueDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssueDetail;
|
|
210
|
+
export declare function IssueDetailToJSON(json: any): IssueDetail;
|
|
211
|
+
export declare function IssueDetailToJSONTyped(value?: Omit<IssueDetail, 'id' | 'created_at' | 'updated_at' | 'description_binary' | 'updated_by' | 'project' | 'workspace'> | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* The Plane REST API
|
|
6
|
+
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
7
|
+
*
|
|
8
|
+
* The version of the API Spec: 0.0.1
|
|
9
|
+
* Contact: support@plane.so
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.instanceOfIssueDetail = instanceOfIssueDetail;
|
|
16
|
+
exports.IssueDetailFromJSON = IssueDetailFromJSON;
|
|
17
|
+
exports.IssueDetailFromJSONTyped = IssueDetailFromJSONTyped;
|
|
18
|
+
exports.IssueDetailToJSON = IssueDetailToJSON;
|
|
19
|
+
exports.IssueDetailToJSONTyped = IssueDetailToJSONTyped;
|
|
20
|
+
var PriorityEnum_1 = require("./PriorityEnum");
|
|
21
|
+
var Label_1 = require("./Label");
|
|
22
|
+
var UserLite_1 = require("./UserLite");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the IssueDetail interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfIssueDetail(value) {
|
|
27
|
+
if (!('assignees' in value) || value['assignees'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('labels' in value) || value['labels'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('name' in value) || value['name'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
function IssueDetailFromJSON(json) {
|
|
36
|
+
return IssueDetailFromJSONTyped(json, false);
|
|
37
|
+
}
|
|
38
|
+
function IssueDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
39
|
+
if (json == null) {
|
|
40
|
+
return json;
|
|
41
|
+
}
|
|
42
|
+
return {
|
|
43
|
+
'id': json['id'] == null ? undefined : json['id'],
|
|
44
|
+
'assignees': (json['assignees'].map(UserLite_1.UserLiteFromJSON)),
|
|
45
|
+
'labels': (json['labels'].map(Label_1.LabelFromJSON)),
|
|
46
|
+
'typeId': json['type_id'] == null ? undefined : json['type_id'],
|
|
47
|
+
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
48
|
+
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
49
|
+
'deletedAt': json['deleted_at'] == null ? undefined : (new Date(json['deleted_at'])),
|
|
50
|
+
'point': json['point'] == null ? undefined : json['point'],
|
|
51
|
+
'name': json['name'],
|
|
52
|
+
'descriptionHtml': json['description_html'] == null ? undefined : json['description_html'],
|
|
53
|
+
'descriptionStripped': json['description_stripped'] == null ? undefined : json['description_stripped'],
|
|
54
|
+
'descriptionBinary': json['description_binary'] == null ? undefined : json['description_binary'],
|
|
55
|
+
'priority': json['priority'] == null ? undefined : (0, PriorityEnum_1.PriorityEnumFromJSON)(json['priority']),
|
|
56
|
+
'startDate': json['start_date'] == null ? undefined : (new Date(json['start_date'])),
|
|
57
|
+
'targetDate': json['target_date'] == null ? undefined : (new Date(json['target_date'])),
|
|
58
|
+
'sequenceId': json['sequence_id'] == null ? undefined : json['sequence_id'],
|
|
59
|
+
'sortOrder': json['sort_order'] == null ? undefined : json['sort_order'],
|
|
60
|
+
'completedAt': json['completed_at'] == null ? undefined : (new Date(json['completed_at'])),
|
|
61
|
+
'archivedAt': json['archived_at'] == null ? undefined : (new Date(json['archived_at'])),
|
|
62
|
+
'isDraft': json['is_draft'] == null ? undefined : json['is_draft'],
|
|
63
|
+
'externalSource': json['external_source'] == null ? undefined : json['external_source'],
|
|
64
|
+
'externalId': json['external_id'] == null ? undefined : json['external_id'],
|
|
65
|
+
'createdBy': json['created_by'] == null ? undefined : json['created_by'],
|
|
66
|
+
'updatedBy': json['updated_by'] == null ? undefined : json['updated_by'],
|
|
67
|
+
'project': json['project'] == null ? undefined : json['project'],
|
|
68
|
+
'workspace': json['workspace'] == null ? undefined : json['workspace'],
|
|
69
|
+
'parent': json['parent'] == null ? undefined : json['parent'],
|
|
70
|
+
'state': json['state'] == null ? undefined : json['state'],
|
|
71
|
+
'estimatePoint': json['estimate_point'] == null ? undefined : json['estimate_point'],
|
|
72
|
+
'type': json['type'] == null ? undefined : json['type'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
function IssueDetailToJSON(json) {
|
|
76
|
+
return IssueDetailToJSONTyped(json, false);
|
|
77
|
+
}
|
|
78
|
+
function IssueDetailToJSONTyped(value, ignoreDiscriminator) {
|
|
79
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
80
|
+
if (value == null) {
|
|
81
|
+
return value;
|
|
82
|
+
}
|
|
83
|
+
return {
|
|
84
|
+
'assignees': (value['assignees'].map(UserLite_1.UserLiteToJSON)),
|
|
85
|
+
'labels': (value['labels'].map(Label_1.LabelToJSON)),
|
|
86
|
+
'type_id': value['typeId'],
|
|
87
|
+
'deleted_at': value['deletedAt'] == null ? undefined : (value['deletedAt'].toISOString()),
|
|
88
|
+
'point': value['point'],
|
|
89
|
+
'name': value['name'],
|
|
90
|
+
'description_html': value['descriptionHtml'],
|
|
91
|
+
'description_stripped': value['descriptionStripped'],
|
|
92
|
+
'priority': (0, PriorityEnum_1.PriorityEnumToJSON)(value['priority']),
|
|
93
|
+
'start_date': value['startDate'] == null ? undefined : (value['startDate'].toISOString().substring(0, 10)),
|
|
94
|
+
'target_date': value['targetDate'] == null ? undefined : (value['targetDate'].toISOString().substring(0, 10)),
|
|
95
|
+
'sequence_id': value['sequenceId'],
|
|
96
|
+
'sort_order': value['sortOrder'],
|
|
97
|
+
'completed_at': value['completedAt'] == null ? undefined : (value['completedAt'].toISOString()),
|
|
98
|
+
'archived_at': value['archivedAt'] == null ? undefined : (value['archivedAt'].toISOString().substring(0, 10)),
|
|
99
|
+
'is_draft': value['isDraft'],
|
|
100
|
+
'external_source': value['externalSource'],
|
|
101
|
+
'external_id': value['externalId'],
|
|
102
|
+
'created_by': value['createdBy'],
|
|
103
|
+
'parent': value['parent'],
|
|
104
|
+
'state': value['state'],
|
|
105
|
+
'estimate_point': value['estimatePoint'],
|
|
106
|
+
'type': value['type'],
|
|
107
|
+
};
|
|
108
|
+
}
|
|
@@ -10,10 +10,8 @@
|
|
|
10
10
|
*/
|
|
11
11
|
import type { PriorityEnum } from './PriorityEnum';
|
|
12
12
|
import type { StateLite } from './StateLite';
|
|
13
|
-
import type { LabelLite } from './LabelLite';
|
|
14
13
|
import type { CycleLite } from './CycleLite';
|
|
15
14
|
import type { ModuleLite } from './ModuleLite';
|
|
16
|
-
import type { UserLite } from './UserLite';
|
|
17
15
|
/**
|
|
18
16
|
* Extended work item serializer with full relationship expansion.
|
|
19
17
|
*
|
|
@@ -43,16 +41,16 @@ export interface IssueExpand {
|
|
|
43
41
|
readonly module?: ModuleLite;
|
|
44
42
|
/**
|
|
45
43
|
*
|
|
46
|
-
* @type {
|
|
44
|
+
* @type {string}
|
|
47
45
|
* @memberof IssueExpand
|
|
48
46
|
*/
|
|
49
|
-
readonly labels?:
|
|
47
|
+
readonly labels?: string;
|
|
50
48
|
/**
|
|
51
49
|
*
|
|
52
|
-
* @type {
|
|
50
|
+
* @type {string}
|
|
53
51
|
* @memberof IssueExpand
|
|
54
52
|
*/
|
|
55
|
-
readonly assignees?:
|
|
53
|
+
readonly assignees?: string;
|
|
56
54
|
/**
|
|
57
55
|
*
|
|
58
56
|
* @type {StateLite}
|
|
@@ -19,10 +19,8 @@ exports.IssueExpandToJSON = IssueExpandToJSON;
|
|
|
19
19
|
exports.IssueExpandToJSONTyped = IssueExpandToJSONTyped;
|
|
20
20
|
var PriorityEnum_1 = require("./PriorityEnum");
|
|
21
21
|
var StateLite_1 = require("./StateLite");
|
|
22
|
-
var LabelLite_1 = require("./LabelLite");
|
|
23
22
|
var CycleLite_1 = require("./CycleLite");
|
|
24
23
|
var ModuleLite_1 = require("./ModuleLite");
|
|
25
|
-
var UserLite_1 = require("./UserLite");
|
|
26
24
|
/**
|
|
27
25
|
* Check if a given object implements the IssueExpand interface.
|
|
28
26
|
*/
|
|
@@ -42,8 +40,8 @@ function IssueExpandFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
42
40
|
'id': json['id'] == null ? undefined : json['id'],
|
|
43
41
|
'cycle': json['cycle'] == null ? undefined : (0, CycleLite_1.CycleLiteFromJSON)(json['cycle']),
|
|
44
42
|
'module': json['module'] == null ? undefined : (0, ModuleLite_1.ModuleLiteFromJSON)(json['module']),
|
|
45
|
-
'labels': json['labels'] == null ? undefined :
|
|
46
|
-
'assignees': json['assignees'] == null ? undefined :
|
|
43
|
+
'labels': json['labels'] == null ? undefined : json['labels'],
|
|
44
|
+
'assignees': json['assignees'] == null ? undefined : json['assignees'],
|
|
47
45
|
'state': json['state'] == null ? undefined : (0, StateLite_1.StateLiteFromJSON)(json['state']),
|
|
48
46
|
'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
|
|
49
47
|
'updatedAt': json['updated_at'] == null ? undefined : (new Date(json['updated_at'])),
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The Plane REST API
|
|
3
|
+
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
4
|
+
*
|
|
5
|
+
* The version of the API Spec: 0.0.1
|
|
6
|
+
* Contact: support@plane.so
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*/
|
|
11
|
+
/**
|
|
12
|
+
* Serializer for aggregated issue property values response.
|
|
13
|
+
* This serializer handles the response format from the query_annotator method
|
|
14
|
+
* which returns property_id and values (ArrayAgg of property values).
|
|
15
|
+
* @export
|
|
16
|
+
* @interface IssuePropertyValueAPIDetail
|
|
17
|
+
*/
|
|
18
|
+
export interface IssuePropertyValueAPIDetail {
|
|
19
|
+
/**
|
|
20
|
+
* The ID of the issue property
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof IssuePropertyValueAPIDetail
|
|
23
|
+
*/
|
|
24
|
+
propertyId: string;
|
|
25
|
+
/**
|
|
26
|
+
* List of aggregated property values for the given property
|
|
27
|
+
* @type {Array<string>}
|
|
28
|
+
* @memberof IssuePropertyValueAPIDetail
|
|
29
|
+
*/
|
|
30
|
+
values: Array<string>;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check if a given object implements the IssuePropertyValueAPIDetail interface.
|
|
34
|
+
*/
|
|
35
|
+
export declare function instanceOfIssuePropertyValueAPIDetail(value: object): value is IssuePropertyValueAPIDetail;
|
|
36
|
+
export declare function IssuePropertyValueAPIDetailFromJSON(json: any): IssuePropertyValueAPIDetail;
|
|
37
|
+
export declare function IssuePropertyValueAPIDetailFromJSONTyped(json: any, ignoreDiscriminator: boolean): IssuePropertyValueAPIDetail;
|
|
38
|
+
export declare function IssuePropertyValueAPIDetailToJSON(json: any): IssuePropertyValueAPIDetail;
|
|
39
|
+
export declare function IssuePropertyValueAPIDetailToJSONTyped(value?: IssuePropertyValueAPIDetail | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* The Plane REST API
|
|
6
|
+
* The Plane REST API Visit our quick start guide and full API documentation at [developers.plane.so](https://developers.plane.so/api-reference/introduction).
|
|
7
|
+
*
|
|
8
|
+
* The version of the API Spec: 0.0.1
|
|
9
|
+
* Contact: support@plane.so
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.instanceOfIssuePropertyValueAPIDetail = instanceOfIssuePropertyValueAPIDetail;
|
|
16
|
+
exports.IssuePropertyValueAPIDetailFromJSON = IssuePropertyValueAPIDetailFromJSON;
|
|
17
|
+
exports.IssuePropertyValueAPIDetailFromJSONTyped = IssuePropertyValueAPIDetailFromJSONTyped;
|
|
18
|
+
exports.IssuePropertyValueAPIDetailToJSON = IssuePropertyValueAPIDetailToJSON;
|
|
19
|
+
exports.IssuePropertyValueAPIDetailToJSONTyped = IssuePropertyValueAPIDetailToJSONTyped;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a given object implements the IssuePropertyValueAPIDetail interface.
|
|
22
|
+
*/
|
|
23
|
+
function instanceOfIssuePropertyValueAPIDetail(value) {
|
|
24
|
+
if (!('propertyId' in value) || value['propertyId'] === undefined)
|
|
25
|
+
return false;
|
|
26
|
+
if (!('values' in value) || value['values'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
function IssuePropertyValueAPIDetailFromJSON(json) {
|
|
31
|
+
return IssuePropertyValueAPIDetailFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
function IssuePropertyValueAPIDetailFromJSONTyped(json, ignoreDiscriminator) {
|
|
34
|
+
if (json == null) {
|
|
35
|
+
return json;
|
|
36
|
+
}
|
|
37
|
+
return {
|
|
38
|
+
'propertyId': json['property_id'],
|
|
39
|
+
'values': json['values'],
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
function IssuePropertyValueAPIDetailToJSON(json) {
|
|
43
|
+
return IssuePropertyValueAPIDetailToJSONTyped(json, false);
|
|
44
|
+
}
|
|
45
|
+
function IssuePropertyValueAPIDetailToJSONTyped(value, ignoreDiscriminator) {
|
|
46
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
47
|
+
if (value == null) {
|
|
48
|
+
return value;
|
|
49
|
+
}
|
|
50
|
+
return {
|
|
51
|
+
'property_id': value['propertyId'],
|
|
52
|
+
'values': value['values'],
|
|
53
|
+
};
|
|
54
|
+
}
|