repository-provider 35.4.34 → 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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "35.4.34",
3
+ "version": "35.5.0",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -39,7 +39,7 @@
39
39
  "dependencies": {
40
40
  "content-entry": "^14.2.3",
41
41
  "matching-iterator": "^2.1.4",
42
- "pacc": "^3.7.0"
42
+ "pacc": "^3.8.0"
43
43
  },
44
44
  "devDependencies": {
45
45
  "ava": "^6.4.1",
@@ -1,6 +1,5 @@
1
1
  import { setAttribute, getAttribute } from "pacc";
2
2
 
3
-
4
3
  /**
5
4
  * Create properties from options and default options.
6
5
  * Already present properties (direct) are skipped.
@@ -2,7 +2,7 @@ import {
2
2
  definePropertiesFromOptions,
3
3
  mapAttributes
4
4
  } from "./attribute-extras.mjs";
5
- import { description_attribute, id_attribute } from "./attributes.mjs";
5
+ import { description_attribute, id_attribute } from "pacc";
6
6
 
7
7
  /**
8
8
  * Creates an instance of BaseObject.
@@ -1,4 +1,10 @@
1
- import { ContentEntry } from "content-entry";
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 "./attributes.mjs";
7
+ } from "pacc";
8
+ import { OwnedObject } from "./owned-object.mjs";
9
9
 
10
10
  /**
11
11
  * Repository hook.
package/src/index.mjs CHANGED
@@ -20,4 +20,3 @@ export * from "./review.mjs";
20
20
  export * from "./application.mjs";
21
21
  export * from "./attribute-extras.mjs";
22
22
  export * from "./util.mjs";
23
- export * from "./attributes.mjs";
package/src/milestone.mjs CHANGED
@@ -1,5 +1,5 @@
1
+ import { state_attribute } from "pacc";
1
2
  import { OwnedObject } from "./owned-object.mjs";
2
- import { state_attribute } from "./attributes.mjs";
3
3
 
4
4
  /**
5
5
  */
@@ -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 "./attributes.mjs";
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.
@@ -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 "./attributes.mjs";
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
@@ -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 "./attributes.mjs";
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.
@@ -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
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";
@@ -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;
@@ -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;