repository-provider 35.2.6 → 35.2.8

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
@@ -58,11 +58,25 @@ console.log(await readme.string);
58
58
  * [mapAttributesInverse](#mapattributesinverse)
59
59
  * [Parameters](#parameters-4)
60
60
  * [default\_attribute](#default_attribute)
61
+ * [default\_attribute](#default_attribute-1)
62
+ * [boolean\_attribute](#boolean_attribute)
63
+ * [boolean\_read\_only\_attribute](#boolean_read_only_attribute)
64
+ * [uuid\_attribute](#uuid_attribute)
65
+ * [empty\_attiribute](#empty_attiribute)
66
+ * [secret\_attribute](#secret_attribute)
67
+ * [count\_attribute](#count_attribute)
68
+ * [size\_attribute](#size_attribute)
69
+ * [name\_attribute](#name_attribute)
70
+ * [url\_attribute](#url_attribute)
61
71
  * [description\_attribute](#description_attribute)
62
72
  * [id\_attribute](#id_attribute)
73
+ * [state\_attribute](#state_attribute)
63
74
  * [body\_attribute](#body_attribute)
64
75
  * [title\_attribute](#title_attribute)
65
76
  * [priority\_attribute](#priority_attribute)
77
+ * [active\_attribute](#active_attribute)
78
+ * [language\_attribute](#language_attribute)
79
+ * [type\_attribute](#type_attribute)
66
80
  * [BaseObject](#baseobject)
67
81
  * [Parameters](#parameters-5)
68
82
  * [Properties](#properties)
@@ -114,13 +128,6 @@ console.log(await readme.string);
114
128
  * [name](#name)
115
129
  * [provider](#provider)
116
130
  * [toJSON](#tojson)
117
- * [repositoryGroupClass](#repositorygroupclass)
118
- * [hookClass](#hookclass)
119
- * [repositoryClass](#repositoryclass)
120
- * [branchClass](#branchclass)
121
- * [tagClass](#tagclass)
122
- * [entryClass](#entryclass)
123
- * [pullRequestClass](#pullrequestclass)
124
131
  * [instanceIdentifier](#instanceidentifier)
125
132
  * [optionsFromEnvironment](#optionsfromenvironment)
126
133
  * [Parameters](#parameters-22)
@@ -164,13 +171,6 @@ console.log(await readme.string);
164
171
  * [name](#name-1)
165
172
  * [provider](#provider-1)
166
173
  * [toJSON](#tojson-1)
167
- * [repositoryGroupClass](#repositorygroupclass-1)
168
- * [hookClass](#hookclass-1)
169
- * [repositoryClass](#repositoryclass-1)
170
- * [branchClass](#branchclass-1)
171
- * [tagClass](#tagclass-1)
172
- * [entryClass](#entryclass-1)
173
- * [pullRequestClass](#pullrequestclass-1)
174
174
  * [instanceIdentifier](#instanceidentifier-1)
175
175
  * [optionsFromEnvironment](#optionsfromenvironment-1)
176
176
  * [Parameters](#parameters-39)
@@ -265,12 +265,6 @@ console.log(await readme.string);
265
265
  * [Parameters](#parameters-65)
266
266
  * [debug](#debug)
267
267
  * [Parameters](#parameters-66)
268
- * [repositoryClass](#repositoryclass-2)
269
- * [pullRequestClass](#pullrequestclass-2)
270
- * [branchClass](#branchclass-2)
271
- * [tagClass](#tagclass-2)
272
- * [entryClass](#entryclass-2)
273
- * [hookClass](#hookclass-2)
274
268
  * [addMethodName](#addmethodname)
275
269
  * [deleteMethodName](#deletemethodname)
276
270
  * [OwnedObject](#ownedobject-1)
@@ -299,12 +293,6 @@ console.log(await readme.string);
299
293
  * [Parameters](#parameters-72)
300
294
  * [debug](#debug-1)
301
295
  * [Parameters](#parameters-73)
302
- * [repositoryClass](#repositoryclass-3)
303
- * [pullRequestClass](#pullrequestclass-3)
304
- * [branchClass](#branchclass-3)
305
- * [tagClass](#tagclass-3)
306
- * [entryClass](#entryclass-3)
307
- * [hookClass](#hookclass-3)
308
296
  * [addMethodName](#addmethodname-1)
309
297
  * [deleteMethodName](#deletemethodname-1)
310
298
  * [Project](#project)
@@ -491,7 +479,7 @@ Object.definedProperties(new aClass(),{ with_default: { value: 77 }})
491
479
  ### Parameters
492
480
 
493
481
  * `object` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** target object
494
- * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** as passed to object constructor (optional, default `{}`)
482
+ * `options` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** as passed to object constructor. Used as values for the attributes. (optional, default `{}`)
495
483
  * `properties` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)** object properties (optional, default `{}`)
496
484
  * `attributes` **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)?** attribute meta info (optional, default `object.constructor.attributes`)
497
485
 
@@ -549,28 +537,94 @@ Returns **[Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/G
549
537
 
550
538
  ## default\_attribute
551
539
 
552
- common attributes
540
+ ## default\_attribute
541
+
542
+ Common attribute properties.
543
+
544
+ Type: AttributeDefinition
545
+
546
+ ## boolean\_attribute
547
+
548
+ Type: AttributeDefinition
549
+
550
+ ## boolean\_read\_only\_attribute
551
+
552
+ Type: AttributeDefinition
553
+
554
+ ## uuid\_attribute
555
+
556
+ Type: AttributeDefinition
557
+
558
+ ## empty\_attiribute
559
+
560
+ Type: AttributeDefinition
561
+
562
+ ## secret\_attribute
563
+
564
+ Type: AttributeDefinition
565
+
566
+ ## count\_attribute
567
+
568
+ Type: AttributeDefinition
569
+
570
+ ## size\_attribute
571
+
572
+ Type: AttributeDefinition
573
+
574
+ ## name\_attribute
575
+
576
+ Type: AttributeDefinition
577
+
578
+ ## url\_attribute
579
+
580
+ Type: AttributeDefinition
553
581
 
554
582
  ## description\_attribute
555
583
 
556
584
  The description of the object content.
557
585
 
586
+ Type: AttributeDefinition
587
+
558
588
  ## id\_attribute
559
589
 
560
590
  Unique id within the provider.
561
591
 
592
+ Type: AttributeDefinition
593
+
594
+ ## state\_attribute
595
+
596
+ Type: AttributeDefinition
597
+
562
598
  ## body\_attribute
563
599
 
564
600
  The description of the pull request.
565
601
 
602
+ Type: AttributeDefinition
603
+
566
604
  ## title\_attribute
567
605
 
568
606
  The one line description of the pull request.
569
607
 
608
+ Type: AttributeDefinition
609
+
570
610
  ## priority\_attribute
571
611
 
572
612
  In case there are several providers able to support a given source which one sould be used ?
573
- this defines the order
613
+ this defines the order.
614
+
615
+ Type: AttributeDefinition
616
+
617
+ ## active\_attribute
618
+
619
+ Type: AttributeDefinition
620
+
621
+ ## language\_attribute
622
+
623
+ Type: AttributeDefinition
624
+
625
+ ## type\_attribute
626
+
627
+ Type: AttributeDefinition
574
628
 
575
629
  ## BaseObject
576
630
 
@@ -847,20 +901,6 @@ Returns **[BaseProvider](#baseprovider)** this
847
901
  List all defined entries from attributes.
848
902
  return {object}
849
903
 
850
- ### repositoryGroupClass
851
-
852
- ### hookClass
853
-
854
- ### repositoryClass
855
-
856
- ### branchClass
857
-
858
- ### tagClass
859
-
860
- ### entryClass
861
-
862
- ### pullRequestClass
863
-
864
904
  ### instanceIdentifier
865
905
 
866
906
  Prefix used to form environment variables.
@@ -1101,20 +1141,6 @@ Returns **[BaseProvider](#baseprovider)** this
1101
1141
  List all defined entries from attributes.
1102
1142
  return {object}
1103
1143
 
1104
- ### repositoryGroupClass
1105
-
1106
- ### hookClass
1107
-
1108
- ### repositoryClass
1109
-
1110
- ### branchClass
1111
-
1112
- ### tagClass
1113
-
1114
- ### entryClass
1115
-
1116
- ### pullRequestClass
1117
-
1118
1144
  ### instanceIdentifier
1119
1145
 
1120
1146
  Prefix used to form environment variables.
@@ -1614,42 +1640,6 @@ Forwarded to the owner.
1614
1640
 
1615
1641
  * `args` **...any** 
1616
1642
 
1617
- ### repositoryClass
1618
-
1619
- By default we use the owners implementation.
1620
-
1621
- Returns **[Repository](#repository)** as defined in the owner
1622
-
1623
- ### pullRequestClass
1624
-
1625
- By default we use the owners implementation.
1626
-
1627
- Returns **[PullRequest](#pullrequest)** as defined in the owner
1628
-
1629
- ### branchClass
1630
-
1631
- By default we use the owners implementation.
1632
-
1633
- Returns **[Branch](#branch)** as defined in the owner
1634
-
1635
- ### tagClass
1636
-
1637
- By default we use the owners implementation.
1638
-
1639
- Returns **[Tag](#tag)** as defined in the owner
1640
-
1641
- ### entryClass
1642
-
1643
- By default we use the owners implementation.
1644
-
1645
- Returns **ContentEntry** as defined in the owner
1646
-
1647
- ### hookClass
1648
-
1649
- By default we use the owners implementation.
1650
-
1651
- Returns **[Hook](#hook)** as defined in the owner
1652
-
1653
1643
  ### addMethodName
1654
1644
 
1655
1645
  Method name to be called to register one instance in the owner.
@@ -1799,42 +1789,6 @@ Forwarded to the owner.
1799
1789
 
1800
1790
  * `args` **...any** 
1801
1791
 
1802
- ### repositoryClass
1803
-
1804
- By default we use the owners implementation.
1805
-
1806
- Returns **[Repository](#repository)** as defined in the owner
1807
-
1808
- ### pullRequestClass
1809
-
1810
- By default we use the owners implementation.
1811
-
1812
- Returns **[PullRequest](#pullrequest)** as defined in the owner
1813
-
1814
- ### branchClass
1815
-
1816
- By default we use the owners implementation.
1817
-
1818
- Returns **[Branch](#branch)** as defined in the owner
1819
-
1820
- ### tagClass
1821
-
1822
- By default we use the owners implementation.
1823
-
1824
- Returns **[Tag](#tag)** as defined in the owner
1825
-
1826
- ### entryClass
1827
-
1828
- By default we use the owners implementation.
1829
-
1830
- Returns **ContentEntry** as defined in the owner
1831
-
1832
- ### hookClass
1833
-
1834
- By default we use the owners implementation.
1835
-
1836
- Returns **[Hook](#hook)** as defined in the owner
1837
-
1838
1792
  ### addMethodName
1839
1793
 
1840
1794
  Method name to be called to register one instance in the owner.
@@ -2089,7 +2043,9 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
2089
2043
 
2090
2044
  ### attributes
2091
2045
 
2092
- options
2046
+ Attributes
2047
+
2048
+ Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
2093
2049
 
2094
2050
  ## Ref
2095
2051
 
@@ -2179,7 +2135,9 @@ Returns **[boolean](https://developer.mozilla.org/docs/Web/JavaScript/Reference/
2179
2135
 
2180
2136
  ### attributes
2181
2137
 
2182
- options
2138
+ Attributes
2139
+
2140
+ Type: [Object](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object)
2183
2141
 
2184
2142
  ## isProtected
2185
2143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repository-provider",
3
- "version": "35.2.6",
3
+ "version": "35.2.8",
4
4
  "publishConfig": {
5
5
  "access": "public",
6
6
  "provenance": true
@@ -45,7 +45,7 @@
45
45
  "browser-ava": "^2.2.0",
46
46
  "c8": "^9.1.0",
47
47
  "documentation": "^14.0.3",
48
- "repository-provider-test-support": "^3.0.4",
48
+ "repository-provider-test-support": "^3.0.5",
49
49
  "semantic-release": "^23.0.2",
50
50
  "typescript": "^5.3.3"
51
51
  },
@@ -1,5 +1,6 @@
1
1
  import { setAttribute, getAttribute } from "pacc";
2
2
 
3
+
3
4
  /**
4
5
  * Create properties from options and default options.
5
6
  * Already present properties (direct) are skipped.
@@ -19,7 +20,7 @@ import { setAttribute, getAttribute } from "pacc";
19
20
  * @see Object.definedProperties()
20
21
  * @see Object.getOwnPropertyDescriptor()
21
22
  * @param {Object} object target object
22
- * @param {Object} options as passed to object constructor
23
+ * @param {Object} options as passed to object constructor. Used as values for the attributes.
23
24
  * @param {Object} properties object properties
24
25
  * @param {Object} [attributes] attribute meta info
25
26
  */
@@ -3,7 +3,7 @@
3
3
  */
4
4
 
5
5
  /**
6
- * common attributes
6
+ * Common attribute properties.
7
7
  * @type {AttributeDefinition}
8
8
  */
9
9
  export const default_attribute = {
@@ -21,9 +21,9 @@ export const default_attribute = {
21
21
  */
22
22
  export const boolean_attribute = {
23
23
  ...default_attribute,
24
+ type: "boolean",
24
25
  writable: true,
25
- default: false,
26
- type: "boolean"
26
+ default: false
27
27
  };
28
28
 
29
29
  /**
@@ -80,8 +80,8 @@ export const name_attribute = {
80
80
  */
81
81
  export const url_attribute = {
82
82
  ...default_attribute,
83
- description: "home of the object",
84
- type: "url"
83
+ type: "url",
84
+ description: "home of the object"
85
85
  };
86
86
 
87
87
  /**
@@ -305,7 +305,7 @@ export class BaseProvider extends BaseObject {
305
305
  const rg = await this.repositoryGroup(group);
306
306
  return rg.createRepository(repository, options);
307
307
  }
308
-
308
+
309
309
  /**
310
310
  * List provider objects of a given type.
311
311
  *
@@ -460,51 +460,30 @@ export class BaseProvider extends BaseObject {
460
460
  return this.messageDestination.error(...args);
461
461
  }
462
462
 
463
- /**
464
- * @return {typeof RepositoryGroup} repository group class used by the Provider
465
- */
466
463
  get repositoryGroupClass() {
467
464
  return RepositoryGroup;
468
465
  }
469
466
 
470
- /**
471
- * @return {typeof Hook} hook class used by the Provider
472
- */
473
467
  get hookClass() {
474
468
  return Hook;
475
469
  }
476
470
 
477
- /**
478
- * @return {typeof Repository} repository class used by the Provider
479
- */
480
471
  get repositoryClass() {
481
472
  return Repository;
482
473
  }
483
474
 
484
- /**
485
- * @return {typeof Branch} branch class used by the Provider
486
- */
487
475
  get branchClass() {
488
476
  return Branch;
489
477
  }
490
478
 
491
- /**
492
- * @return {typeof Tag} branch class used by the Provider
493
- */
494
479
  get tagClass() {
495
480
  return Tag;
496
481
  }
497
482
 
498
- /**
499
- * @return {typeof ContentEntry} entry class used by the Provider
500
- */
501
483
  get entryClass() {
502
- return undefined;
484
+ return ContentEntry;
503
485
  }
504
486
 
505
- /**
506
- * @return {typeof PullRequest} pull request class used by the Provider
507
- */
508
487
  get pullRequestClass() {
509
488
  return PullRequest;
510
489
  }
package/src/index.mjs CHANGED
@@ -1,30 +1,20 @@
1
1
  export * from "./base-object.mjs";
2
2
  export * from "./named-object.mjs";
3
- // @ts-ignore
4
- export * from "./owned-object.mjs";
3
+ export { OwnedObject } from "./owned-object.mjs";
5
4
  export * from "./repository-owner.mjs";
6
- // @ts-ignore
7
- export * from "./base-provider.mjs";
5
+ export { BaseProvider } from "./base-provider.mjs";
8
6
  export * from "./single-group-provider.mjs";
9
7
  export * from "./multi-group-provider.mjs";
10
8
  export * from "./repository-group.mjs";
11
- // @ts-ignore
12
9
  export * from "./repository.mjs";
13
- // @ts-ignore
14
- export * from "./ref.mjs";
10
+ export { Ref } from "./ref.mjs";
15
11
  export * from "./commit.mjs";
16
- // @ts-ignore
17
12
  export * from "./branch.mjs";
18
- // @ts-ignore
19
13
  export * from "./tag.mjs";
20
- // @ts-ignore
21
14
  export * from "./project.mjs";
22
15
  export * from "./issue.mjs";
23
- // @ts-ignore
24
16
  export * from "./pull-request.mjs";
25
- // @ts-ignore
26
17
  export * from "./hook.mjs";
27
- // @ts-ignore
28
18
  export * from "./milestone.mjs";
29
19
  export * from "./review.mjs";
30
20
  export * from "./application.mjs";
@@ -6,12 +6,6 @@ import {
6
6
  id_attribute
7
7
  } from "./attributes.mjs";
8
8
 
9
- /**
10
- * @typedef {import('./hook.mjs').Hook} Hook
11
- * @typedef {import('./base-provider.mjs').BaseProvider} BaseProvider
12
- */
13
-
14
-
15
9
  /**
16
10
  * Object with a name.
17
11
  * @param {string} name
@@ -1,14 +1,9 @@
1
- import { ContentEntry } from "content-entry";
2
1
  import { NamedObject } from "./named-object.mjs";
3
2
 
4
- /**
5
- * @typedef {import('./base-provider.mjs').BaseProvider} BaseProvider
6
- * @typedef {import('./repository.mjs').Repository} Repository
7
- * @typedef {import('./hook.mjs').Hook} Hook
8
- * @typedef {import('./tag.mjs').Tag} Tag
9
- * @typedef {import('./branch.mjs').Branch} Branch
10
- * @typedef {import('./pull-request.mjs').PullRequest} PullRequest
11
- */
3
+ /**
4
+ * @typedef {import('./base-provider.mjs').BaseProvider} BaseProvider
5
+ * @typedef {import('./repository.mjs').Repository} Repository
6
+ */
12
7
 
13
8
  /**
14
9
  * Named Object registering itself in the owner.
@@ -189,50 +184,26 @@ export class OwnedObject extends NamedObject {
189
184
  return this.owner.debug(...args);
190
185
  }
191
186
 
192
- /**
193
- * By default we use the owners implementation.
194
- * @return {Repository} as defined in the owner
195
- */
196
187
  get repositoryClass() {
197
188
  return this.owner.repositoryClass;
198
189
  }
199
190
 
200
- /**
201
- * By default we use the owners implementation.
202
- * @return {PullRequest} as defined in the owner
203
- */
204
191
  get pullRequestClass() {
205
192
  return this.owner.pullRequestClass;
206
193
  }
207
194
 
208
- /**
209
- * By default we use the owners implementation.
210
- * @return {Branch} as defined in the owner
211
- */
212
195
  get branchClass() {
213
196
  return this.owner.branchClass;
214
197
  }
215
198
 
216
- /**
217
- * By default we use the owners implementation.
218
- * @return {Tag} as defined in the owner
219
- */
220
199
  get tagClass() {
221
200
  return this.owner.tagClass;
222
201
  }
223
202
 
224
- /**
225
- * By default we use the owners implementation.
226
- * @return {ContentEntry} as defined in the owner
227
- */
228
203
  get entryClass() {
229
204
  return this.owner.entryClass;
230
205
  }
231
206
 
232
- /**
233
- * By default we use the owners implementation.
234
- * @return {Hook} as defined in the owner
235
- */
236
207
  get hookClass() {
237
208
  return this.owner.hookClass;
238
209
  }
package/src/ref.mjs CHANGED
@@ -4,8 +4,6 @@ import { name_attribute, boolean_attribute } from "./attributes.mjs";
4
4
 
5
5
  /**
6
6
  * @typedef {import('./repository.mjs').Repository} Repository
7
- * @typedef {import('./tag.mjs').Tag} Tag
8
- * @typedef {import('./branch.mjs').Branch} Branch
9
7
  */
10
8
 
11
9
  /**
@@ -14,7 +12,8 @@ import { name_attribute, boolean_attribute } from "./attributes.mjs";
14
12
  // @ts-ignore
15
13
  export class Ref extends OwnedObject {
16
14
  /**
17
- * options
15
+ * Attributes
16
+ * @type {Object}
18
17
  */
19
18
  static get attributes() {
20
19
  return {
@@ -17,7 +17,7 @@
17
17
  * @see Object.definedProperties()
18
18
  * @see Object.getOwnPropertyDescriptor()
19
19
  * @param {Object} object target object
20
- * @param {Object} options as passed to object constructor
20
+ * @param {Object} options as passed to object constructor. Used as values for the attributes.
21
21
  * @param {Object} properties object properties
22
22
  * @param {Object} [attributes] attribute meta info
23
23
  */
@@ -2,7 +2,7 @@
2
2
  * @typedef {import('pacc').AttributeDefinition} AttributeDefinition
3
3
  */
4
4
  /**
5
- * common attributes
5
+ * Common attribute properties.
6
6
  * @type {AttributeDefinition}
7
7
  */
8
8
  export const default_attribute: AttributeDefinition;
@@ -224,33 +224,12 @@ export class BaseProvider extends BaseObject {
224
224
  info(...args: any[]): any;
225
225
  warn(...args: any[]): any;
226
226
  error(...args: any[]): any;
227
- /**
228
- * @return {typeof RepositoryGroup} repository group class used by the Provider
229
- */
230
227
  get repositoryGroupClass(): typeof RepositoryGroup;
231
- /**
232
- * @return {typeof Hook} hook class used by the Provider
233
- */
234
228
  get hookClass(): typeof Hook;
235
- /**
236
- * @return {typeof Repository} repository class used by the Provider
237
- */
238
229
  get repositoryClass(): typeof Repository;
239
- /**
240
- * @return {typeof Branch} branch class used by the Provider
241
- */
242
230
  get branchClass(): typeof Branch;
243
- /**
244
- * @return {typeof Tag} branch class used by the Provider
245
- */
246
231
  get tagClass(): typeof Tag;
247
- /**
248
- * @return {typeof ContentEntry} entry class used by the Provider
249
- */
250
232
  get entryClass(): typeof ContentEntry;
251
- /**
252
- * @return {typeof PullRequest} pull request class used by the Provider
253
- */
254
233
  get pullRequestClass(): typeof PullRequest;
255
234
  }
256
235
  export type Project = import('./project.mjs').Project;
package/types/index.d.mts CHANGED
@@ -1,13 +1,10 @@
1
1
  export * from "./base-object.mjs";
2
2
  export * from "./named-object.mjs";
3
- export * from "./owned-object.mjs";
4
3
  export * from "./repository-owner.mjs";
5
- export * from "./base-provider.mjs";
6
4
  export * from "./single-group-provider.mjs";
7
5
  export * from "./multi-group-provider.mjs";
8
6
  export * from "./repository-group.mjs";
9
7
  export * from "./repository.mjs";
10
- export * from "./ref.mjs";
11
8
  export * from "./commit.mjs";
12
9
  export * from "./branch.mjs";
13
10
  export * from "./tag.mjs";
@@ -21,3 +18,6 @@ export * from "./application.mjs";
21
18
  export * from "./attribute-extras.mjs";
22
19
  export * from "./util.mjs";
23
20
  export * from "./attributes.mjs";
21
+ export { OwnedObject } from "./owned-object.mjs";
22
+ export { BaseProvider } from "./base-provider.mjs";
23
+ export { Ref } from "./ref.mjs";
@@ -1,7 +1,3 @@
1
- /**
2
- * @typedef {import('./hook.mjs').Hook} Hook
3
- * @typedef {import('./base-provider.mjs').BaseProvider} BaseProvider
4
- */
5
1
  /**
6
2
  * Object with a name.
7
3
  * @param {string} name
@@ -46,6 +42,4 @@ export class NamedObject extends BaseObject {
46
42
  toJSON(): any;
47
43
  #private;
48
44
  }
49
- export type Hook = import('./hook.mjs').Hook;
50
- export type BaseProvider = import('./base-provider.mjs').BaseProvider;
51
45
  import { BaseObject } from "./base-object.mjs";
@@ -1,11 +1,7 @@
1
1
  /**
2
- * @typedef {import('./base-provider.mjs').BaseProvider} BaseProvider
3
- * @typedef {import('./repository.mjs').Repository} Repository
4
- * @typedef {import('./hook.mjs').Hook} Hook
5
- * @typedef {import('./tag.mjs').Tag} Tag
6
- * @typedef {import('./branch.mjs').Branch} Branch
7
- * @typedef {import('./pull-request.mjs').PullRequest} PullRequest
8
- */
2
+ * @typedef {import('./base-provider.mjs').BaseProvider} BaseProvider
3
+ * @typedef {import('./repository.mjs').Repository} Repository
4
+ */
9
5
  /**
10
6
  * Named Object registering itself in the owner.
11
7
  */
@@ -106,42 +102,13 @@ export class OwnedObject extends NamedObject {
106
102
  * @param {...any} args
107
103
  */
108
104
  debug(...args: any[]): any;
109
- /**
110
- * By default we use the owners implementation.
111
- * @return {Repository} as defined in the owner
112
- */
113
- get repositoryClass(): import("./repository.mjs").Repository;
114
- /**
115
- * By default we use the owners implementation.
116
- * @return {PullRequest} as defined in the owner
117
- */
118
- get pullRequestClass(): import("./pull-request.mjs").PullRequest;
119
- /**
120
- * By default we use the owners implementation.
121
- * @return {Branch} as defined in the owner
122
- */
123
- get branchClass(): import("./branch.mjs").Branch;
124
- /**
125
- * By default we use the owners implementation.
126
- * @return {Tag} as defined in the owner
127
- */
128
- get tagClass(): import("./tag.mjs").Tag;
129
- /**
130
- * By default we use the owners implementation.
131
- * @return {ContentEntry} as defined in the owner
132
- */
133
- get entryClass(): ContentEntry;
134
- /**
135
- * By default we use the owners implementation.
136
- * @return {Hook} as defined in the owner
137
- */
138
- get hookClass(): import("./hook.mjs").Hook;
105
+ get repositoryClass(): any;
106
+ get pullRequestClass(): any;
107
+ get branchClass(): any;
108
+ get tagClass(): any;
109
+ get entryClass(): any;
110
+ get hookClass(): any;
139
111
  }
140
112
  export type BaseProvider = import('./base-provider.mjs').BaseProvider;
141
113
  export type Repository = import('./repository.mjs').Repository;
142
- export type Hook = import('./hook.mjs').Hook;
143
- export type Tag = import('./tag.mjs').Tag;
144
- export type Branch = import('./branch.mjs').Branch;
145
- export type PullRequest = import('./pull-request.mjs').PullRequest;
146
114
  import { NamedObject } from "./named-object.mjs";
147
- import { ContentEntry } from "content-entry";
package/types/ref.d.mts CHANGED
@@ -1,23 +1,15 @@
1
1
  /**
2
2
  * @typedef {import('./repository.mjs').Repository} Repository
3
- * @typedef {import('./tag.mjs').Tag} Tag
4
- * @typedef {import('./branch.mjs').Branch} Branch
5
3
  */
6
4
  /**
7
5
  * Base for Branch and Tag
8
6
  */
9
7
  export class Ref extends OwnedObject {
10
8
  /**
11
- * options
9
+ * Attributes
10
+ * @type {Object}
12
11
  */
13
- static get attributes(): {
14
- name: import("pacc").AttributeDefinition;
15
- /**
16
- * Can the ref be modified.
17
- * @return {boolean}
18
- */
19
- isProtected: import("pacc").AttributeDefinition;
20
- };
12
+ static get attributes(): any;
21
13
  static get attributeMapping(): {
22
14
  protected: string;
23
15
  };
@@ -75,7 +67,5 @@ export class Ref extends OwnedObject {
75
67
  [Symbol.asyncIterator](): AsyncGenerator<ContentEntry>;
76
68
  }
77
69
  export type Repository = import('./repository.mjs').Repository;
78
- export type Tag = import('./tag.mjs').Tag;
79
- export type Branch = import('./branch.mjs').Branch;
80
70
  import { OwnedObject } from "./owned-object.mjs";
81
71
  import { ContentEntry } from "content-entry";
@@ -1,7 +1,7 @@
1
1
  declare const RepositoryGroup_base: {
2
2
  new (): {
3
3
  [x: string]: any;
4
- "__#1@#repositories": Map<any, any>;
4
+ "__#2@#repositories": Map<any, any>;
5
5
  normalizeRepositoryName(name: string, forLookup: boolean): string;
6
6
  repository(name?: string): Promise<import("./repository.mjs").Repository>;
7
7
  repositories(patterns?: string | string[]): AsyncIterable<import("./repository.mjs").Repository>;
@@ -5,7 +5,7 @@
5
5
  export function RepositoryOwner(base: any): {
6
6
  new (): {
7
7
  [x: string]: any;
8
- "__#1@#repositories": Map<any, any>;
8
+ "__#2@#repositories": Map<any, any>;
9
9
  /**
10
10
  * Normalizes a repository name.
11
11
  * Strips branch away.
@@ -1,7 +1,7 @@
1
1
  declare const SingleGroupProvider_base: {
2
2
  new (): {
3
3
  [x: string]: any;
4
- "__#1@#repositories": Map<any, any>;
4
+ "__#2@#repositories": Map<any, any>;
5
5
  normalizeRepositoryName(name: string, forLookup: boolean): string;
6
6
  repository(name?: string): Promise<Repository>;
7
7
  repositories(patterns?: string | string[]): AsyncIterable<Repository>;