@shakerquiz/utilities 0.3.44 → 0.4.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.
Files changed (89) hide show
  1. package/dprint.json +2 -1
  2. package/package.json +3 -8
  3. package/source/enumerations/core/domains.d.ts +13 -0
  4. package/source/enumerations/core/domains.js +149 -0
  5. package/source/enumerations/core/features.d.ts +13 -0
  6. package/source/enumerations/core/features.js +29 -0
  7. package/source/enumerations/core/kinds.d.ts +1 -0
  8. package/source/enumerations/core/kinds.js +4 -0
  9. package/source/enumerations/core/methods.d.ts +8 -0
  10. package/source/enumerations/core/methods.js +25 -0
  11. package/source/enumerations/{procedures.d.ts → core/procedures.d.ts} +3 -6
  12. package/source/enumerations/core/procedures.js +45 -0
  13. package/source/enumerations/core/scopes.d.ts +4 -0
  14. package/source/enumerations/core/scopes.js +12 -0
  15. package/source/enumerations/entities/affilations.d.ts +1 -0
  16. package/source/enumerations/entities/affilations.js +4 -0
  17. package/source/enumerations/entities/game-statuses.d.ts +1 -0
  18. package/source/enumerations/entities/game-statuses.js +11 -0
  19. package/source/enumerations/entities/lineups.d.ts +1 -0
  20. package/source/enumerations/entities/lineups.js +4 -0
  21. package/source/enumerations/entities/registration-statuses.d.ts +1 -0
  22. package/source/enumerations/entities/registration-statuses.js +5 -0
  23. package/source/enumerations/entities/roles.d.ts +1 -0
  24. package/source/enumerations/entities/roles.js +4 -0
  25. package/source/enumerations/misc/icons.d.ts +1 -0
  26. package/source/enumerations/misc/icons.js +326 -0
  27. package/source/enumerations/misc/phases.d.ts +1 -0
  28. package/source/enumerations/misc/phases.js +7 -0
  29. package/source/enumerations/misc/requirements.d.ts +1 -0
  30. package/source/enumerations/misc/requirements.js +4 -0
  31. package/source/enumerations/schemas.d.ts +1 -1
  32. package/source/enumerations/schemas.js +8 -10
  33. package/source/functions/pathname.d.ts +1 -1
  34. package/source/functions/pathname.js +16 -21
  35. package/source/functions/request.d.ts +3 -0
  36. package/source/functions/request.js +81 -0
  37. package/source/functions/schema.js +30 -41
  38. package/source/globals.d.ts +38 -37
  39. package/source/index.d.ts +20 -25
  40. package/source/index.js +20 -25
  41. package/source/enumerations/affilations.d.ts +0 -4
  42. package/source/enumerations/affilations.js +0 -4
  43. package/source/enumerations/backends.d.ts +0 -19
  44. package/source/enumerations/backends.js +0 -45
  45. package/source/enumerations/default.d.ts +0 -1
  46. package/source/enumerations/default.js +0 -1
  47. package/source/enumerations/domains.d.ts +0 -25
  48. package/source/enumerations/domains.js +0 -154
  49. package/source/enumerations/features.d.ts +0 -48
  50. package/source/enumerations/features.js +0 -109
  51. package/source/enumerations/frontends.d.ts +0 -13
  52. package/source/enumerations/frontends.js +0 -41
  53. package/source/enumerations/game-statuses.d.ts +0 -11
  54. package/source/enumerations/game-statuses.js +0 -11
  55. package/source/enumerations/icons.d.ts +0 -326
  56. package/source/enumerations/icons.js +0 -326
  57. package/source/enumerations/kinds.d.ts +0 -4
  58. package/source/enumerations/kinds.js +0 -4
  59. package/source/enumerations/lineups.d.ts +0 -4
  60. package/source/enumerations/lineups.js +0 -4
  61. package/source/enumerations/methods.d.ts +0 -18
  62. package/source/enumerations/methods.js +0 -27
  63. package/source/enumerations/networks.d.ts +0 -4
  64. package/source/enumerations/networks.js +0 -4
  65. package/source/enumerations/pages.d.ts +0 -18
  66. package/source/enumerations/pages.js +0 -86
  67. package/source/enumerations/phases.d.ts +0 -7
  68. package/source/enumerations/phases.js +0 -7
  69. package/source/enumerations/procedures.js +0 -50
  70. package/source/enumerations/registration-statuses.d.ts +0 -5
  71. package/source/enumerations/registration-statuses.js +0 -5
  72. package/source/enumerations/requirements.d.ts +0 -4
  73. package/source/enumerations/requirements.js +0 -4
  74. package/source/enumerations/roles.d.ts +0 -4
  75. package/source/enumerations/roles.js +0 -4
  76. package/source/enumerations/services.d.ts +0 -22
  77. package/source/enumerations/services.js +0 -23
  78. package/source/functions/fetch.d.ts +0 -15
  79. package/source/functions/fetch.js +0 -138
  80. package/source/functions/origin.d.ts +0 -3
  81. package/source/functions/origin.js +0 -140
  82. package/source/functions/url.d.ts +0 -6
  83. package/source/functions/url.js +0 -45
  84. /package/source/enumerations/{constants.d.ts → misc/constants.d.ts} +0 -0
  85. /package/source/enumerations/{constants.js → misc/constants.js} +0 -0
  86. /package/source/enumerations/{cookies.d.ts → misc/cookies.d.ts} +0 -0
  87. /package/source/enumerations/{cookies.js → misc/cookies.js} +0 -0
  88. /package/source/enumerations/{regexps.d.ts → misc/regexps.d.ts} +0 -0
  89. /package/source/enumerations/{regexps.js → misc/regexps.js} +0 -0
@@ -7,14 +7,6 @@ interface RequestInit {
7
7
  * @description A method string defined by RFC7231 @see {@link https://datatracker.ietf.org/doc/html/rfc7231#section-4.3}
8
8
  */
9
9
  method?: Method
10
- /**
11
- * @description Target network to where send the request
12
- */
13
- network?: Network
14
- /**
15
- * @description A string to declaratively set the Authorization header.
16
- */
17
- cookie?: string
18
10
  }
19
11
 
20
12
  /**
@@ -27,60 +19,69 @@ type UseState<Type> = [
27
19
  ]
28
20
 
29
21
  /**
30
- * General
22
+ * Core
31
23
  */
32
24
 
33
- type Method = keyof typeof import('./enumerations/methods.js').Methods
25
+ type Method = typeof import('./enumerations/core/methods.js').Methods[number]
34
26
 
35
- type Kind = keyof typeof import('./enumerations/kinds.js').Kinds
27
+ type Domain = typeof import('./enumerations/core/domains.js').Domains[number]
36
28
 
37
- type Network = keyof typeof import('./enumerations/networks.js').Networks
29
+ type Procedure =
30
+ typeof import('./enumerations/core/procedures.js').Procedures[number]
38
31
 
39
- type Phase = keyof typeof import('./enumerations/phases.js').Phases
32
+ type Feature = Domain | Procedure
40
33
 
41
- type Requirement =
42
- keyof typeof import('./enumerations/requirements.d.ts').Requirements
43
-
44
- /**
45
- * Domain
46
- */
34
+ type Kind = typeof import('./enumerations/core/kinds.js').Kinds[number]
47
35
 
48
- type Domain = keyof typeof import('./enumerations/domains.js').Domains
49
- type Page = keyof typeof import('./enumerations/pages.js').Pages
50
- type Procedure = keyof typeof import('./enumerations/procedures.js').Procedures
51
- type Feature = Domain | Page | Procedure
36
+ type Scope = `${Method}/${Feature}/${Kind}`
52
37
 
53
- type Backend = keyof typeof import('./enumerations/backends.js').Backends
54
- type Frontend = keyof typeof import('./enumerations/frontends.js').Frontends
55
- type Service = Backend | Frontend
38
+ type Requirement =
39
+ typeof import('./enumerations/misc/requirements.js').Requirements[number]
56
40
 
57
- type Role = keyof typeof import('./enumerations/roles.js').Roles
41
+ type Role = keyof typeof import('./enumerations/entities/roles.js').Roles
58
42
 
59
43
  type GameStatus =
60
- keyof typeof import('./enumerations/game-statuses.js').GameStatuses
44
+ keyof typeof import('./enumerations/entities/game-statuses.js').GameStatuses
61
45
 
62
46
  type RegistrationStatus =
63
- keyof typeof import('./enumerations/registration-statuses.js').RegistrationStatuses
47
+ keyof typeof import('./enumerations/entities/registration-statuses.js').RegistrationStatuses
64
48
 
65
- type Lineup = keyof typeof import('./enumerations/lineups.js').Lineups
49
+ type Lineup = keyof typeof import('./enumerations/entities/lineups.js').Lineups
66
50
 
67
51
  type Affilation =
68
- keyof typeof import('./enumerations/affilations.js').Affilations
52
+ keyof typeof import('./enumerations/entities/affilations.js').Affilations
53
+
54
+ /**
55
+ * Misc
56
+ */
57
+
58
+ type Icon = typeof import('./enumerations/misc/icons.js').Icons[number]
59
+
60
+ type Phase = typeof import('./enumerations/misc/phases.js').Phases[number]
61
+
62
+ /**
63
+ * Products
64
+ */
65
+
66
+ type ScopePhase = Record<Scope, Phase>
67
+
68
+ type ScopeState = Record<Scope, any>
69
+
70
+ type ScopeController = Record<Scope, AbortController | null>
69
71
 
70
72
  /**
71
73
  * Schemas
72
74
  */
73
75
 
74
76
  type CityColumn = keyof typeof import('./schemas/city.js').CityColumns
77
+
75
78
  type GameColumn = keyof typeof import('./schemas/game.js').GameColumns
79
+
76
80
  type RegistrationColumn =
77
81
  keyof typeof import('./schemas/registration.js').RegistrationColumns
82
+
78
83
  type ThemeColumn = keyof typeof import('./schemas/theme.js').ThemeColumns
79
- type UserColumn = keyof typeof import('./schemas/user.js').UserColumns
80
- type VenueColumn = keyof typeof import('./schemas/venue.js').VenueColumns
81
84
 
82
- /**
83
- * Misc
84
- */
85
+ type UserColumn = keyof typeof import('./schemas/user.js').UserColumns
85
86
 
86
- type Icon = keyof typeof import('./enumerations/icons.js').Icons
87
+ type VenueColumn = keyof typeof import('./schemas/venue.js').VenueColumns
package/source/index.d.ts CHANGED
@@ -9,35 +9,30 @@
9
9
  /// <reference path='./user.d.ts' />
10
10
  /// <reference path='./venue.d.ts' />
11
11
 
12
- export * from './enumerations/affilations.js'
13
- export * from './enumerations/backends.js'
14
- export * from './enumerations/constants.js'
15
- export * from './enumerations/cookies.js'
16
- export * from './enumerations/default.js'
17
- export * from './enumerations/domains.js'
18
- export * from './enumerations/features.js'
19
- export * from './enumerations/frontends.js'
20
- export * from './enumerations/game-statuses.js'
21
- export * from './enumerations/icons.js'
22
- export * from './enumerations/kinds.js'
23
- export * from './enumerations/lineups.js'
24
- export * from './enumerations/methods.js'
25
- export * from './enumerations/networks.js'
26
- export * from './enumerations/pages.js'
27
- export * from './enumerations/phases.js'
28
- export * from './enumerations/procedures.js'
29
- export * from './enumerations/regexps.js'
30
- export * from './enumerations/registration-statuses.js'
31
- export * from './enumerations/requirements.js'
32
- export * from './enumerations/roles.js'
12
+ export * from './enumerations/core/domains.js'
13
+ export * from './enumerations/core/features.js'
14
+ export * from './enumerations/core/kinds.js'
15
+ export * from './enumerations/core/methods.js'
16
+ export * from './enumerations/core/procedures.js'
17
+
18
+ export * from './enumerations/misc/constants.js'
19
+ export * from './enumerations/misc/cookies.js'
20
+ export * from './enumerations/misc/icons.js'
21
+ export * from './enumerations/misc/phases.js'
22
+ export * from './enumerations/misc/regexps.js'
23
+ export * from './enumerations/misc/requirements.js'
24
+
25
+ export * from './enumerations/entities/affilations.js'
26
+ export * from './enumerations/entities/game-statuses.js'
27
+ export * from './enumerations/entities/lineups.js'
28
+ export * from './enumerations/entities/registration-statuses.js'
29
+ export * from './enumerations/entities/roles.js'
30
+
33
31
  export * from './enumerations/schemas.js'
34
- export * from './enumerations/services.js'
35
32
 
36
- export * from './functions/fetch.js'
37
- export * from './functions/origin.js'
38
33
  export * from './functions/pathname.js'
34
+ export * from './functions/request.js'
39
35
  export * from './functions/schema.js'
40
- export * from './functions/url.js'
41
36
 
42
37
  export * from './schemas/city.js'
43
38
  export * from './schemas/game.js'
package/source/index.js CHANGED
@@ -9,35 +9,30 @@
9
9
  /// <reference path='./user.d.ts' />
10
10
  /// <reference path='./venue.d.ts' />
11
11
 
12
- export * from './enumerations/affilations.js'
13
- export * from './enumerations/backends.js'
14
- export * from './enumerations/constants.js'
15
- export * from './enumerations/cookies.js'
16
- export * from './enumerations/default.js'
17
- export * from './enumerations/domains.js'
18
- export * from './enumerations/features.js'
19
- export * from './enumerations/frontends.js'
20
- export * from './enumerations/game-statuses.js'
21
- export * from './enumerations/icons.js'
22
- export * from './enumerations/kinds.js'
23
- export * from './enumerations/lineups.js'
24
- export * from './enumerations/methods.js'
25
- export * from './enumerations/networks.js'
26
- export * from './enumerations/pages.js'
27
- export * from './enumerations/phases.js'
28
- export * from './enumerations/procedures.js'
29
- export * from './enumerations/regexps.js'
30
- export * from './enumerations/registration-statuses.js'
31
- export * from './enumerations/requirements.js'
32
- export * from './enumerations/roles.js'
12
+ export * from './enumerations/core/domains.js'
13
+ export * from './enumerations/core/features.js'
14
+ export * from './enumerations/core/kinds.js'
15
+ export * from './enumerations/core/methods.js'
16
+ export * from './enumerations/core/procedures.js'
17
+
18
+ export * from './enumerations/misc/constants.js'
19
+ export * from './enumerations/misc/cookies.js'
20
+ export * from './enumerations/misc/icons.js'
21
+ export * from './enumerations/misc/phases.js'
22
+ export * from './enumerations/misc/regexps.js'
23
+ export * from './enumerations/misc/requirements.js'
24
+
25
+ export * from './enumerations/entities/affilations.js'
26
+ export * from './enumerations/entities/game-statuses.js'
27
+ export * from './enumerations/entities/lineups.js'
28
+ export * from './enumerations/entities/registration-statuses.js'
29
+ export * from './enumerations/entities/roles.js'
30
+
33
31
  export * from './enumerations/schemas.js'
34
- export * from './enumerations/services.js'
35
32
 
36
- export * from './functions/fetch.js'
37
- export * from './functions/origin.js'
38
33
  export * from './functions/pathname.js'
34
+ export * from './functions/request.js'
39
35
  export * from './functions/schema.js'
40
- export * from './functions/url.js'
41
36
 
42
37
  export * from './schemas/city.js'
43
38
  export * from './schemas/game.js'
@@ -1,4 +0,0 @@
1
- export namespace Affilations {
2
- let Branch: "Branch";
3
- let Franchise: "Franchise";
4
- }
@@ -1,4 +0,0 @@
1
- export var Affilations = /** @type {const} */ ({
2
- Branch: 'Branch',
3
- Franchise: 'Franchise',
4
- })
@@ -1,19 +0,0 @@
1
- export namespace Backends {
2
- let Backend: "Backend";
3
- let Games: "Games";
4
- let Locations: "Locations";
5
- let Users: "Users";
6
- let Integrations: "Integrations";
7
- }
8
- export namespace BackendFeatures {
9
- let Backend_1: ("Checkin" | "User" | "Role" | "City" | "Venue" | "Theme" | "Game" | "Registration")[];
10
- export { Backend_1 as Backend };
11
- let Games_1: ("Theme" | "Game" | "Registration")[];
12
- export { Games_1 as Games };
13
- let Locations_1: ("City" | "Venue")[];
14
- export { Locations_1 as Locations };
15
- let Users_1: ("Checkin" | "User" | "Role")[];
16
- export { Users_1 as Users };
17
- let Integrations_1: ("Mailing" | "Redirect")[];
18
- export { Integrations_1 as Integrations };
19
- }
@@ -1,45 +0,0 @@
1
- import { Domains } from './domains.js'
2
- import { Procedures } from './procedures.js'
3
-
4
- export var Backends = /** @type {const} */ ({
5
- Backend: 'Backend',
6
- Games: 'Games',
7
- Locations: 'Locations',
8
- Users: 'Users',
9
- Integrations: 'Integrations',
10
- })
11
-
12
- export var BackendFeatures = {
13
- [Backends.Backend]: [
14
- Domains.User,
15
- Domains.Role,
16
- Domains.City,
17
- Domains.Venue,
18
- Domains.Theme,
19
- Domains.Game,
20
- Domains.Registration,
21
- Procedures.Checkin,
22
- ],
23
-
24
- [Backends.Games]: [
25
- Domains.Theme,
26
- Domains.Game,
27
- Domains.Registration,
28
- ],
29
-
30
- [Backends.Locations]: [
31
- Domains.City,
32
- Domains.Venue,
33
- ],
34
-
35
- [Backends.Users]: [
36
- Domains.User,
37
- Domains.Role,
38
- Procedures.Checkin,
39
- ],
40
-
41
- [Backends.Integrations]: [
42
- Domains.Mailing,
43
- Procedures.Redirect,
44
- ],
45
- }
@@ -1 +0,0 @@
1
- export const Default: any;
@@ -1 +0,0 @@
1
- export var Default = Symbol('Default')
@@ -1,25 +0,0 @@
1
- export namespace Domains {
2
- let Asset: "Asset";
3
- let User: "User";
4
- let Role: "Role";
5
- let City: "City";
6
- let Venue: "Venue";
7
- let Theme: "Theme";
8
- let ThemeAsset: "ThemeAsset";
9
- let Game: "Game";
10
- let GameAsset: "GameAsset";
11
- let Registration: "Registration";
12
- let Mailing: "Mailing";
13
- }
14
- /**
15
- * @type {Record<Domain, Icon>}
16
- */
17
- export const DomainIcons: Record<Domain, Icon>;
18
- /**
19
- * @type {Record<Domain, Record<Kind, string>>}
20
- */
21
- export const DomainKindPathnames: Record<Domain, Record<Kind, string>>;
22
- /**
23
- * @type {Record<Domain, Record<Method, Set<Requirement>>>}
24
- */
25
- export const DomainMethodRequirements: Record<Domain, Record<Method, Set<Requirement>>>;
@@ -1,154 +0,0 @@
1
- import { Icons } from './icons.js'
2
- import { Kinds } from './kinds.js'
3
- import { Methods } from './methods.js'
4
- import { Requirements } from './requirements.js'
5
-
6
- export var Domains = /** @type {const} */ ({
7
- Asset: 'Asset',
8
- User: 'User',
9
- Role: 'Role',
10
- City: 'City',
11
- Venue: 'Venue',
12
- Theme: 'Theme',
13
- ThemeAsset: 'ThemeAsset',
14
- Game: 'Game',
15
- GameAsset: 'GameAsset',
16
- Registration: 'Registration',
17
- Mailing: 'Mailing',
18
- })
19
-
20
- /**
21
- * @type {Record<Domain, Icon>}
22
- */
23
- export var DomainIcons = {
24
- [Domains.User]: Icons['users'],
25
- [Domains.Role]: Icons['identification'],
26
- [Domains.City]: Icons['building-office'],
27
- [Domains.Venue]: Icons['map-pin'],
28
- [Domains.Theme]: Icons['document-text'],
29
- [Domains.Game]: Icons['newspaper'],
30
- [Domains.Registration]: Icons['user-group'],
31
- [Domains.Mailing]: Icons['envelope'],
32
- }
33
-
34
- /**
35
- * @type {Record<Domain, Record<Kind, string>>}
36
- */
37
- export var DomainKindPathnames = {
38
- [Domains.User]: {
39
- [Kinds.Unit]: '/user/:user?',
40
- [Kinds.Set]: '/users',
41
- },
42
-
43
- [Domains.Role]: {
44
- [Kinds.Unit]: '/role/:role?',
45
- [Kinds.Set]: '/roles',
46
- },
47
-
48
- [Domains.City]: {
49
- [Kinds.Unit]: '/city/:city?',
50
- [Kinds.Set]: '/cities',
51
- },
52
-
53
- [Domains.Venue]: {
54
- [Kinds.Unit]: '/venue/:venue?',
55
- [Kinds.Set]: '/venues',
56
- },
57
-
58
- [Domains.Theme]: {
59
- [Kinds.Unit]: '/theme/:theme?',
60
- [Kinds.Set]: '/themes',
61
- },
62
-
63
- [Domains.Game]: {
64
- [Kinds.Unit]: '/game/:game?',
65
- [Kinds.Set]: '/games',
66
- },
67
-
68
- [Domains.Registration]: {
69
- [Kinds.Unit]: '/registration/:registration?',
70
- [Kinds.Set]: '/registrations',
71
- },
72
-
73
- [Domains.Mailing]: {
74
- [Kinds.Unit]: '/mailing/:mailing?',
75
- [Kinds.Set]: '/mailings',
76
- },
77
- }
78
-
79
- /**
80
- * @type {Record<Domain, Record<Method, Set<Requirement>>>}
81
- */
82
- export var DomainMethodRequirements = {
83
- [Domains.User]: {
84
- [Methods.DELETE]: new Set([Requirements.Checkin]),
85
- [Methods.GET]: new Set([Requirements.Checkin]),
86
- [Methods.OPTIONS]: new Set([]),
87
- [Methods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
88
- [Methods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
89
- [Methods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
90
- },
91
-
92
- [Domains.Role]: {
93
- [Methods.DELETE]: new Set([Requirements.Checkin]),
94
- [Methods.GET]: new Set([Requirements.Checkin]),
95
- [Methods.OPTIONS]: new Set([]),
96
- [Methods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
97
- [Methods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
98
- [Methods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
99
- },
100
-
101
- [Domains.City]: {
102
- [Methods.DELETE]: new Set([Requirements.Checkin]),
103
- [Methods.GET]: new Set([Requirements.Checkin]),
104
- [Methods.OPTIONS]: new Set([]),
105
- [Methods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
106
- [Methods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
107
- [Methods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
108
- },
109
-
110
- [Domains.Venue]: {
111
- [Methods.DELETE]: new Set([Requirements.Checkin]),
112
- [Methods.GET]: new Set([Requirements.Checkin]),
113
- [Methods.OPTIONS]: new Set([]),
114
- [Methods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
115
- [Methods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
116
- [Methods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
117
- },
118
-
119
- [Domains.Theme]: {
120
- [Methods.DELETE]: new Set([Requirements.Checkin]),
121
- [Methods.GET]: new Set([Requirements.Checkin]),
122
- [Methods.OPTIONS]: new Set([]),
123
- [Methods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
124
- [Methods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
125
- [Methods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
126
- },
127
-
128
- [Domains.Game]: {
129
- [Methods.DELETE]: new Set([Requirements.Checkin]),
130
- [Methods.GET]: new Set([Requirements.Checkin]),
131
- [Methods.OPTIONS]: new Set([]),
132
- [Methods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
133
- [Methods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
134
- [Methods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
135
- },
136
-
137
- [Domains.Registration]: {
138
- [Methods.DELETE]: new Set([Requirements.Checkin]),
139
- [Methods.GET]: new Set([Requirements.Checkin]),
140
- [Methods.OPTIONS]: new Set([]),
141
- [Methods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
142
- [Methods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
143
- [Methods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
144
- },
145
-
146
- [Domains.Mailing]: {
147
- [Methods.DELETE]: new Set([Requirements.Checkin]),
148
- [Methods.GET]: new Set([Requirements.Checkin]),
149
- [Methods.OPTIONS]: new Set([]),
150
- [Methods.PATCH]: new Set([Requirements.Checkin, Requirements.Body]),
151
- [Methods.POST]: new Set([Requirements.Checkin, Requirements.Body]),
152
- [Methods.PUT]: new Set([Requirements.Checkin, Requirements.Body]),
153
- },
154
- }
@@ -1,48 +0,0 @@
1
- export const Features: {
2
- Checkin: "Checkin";
3
- Redirect: "Redirect";
4
- '404': "404";
5
- Exception: "Exception";
6
- Home: "Home";
7
- Profile: "Profile";
8
- User: "User";
9
- Role: "Role";
10
- City: "City";
11
- Venue: "Venue";
12
- Theme: "Theme";
13
- Game: "Game";
14
- Registration: "Registration";
15
- Mailing: "Mailing";
16
- };
17
- /**
18
- * @type {Record<Feature, Icon>}
19
- */
20
- export const FeatureIcons: Record<Feature, Icon>;
21
- /**
22
- * @type {Record<Feature, Record<Kind, string>>}
23
- */
24
- export const FeatureKindPathnames: Record<Feature, Record<Kind, string>>;
25
- /**
26
- * @type {Record<Domain, Service>}
27
- */
28
- export const DomainServiceDefaults: Record<Domain, Service>;
29
- /**
30
- * @type {Record<Page, Service>}
31
- */
32
- export const PageServiceDefaults: Record<Page, Service>;
33
- /**
34
- * @type {Record<Procedure, Service>}
35
- */
36
- export const ProcedureServiceDefaults: Record<Procedure, Service>;
37
- /**
38
- * @type {Record<Feature, Service>}
39
- */
40
- export const FeatureServiceDefaults: Record<Feature, Service>;
41
- /**
42
- * @type {Record<Feature, Record<Method, Set<Requirement>>>}
43
- */
44
- export const FeatureMethodRequirements: Record<Feature, Record<Method, Set<Requirement>>>;
45
- /**
46
- * @type {Record<Feature, Record<Service, Record<Network, string>>>}
47
- */
48
- export const FeatureServiceNetworkOrigins: Record<Feature, Record<Service, Record<Network, string>>>;
@@ -1,109 +0,0 @@
1
- import { Backends } from './backends.js'
2
- import {
3
- DomainIcons,
4
- DomainKindPathnames,
5
- DomainMethodRequirements,
6
- Domains,
7
- } from './domains.js'
8
- import { Networks } from './networks.js'
9
- import {
10
- PageIcons,
11
- PageKindPathnames,
12
- PageMethodRequirements,
13
- Pages,
14
- } from './pages.js'
15
- import {
16
- ProcedureIcons,
17
- ProcedureKindPathnames,
18
- ProcedureMethodRequirements,
19
- Procedures,
20
- } from './procedures.js'
21
- import { Services } from './services.js'
22
-
23
- export var Features = {
24
- ...Domains,
25
- ...Pages,
26
- ...Procedures,
27
- }
28
-
29
- /**
30
- * @type {Record<Feature, Icon>}
31
- */
32
- export var FeatureIcons = {
33
- ...DomainIcons,
34
- ...PageIcons,
35
- ...ProcedureIcons,
36
- }
37
-
38
- /**
39
- * @type {Record<Feature, Record<Kind, string>>}
40
- */
41
- export var FeatureKindPathnames = {
42
- ...DomainKindPathnames,
43
- ...PageKindPathnames,
44
- ...ProcedureKindPathnames,
45
- }
46
-
47
- /**
48
- * @type {Record<Domain, Service>}
49
- */
50
- export var DomainServiceDefaults = {
51
- [Domains.User]: Backends.Users,
52
- [Domains.Role]: Backends.Users,
53
- [Domains.City]: Backends.Locations,
54
- [Domains.Venue]: Backends.Locations,
55
- [Domains.Game]: Backends.Games,
56
- [Domains.Registration]: Backends.Games,
57
- [Domains.Theme]: Backends.Games,
58
- }
59
-
60
- /**
61
- * @type {Record<Page, Service>}
62
- */
63
- export var PageServiceDefaults = {
64
- [Pages['404']]: '',
65
- [Pages.Exception]: '',
66
- [Pages.Home]: '',
67
- [Pages.Profile]: '',
68
- }
69
-
70
- /**
71
- * @type {Record<Procedure, Service>}
72
- */
73
- export var ProcedureServiceDefaults = {
74
- [Procedures.Checkin]: Backends.Users,
75
- [Procedures.Mailing]: Backends.Games,
76
- }
77
-
78
- /**
79
- * @type {Record<Feature, Service>}
80
- */
81
- export var FeatureServiceDefaults = {
82
- ...DomainServiceDefaults,
83
- ...PageServiceDefaults,
84
- ...ProcedureServiceDefaults,
85
- }
86
-
87
- /**
88
- * @type {Record<Feature, Record<Method, Set<Requirement>>>}
89
- */
90
- export var FeatureMethodRequirements = {
91
- ...DomainMethodRequirements,
92
- ...PageMethodRequirements,
93
- ...ProcedureMethodRequirements,
94
- }
95
-
96
- /**
97
- * @type {Record<Feature, Record<Service, Record<Network, string>>>}
98
- */
99
- export var FeatureServiceNetworkOrigins = {}
100
-
101
- for (var feature in Features) {
102
- FeatureServiceNetworkOrigins[feature] = {}
103
- for (var service in Services) {
104
- FeatureServiceNetworkOrigins[feature][service] = {}
105
- for (var network in Networks) {
106
- FeatureServiceNetworkOrigins[feature][service][network] = ''
107
- }
108
- }
109
- }
@@ -1,13 +0,0 @@
1
- export namespace Frontends {
2
- let Admin: "Admin";
3
- let Landing: "Landing";
4
- let MiniApp: "MiniApp";
5
- }
6
- export namespace FrontendFeatures {
7
- let Admin_1: ("City" | "Game" | "Registration" | "Theme" | "User" | "Venue" | "404" | "Exception" | "Home" | "Profile" | "Checkin")[];
8
- export { Admin_1 as Admin };
9
- let Landing_1: ("Game" | "Registration" | "404" | "Exception" | "Home")[];
10
- export { Landing_1 as Landing };
11
- let MiniApp_1: ("Game" | "Registration" | "404" | "Exception" | "Home")[];
12
- export { MiniApp_1 as MiniApp };
13
- }