@sprucelabs/mercury-core-events 15.5.12 → 15.6.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 (29) hide show
  1. package/build/.spruce/schemas/mercury/v2020_12_25/didUpdateFeedEmitPayload.schema.js +1 -1
  2. package/build/.spruce/schemas/mercury/v2020_12_25/didUpdateFeedEmitTarget.schema.d.ts +3 -0
  3. package/build/.spruce/schemas/mercury/v2020_12_25/didUpdateFeedEmitTarget.schema.js +28 -0
  4. package/build/.spruce/schemas/mercury/v2020_12_25/didUpdateFeedEmitTargetAndPayload.schema.js +2 -2
  5. package/build/.spruce/schemas/mercury/v2020_12_25/feed.schema.d.ts +3 -0
  6. package/build/.spruce/schemas/mercury/v2020_12_25/feed.schema.js +25 -0
  7. package/build/.spruce/schemas/mercury/v2020_12_25/feedItem.schema.d.ts +3 -0
  8. package/build/.spruce/schemas/mercury/v2020_12_25/feedItem.schema.js +95 -0
  9. package/build/.spruce/schemas/mercury/v2020_12_25/getFeedResponsePayload.schema.js +1 -1
  10. package/build/.spruce/schemas/schemas.types.d.ts +461 -291
  11. package/build/esm/.spruce/schemas/mercury/v2020_12_25/didUpdateFeedEmitPayload.schema.js +2 -2
  12. package/build/esm/.spruce/schemas/mercury/v2020_12_25/didUpdateFeedEmitTarget.schema.d.ts +3 -0
  13. package/build/esm/.spruce/schemas/mercury/v2020_12_25/didUpdateFeedEmitTarget.schema.js +26 -0
  14. package/build/esm/.spruce/schemas/mercury/v2020_12_25/didUpdateFeedEmitTargetAndPayload.schema.js +2 -2
  15. package/build/esm/.spruce/schemas/mercury/v2020_12_25/feed.schema.d.ts +3 -0
  16. package/build/esm/.spruce/schemas/mercury/v2020_12_25/feed.schema.js +20 -0
  17. package/build/esm/.spruce/schemas/mercury/v2020_12_25/feedItem.schema.d.ts +3 -0
  18. package/build/esm/.spruce/schemas/mercury/v2020_12_25/feedItem.schema.js +90 -0
  19. package/build/esm/.spruce/schemas/mercury/v2020_12_25/getFeedResponsePayload.schema.js +2 -2
  20. package/build/esm/.spruce/schemas/schemas.types.d.ts +461 -291
  21. package/package.json +5 -5
  22. package/build/.spruce/schemas/spruce/v2020_07_22/feed.schema.d.ts +0 -1
  23. package/build/.spruce/schemas/spruce/v2020_07_22/feed.schema.js +0 -5
  24. package/build/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.d.ts +0 -1
  25. package/build/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +0 -5
  26. package/build/esm/.spruce/schemas/spruce/v2020_07_22/feed.schema.d.ts +0 -1
  27. package/build/esm/.spruce/schemas/spruce/v2020_07_22/feed.schema.js +0 -1
  28. package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.d.ts +0 -1
  29. package/build/esm/.spruce/schemas/spruce/v2020_07_22/feedItem.schema.js +0 -1
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const schema_1 = require("@sprucelabs/schema");
7
- const feedItem_schema_1 = __importDefault(require("./../../spruce/v2020_07_22/feedItem.schema"));
7
+ const feedItem_schema_1 = __importDefault(require("./feedItem.schema"));
8
8
  const didUpdateFeedEmitPayloadSchema = {
9
9
  id: 'didUpdateFeedEmitPayload',
10
10
  version: 'v2020_12_25',
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const didUpdateFeedEmitTargetSchema: SpruceSchemas.Mercury.v2020_12_25.DidUpdateFeedEmitTargetSchema;
3
+ export default didUpdateFeedEmitTargetSchema;
@@ -0,0 +1,28 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const schema_1 = require("@sprucelabs/schema");
4
+ const didUpdateFeedEmitTargetSchema = {
5
+ id: 'didUpdateFeedEmitTarget',
6
+ version: 'v2020_12_25',
7
+ namespace: 'Mercury',
8
+ name: '',
9
+ fields: {
10
+ /** . */
11
+ 'locationId': {
12
+ type: 'id',
13
+ options: undefined
14
+ },
15
+ /** . */
16
+ 'organizationId': {
17
+ type: 'id',
18
+ options: undefined
19
+ },
20
+ /** . */
21
+ 'skillId': {
22
+ type: 'id',
23
+ options: undefined
24
+ },
25
+ }
26
+ };
27
+ schema_1.SchemaRegistry.getInstance().trackSchema(didUpdateFeedEmitTargetSchema);
28
+ exports.default = didUpdateFeedEmitTargetSchema;
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const schema_1 = require("@sprucelabs/schema");
7
7
  const eventSource_schema_1 = __importDefault(require("./../../spruceEventUtils/v2021_09_13/eventSource.schema"));
8
- const eventTarget_schema_1 = __importDefault(require("./../../spruceEventUtils/v2021_09_13/eventTarget.schema"));
8
+ const didUpdateFeedEmitTarget_schema_1 = __importDefault(require("./didUpdateFeedEmitTarget.schema"));
9
9
  const didUpdateFeedEmitPayload_schema_1 = __importDefault(require("./didUpdateFeedEmitPayload.schema"));
10
10
  const didUpdateFeedEmitTargetAndPayloadSchema = {
11
11
  id: 'didUpdateFeedEmitTargetAndPayload',
@@ -22,7 +22,7 @@ const didUpdateFeedEmitTargetAndPayloadSchema = {
22
22
  /** . */
23
23
  'target': {
24
24
  type: 'schema',
25
- options: { schema: eventTarget_schema_1.default, }
25
+ options: { schema: didUpdateFeedEmitTarget_schema_1.default, }
26
26
  },
27
27
  /** . */
28
28
  'payload': {
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const feedSchema: SpruceSchemas.Mercury.v2020_12_25.FeedSchema;
3
+ export default feedSchema;
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const schema_1 = require("@sprucelabs/schema");
7
+ const feedItem_schema_1 = __importDefault(require("./feedItem.schema"));
8
+ const feedSchema = {
9
+ id: 'feed',
10
+ version: 'v2020_12_25',
11
+ namespace: 'Mercury',
12
+ name: '',
13
+ fields: {
14
+ /** . */
15
+ 'items': {
16
+ type: 'schema',
17
+ isRequired: true,
18
+ isArray: true,
19
+ minArrayLength: 0,
20
+ options: { schema: feedItem_schema_1.default, }
21
+ },
22
+ }
23
+ };
24
+ schema_1.SchemaRegistry.getInstance().trackSchema(feedSchema);
25
+ exports.default = feedSchema;
@@ -0,0 +1,3 @@
1
+ import { SpruceSchemas } from '../../schemas.types';
2
+ declare const feedItemSchema: SpruceSchemas.Mercury.v2020_12_25.FeedItemSchema;
3
+ export default feedItemSchema;
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const schema_1 = require("@sprucelabs/schema");
7
+ const choice_schema_1 = __importDefault(require("./../../spruce/v2020_07_22/choice.schema"));
8
+ const link_schema_1 = __importDefault(require("./../../spruce/v2020_07_22/link.schema"));
9
+ const feedItemSchema = {
10
+ id: 'feedItem',
11
+ version: 'v2020_12_25',
12
+ namespace: 'Mercury',
13
+ name: '',
14
+ fields: {
15
+ /** . */
16
+ 'id': {
17
+ type: 'id',
18
+ isRequired: true,
19
+ options: undefined
20
+ },
21
+ /** . */
22
+ 'isMe': {
23
+ type: 'boolean',
24
+ options: undefined
25
+ },
26
+ /** . */
27
+ 'message': {
28
+ type: 'text',
29
+ isRequired: true,
30
+ options: undefined
31
+ },
32
+ /** . */
33
+ 'dateCreated': {
34
+ type: 'dateTime',
35
+ isRequired: true,
36
+ options: undefined
37
+ },
38
+ /** . */
39
+ 'note': {
40
+ type: 'text',
41
+ options: undefined
42
+ },
43
+ /** . */
44
+ 'isSprucebot': {
45
+ type: 'boolean',
46
+ options: undefined
47
+ },
48
+ /** . */
49
+ 'source': {
50
+ type: 'raw',
51
+ options: { valueType: `Record<string, any>`, }
52
+ },
53
+ /** . */
54
+ 'fromCasualName': {
55
+ type: 'text',
56
+ isRequired: true,
57
+ options: undefined
58
+ },
59
+ /** . */
60
+ 'avatar': {
61
+ type: 'image',
62
+ options: { requiredSizes: ["*"], }
63
+ },
64
+ /** . */
65
+ 'choices': {
66
+ type: 'schema',
67
+ isArray: true,
68
+ options: { schema: choice_schema_1.default, }
69
+ },
70
+ /** . */
71
+ 'links': {
72
+ type: 'schema',
73
+ isArray: true,
74
+ minArrayLength: 0,
75
+ options: { schema: link_schema_1.default, }
76
+ },
77
+ /** . */
78
+ 'toCasualName': {
79
+ type: 'text',
80
+ options: undefined
81
+ },
82
+ /** . */
83
+ 'fromPersonId': {
84
+ type: 'id',
85
+ options: undefined
86
+ },
87
+ /** . */
88
+ 'toPersonId': {
89
+ type: 'id',
90
+ options: undefined
91
+ },
92
+ }
93
+ };
94
+ schema_1.SchemaRegistry.getInstance().trackSchema(feedItemSchema);
95
+ exports.default = feedItemSchema;
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
4
4
  };
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  const schema_1 = require("@sprucelabs/schema");
7
- const feed_schema_1 = __importDefault(require("./../../spruce/v2020_07_22/feed.schema"));
7
+ const feed_schema_1 = __importDefault(require("./feed.schema"));
8
8
  const eventPagingResponse_schema_1 = __importDefault(require("./../../spruceEventUtils/v2021_09_13/eventPagingResponse.schema"));
9
9
  const getFeedResponsePayloadSchema = {
10
10
  id: 'getFeedResponsePayload',