subscriber.interface.d.ts 843 B

123456789101112131415161718192021222324252627282930
  1. import { ChatProviderIdEnum, PushProviderIdEnum } from '../../consts';
  2. import { SubscriberCustomData } from '../../types';
  3. export interface ISubscriber {
  4. _id?: string;
  5. firstName: string;
  6. lastName: string;
  7. email: string;
  8. phone?: string;
  9. avatar?: string;
  10. locale?: string;
  11. subscriberId: string;
  12. channels?: IChannelSettings[];
  13. _organizationId: string;
  14. _environmentId: string;
  15. deleted: boolean;
  16. createdAt: string;
  17. updatedAt: string;
  18. data?: SubscriberCustomData;
  19. __v?: number;
  20. }
  21. export interface IChannelSettings {
  22. _integrationId: string;
  23. providerId: ChatProviderIdEnum | PushProviderIdEnum;
  24. credentials: IChannelCredentials;
  25. }
  26. export interface IChannelCredentials {
  27. webhookUrl?: string;
  28. deviceTokens?: string[];
  29. }
  30. //# sourceMappingURL=subscriber.interface.d.ts.map