repository-provider 35.4.33 → 35.5.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.
- package/package.json +3 -3
- package/src/attribute-extras.mjs +0 -1
- package/src/base-object.mjs +1 -1
- package/src/base-provider.mjs +7 -8
- package/src/hook.mjs +2 -2
- package/src/index.mjs +0 -1
- package/src/milestone.mjs +1 -1
- package/src/named-object.mjs +3 -3
- package/src/pull-request.mjs +6 -6
- package/src/ref.mjs +1 -1
- package/src/repository-group.mjs +4 -4
- package/src/repository.mjs +6 -6
- package/types/base-provider.d.mts +0 -2
- package/types/hook.d.mts +0 -2
- package/types/index.d.mts +0 -1
- package/types/pull-request.d.mts +0 -1
- package/types/repository.d.mts +0 -1
- package/src/attributes.mjs +0 -164
- package/types/attributes.d.mts +0 -87
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "repository-provider",
|
|
3
|
-
"version": "35.
|
|
3
|
+
"version": "35.5.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public",
|
|
6
6
|
"provenance": true
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"content-entry": "^14.2.3",
|
|
41
41
|
"matching-iterator": "^2.1.4",
|
|
42
|
-
"pacc": "^3.
|
|
42
|
+
"pacc": "^3.8.0"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"ava": "^6.4.1",
|
|
46
46
|
"browser-ava": "^2.3.31",
|
|
47
47
|
"c8": "^10.1.3",
|
|
48
48
|
"documentation": "^14.0.3",
|
|
49
|
-
"repository-provider-test-support": "^3.1.
|
|
49
|
+
"repository-provider-test-support": "^3.1.47",
|
|
50
50
|
"semantic-release": "^24.2.7",
|
|
51
51
|
"typescript": "^5.8.3"
|
|
52
52
|
},
|
package/src/attribute-extras.mjs
CHANGED
package/src/base-object.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
definePropertiesFromOptions,
|
|
3
3
|
mapAttributes
|
|
4
4
|
} from "./attribute-extras.mjs";
|
|
5
|
-
import { description_attribute, id_attribute } from "
|
|
5
|
+
import { description_attribute, id_attribute } from "pacc";
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
8
|
* Creates an instance of BaseObject.
|
package/src/base-provider.mjs
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
url_attribute,
|
|
3
|
+
name_attribute,
|
|
4
|
+
description_attribute,
|
|
5
|
+
priority_attribute,
|
|
6
|
+
default_attribute
|
|
7
|
+
} from "pacc";
|
|
2
8
|
import { asArray, stripBaseName } from "./util.mjs";
|
|
3
9
|
import { PullRequest } from "./pull-request.mjs";
|
|
4
10
|
import { RepositoryGroup } from "./repository-group.mjs";
|
|
@@ -7,13 +13,6 @@ import { Repository } from "./repository.mjs";
|
|
|
7
13
|
import { Tag } from "./tag.mjs";
|
|
8
14
|
import { Branch } from "./branch.mjs";
|
|
9
15
|
import { Hook } from "./hook.mjs";
|
|
10
|
-
import {
|
|
11
|
-
url_attribute,
|
|
12
|
-
name_attribute,
|
|
13
|
-
description_attribute,
|
|
14
|
-
priority_attribute,
|
|
15
|
-
default_attribute
|
|
16
|
-
} from "./attributes.mjs";
|
|
17
16
|
|
|
18
17
|
/**
|
|
19
18
|
* @typedef {import('./project.mjs').Project} Project
|
package/src/hook.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { OwnedObject } from "./owned-object.mjs";
|
|
2
1
|
import {
|
|
3
2
|
secret_attribute,
|
|
4
3
|
boolean_attribute,
|
|
5
4
|
active_attribute,
|
|
6
5
|
url_attribute,
|
|
7
6
|
default_attribute
|
|
8
|
-
} from "
|
|
7
|
+
} from "pacc";
|
|
8
|
+
import { OwnedObject } from "./owned-object.mjs";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Repository hook.
|
package/src/index.mjs
CHANGED
package/src/milestone.mjs
CHANGED
package/src/named-object.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { optionJSON } from "./attribute-extras.mjs";
|
|
2
|
-
import { BaseObject } from "./base-object.mjs";
|
|
3
1
|
import {
|
|
4
2
|
name_attribute,
|
|
5
3
|
description_attribute,
|
|
6
4
|
id_attribute
|
|
7
|
-
} from "
|
|
5
|
+
} from "pacc";
|
|
6
|
+
import { optionJSON } from "./attribute-extras.mjs";
|
|
7
|
+
import { BaseObject } from "./base-object.mjs";
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Object with a name.
|
package/src/pull-request.mjs
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
import { optionJSON } from "./attribute-extras.mjs";
|
|
2
|
-
import { OwnedObject } from "./owned-object.mjs";
|
|
3
|
-
import { Branch } from "./branch.mjs";
|
|
4
|
-
import { Repository } from "./repository.mjs";
|
|
5
|
-
import { Review } from "./review.mjs";
|
|
6
1
|
import {
|
|
7
2
|
url_attribute,
|
|
8
3
|
state_attribute,
|
|
@@ -10,7 +5,12 @@ import {
|
|
|
10
5
|
title_attribute,
|
|
11
6
|
boolean_attribute,
|
|
12
7
|
empty_attribute
|
|
13
|
-
} from "
|
|
8
|
+
} from "pacc";
|
|
9
|
+
import { optionJSON } from "./attribute-extras.mjs";
|
|
10
|
+
import { OwnedObject } from "./owned-object.mjs";
|
|
11
|
+
import { Branch } from "./branch.mjs";
|
|
12
|
+
import { Repository } from "./repository.mjs";
|
|
13
|
+
import { Review } from "./review.mjs";
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
16
|
* Abstract pull request.
|
package/src/ref.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { name_attribute, boolean_attribute } from "pacc";
|
|
1
2
|
import { ContentEntry } from "content-entry";
|
|
2
3
|
import { OwnedObject } from "./owned-object.mjs";
|
|
3
|
-
import { name_attribute, boolean_attribute } from "./attributes.mjs";
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* @typedef {import('./repository.mjs').Repository} Repository
|
package/src/repository-group.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { RepositoryOwner } from "./repository-owner.mjs";
|
|
2
|
-
import { OwnedObject } from "./owned-object.mjs";
|
|
3
|
-
import { BaseProvider } from "./base-provider.mjs";
|
|
4
1
|
import {
|
|
5
2
|
url_attribute,
|
|
6
3
|
boolean_attribute,
|
|
7
4
|
type_attribute
|
|
8
|
-
} from "
|
|
5
|
+
} from "pacc";
|
|
6
|
+
import { RepositoryOwner } from "./repository-owner.mjs";
|
|
7
|
+
import { OwnedObject } from "./owned-object.mjs";
|
|
8
|
+
import { BaseProvider } from "./base-provider.mjs";
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* Abstract repository collection.
|
package/src/repository.mjs
CHANGED
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
import {
|
|
2
|
+
url_attribute,
|
|
3
|
+
boolean_attribute,
|
|
4
|
+
boolean_read_only_attribute,
|
|
5
|
+
default_attribute
|
|
6
|
+
} from "pacc";
|
|
1
7
|
import { matcher } from "matching-iterator";
|
|
2
8
|
import { ContentEntry } from "content-entry";
|
|
3
9
|
import { OwnedObject } from "./owned-object.mjs";
|
|
@@ -10,12 +16,6 @@ import { Commit } from "./commit.mjs";
|
|
|
10
16
|
import { Milestone } from "./milestone.mjs";
|
|
11
17
|
import { Project } from "./project.mjs";
|
|
12
18
|
import { Application } from "./application.mjs";
|
|
13
|
-
import {
|
|
14
|
-
url_attribute,
|
|
15
|
-
boolean_attribute,
|
|
16
|
-
boolean_read_only_attribute,
|
|
17
|
-
default_attribute
|
|
18
|
-
} from "./attributes.mjs";
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Abstract repository
|
|
@@ -54,7 +54,6 @@ export class BaseProvider extends BaseObject {
|
|
|
54
54
|
*/
|
|
55
55
|
name: {
|
|
56
56
|
env: string;
|
|
57
|
-
name: string;
|
|
58
57
|
type: string;
|
|
59
58
|
isKey: boolean;
|
|
60
59
|
writable: boolean;
|
|
@@ -78,7 +77,6 @@ export class BaseProvider extends BaseObject {
|
|
|
78
77
|
default: Console;
|
|
79
78
|
writable: boolean;
|
|
80
79
|
private: boolean;
|
|
81
|
-
name: string;
|
|
82
80
|
isKey: boolean;
|
|
83
81
|
mandatory: boolean;
|
|
84
82
|
depends?: string;
|
package/types/hook.d.mts
CHANGED
|
@@ -9,7 +9,6 @@ export class Hook extends OwnedObject {
|
|
|
9
9
|
url: {
|
|
10
10
|
description: string;
|
|
11
11
|
writable: boolean;
|
|
12
|
-
name: string;
|
|
13
12
|
type: string;
|
|
14
13
|
isKey: boolean;
|
|
15
14
|
mandatory: boolean;
|
|
@@ -24,7 +23,6 @@ export class Hook extends OwnedObject {
|
|
|
24
23
|
content_type: {
|
|
25
24
|
default: string;
|
|
26
25
|
writable: boolean;
|
|
27
|
-
name: string;
|
|
28
26
|
type: string;
|
|
29
27
|
isKey: boolean;
|
|
30
28
|
mandatory: boolean;
|
package/types/index.d.mts
CHANGED
|
@@ -17,7 +17,6 @@ export * from "./review.mjs";
|
|
|
17
17
|
export * from "./application.mjs";
|
|
18
18
|
export * from "./attribute-extras.mjs";
|
|
19
19
|
export * from "./util.mjs";
|
|
20
|
-
export * from "./attributes.mjs";
|
|
21
20
|
export { OwnedObject } from "./owned-object.mjs";
|
|
22
21
|
export { BaseProvider } from "./base-provider.mjs";
|
|
23
22
|
export { Ref } from "./ref.mjs";
|
package/types/pull-request.d.mts
CHANGED
package/types/repository.d.mts
CHANGED
package/src/attributes.mjs
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {import('pacc').AttributeDefinition} AttributeDefinition
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Common attribute properties.
|
|
7
|
-
* @type {AttributeDefinition}
|
|
8
|
-
*/
|
|
9
|
-
export const default_attribute = {
|
|
10
|
-
type: "string",
|
|
11
|
-
writable: false,
|
|
12
|
-
mandatory: false,
|
|
13
|
-
private: false,
|
|
14
|
-
isKey: false,
|
|
15
|
-
additionalAttributes: [],
|
|
16
|
-
env: []
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* @type {AttributeDefinition}
|
|
21
|
-
*/
|
|
22
|
-
export const boolean_attribute = {
|
|
23
|
-
...default_attribute,
|
|
24
|
-
type: "boolean",
|
|
25
|
-
writable: true,
|
|
26
|
-
default: false
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* @type {AttributeDefinition}
|
|
31
|
-
*/
|
|
32
|
-
export const boolean_read_only_attribute = {
|
|
33
|
-
...default_attribute,
|
|
34
|
-
type: "boolean",
|
|
35
|
-
default: false
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/**
|
|
39
|
-
* @type {AttributeDefinition}
|
|
40
|
-
*/
|
|
41
|
-
export const uuid_attribute = {
|
|
42
|
-
...default_attribute,
|
|
43
|
-
isKey: true
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @type {AttributeDefinition}
|
|
48
|
-
*/
|
|
49
|
-
export const empty_attribute = { ...default_attribute, type: "boolean" };
|
|
50
|
-
|
|
51
|
-
/**
|
|
52
|
-
* @type {AttributeDefinition}
|
|
53
|
-
*/
|
|
54
|
-
export const secret_attribute = {
|
|
55
|
-
...default_attribute,
|
|
56
|
-
private: true,
|
|
57
|
-
writable: true
|
|
58
|
-
};
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* @type {AttributeDefinition}
|
|
62
|
-
*/
|
|
63
|
-
export const count_attribute = { ...default_attribute, type: "integer" };
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* @type {AttributeDefinition}
|
|
67
|
-
*/
|
|
68
|
-
export const size_attribute = { ...default_attribute, type: "integer" };
|
|
69
|
-
|
|
70
|
-
/**
|
|
71
|
-
* @type {AttributeDefinition}
|
|
72
|
-
*/
|
|
73
|
-
export const name_attribute = {
|
|
74
|
-
...default_attribute,
|
|
75
|
-
isKey: true
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
/**
|
|
79
|
-
* @type {AttributeDefinition}
|
|
80
|
-
*/
|
|
81
|
-
export const url_attribute = {
|
|
82
|
-
...default_attribute,
|
|
83
|
-
type: "url",
|
|
84
|
-
description: "home of the object"
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
/**
|
|
88
|
-
* The description of the object content.
|
|
89
|
-
* @type {AttributeDefinition}
|
|
90
|
-
*/
|
|
91
|
-
export const description_attribute = {
|
|
92
|
-
...default_attribute,
|
|
93
|
-
description: "human readable description",
|
|
94
|
-
writable: true
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* Unique id within the provider.
|
|
99
|
-
* @type {AttributeDefinition}
|
|
100
|
-
*/
|
|
101
|
-
export const id_attribute = {
|
|
102
|
-
...default_attribute,
|
|
103
|
-
isKey: true,
|
|
104
|
-
description: "internal identifier"
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* @type {AttributeDefinition}
|
|
109
|
-
*/
|
|
110
|
-
export const state_attribute = {
|
|
111
|
-
...default_attribute,
|
|
112
|
-
writable: true
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* The body text of the pull request.
|
|
117
|
-
* @type {AttributeDefinition}
|
|
118
|
-
*/
|
|
119
|
-
export const body_attribute = {
|
|
120
|
-
...default_attribute,
|
|
121
|
-
writable: true
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
/**
|
|
125
|
-
* The one line description of the pull request.
|
|
126
|
-
* @type {AttributeDefinition}
|
|
127
|
-
*/
|
|
128
|
-
export const title_attribute = {
|
|
129
|
-
...default_attribute,
|
|
130
|
-
description: "human readable title",
|
|
131
|
-
writable: true
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* In case there are several providers able to support a given source which one sould be used ?
|
|
136
|
-
* this defines the order.
|
|
137
|
-
* @type {AttributeDefinition}
|
|
138
|
-
*/
|
|
139
|
-
export const priority_attribute = {
|
|
140
|
-
...default_attribute,
|
|
141
|
-
type: "number",
|
|
142
|
-
default: 0,
|
|
143
|
-
writable: true
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
/**
|
|
147
|
-
* @type {AttributeDefinition}
|
|
148
|
-
*/
|
|
149
|
-
export const active_attribute = {
|
|
150
|
-
...default_attribute,
|
|
151
|
-
type: "boolean",
|
|
152
|
-
default: true,
|
|
153
|
-
writable: true
|
|
154
|
-
};
|
|
155
|
-
|
|
156
|
-
/**
|
|
157
|
-
* @type {AttributeDefinition}
|
|
158
|
-
*/
|
|
159
|
-
export const language_attribute = default_attribute;
|
|
160
|
-
|
|
161
|
-
/**
|
|
162
|
-
* @type {AttributeDefinition}
|
|
163
|
-
*/
|
|
164
|
-
export const type_attribute = default_attribute;
|
package/types/attributes.d.mts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {import('pacc').AttributeDefinition} AttributeDefinition
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Common attribute properties.
|
|
6
|
-
* @type {AttributeDefinition}
|
|
7
|
-
*/
|
|
8
|
-
export const default_attribute: AttributeDefinition;
|
|
9
|
-
/**
|
|
10
|
-
* @type {AttributeDefinition}
|
|
11
|
-
*/
|
|
12
|
-
export const boolean_attribute: AttributeDefinition;
|
|
13
|
-
/**
|
|
14
|
-
* @type {AttributeDefinition}
|
|
15
|
-
*/
|
|
16
|
-
export const boolean_read_only_attribute: AttributeDefinition;
|
|
17
|
-
/**
|
|
18
|
-
* @type {AttributeDefinition}
|
|
19
|
-
*/
|
|
20
|
-
export const uuid_attribute: AttributeDefinition;
|
|
21
|
-
/**
|
|
22
|
-
* @type {AttributeDefinition}
|
|
23
|
-
*/
|
|
24
|
-
export const empty_attribute: AttributeDefinition;
|
|
25
|
-
/**
|
|
26
|
-
* @type {AttributeDefinition}
|
|
27
|
-
*/
|
|
28
|
-
export const secret_attribute: AttributeDefinition;
|
|
29
|
-
/**
|
|
30
|
-
* @type {AttributeDefinition}
|
|
31
|
-
*/
|
|
32
|
-
export const count_attribute: AttributeDefinition;
|
|
33
|
-
/**
|
|
34
|
-
* @type {AttributeDefinition}
|
|
35
|
-
*/
|
|
36
|
-
export const size_attribute: AttributeDefinition;
|
|
37
|
-
/**
|
|
38
|
-
* @type {AttributeDefinition}
|
|
39
|
-
*/
|
|
40
|
-
export const name_attribute: AttributeDefinition;
|
|
41
|
-
/**
|
|
42
|
-
* @type {AttributeDefinition}
|
|
43
|
-
*/
|
|
44
|
-
export const url_attribute: AttributeDefinition;
|
|
45
|
-
/**
|
|
46
|
-
* The description of the object content.
|
|
47
|
-
* @type {AttributeDefinition}
|
|
48
|
-
*/
|
|
49
|
-
export const description_attribute: AttributeDefinition;
|
|
50
|
-
/**
|
|
51
|
-
* Unique id within the provider.
|
|
52
|
-
* @type {AttributeDefinition}
|
|
53
|
-
*/
|
|
54
|
-
export const id_attribute: AttributeDefinition;
|
|
55
|
-
/**
|
|
56
|
-
* @type {AttributeDefinition}
|
|
57
|
-
*/
|
|
58
|
-
export const state_attribute: AttributeDefinition;
|
|
59
|
-
/**
|
|
60
|
-
* The body text of the pull request.
|
|
61
|
-
* @type {AttributeDefinition}
|
|
62
|
-
*/
|
|
63
|
-
export const body_attribute: AttributeDefinition;
|
|
64
|
-
/**
|
|
65
|
-
* The one line description of the pull request.
|
|
66
|
-
* @type {AttributeDefinition}
|
|
67
|
-
*/
|
|
68
|
-
export const title_attribute: AttributeDefinition;
|
|
69
|
-
/**
|
|
70
|
-
* In case there are several providers able to support a given source which one sould be used ?
|
|
71
|
-
* this defines the order.
|
|
72
|
-
* @type {AttributeDefinition}
|
|
73
|
-
*/
|
|
74
|
-
export const priority_attribute: AttributeDefinition;
|
|
75
|
-
/**
|
|
76
|
-
* @type {AttributeDefinition}
|
|
77
|
-
*/
|
|
78
|
-
export const active_attribute: AttributeDefinition;
|
|
79
|
-
/**
|
|
80
|
-
* @type {AttributeDefinition}
|
|
81
|
-
*/
|
|
82
|
-
export const language_attribute: AttributeDefinition;
|
|
83
|
-
/**
|
|
84
|
-
* @type {AttributeDefinition}
|
|
85
|
-
*/
|
|
86
|
-
export const type_attribute: AttributeDefinition;
|
|
87
|
-
export type AttributeDefinition = import("pacc").AttributeDefinition;
|