@sprucelabs/mercury-types 46.0.300 → 47.0.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 (37) hide show
  1. package/build/.spruce/errors/errors.types.js +0 -2
  2. package/build/.spruce/errors/mercury/invalidEventContract.schema.js +1 -1
  3. package/build/.spruce/errors/options.types.d.ts +2 -2
  4. package/build/.spruce/schemas/fields/fields.types.d.ts +1 -1
  5. package/build/.spruce/schemas/mercury/v2020_12_25/eventContract.schema.js +6 -6
  6. package/build/.spruce/schemas/mercury/v2020_12_25/eventSignature.schema.js +18 -18
  7. package/build/.spruce/schemas/mercury/v2020_12_25/eventSignaturesByName.schema.js +1 -1
  8. package/build/.spruce/schemas/mercury/v2020_12_25/feedOptions.schema.js +9 -9
  9. package/build/.spruce/schemas/mercury/v2020_12_25/permission.schema.js +13 -13
  10. package/build/.spruce/schemas/mercury/v2020_12_25/permissionContract.schema.js +12 -12
  11. package/build/.spruce/schemas/mercury/v2020_12_25/permissionDefaults.schema.js +17 -17
  12. package/build/.spruce/schemas/mercury/v2020_12_25/permissionReference.schema.js +8 -6
  13. package/build/.spruce/schemas/mercury/v2020_12_25/statusFlags.schema.js +12 -12
  14. package/build/.spruce/schemas/schemas.types.d.ts +87 -88
  15. package/build/.spruce/schemas/schemas.types.js +0 -2
  16. package/build/errors/SpruceError.d.ts +1 -1
  17. package/build/errors/SpruceError.js +2 -2
  18. package/build/esm/.spruce/errors/errors.types.js +0 -2
  19. package/build/esm/.spruce/errors/options.types.d.ts +2 -2
  20. package/build/esm/.spruce/schemas/mercury/v2020_12_25/eventContract.schema.js +6 -6
  21. package/build/esm/.spruce/schemas/mercury/v2020_12_25/eventSignature.schema.js +18 -18
  22. package/build/esm/.spruce/schemas/mercury/v2020_12_25/eventSignaturesByName.schema.js +1 -1
  23. package/build/esm/.spruce/schemas/mercury/v2020_12_25/feedOptions.schema.js +9 -9
  24. package/build/esm/.spruce/schemas/mercury/v2020_12_25/permission.schema.js +13 -13
  25. package/build/esm/.spruce/schemas/mercury/v2020_12_25/permissionContract.schema.js +12 -12
  26. package/build/esm/.spruce/schemas/mercury/v2020_12_25/permissionDefaults.schema.js +17 -17
  27. package/build/esm/.spruce/schemas/mercury/v2020_12_25/permissionReference.schema.js +8 -6
  28. package/build/esm/.spruce/schemas/mercury/v2020_12_25/statusFlags.schema.js +12 -12
  29. package/build/esm/.spruce/schemas/schemas.types.d.ts +87 -88
  30. package/build/esm/.spruce/schemas/schemas.types.js +0 -2
  31. package/build/esm/errors/SpruceError.d.ts +1 -1
  32. package/build/esm/schemas/v2020_12_25/eventContract.builder.js +6 -2
  33. package/build/esm/types/mercury.types.d.ts +2 -4
  34. package/build/schemas/v2020_12_25/eventContract.builder.js +6 -2
  35. package/build/schemas/v2020_12_25/permissionContract.builder.js +25 -29
  36. package/build/types/mercury.types.d.ts +2 -4
  37. package/package.json +15 -15
@@ -10,7 +10,7 @@ const eventSignaturesByNameSchema = {
10
10
  type: 'schema',
11
11
  keyName: 'eventName',
12
12
  isRequired: true,
13
- options: { schema: eventSignatureSchema_v2020_12_25, }
13
+ options: { schema: eventSignatureSchema_v2020_12_25 },
14
14
  },
15
15
  };
16
16
  SchemaRegistry.getInstance().trackSchema(eventSignaturesByNameSchema);
@@ -7,31 +7,31 @@ const feedOptionsSchema = {
7
7
  moduleToImportFromWhenRemote: '@sprucelabs/mercury-types',
8
8
  fields: {
9
9
  /** . A handlebarsjs template used to render the chat bubbles in the feed. You will have both the entire target and payload available to you in the template. See http://developer.spruce.bot for more details. */
10
- 'template': {
10
+ template: {
11
11
  type: 'text',
12
12
  hint: 'A handlebarsjs template used to render the chat bubbles in the feed. You will have both the entire target and payload available to you in the template. See http://developer.spruce.bot for more details.',
13
- options: undefined
13
+ options: undefined,
14
14
  },
15
15
  /** . */
16
- 'pathsToLinks': {
16
+ pathsToLinks: {
17
17
  type: 'text',
18
18
  isArray: true,
19
19
  minArrayLength: 0,
20
- options: undefined
20
+ options: undefined,
21
21
  },
22
22
  /** . */
23
- 'pathsToChoices': {
23
+ pathsToChoices: {
24
24
  type: 'text',
25
25
  isArray: true,
26
26
  minArrayLength: 0,
27
- options: undefined
27
+ options: undefined,
28
28
  },
29
29
  /** . */
30
- 'pathToContext': {
30
+ pathToContext: {
31
31
  type: 'text',
32
- options: undefined
32
+ options: undefined,
33
33
  },
34
- }
34
+ },
35
35
  };
36
36
  SchemaRegistry.getInstance().trackSchema(feedOptionsSchema);
37
37
  export default feedOptionsSchema;
@@ -9,45 +9,45 @@ const permissionSchema = {
9
9
  moduleToImportFromWhenRemote: '@sprucelabs/mercury-types',
10
10
  fields: {
11
11
  /** id. Hyphen separated id for this permission, e.g. can-unlock-doors */
12
- 'id': {
12
+ id: {
13
13
  label: 'id',
14
14
  type: 'text',
15
15
  isRequired: true,
16
16
  hint: 'Hyphen separated id for this permission, e.g. can-unlock-doors',
17
- options: undefined
17
+ options: undefined,
18
18
  },
19
19
  /** Name. Human readable name for this permission */
20
- 'name': {
20
+ name: {
21
21
  label: 'Name',
22
22
  type: 'text',
23
23
  isRequired: true,
24
24
  hint: 'Human readable name for this permission',
25
- options: undefined
25
+ options: undefined,
26
26
  },
27
27
  /** Description. */
28
- 'description': {
28
+ description: {
29
29
  label: 'Description',
30
30
  type: 'text',
31
- options: undefined
31
+ options: undefined,
32
32
  },
33
33
  /** Require all statuses. */
34
- 'requireAllStatuses': {
34
+ requireAllStatuses: {
35
35
  label: 'Require all statuses',
36
36
  type: 'boolean',
37
37
  defaultValue: false,
38
- options: undefined
38
+ options: undefined,
39
39
  },
40
40
  /** . */
41
- 'defaults': {
41
+ defaults: {
42
42
  type: 'schema',
43
- options: { schema: permissionDefaultsSchema_v2020_12_25, }
43
+ options: { schema: permissionDefaultsSchema_v2020_12_25 },
44
44
  },
45
45
  /** . */
46
- 'can': {
46
+ can: {
47
47
  type: 'schema',
48
- options: { schema: statusFlagsSchema_v2020_12_25, }
48
+ options: { schema: statusFlagsSchema_v2020_12_25 },
49
49
  },
50
- }
50
+ },
51
51
  };
52
52
  SchemaRegistry.getInstance().trackSchema(permissionSchema);
53
53
  export default permissionSchema;
@@ -5,46 +5,46 @@ const permissionContractSchema = {
5
5
  version: 'v2020_12_25',
6
6
  namespace: 'Mercury',
7
7
  name: 'Permission contract',
8
- importsWhenRemote: ['import \'@sprucelabs/mercury-types\'',],
8
+ importsWhenRemote: ["import '@sprucelabs/mercury-types'"],
9
9
  moduleToImportFromWhenRemote: '@sprucelabs/mercury-types',
10
10
  description: 'A Mercury Permission Contract',
11
11
  fields: {
12
12
  /** . */
13
- 'id': {
13
+ id: {
14
14
  type: 'text',
15
15
  isRequired: true,
16
- options: undefined
16
+ options: undefined,
17
17
  },
18
18
  /** Name. Human readable name for this contract */
19
- 'name': {
19
+ name: {
20
20
  label: 'Name',
21
21
  type: 'text',
22
22
  isRequired: true,
23
23
  hint: 'Human readable name for this contract',
24
- options: undefined
24
+ options: undefined,
25
25
  },
26
26
  /** Description. */
27
- 'description': {
27
+ description: {
28
28
  label: 'Description',
29
29
  type: 'text',
30
- options: undefined
30
+ options: undefined,
31
31
  },
32
32
  /** Require all permissions. */
33
- 'requireAllPermissions': {
33
+ requireAllPermissions: {
34
34
  label: 'Require all permissions',
35
35
  type: 'boolean',
36
36
  defaultValue: false,
37
- options: undefined
37
+ options: undefined,
38
38
  },
39
39
  /** . */
40
- 'permissions': {
40
+ permissions: {
41
41
  type: 'schema',
42
42
  isRequired: true,
43
43
  isArray: true,
44
44
  minArrayLength: 0,
45
- options: { schema: permissionSchema_v2020_12_25, }
45
+ options: { schema: permissionSchema_v2020_12_25 },
46
46
  },
47
- }
47
+ },
48
48
  };
49
49
  SchemaRegistry.getInstance().trackSchema(permissionContractSchema);
50
50
  export default permissionContractSchema;
@@ -8,53 +8,53 @@ const permissionDefaultsSchema = {
8
8
  moduleToImportFromWhenRemote: '@sprucelabs/mercury-types',
9
9
  fields: {
10
10
  /** . */
11
- 'skill': {
11
+ skill: {
12
12
  type: 'boolean',
13
- options: undefined
13
+ options: undefined,
14
14
  },
15
15
  /** Owner. */
16
- 'owner': {
16
+ owner: {
17
17
  label: 'Owner',
18
18
  type: 'schema',
19
- options: { schema: statusFlagsSchema_v2020_12_25, }
19
+ options: { schema: statusFlagsSchema_v2020_12_25 },
20
20
  },
21
21
  /** Group manager. */
22
- 'groupManager': {
22
+ groupManager: {
23
23
  label: 'Group manager',
24
24
  type: 'schema',
25
- options: { schema: statusFlagsSchema_v2020_12_25, }
25
+ options: { schema: statusFlagsSchema_v2020_12_25 },
26
26
  },
27
27
  /** Manager. */
28
- 'manager': {
28
+ manager: {
29
29
  label: 'Manager',
30
30
  type: 'schema',
31
- options: { schema: statusFlagsSchema_v2020_12_25, }
31
+ options: { schema: statusFlagsSchema_v2020_12_25 },
32
32
  },
33
33
  /** Teammate. */
34
- 'teammate': {
34
+ teammate: {
35
35
  label: 'Teammate',
36
36
  type: 'schema',
37
- options: { schema: statusFlagsSchema_v2020_12_25, }
37
+ options: { schema: statusFlagsSchema_v2020_12_25 },
38
38
  },
39
39
  /** Anonymous. */
40
- 'anonymous': {
40
+ anonymous: {
41
41
  label: 'Anonymous',
42
42
  type: 'schema',
43
- options: { schema: statusFlagsSchema_v2020_12_25, }
43
+ options: { schema: statusFlagsSchema_v2020_12_25 },
44
44
  },
45
45
  /** Logged in. */
46
- 'loggedIn': {
46
+ loggedIn: {
47
47
  label: 'Logged in',
48
48
  type: 'schema',
49
- options: { schema: statusFlagsSchema_v2020_12_25, }
49
+ options: { schema: statusFlagsSchema_v2020_12_25 },
50
50
  },
51
51
  /** Guest. */
52
- 'guest': {
52
+ guest: {
53
53
  label: 'Guest',
54
54
  type: 'schema',
55
- options: { schema: statusFlagsSchema_v2020_12_25, }
55
+ options: { schema: statusFlagsSchema_v2020_12_25 },
56
56
  },
57
- }
57
+ },
58
58
  };
59
59
  SchemaRegistry.getInstance().trackSchema(permissionDefaultsSchema);
60
60
  export default permissionDefaultsSchema;
@@ -4,23 +4,25 @@ const permissionReferenceSchema = {
4
4
  version: 'v2020_12_25',
5
5
  namespace: 'Mercury',
6
6
  name: '',
7
- importsWhenRemote: ['import * as MercuryTypes from \'@sprucelabs/mercury-types\'',],
7
+ importsWhenRemote: [
8
+ "import * as MercuryTypes from '@sprucelabs/mercury-types'",
9
+ ],
8
10
  moduleToImportFromWhenRemote: '@sprucelabs/mercury-types',
9
11
  typeSuffix: '<ContractId extends MercuryTypes.PermissionContractId = MercuryTypes.PermissionContractId>',
10
12
  fields: {
11
13
  /** . */
12
- 'contractId': {
14
+ contractId: {
13
15
  type: 'raw',
14
16
  isRequired: true,
15
- options: { valueType: `ContractId`, }
17
+ options: { valueType: `ContractId` },
16
18
  },
17
19
  /** . */
18
- 'permissionIdsAny': {
20
+ permissionIdsAny: {
19
21
  type: 'raw',
20
22
  isArray: true,
21
- options: { valueType: `MercuryTypes.PermissionId<ContractId>`, }
23
+ options: { valueType: `MercuryTypes.PermissionId<ContractId>` },
22
24
  },
23
- }
25
+ },
24
26
  };
25
27
  SchemaRegistry.getInstance().trackSchema(permissionReferenceSchema);
26
28
  export default permissionReferenceSchema;
@@ -7,40 +7,40 @@ const statusFlagsSchema = {
7
7
  moduleToImportFromWhenRemote: '@sprucelabs/mercury-types',
8
8
  fields: {
9
9
  /** . What is the fallback if no status is set? */
10
- 'default': {
10
+ default: {
11
11
  type: 'boolean',
12
12
  hint: 'What is the fallback if no status is set?',
13
- options: undefined
13
+ options: undefined,
14
14
  },
15
15
  /** Clocked in. Is the person clocked in and ready to rock? */
16
- 'clockedIn': {
16
+ clockedIn: {
17
17
  label: 'Clocked in',
18
18
  type: 'boolean',
19
19
  hint: 'Is the person clocked in and ready to rock?',
20
- options: undefined
20
+ options: undefined,
21
21
  },
22
22
  /** Clocked out. When someone is not working (off the clock). */
23
- 'clockedOut': {
23
+ clockedOut: {
24
24
  label: 'Clocked out',
25
25
  type: 'boolean',
26
26
  hint: 'When someone is not working (off the clock).',
27
- options: undefined
27
+ options: undefined,
28
28
  },
29
29
  /** On premises. Are they at work (maybe working, maybe visiting). */
30
- 'onPrem': {
30
+ onPrem: {
31
31
  label: 'On premises',
32
32
  type: 'boolean',
33
33
  hint: 'Are they at work (maybe working, maybe visiting).',
34
- options: undefined
34
+ options: undefined,
35
35
  },
36
36
  /** Off premises. They aren't at the office or shop. */
37
- 'offPrem': {
37
+ offPrem: {
38
38
  label: 'Off premises',
39
39
  type: 'boolean',
40
- hint: 'They aren\'t at the office or shop.',
41
- options: undefined
40
+ hint: "They aren't at the office or shop.",
41
+ options: undefined,
42
42
  },
43
- }
43
+ },
44
44
  };
45
45
  SchemaRegistry.getInstance().trackSchema(statusFlagsSchema);
46
46
  export default statusFlagsSchema;