@reventlessdev/reventless-registration 1.0.0-alpha.52 → 1.0.0-alpha.53

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.
@@ -15,7 +15,7 @@ function Make(App) {
15
15
  externalInputSchema: CompleteRegistration$ReventlessRegistration.externalInputSchema,
16
16
  commandSchema: CompleteRegistration$ReventlessRegistration.commandSchema,
17
17
  targetName: CompleteRegistration$ReventlessRegistration.targetName,
18
- externalSystem: undefined,
18
+ externalSystem: CompleteRegistration$ReventlessRegistration.externalSystem,
19
19
  authorizationOf: CompleteRegistration$ReventlessRegistration.authorizationOf,
20
20
  endpoint: undefined,
21
21
  capabilityNeeds: CompleteRegistration$ReventlessRegistration.capabilityNeeds
@@ -19,7 +19,7 @@ function Make(App) {
19
19
  externalInputSchema: SignUp$ReventlessRegistration.externalInputSchema,
20
20
  commandSchema: SignUp$ReventlessRegistration.commandSchema,
21
21
  targetName: SignUp$ReventlessRegistration.targetName,
22
- externalSystem: undefined,
22
+ externalSystem: SignUp$ReventlessRegistration.externalSystem,
23
23
  authorizationOf: SignUp$ReventlessRegistration.authorizationOf,
24
24
  endpoint: undefined,
25
25
  capabilityNeeds: SignUp$ReventlessRegistration.capabilityNeeds
@@ -15,7 +15,7 @@ function Make(App) {
15
15
  maxRetries: CreateRegisteredPrincipal$ReventlessRegistration.maxRetries,
16
16
  targetName: CreateRegisteredPrincipal$ReventlessRegistration.targetName,
17
17
  sourceNames: CreateRegisteredPrincipal$ReventlessRegistration.sourceNames,
18
- externalSystem: undefined,
18
+ externalSystem: CreateRegisteredPrincipal$ReventlessRegistration.externalSystem,
19
19
  capabilityNeeds: CreateRegisteredPrincipal$ReventlessRegistration.capabilityNeeds,
20
20
  traits: CreateRegisteredPrincipal$ReventlessRegistration.traits
21
21
  })({
@@ -20,7 +20,7 @@ function Make(App) {
20
20
  maxRetries: SendRegistrationChallenge$ReventlessRegistration.maxRetries,
21
21
  targetName: SendRegistrationChallenge$ReventlessRegistration.targetName,
22
22
  sourceNames: SendRegistrationChallenge$ReventlessRegistration.sourceNames,
23
- externalSystem: undefined,
23
+ externalSystem: SendRegistrationChallenge$ReventlessRegistration.externalSystem,
24
24
  capabilityNeeds: SendRegistrationChallenge$ReventlessRegistration.capabilityNeeds,
25
25
  traits: SendRegistrationChallenge$ReventlessRegistration.traits
26
26
  })({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reventlessdev/reventless-registration",
3
- "version": "1.0.0-alpha.52",
3
+ "version": "1.0.0-alpha.53",
4
4
  "description": "Self-registration as a library of slices: a person with no account proves control of an address and ends up with one, admitted per role as the app declares",
5
5
  "license": "Apache-2.0",
6
6
  "files": [
@@ -17,19 +17,19 @@
17
17
  "rescript": "12.3.1",
18
18
  "sury": "11.1.0",
19
19
  "sury-ppx": "11.1.0",
20
- "@reventlessdev/reventless-gwt": "1.0.0-alpha.309",
21
- "@reventlessdev/reventless-spec": "3.0.0-alpha.222",
22
- "@reventlessdev/reventless-ppx": "1.0.0-alpha.124",
23
- "@reventlessdev/reventless-infra": "3.0.0-alpha.253"
20
+ "@reventlessdev/reventless-gwt": "1.0.0-alpha.310",
21
+ "@reventlessdev/reventless-infra": "3.0.0-alpha.254",
22
+ "@reventlessdev/reventless-spec": "3.0.0-alpha.223",
23
+ "@reventlessdev/reventless-ppx": "1.0.0-alpha.125"
24
24
  },
25
25
  "peerDependencies": {
26
26
  "rescript": "^12.3.1",
27
27
  "sury": "^11.1.0",
28
28
  "sury-ppx": "^11.1.0",
29
- "@reventlessdev/reventless-infra": "^3.0.0-alpha.253",
30
- "@reventlessdev/reventless-spec": "^3.0.0-alpha.222",
31
- "@reventlessdev/reventless-ppx": "^1.0.0-alpha.124",
32
- "@reventlessdev/reventless-gwt": "^1.0.0-alpha.309"
29
+ "@reventlessdev/reventless-gwt": "^1.0.0-alpha.310",
30
+ "@reventlessdev/reventless-infra": "^3.0.0-alpha.254",
31
+ "@reventlessdev/reventless-ppx": "^1.0.0-alpha.125",
32
+ "@reventlessdev/reventless-spec": "^3.0.0-alpha.223"
33
33
  },
34
34
  "publishConfig": {
35
35
  "registry": "https://registry.npmjs.org"
@@ -29,6 +29,9 @@ type command =
29
29
  })
30
30
 
31
31
  let targetName = "Registrations"
32
+ // The other party, who comes back with the code from the mail: the person registering, or the one invited. An app names its own in plugin.json's
33
+ // `slicesFrom` entry (`externalSystems`), which takes this one's place.
34
+ let externalSystem = Some("Person registering")
32
35
  let capabilityNeeds = [Reventless.CapabilityNeed.Stash]
33
36
 
34
37
  /** This door completes a registration; the platform tells the shell so. */
@@ -33,12 +33,12 @@ let Id;
33
33
 
34
34
  let targetName = "Registrations";
35
35
 
36
+ let externalSystem = "Person registering";
37
+
36
38
  let admissionDoor = "complete";
37
39
 
38
40
  let moduleUrl = "@reventlessdev/reventless-registration/src/Registration/InboundTranslation/CompleteRegistration.res.mjs";
39
41
 
40
- let externalSystem;
41
-
42
42
  let endpoint;
43
43
 
44
44
  export {
@@ -47,11 +47,11 @@ export {
47
47
  externalInputSchema,
48
48
  commandSchema,
49
49
  targetName,
50
+ externalSystem,
50
51
  capabilityNeeds,
51
52
  admissionDoor,
52
53
  moduleUrl,
53
54
  authorizationOf,
54
- externalSystem,
55
55
  traits,
56
56
  endpoint,
57
57
  }
@@ -40,6 +40,9 @@ type command =
40
40
  })
41
41
 
42
42
  let targetName = "Registrations"
43
+ // The other party, who asks to register: a person, through the app's own screens. An app names its own in plugin.json's
44
+ // `slicesFrom` entry (`externalSystems`), which takes this one's place.
45
+ let externalSystem = Some("Person registering")
43
46
  let capabilityNeeds = [Reventless.CapabilityNeed.PersonCheck]
44
47
 
45
48
  /** This door starts a registration; the platform tells the shell so. */
@@ -41,12 +41,12 @@ let Id;
41
41
 
42
42
  let targetName = "Registrations";
43
43
 
44
+ let externalSystem = "Person registering";
45
+
44
46
  let admissionDoor = "start";
45
47
 
46
48
  let moduleUrl = "@reventlessdev/reventless-registration/src/Registration/InboundTranslation/SignUp.res.mjs";
47
49
 
48
- let externalSystem;
49
-
50
50
  let endpoint;
51
51
 
52
52
  export {
@@ -55,11 +55,11 @@ export {
55
55
  externalInputSchema,
56
56
  commandSchema,
57
57
  targetName,
58
+ externalSystem,
58
59
  capabilityNeeds,
59
60
  admissionDoor,
60
61
  moduleUrl,
61
62
  authorizationOf,
62
- externalSystem,
63
63
  traits,
64
64
  endpoint,
65
65
  }
@@ -36,5 +36,8 @@ type inboundCommand = RecordRegistrationCompleted({emailId: ContactAddressId.t})
36
36
  // retry finds it; once the budget is spent, it expires.
37
37
  let maxRetries = 3
38
38
  let targetName = Some("Registrations")
39
+ // The other party, where the registered principal is created. An app names its own in plugin.json's
40
+ // `slicesFrom` entry (`externalSystems`), which takes this one's place.
41
+ let externalSystem = Some("Identity provider")
39
42
  let sourceNames: array<string> = []
40
43
  let capabilityNeeds = [Reventless.CapabilityNeed.Stash, Reventless.CapabilityNeed.IdentityProvider]
@@ -44,9 +44,9 @@ let maxRetries = 3;
44
44
 
45
45
  let targetName = "Registrations";
46
46
 
47
- let moduleUrl = "@reventlessdev/reventless-registration/src/Registration/OutboundTranslation/CreateRegisteredPrincipal.res.mjs";
47
+ let externalSystem = "Identity provider";
48
48
 
49
- let externalSystem;
49
+ let moduleUrl = "@reventlessdev/reventless-registration/src/Registration/OutboundTranslation/CreateRegisteredPrincipal.res.mjs";
50
50
 
51
51
  export {
52
52
  name,
@@ -56,10 +56,10 @@ export {
56
56
  inboundCommandSchema,
57
57
  maxRetries,
58
58
  targetName,
59
+ externalSystem,
59
60
  sourceNames,
60
61
  capabilityNeeds,
61
62
  moduleUrl,
62
- externalSystem,
63
63
  traits,
64
64
  }
65
65
  /* consumedEventSchema Not a pure module */
@@ -76,6 +76,9 @@ type inboundCommand =
76
76
  // leaves the registration to lapse and the address free to try again.
77
77
  let maxRetries = 3
78
78
  let targetName = Some("Registrations")
79
+ // The other party, where the challenge goes: the address the registration names. An app names its own in plugin.json's
80
+ // `slicesFrom` entry (`externalSystems`), which takes this one's place.
81
+ let externalSystem = Some("Mail")
79
82
  let sourceNames: array<string> = []
80
83
  let capabilityNeeds = [Reventless.CapabilityNeed.Messaging]
81
84
 
@@ -72,12 +72,12 @@ let maxRetries = 3;
72
72
 
73
73
  let targetName = "Registrations";
74
74
 
75
+ let externalSystem = "Mail";
76
+
75
77
  let admissionDoor = "mail";
76
78
 
77
79
  let moduleUrl = "@reventlessdev/reventless-registration/src/Registration/OutboundTranslation/SendRegistrationChallenge.res.mjs";
78
80
 
79
- let externalSystem;
80
-
81
81
  export {
82
82
  name,
83
83
  Id,
@@ -86,11 +86,11 @@ export {
86
86
  inboundCommandSchema,
87
87
  maxRetries,
88
88
  targetName,
89
+ externalSystem,
89
90
  sourceNames,
90
91
  capabilityNeeds,
91
92
  admissionDoor,
92
93
  moduleUrl,
93
- externalSystem,
94
94
  traits,
95
95
  }
96
96
  /* consumedEventSchema Not a pure module */