@makeplane/plane-node-sdk 0.2.0 → 0.2.2
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/README.md +6 -0
- package/dist/api/BaseResource.d.ts +1 -1
- package/dist/api/BaseResource.d.ts.map +1 -1
- package/dist/api/BaseResource.js +2 -1
- package/dist/api/BaseResource.js.map +1 -1
- package/dist/api/Initiatives/Epics.d.ts +28 -0
- package/dist/api/Initiatives/Epics.d.ts.map +1 -0
- package/dist/api/Initiatives/Epics.js +33 -0
- package/dist/api/Initiatives/Epics.js.map +1 -0
- package/dist/api/Initiatives/Labels.d.ts +48 -0
- package/dist/api/Initiatives/Labels.d.ts.map +1 -0
- package/dist/api/Initiatives/Labels.js +63 -0
- package/dist/api/Initiatives/Labels.js.map +1 -0
- package/dist/api/Initiatives/Projects.d.ts +28 -0
- package/dist/api/Initiatives/Projects.d.ts.map +1 -0
- package/dist/api/Initiatives/Projects.js +33 -0
- package/dist/api/Initiatives/Projects.js.map +1 -0
- package/dist/api/Initiatives/index.d.ts +38 -0
- package/dist/api/Initiatives/index.d.ts.map +1 -0
- package/dist/api/Initiatives/index.js +51 -0
- package/dist/api/Initiatives/index.js.map +1 -0
- package/dist/api/Modules.d.ts.map +1 -1
- package/dist/api/Modules.js +1 -1
- package/dist/api/Modules.js.map +1 -1
- package/dist/api/Projects.d.ts +9 -0
- package/dist/api/Projects.d.ts.map +1 -1
- package/dist/api/Projects.js +12 -0
- package/dist/api/Projects.js.map +1 -1
- package/dist/api/Stickies.d.ts +32 -0
- package/dist/api/Stickies.d.ts.map +1 -0
- package/dist/api/Stickies.js +45 -0
- package/dist/api/Stickies.js.map +1 -0
- package/dist/api/Teamspaces/Members.d.ts +28 -0
- package/dist/api/Teamspaces/Members.d.ts.map +1 -0
- package/dist/api/Teamspaces/Members.js +33 -0
- package/dist/api/Teamspaces/Members.js.map +1 -0
- package/dist/api/Teamspaces/Projects.d.ts +28 -0
- package/dist/api/Teamspaces/Projects.d.ts.map +1 -0
- package/dist/api/Teamspaces/Projects.js +33 -0
- package/dist/api/Teamspaces/Projects.js.map +1 -0
- package/dist/api/Teamspaces/index.d.ts +36 -0
- package/dist/api/Teamspaces/index.d.ts.map +1 -0
- package/dist/api/Teamspaces/index.js +49 -0
- package/dist/api/Teamspaces/index.js.map +1 -0
- package/dist/api/Workspace.d.ts +9 -0
- package/dist/api/Workspace.d.ts.map +1 -1
- package/dist/api/Workspace.js +12 -0
- package/dist/api/Workspace.js.map +1 -1
- package/dist/client/plane-client.d.ts +6 -0
- package/dist/client/plane-client.d.ts.map +1 -1
- package/dist/client/plane-client.js +6 -0
- package/dist/client/plane-client.js.map +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/models/Initiative.d.ts +50 -0
- package/dist/models/Initiative.d.ts.map +1 -0
- package/dist/models/Initiative.js +12 -0
- package/dist/models/Initiative.js.map +1 -0
- package/dist/models/InitiativeLabel.d.ts +21 -0
- package/dist/models/InitiativeLabel.d.ts.map +1 -0
- package/dist/models/InitiativeLabel.js +3 -0
- package/dist/models/InitiativeLabel.js.map +1 -0
- package/dist/models/ProjectFeatures.d.ts +14 -0
- package/dist/models/ProjectFeatures.d.ts.map +1 -0
- package/dist/models/ProjectFeatures.js +3 -0
- package/dist/models/ProjectFeatures.js.map +1 -0
- package/dist/models/Sticky.d.ts +25 -0
- package/dist/models/Sticky.d.ts.map +1 -0
- package/dist/models/Sticky.js +3 -0
- package/dist/models/Sticky.js.map +1 -0
- package/dist/models/Teamspace.d.ts +34 -0
- package/dist/models/Teamspace.d.ts.map +1 -0
- package/dist/models/Teamspace.js +3 -0
- package/dist/models/Teamspace.js.map +1 -0
- package/dist/models/WorkspaceFeatures.d.ts +13 -0
- package/dist/models/WorkspaceFeatures.d.ts.map +1 -0
- package/dist/models/WorkspaceFeatures.js +3 -0
- package/dist/models/WorkspaceFeatures.js.map +1 -0
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.d.ts.map +1 -1
- package/dist/models/index.js +6 -0
- package/dist/models/index.js.map +1 -1
- package/package.json +4 -1
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { BaseModel, LogoProps } from "./common";
|
|
2
|
+
/**
|
|
3
|
+
* Teamspace model interfaces
|
|
4
|
+
*/
|
|
5
|
+
export interface Teamspace extends BaseModel {
|
|
6
|
+
name: string;
|
|
7
|
+
description_json?: Record<string, any>;
|
|
8
|
+
description_html?: string;
|
|
9
|
+
description_stripped?: string;
|
|
10
|
+
description_binary?: string;
|
|
11
|
+
logo_props?: LogoProps;
|
|
12
|
+
lead?: string;
|
|
13
|
+
workspace: string;
|
|
14
|
+
}
|
|
15
|
+
export type CreateTeamspace = Omit<Teamspace, "id" | "created_at" | "updated_at" | "deleted_at" | "created_by" | "updated_by" | "workspace">;
|
|
16
|
+
export type UpdateTeamspace = Partial<CreateTeamspace>;
|
|
17
|
+
export interface ListTeamspacesParams {
|
|
18
|
+
limit?: number;
|
|
19
|
+
offset?: number;
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}
|
|
22
|
+
export interface AddTeamspaceProjectsRequest {
|
|
23
|
+
project_ids: string[];
|
|
24
|
+
}
|
|
25
|
+
export interface RemoveTeamspaceProjectsRequest {
|
|
26
|
+
project_ids: string[];
|
|
27
|
+
}
|
|
28
|
+
export interface AddTeamspaceMembersRequest {
|
|
29
|
+
member_ids: string[];
|
|
30
|
+
}
|
|
31
|
+
export interface RemoveTeamspaceMembersRequest {
|
|
32
|
+
member_ids: string[];
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=Teamspace.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Teamspace.d.ts","sourceRoot":"","sources":["../../src/models/Teamspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,SAAU,SAAQ,SAAS;IAC1C,IAAI,EAAE,MAAM,CAAC;IACb,gBAAgB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACvC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,SAAS,EACT,IAAI,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,YAAY,GAAG,WAAW,CAC9F,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAEvD,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,8BAA8B;IAC7C,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,MAAM,WAAW,0BAA0B;IACzC,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,6BAA6B;IAC5C,UAAU,EAAE,MAAM,EAAE,CAAC;CACtB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Teamspace.js","sourceRoot":"","sources":["../../src/models/Teamspace.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Workspace Features model interfaces
|
|
3
|
+
*/
|
|
4
|
+
export interface WorkspaceFeatures {
|
|
5
|
+
project_grouping: boolean;
|
|
6
|
+
initiatives: boolean;
|
|
7
|
+
teams: boolean;
|
|
8
|
+
customers: boolean;
|
|
9
|
+
wiki: boolean;
|
|
10
|
+
pi: boolean;
|
|
11
|
+
}
|
|
12
|
+
export type UpdateWorkspaceFeatures = Partial<WorkspaceFeatures>;
|
|
13
|
+
//# sourceMappingURL=WorkspaceFeatures.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceFeatures.d.ts","sourceRoot":"","sources":["../../src/models/WorkspaceFeatures.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,iBAAiB;IAChC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,WAAW,EAAE,OAAO,CAAC;IACrB,KAAK,EAAE,OAAO,CAAC;IACf,SAAS,EAAE,OAAO,CAAC;IACnB,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,OAAO,CAAC;CACb;AAED,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorkspaceFeatures.js","sourceRoot":"","sources":["../../src/models/WorkspaceFeatures.ts"],"names":[],"mappings":""}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export * from "./Project";
|
|
2
|
+
export * from "./ProjectFeatures";
|
|
3
|
+
export * from "./WorkspaceFeatures";
|
|
2
4
|
export * from "./WorkItem";
|
|
3
5
|
export * from "./WorkItemProperty";
|
|
4
6
|
export * from "./Comment";
|
|
@@ -8,4 +10,8 @@ export * from "./Customer";
|
|
|
8
10
|
export * from "./Page";
|
|
9
11
|
export * from "./Cycle";
|
|
10
12
|
export * from "./Module";
|
|
13
|
+
export * from "./Sticky";
|
|
14
|
+
export * from "./Teamspace";
|
|
15
|
+
export * from "./InitiativeLabel";
|
|
16
|
+
export * from "./Initiative";
|
|
11
17
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
package/dist/models/index.js
CHANGED
|
@@ -15,6 +15,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./Project"), exports);
|
|
18
|
+
__exportStar(require("./ProjectFeatures"), exports);
|
|
19
|
+
__exportStar(require("./WorkspaceFeatures"), exports);
|
|
18
20
|
__exportStar(require("./WorkItem"), exports);
|
|
19
21
|
__exportStar(require("./WorkItemProperty"), exports);
|
|
20
22
|
__exportStar(require("./Comment"), exports);
|
|
@@ -24,4 +26,8 @@ __exportStar(require("./Customer"), exports);
|
|
|
24
26
|
__exportStar(require("./Page"), exports);
|
|
25
27
|
__exportStar(require("./Cycle"), exports);
|
|
26
28
|
__exportStar(require("./Module"), exports);
|
|
29
|
+
__exportStar(require("./Sticky"), exports);
|
|
30
|
+
__exportStar(require("./Teamspace"), exports);
|
|
31
|
+
__exportStar(require("./InitiativeLabel"), exports);
|
|
32
|
+
__exportStar(require("./Initiative"), exports);
|
|
27
33
|
//# sourceMappingURL=index.js.map
|
package/dist/models/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,6CAA2B;AAC3B,qDAAmC;AACnC,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,6CAA2B;AAC3B,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,oDAAkC;AAClC,sDAAoC;AACpC,6CAA2B;AAC3B,qDAAmC;AACnC,4CAA0B;AAC1B,+CAA6B;AAC7B,yCAAuB;AACvB,6CAA2B;AAC3B,yCAAuB;AACvB,0CAAwB;AACxB,2CAAyB;AACzB,2CAAyB;AACzB,8CAA4B;AAC5B,oDAAkC;AAClC,+CAA6B"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makeplane/plane-node-sdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.2",
|
|
4
4
|
"description": "Node SDK for Plane",
|
|
5
5
|
"author": "Plane <engineering@plane.so>",
|
|
6
6
|
"repository": {
|
|
@@ -43,6 +43,9 @@
|
|
|
43
43
|
"engines": {
|
|
44
44
|
"node": ">=20.0.0"
|
|
45
45
|
},
|
|
46
|
+
"resolutions": {
|
|
47
|
+
"js-yaml": "4.1.1"
|
|
48
|
+
},
|
|
46
49
|
"scripts": {
|
|
47
50
|
"build": "tsc",
|
|
48
51
|
"dev": "tsc --watch",
|