repository-provider 32.4.5 → 32.4.7
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/package.json +1 -1
- package/src/attributes.mjs +5 -5
- package/src/hook.mjs +2 -2
- package/src/milestone.mjs +2 -2
- package/src/pull-request.mjs +15 -9
- package/src/repository-group.mjs +7 -4
package/package.json
CHANGED
package/src/attributes.mjs
CHANGED
|
@@ -41,17 +41,17 @@ export const description_attribute = {
|
|
|
41
41
|
*/
|
|
42
42
|
export const id_attribute = { isKey: true, type: "string" };
|
|
43
43
|
|
|
44
|
-
export const
|
|
44
|
+
export const state_attribute = { type: "string", writeable: true };
|
|
45
45
|
|
|
46
46
|
/**
|
|
47
47
|
* The description of the pull request.
|
|
48
48
|
*/
|
|
49
|
-
export const
|
|
49
|
+
export const body_attribute = { type: "string", writable: true };
|
|
50
50
|
|
|
51
51
|
/**
|
|
52
52
|
* The one line description of the pull request.
|
|
53
53
|
*/
|
|
54
|
-
export const
|
|
54
|
+
export const title_attribute = {
|
|
55
55
|
type: "string",
|
|
56
56
|
description: "human readable title",
|
|
57
57
|
writable: true,
|
|
@@ -69,11 +69,11 @@ export const priority_attribute = {
|
|
|
69
69
|
mandatory: false
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
export const
|
|
72
|
+
export const active_attribute = {
|
|
73
73
|
type: "boolean",
|
|
74
74
|
default: true,
|
|
75
75
|
mandatory: false,
|
|
76
76
|
writable: true
|
|
77
77
|
};
|
|
78
78
|
export const language_attribute = { type: "string", mandatory: false };
|
|
79
|
-
export const
|
|
79
|
+
export const type_attribute = { type: "string", mandatory: false };
|
package/src/hook.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import { OwnedObject } from "./owned-object.mjs";
|
|
|
2
2
|
import {
|
|
3
3
|
secret_attribute,
|
|
4
4
|
boolean_attribute,
|
|
5
|
-
|
|
5
|
+
active_attribute,
|
|
6
6
|
url_attribute
|
|
7
7
|
} from "./attributes.mjs";
|
|
8
8
|
|
|
@@ -13,7 +13,7 @@ export class Hook extends OwnedObject {
|
|
|
13
13
|
static get attributes() {
|
|
14
14
|
return {
|
|
15
15
|
...super.attributes,
|
|
16
|
-
active,
|
|
16
|
+
active: active_attribute,
|
|
17
17
|
secret: secret_attribute,
|
|
18
18
|
url: { ...url_attribute, description: "target url", writable: true },
|
|
19
19
|
content_type: { type: "string", default: "json", writable: true },
|
package/src/milestone.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OwnedObject } from "./owned-object.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { state_attribute } from "./attributes.mjs";
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
*/
|
|
@@ -7,7 +7,7 @@ export class Milestone extends OwnedObject {
|
|
|
7
7
|
static get attributes() {
|
|
8
8
|
return {
|
|
9
9
|
...super.attributes,
|
|
10
|
-
state
|
|
10
|
+
state: state_attribute
|
|
11
11
|
};
|
|
12
12
|
}
|
|
13
13
|
|
package/src/pull-request.mjs
CHANGED
|
@@ -3,7 +3,14 @@ import { OwnedObject } from "./owned-object.mjs";
|
|
|
3
3
|
import { Branch } from "./branch.mjs";
|
|
4
4
|
import { Repository } from "./repository.mjs";
|
|
5
5
|
import { Review } from "./review.mjs";
|
|
6
|
-
import {
|
|
6
|
+
import {
|
|
7
|
+
url_attribute,
|
|
8
|
+
state_attribute,
|
|
9
|
+
body_attribute,
|
|
10
|
+
title_attribute,
|
|
11
|
+
boolean_attribute,
|
|
12
|
+
empty_attiribute
|
|
13
|
+
} from "./attributes.mjs";
|
|
7
14
|
|
|
8
15
|
/**
|
|
9
16
|
* Abstract pull request.
|
|
@@ -32,9 +39,9 @@ export class PullRequest extends OwnedObject {
|
|
|
32
39
|
}
|
|
33
40
|
|
|
34
41
|
static get deleteMethodName() {
|
|
35
|
-
return "_deletePullRequest";
|
|
42
|
+
return "_deletePullRequest";
|
|
36
43
|
}
|
|
37
|
-
|
|
44
|
+
|
|
38
45
|
static get type() {
|
|
39
46
|
return "pull-request";
|
|
40
47
|
}
|
|
@@ -85,10 +92,10 @@ export class PullRequest extends OwnedObject {
|
|
|
85
92
|
static get attributes() {
|
|
86
93
|
return {
|
|
87
94
|
...super.attributes,
|
|
88
|
-
body,
|
|
89
|
-
title,
|
|
95
|
+
body: body_attribute,
|
|
96
|
+
title: title_attribute,
|
|
90
97
|
url: url_attribute,
|
|
91
|
-
|
|
98
|
+
|
|
92
99
|
/**
|
|
93
100
|
* state of the pull request.
|
|
94
101
|
* - OPEN
|
|
@@ -97,10 +104,9 @@ export class PullRequest extends OwnedObject {
|
|
|
97
104
|
* @return {string}
|
|
98
105
|
*/
|
|
99
106
|
state: {
|
|
100
|
-
...
|
|
107
|
+
...state_attribute,
|
|
101
108
|
default: "OPEN",
|
|
102
|
-
values: new Set(["OPEN", "MERGED", "CLOSED"])
|
|
103
|
-
writable: true
|
|
109
|
+
values: new Set(["OPEN", "MERGED", "CLOSED"])
|
|
104
110
|
},
|
|
105
111
|
|
|
106
112
|
/**
|
package/src/repository-group.mjs
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
import { RepositoryOwner } from "./repository-owner.mjs";
|
|
2
2
|
import { OwnedObject } from "./owned-object.mjs";
|
|
3
3
|
import { BaseProvider } from "./base-provider.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import {
|
|
5
|
+
url_attribute,
|
|
6
|
+
boolean_attribute,
|
|
7
|
+
type_attribute
|
|
8
|
+
} from "./attributes.mjs";
|
|
5
9
|
|
|
6
10
|
/**
|
|
7
11
|
* Abstract repository collection.
|
|
@@ -18,13 +22,12 @@ import { url_attribute, boolean_attribute, type } from "./attributes.mjs";
|
|
|
18
22
|
*/
|
|
19
23
|
|
|
20
24
|
export class RepositoryGroup extends RepositoryOwner(OwnedObject) {
|
|
21
|
-
|
|
22
25
|
static get addMethodName() {
|
|
23
26
|
return "_addRepositoryGroup";
|
|
24
27
|
}
|
|
25
28
|
|
|
26
29
|
static get deleteMethodName() {
|
|
27
|
-
return "_deleteRepositoryGroup";
|
|
30
|
+
return "_deleteRepositoryGroup";
|
|
28
31
|
}
|
|
29
32
|
|
|
30
33
|
static get type() {
|
|
@@ -42,7 +45,7 @@ export class RepositoryGroup extends RepositoryOwner(OwnedObject) {
|
|
|
42
45
|
/**
|
|
43
46
|
* Type of the repository group either User or Organization.
|
|
44
47
|
*/
|
|
45
|
-
type,
|
|
48
|
+
type: type_attribute,
|
|
46
49
|
url: url_attribute,
|
|
47
50
|
avatarURL: url_attribute,
|
|
48
51
|
isAdmin: boolean_attribute
|