@messenger-box/platform-server 0.0.1-alpha.249 → 0.0.1-alpha.255

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 (74) hide show
  1. package/lib/config/config.d.ts +6 -0
  2. package/lib/config/index.d.ts +1 -0
  3. package/lib/constants/default-notify-props.d.ts +7 -0
  4. package/lib/constants/extended-token-account.d.ts +3 -0
  5. package/lib/constants/index.d.ts +4 -0
  6. package/lib/constants/query.constants.d.ts +7 -0
  7. package/lib/containers/containers.d.ts +15 -0
  8. package/lib/containers/context-services-from-container.d.ts +3 -0
  9. package/lib/containers/index.d.ts +2 -0
  10. package/lib/enums/index.d.ts +1 -0
  11. package/lib/enums/notification-duration-unit-enum.d.ts +5 -0
  12. package/lib/graphql/index.d.ts +2 -0
  13. package/lib/graphql/resolvers/channel-member.d.ts +3 -0
  14. package/lib/graphql/resolvers/channel.d.ts +3 -0
  15. package/lib/graphql/resolvers/extended-token-account.d.ts +29 -0
  16. package/lib/graphql/resolvers/index.d.ts +28 -0
  17. package/lib/graphql/resolvers/post-thread.d.ts +3 -0
  18. package/lib/graphql/resolvers/post.d.ts +3 -0
  19. package/lib/graphql/resolvers/reaction.d.ts +3 -0
  20. package/lib/graphql/schema/index.d.ts +2 -0
  21. package/lib/index.d.ts +6 -0
  22. package/lib/index.js +3759 -0
  23. package/lib/index.js.map +1 -0
  24. package/lib/interfaces/channel-member.d.ts +8 -0
  25. package/lib/interfaces/channel-repository.d.ts +3 -0
  26. package/lib/interfaces/context.d.ts +15 -0
  27. package/lib/interfaces/index.d.ts +13 -0
  28. package/lib/interfaces/messenger-notification-service-interface.d.ts +4 -0
  29. package/lib/interfaces/notifications.d.ts +7 -0
  30. package/lib/interfaces/post-repository.d.ts +3 -0
  31. package/lib/interfaces/post-thread-repository.d.ts +3 -0
  32. package/lib/interfaces/post-thread-service.d.ts +3 -0
  33. package/lib/interfaces/reaction-repository.d.ts +3 -0
  34. package/lib/interfaces/reaction-service.d.ts +6 -0
  35. package/lib/interfaces/services.d.ts +15 -0
  36. package/lib/migrations/index.d.ts +1 -0
  37. package/lib/migrations/message-notification-template-migration.d.ts +15 -0
  38. package/lib/module.d.ts +3 -0
  39. package/lib/plugins/channel-moleculer-service.d.ts +8 -0
  40. package/lib/plugins/index.d.ts +5 -0
  41. package/lib/plugins/messenger-notification-moleculer-service.d.ts +14 -0
  42. package/lib/plugins/post-moleculer-service.d.ts +8 -0
  43. package/lib/plugins/post-thread-moleculer-service.d.ts +8 -0
  44. package/lib/plugins/reaction-moleculer-service.d.ts +8 -0
  45. package/lib/preferences/index.d.ts +1 -0
  46. package/lib/preferences/settings/index.d.ts +1 -0
  47. package/lib/preferences/settings/post-settings.d.ts +13 -0
  48. package/lib/services/channel-service.d.ts +44 -0
  49. package/lib/services/extended-token-account-service.d.ts +23 -0
  50. package/lib/services/index.d.ts +6 -0
  51. package/lib/services/messenger-notification-service.d.ts +32 -0
  52. package/lib/services/post-service.d.ts +18 -0
  53. package/lib/services/post-thread-service.d.ts +7 -0
  54. package/lib/services/proxy-services/channel-microservice.d.ts +50 -0
  55. package/lib/services/proxy-services/index.d.ts +5 -0
  56. package/lib/services/proxy-services/messenger-notification-microservice.d.ts +13 -0
  57. package/lib/services/proxy-services/post-microservice.d.ts +16 -0
  58. package/lib/services/proxy-services/post-thread-microservice.d.ts +9 -0
  59. package/lib/services/proxy-services/reaction-microservice.d.ts +9 -0
  60. package/lib/services/reaction-service.d.ts +7 -0
  61. package/lib/store/index.d.ts +1 -0
  62. package/lib/store/models/account-token-store.d.ts +4 -0
  63. package/lib/store/models/channel.d.ts +5 -0
  64. package/lib/store/models/common-options.d.ts +15 -0
  65. package/lib/store/models/index.d.ts +5 -0
  66. package/lib/store/models/post-thread.d.ts +5 -0
  67. package/lib/store/models/post.d.ts +5 -0
  68. package/lib/store/models/reaction.d.ts +5 -0
  69. package/lib/store/repositories/channel-repository.d.ts +7 -0
  70. package/lib/store/repositories/index.d.ts +4 -0
  71. package/lib/store/repositories/post-repository.d.ts +7 -0
  72. package/lib/store/repositories/post-thread-repository.d.ts +7 -0
  73. package/lib/store/repositories/reaction-repository.d.ts +8 -0
  74. package/package.json +4 -4
@@ -0,0 +1,6 @@
1
+ export declare const config: Readonly<{
2
+ FILES_TTL: number;
3
+ GRAPHQL_URL: string;
4
+ MAIL_SEND_DEFAULT_EMAIL: string;
5
+ APP_NAME: string;
6
+ } & import("envalid").CleanedEnvAccessors>;
@@ -0,0 +1 @@
1
+ export * from './config';
@@ -0,0 +1,7 @@
1
+ export declare const DEFAULT_NOTIFY_PROPS: {
2
+ desktopNotifyProp: boolean;
3
+ markUnreadNotifyProp: boolean;
4
+ pushNotifyProp: boolean;
5
+ emailNotifyProp: boolean;
6
+ ignoreChannelMentionsNotifyProp: boolean;
7
+ };
@@ -0,0 +1,3 @@
1
+ export declare const ExtendTokenAccountType: {
2
+ ExtendedTokenAccountService: symbol;
3
+ };
@@ -0,0 +1,4 @@
1
+ export * from './query.constants';
2
+ export * from './default-notify-props';
3
+ export * from './extended-token-account';
4
+ export { TYPES } from '@messenger-box/core/lib/server';
@@ -0,0 +1,7 @@
1
+ export declare enum PAGINATION_OPTIONS {
2
+ limit = 10,
3
+ skip = 0
4
+ }
5
+ export declare const DEFAULT_SORTING: {
6
+ id: string;
7
+ };
@@ -0,0 +1,15 @@
1
+ import { interfaces } from 'inversify';
2
+ /**
3
+ * Local services and exposed microservices to serve remote connections.
4
+ * Operates within in the Gateway.
5
+ *
6
+ * @param settings Settings
7
+ */
8
+ export declare const proxyServiceContainerModule: (settings: any) => interfaces.ContainerModule;
9
+ /**
10
+ * Operates external to the Gateway. Usually a broker listen to calls and invoke this service
11
+ * local to the micro container.
12
+ *
13
+ * @param settings Settings
14
+ */
15
+ export declare const serviceContainerModule: (settings: any) => interfaces.ContainerModule;
@@ -0,0 +1,3 @@
1
+ import { interfaces } from 'inversify';
2
+ import { IServices } from '../interfaces';
3
+ export declare const contextServicesFromContainer: (container: interfaces.Container) => IServices;
@@ -0,0 +1,2 @@
1
+ export * from './containers';
2
+ export * from './context-services-from-container';
@@ -0,0 +1 @@
1
+ export { NotificationDurationUnitEnum } from './notification-duration-unit-enum';
@@ -0,0 +1,5 @@
1
+ export declare enum NotificationDurationUnitEnum {
2
+ days = "days",
3
+ hours = "hours",
4
+ minutes = "minutes"
5
+ }
@@ -0,0 +1,2 @@
1
+ export * from './schema';
2
+ export * from './resolvers';
@@ -0,0 +1,3 @@
1
+ import { IResolvers } from '@messenger-box/core';
2
+ import { IContext } from '../../interfaces';
3
+ export declare const channelMemberResolvers: () => IResolvers<IContext>;
@@ -0,0 +1,3 @@
1
+ import { IResolvers } from '@messenger-box/core';
2
+ import { IContext } from '../../interfaces';
3
+ export declare const channelResolvers: () => IResolvers<IContext>;
@@ -0,0 +1,29 @@
1
+ import { IUserAccount } from '@adminide-stack/core';
2
+ export declare const resolver: () => {
3
+ UserAccount: {
4
+ deviceToken(src: IUserAccount, args: any, { extendedTokenAccountService }: {
5
+ extendedTokenAccountService: any;
6
+ }): Promise<any>;
7
+ };
8
+ Query: {
9
+ getDeviceToken(src: IUserAccount, args: any, { extendedTokenAccountService, userContext, accountService }: {
10
+ extendedTokenAccountService: any;
11
+ userContext: any;
12
+ accountService: any;
13
+ }): Promise<any>;
14
+ };
15
+ Mutation: {
16
+ setDeviceToken(_: any, { deviceToken }: {
17
+ deviceToken: any;
18
+ }, { extendedTokenAccountService, userContext }: {
19
+ extendedTokenAccountService: any;
20
+ userContext: any;
21
+ }): any;
22
+ removeDeviceToken(_: any, { deviceToken }: {
23
+ deviceToken: any;
24
+ }, { extendedTokenAccountService, userContext }: {
25
+ extendedTokenAccountService: any;
26
+ userContext: any;
27
+ }): any;
28
+ };
29
+ };
@@ -0,0 +1,28 @@
1
+ export declare const messengerResolvers: ((() => {
2
+ UserAccount: {
3
+ deviceToken(src: import("@adminide-stack/core").IUserAccount, args: any, { extendedTokenAccountService }: {
4
+ extendedTokenAccountService: any;
5
+ }): Promise<any>;
6
+ };
7
+ Query: {
8
+ getDeviceToken(src: import("@adminide-stack/core").IUserAccount, args: any, { extendedTokenAccountService, userContext, accountService }: {
9
+ extendedTokenAccountService: any;
10
+ userContext: any;
11
+ accountService: any;
12
+ }): Promise<any>;
13
+ };
14
+ Mutation: {
15
+ setDeviceToken(_: any, { deviceToken }: {
16
+ deviceToken: any;
17
+ }, { extendedTokenAccountService, userContext }: {
18
+ extendedTokenAccountService: any;
19
+ userContext: any;
20
+ }): any;
21
+ removeDeviceToken(_: any, { deviceToken }: {
22
+ deviceToken: any;
23
+ }, { extendedTokenAccountService, userContext }: {
24
+ extendedTokenAccountService: any;
25
+ userContext: any;
26
+ }): any;
27
+ };
28
+ }) | (() => import("@messenger-box/core").IResolvers<import("../..").IContext>))[];
@@ -0,0 +1,3 @@
1
+ import { IResolvers } from '@messenger-box/core';
2
+ import { IContext } from '../../interfaces';
3
+ export declare const postThreadResolvers: () => IResolvers<IContext>;
@@ -0,0 +1,3 @@
1
+ import { IResolvers } from '@messenger-box/core';
2
+ import { IContext } from '../../interfaces';
3
+ export declare const postResolvers: () => IResolvers<IContext>;
@@ -0,0 +1,3 @@
1
+ import { IResolvers } from '@messenger-box/core';
2
+ import { IContext } from '../../interfaces';
3
+ export declare const reactionResolvers: () => IResolvers<IContext>;
@@ -0,0 +1,2 @@
1
+ declare const schema: string;
2
+ export { schema };
package/lib/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ import { Feature } from '@common-stack/server-core';
2
+ export * from './constants';
3
+ declare const _default: Feature<import("@common-stack/server-core").ConfigurationScope>;
4
+ export default _default;
5
+ export { PostTypes } from './preferences';
6
+ export * from './interfaces';