repository-provider 35.4.34 → 35.5.1

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 CHANGED
@@ -55,26 +55,6 @@ console.log(await readme.string);
55
55
  * [Parameters](#parameters-2)
56
56
  * [mapAttributesInverse](#mapattributesinverse)
57
57
  * [Parameters](#parameters-3)
58
- * [default\_attribute](#default_attribute)
59
- * [default\_attribute](#default_attribute-1)
60
- * [boolean\_attribute](#boolean_attribute)
61
- * [boolean\_read\_only\_attribute](#boolean_read_only_attribute)
62
- * [uuid\_attribute](#uuid_attribute)
63
- * [empty\_attribute](#empty_attribute)
64
- * [secret\_attribute](#secret_attribute)
65
- * [count\_attribute](#count_attribute)
66
- * [size\_attribute](#size_attribute)
67
- * [name\_attribute](#name_attribute)
68
- * [url\_attribute](#url_attribute)
69
- * [description\_attribute](#description_attribute)
70
- * [id\_attribute](#id_attribute)
71
- * [state\_attribute](#state_attribute)
72
- * [body\_attribute](#body_attribute)
73
- * [title\_attribute](#title_attribute)
74
- * [priority\_attribute](#priority_attribute)
75
- * [active\_attribute](#active_attribute)
76
- * [language\_attribute](#language_attribute)
77
- * [type\_attribute](#type_attribute)
78
58
  * [BaseObject](#baseobject)
79
59
  * [Parameters](#parameters-4)
80
60
  * [Properties](#properties)
@@ -523,97 +503,6 @@ Filters out null, undefined and empty strings
523
503
 
524
504
  Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** keys renamed after mapping
525
505
 
526
- ## default\_attribute
527
-
528
- ## default\_attribute
529
-
530
- Common attribute properties.
531
-
532
- Type: AttributeDefinition
533
-
534
- ## boolean\_attribute
535
-
536
- Type: AttributeDefinition
537
-
538
- ## boolean\_read\_only\_attribute
539
-
540
- Type: AttributeDefinition
541
-
542
- ## uuid\_attribute
543
-
544
- Type: AttributeDefinition
545
-
546
- ## empty\_attribute
547
-
548
- Type: AttributeDefinition
549
-
550
- ## secret\_attribute
551
-
552
- Type: AttributeDefinition
553
-
554
- ## count\_attribute
555
-
556
- Type: AttributeDefinition
557
-
558
- ## size\_attribute
559
-
560
- Type: AttributeDefinition
561
-
562
- ## name\_attribute
563
-
564
- Type: AttributeDefinition
565
-
566
- ## url\_attribute
567
-
568
- Type: AttributeDefinition
569
-
570
- ## description\_attribute
571
-
572
- The description of the object content.
573
-
574
- Type: AttributeDefinition
575
-
576
- ## id\_attribute
577
-
578
- Unique id within the provider.
579
-
580
- Type: AttributeDefinition
581
-
582
- ## state\_attribute
583
-
584
- Type: AttributeDefinition
585
-
586
- ## body\_attribute
587
-
588
- The body text of the pull request.
589
-
590
- Type: AttributeDefinition
591
-
592
- ## title\_attribute
593
-
594
- The one line description of the pull request.
595
-
596
- Type: AttributeDefinition
597
-
598
- ## priority\_attribute
599
-
600
- In case there are several providers able to support a given source which one sould be used ?
601
- this defines the order.
602
-
603
- Type: AttributeDefinition
604
-
605
- ## active\_attribute
606
-
607
- Type: AttributeDefinition
608
-
609
- ## language\_attribute
610
-
611
- Type: AttributeDefinition
612
-
613
- ## type\_attribute
614
-
615
- Type: AttributeDefinition
616
-
617
506
  ## BaseObject
618
507
 
619
508
  Creates an instance of BaseObject.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "35.4.34",
3
+ "version": "35.5.1",
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.7.0"
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.47",
49
+ "repository-provider-test-support": "^3.1.48",
50
50
  "semantic-release": "^24.2.7",
51
51
  "typescript": "^5.8.3"
52
52
  },
@@ -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;