@sprucelabs/mercury-core-events 22.0.188 → 22.1.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.
- package/build/.spruce/events/events.contract.d.ts +36 -0
- package/build/.spruce/events/events.contract.js +8 -0
- package/build/.spruce/events/mercury/listSecurityQuestions.v2020_12_25.contract.d.ts +11 -0
- package/build/.spruce/events/mercury/listSecurityQuestions.v2020_12_25.contract.js +18 -0
- package/build/.spruce/events/mercury/login.v2020_12_25.contract.d.ts +11 -0
- package/build/.spruce/events/mercury/login.v2020_12_25.contract.js +18 -0
- package/build/.spruce/events/mercury/resetPassword.v2020_12_25.contract.d.ts +11 -0
- package/build/.spruce/events/mercury/resetPassword.v2020_12_25.contract.js +18 -0
- package/build/.spruce/events/mercury/signup.v2020_12_25.contract.d.ts +11 -0
- package/build/.spruce/events/mercury/signup.v2020_12_25.contract.js +18 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/createPersonEmitPayload.schema.js +15 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/listSecurityQuestionsEmitTarget.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/listSecurityQuestionsEmitTarget.schema.js +18 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/listSecurityQuestionsEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/listSecurityQuestionsEmitTargetAndPayload.schema.js +29 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/listSecurityQuestionsResponsePayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/listSecurityQuestionsResponsePayload.schema.js +21 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/loginEmitPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/loginEmitPayload.schema.js +19 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/loginEmitTarget.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/loginEmitTarget.schema.js +19 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/loginEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/loginEmitTargetAndPayload.schema.js +37 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/loginResponsePayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/loginResponsePayload.schema.js +29 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/resetPasswordEmitPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/resetPasswordEmitPayload.schema.js +37 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/resetPasswordEmitTarget.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/resetPasswordEmitTarget.schema.js +19 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/resetPasswordEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/resetPasswordEmitTargetAndPayload.schema.js +37 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/resetPasswordResponsePayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/resetPasswordResponsePayload.schema.js +23 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/securityQuestion.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/securityQuestion.schema.js +25 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/signupEmitPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/signupEmitPayload.schema.js +53 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/signupEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/signupEmitTargetAndPayload.schema.js +30 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/signupResponsePayload.schema.d.ts +3 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/signupResponsePayload.schema.js +29 -0
- package/build/.spruce/schemas/mercury/v2020_12_25/updatePersonEmitPayload.schema.js +15 -0
- package/build/.spruce/schemas/schemas.types.d.ts +747 -254
- package/build/.spruce/settings.json +4 -0
- package/build/esm/.spruce/events/events.contract.d.ts +36 -0
- package/build/esm/.spruce/events/events.contract.js +8 -0
- package/build/esm/.spruce/events/mercury/listSecurityQuestions.v2020_12_25.contract.d.ts +11 -0
- package/build/esm/.spruce/events/mercury/listSecurityQuestions.v2020_12_25.contract.js +13 -0
- package/build/esm/.spruce/events/mercury/login.v2020_12_25.contract.d.ts +11 -0
- package/build/esm/.spruce/events/mercury/login.v2020_12_25.contract.js +13 -0
- package/build/esm/.spruce/events/mercury/resetPassword.v2020_12_25.contract.d.ts +11 -0
- package/build/esm/.spruce/events/mercury/resetPassword.v2020_12_25.contract.js +13 -0
- package/build/esm/.spruce/events/mercury/signup.v2020_12_25.contract.d.ts +11 -0
- package/build/esm/.spruce/events/mercury/signup.v2020_12_25.contract.js +13 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/createPersonEmitPayload.schema.js +12 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/listSecurityQuestionsEmitTarget.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/listSecurityQuestionsEmitTarget.schema.js +16 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/listSecurityQuestionsEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/listSecurityQuestionsEmitTargetAndPayload.schema.js +24 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/listSecurityQuestionsResponsePayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/listSecurityQuestionsResponsePayload.schema.js +19 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/loginEmitPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/loginEmitPayload.schema.js +17 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/loginEmitTarget.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/loginEmitTarget.schema.js +17 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/loginEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/loginEmitTargetAndPayload.schema.js +32 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/loginResponsePayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/loginResponsePayload.schema.js +24 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/resetPasswordEmitPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/resetPasswordEmitPayload.schema.js +32 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/resetPasswordEmitTarget.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/resetPasswordEmitTarget.schema.js +17 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/resetPasswordEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/resetPasswordEmitTargetAndPayload.schema.js +32 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/resetPasswordResponsePayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/resetPasswordResponsePayload.schema.js +18 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/securityQuestion.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/securityQuestion.schema.js +23 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/signupEmitPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/signupEmitPayload.schema.js +48 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/signupEmitTargetAndPayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/signupEmitTargetAndPayload.schema.js +25 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/signupResponsePayload.schema.d.ts +3 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/signupResponsePayload.schema.js +24 -0
- package/build/esm/.spruce/schemas/mercury/v2020_12_25/updatePersonEmitPayload.schema.js +12 -0
- package/build/esm/.spruce/schemas/schemas.types.d.ts +747 -254
- package/package.json +4 -4
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
const securityQuestionSchema = {
|
|
3
|
+
id: 'securityQuestion',
|
|
4
|
+
version: 'v2020_12_25',
|
|
5
|
+
namespace: 'Mercury',
|
|
6
|
+
name: '',
|
|
7
|
+
fields: {
|
|
8
|
+
/** . */
|
|
9
|
+
'question': {
|
|
10
|
+
type: 'text',
|
|
11
|
+
isRequired: true,
|
|
12
|
+
options: undefined
|
|
13
|
+
},
|
|
14
|
+
/** . */
|
|
15
|
+
'answer': {
|
|
16
|
+
type: 'text',
|
|
17
|
+
isRequired: true,
|
|
18
|
+
options: undefined
|
|
19
|
+
},
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
SchemaRegistry.getInstance().trackSchema(securityQuestionSchema);
|
|
23
|
+
export default securityQuestionSchema;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
import securityQuestionSchema_v2020_12_25 from './securityQuestion.schema.js';
|
|
3
|
+
const signupEmitPayloadSchema = {
|
|
4
|
+
id: 'signupEmitPayload',
|
|
5
|
+
version: 'v2020_12_25',
|
|
6
|
+
namespace: 'Mercury',
|
|
7
|
+
name: '',
|
|
8
|
+
fields: {
|
|
9
|
+
/** . */
|
|
10
|
+
'phone': {
|
|
11
|
+
type: 'phone',
|
|
12
|
+
isRequired: true,
|
|
13
|
+
options: undefined
|
|
14
|
+
},
|
|
15
|
+
/** . */
|
|
16
|
+
'firstName': {
|
|
17
|
+
type: 'text',
|
|
18
|
+
options: undefined
|
|
19
|
+
},
|
|
20
|
+
/** . */
|
|
21
|
+
'lastName': {
|
|
22
|
+
type: 'text',
|
|
23
|
+
options: undefined
|
|
24
|
+
},
|
|
25
|
+
/** . */
|
|
26
|
+
'password': {
|
|
27
|
+
type: 'text',
|
|
28
|
+
isRequired: true,
|
|
29
|
+
options: undefined
|
|
30
|
+
},
|
|
31
|
+
/** . */
|
|
32
|
+
'passwordConfirm': {
|
|
33
|
+
type: 'text',
|
|
34
|
+
isRequired: true,
|
|
35
|
+
options: undefined
|
|
36
|
+
},
|
|
37
|
+
/** . */
|
|
38
|
+
'securityQuestions': {
|
|
39
|
+
type: 'schema',
|
|
40
|
+
isRequired: true,
|
|
41
|
+
isArray: true,
|
|
42
|
+
minArrayLength: 2,
|
|
43
|
+
options: { schema: securityQuestionSchema_v2020_12_25, }
|
|
44
|
+
},
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
SchemaRegistry.getInstance().trackSchema(signupEmitPayloadSchema);
|
|
48
|
+
export default signupEmitPayloadSchema;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
import eventSourceSchema_v2021_09_13 from './../../spruceEventUtils/v2021_09_13/eventSource.schema.js';
|
|
3
|
+
import signupEmitPayloadSchema_v2020_12_25 from './signupEmitPayload.schema.js';
|
|
4
|
+
const signupEmitTargetAndPayloadSchema = {
|
|
5
|
+
id: 'signupEmitTargetAndPayload',
|
|
6
|
+
version: 'v2020_12_25',
|
|
7
|
+
namespace: 'Mercury',
|
|
8
|
+
name: '',
|
|
9
|
+
fields: {
|
|
10
|
+
/** Source. */
|
|
11
|
+
'source': {
|
|
12
|
+
label: 'Source',
|
|
13
|
+
type: 'schema',
|
|
14
|
+
options: { schema: eventSourceSchema_v2021_09_13, }
|
|
15
|
+
},
|
|
16
|
+
/** . */
|
|
17
|
+
'payload': {
|
|
18
|
+
type: 'schema',
|
|
19
|
+
isRequired: true,
|
|
20
|
+
options: { schema: signupEmitPayloadSchema_v2020_12_25, }
|
|
21
|
+
},
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
SchemaRegistry.getInstance().trackSchema(signupEmitTargetAndPayloadSchema);
|
|
25
|
+
export default signupEmitTargetAndPayloadSchema;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
import personSchema_v2020_07_22 from './../../spruce/v2020_07_22/person.schema.js';
|
|
3
|
+
const signupResponsePayloadSchema = {
|
|
4
|
+
id: 'signupResponsePayload',
|
|
5
|
+
version: 'v2020_12_25',
|
|
6
|
+
namespace: 'Mercury',
|
|
7
|
+
name: '',
|
|
8
|
+
fields: {
|
|
9
|
+
/** . */
|
|
10
|
+
'token': {
|
|
11
|
+
type: 'text',
|
|
12
|
+
isRequired: true,
|
|
13
|
+
options: undefined
|
|
14
|
+
},
|
|
15
|
+
/** . */
|
|
16
|
+
'person': {
|
|
17
|
+
type: 'schema',
|
|
18
|
+
isRequired: true,
|
|
19
|
+
options: { schema: personSchema_v2020_07_22, }
|
|
20
|
+
},
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
SchemaRegistry.getInstance().trackSchema(signupResponsePayloadSchema);
|
|
24
|
+
export default signupResponsePayloadSchema;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SchemaRegistry } from '@sprucelabs/schema';
|
|
2
|
+
import securityQuestionSchema_v2020_12_25 from './securityQuestion.schema.js';
|
|
2
3
|
const updatePersonEmitPayloadSchema = {
|
|
3
4
|
id: 'updatePersonEmitPayload',
|
|
4
5
|
version: 'v2020_12_25',
|
|
@@ -39,6 +40,17 @@ const updatePersonEmitPayloadSchema = {
|
|
|
39
40
|
hint: 'A number that can be texted',
|
|
40
41
|
options: undefined
|
|
41
42
|
},
|
|
43
|
+
/** . */
|
|
44
|
+
'password': {
|
|
45
|
+
type: 'text',
|
|
46
|
+
options: undefined
|
|
47
|
+
},
|
|
48
|
+
/** . */
|
|
49
|
+
'securityQuestions': {
|
|
50
|
+
type: 'schema',
|
|
51
|
+
isArray: true,
|
|
52
|
+
options: { schema: securityQuestionSchema_v2020_12_25, }
|
|
53
|
+
},
|
|
42
54
|
}
|
|
43
55
|
};
|
|
44
56
|
SchemaRegistry.getInstance().trackSchema(updatePersonEmitPayloadSchema);
|