@shakerquiz/utilities 0.3.23 → 0.3.24
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
|
@@ -35,6 +35,10 @@ export const ProcedureServiceDefaults: Record<Procedure, Service>;
|
|
|
35
35
|
* @type {Record<Feature, Service>}
|
|
36
36
|
*/
|
|
37
37
|
export const FeatureServiceDefaults: Record<Feature, Service>;
|
|
38
|
+
/**
|
|
39
|
+
* @type {Record<Feature, Record<Method, Set<Requirement>>>}
|
|
40
|
+
*/
|
|
41
|
+
export const FeatureMethodRequirements: Record<Feature, Record<Method, Set<Requirement>>>;
|
|
38
42
|
/**
|
|
39
43
|
* @type {Record<Feature, Record<Service, Record<Network, string>>>}
|
|
40
44
|
*/
|
|
@@ -1,10 +1,21 @@
|
|
|
1
1
|
import { Backends } from './backends.js'
|
|
2
|
-
import {
|
|
2
|
+
import {
|
|
3
|
+
DomainIcons,
|
|
4
|
+
DomainKindPathnames,
|
|
5
|
+
DomainMethodRequirements,
|
|
6
|
+
Domains,
|
|
7
|
+
} from './domains.js'
|
|
3
8
|
import { Networks } from './networks.js'
|
|
4
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
PageIcons,
|
|
11
|
+
PageKindPathnames,
|
|
12
|
+
PageMethodRequirements,
|
|
13
|
+
Pages,
|
|
14
|
+
} from './pages.js'
|
|
5
15
|
import {
|
|
6
16
|
ProcedureIcons,
|
|
7
17
|
ProcedureKindPathnames,
|
|
18
|
+
ProcedureMethodRequirements,
|
|
8
19
|
Procedures,
|
|
9
20
|
} from './procedures.js'
|
|
10
21
|
import { Services } from './services.js'
|
|
@@ -71,6 +82,15 @@ export var FeatureServiceDefaults = {
|
|
|
71
82
|
...ProcedureServiceDefaults,
|
|
72
83
|
}
|
|
73
84
|
|
|
85
|
+
/**
|
|
86
|
+
* @type {Record<Feature, Record<Method, Set<Requirement>>>}
|
|
87
|
+
*/
|
|
88
|
+
export var FeatureMethodRequirements = {
|
|
89
|
+
...DomainMethodRequirements,
|
|
90
|
+
...PageMethodRequirements,
|
|
91
|
+
...ProcedureMethodRequirements,
|
|
92
|
+
}
|
|
93
|
+
|
|
74
94
|
/**
|
|
75
95
|
* @type {Record<Feature, Record<Service, Record<Network, string>>>}
|
|
76
96
|
*/
|
|
@@ -15,4 +15,4 @@ export const PageKindPathnames: Record<Page, Record<Kind, string>>;
|
|
|
15
15
|
/**
|
|
16
16
|
* @type {Record<Page, Record<Method, Set<Requirement>>>}
|
|
17
17
|
*/
|
|
18
|
-
export const
|
|
18
|
+
export const PageMethodRequirements: Record<Page, Record<Method, Set<Requirement>>>;
|
|
@@ -43,7 +43,7 @@ export var PageKindPathnames = {
|
|
|
43
43
|
/**
|
|
44
44
|
* @type {Record<Page, Record<Method, Set<Requirement>>>}
|
|
45
45
|
*/
|
|
46
|
-
export var
|
|
46
|
+
export var PageMethodRequirements = {
|
|
47
47
|
[Pages['404']]: {
|
|
48
48
|
[Methods.DELETE]: new Set([]),
|
|
49
49
|
[Methods.GET]: new Set([]),
|