@hiliosai/sdk 0.2.5 → 0.2.7
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/dist/index.d.ts +22 -1
- package/dist/index.js +15 -2
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -778,8 +778,29 @@ declare const INTEGRATION_CHANNELS: {
|
|
|
778
778
|
readonly MESSAGE_RECEIVED: "processing.message.received";
|
|
779
779
|
readonly MESSAGE_SENT: "processing.message.sent";
|
|
780
780
|
readonly MESSAGE_FAILED: "processing.message.failed";
|
|
781
|
+
readonly CONTACT_CREATED: "processing.contact.created";
|
|
782
|
+
readonly CONVERSATION_CREATED: "processing.conversation.created";
|
|
783
|
+
readonly MESSAGE_CREATED: "processing.message.created";
|
|
781
784
|
};
|
|
782
785
|
type IntegrationChannelName = (typeof INTEGRATION_CHANNELS)[keyof typeof INTEGRATION_CHANNELS];
|
|
786
|
+
/**
|
|
787
|
+
* Tenant lifecycle channel names
|
|
788
|
+
*/
|
|
789
|
+
declare const TENANT_CHANNELS: {
|
|
790
|
+
readonly TENANT_CREATED: "tenant_created";
|
|
791
|
+
readonly TENANT_UPDATED: "tenant_updated";
|
|
792
|
+
readonly TENANT_DELETED: "tenant_deleted";
|
|
793
|
+
};
|
|
794
|
+
type TenantChannelName = (typeof TENANT_CHANNELS)[keyof typeof TENANT_CHANNELS];
|
|
795
|
+
/**
|
|
796
|
+
* User lifecycle channel names
|
|
797
|
+
*/
|
|
798
|
+
declare const USER_CHANNELS: {
|
|
799
|
+
readonly USER_CREATED: "user_created";
|
|
800
|
+
readonly USER_UPDATED: "user_updated";
|
|
801
|
+
readonly USER_DELETED: "user_deleted";
|
|
802
|
+
};
|
|
803
|
+
type UserChannelName = (typeof USER_CHANNELS)[keyof typeof USER_CHANNELS];
|
|
783
804
|
|
|
784
805
|
/**
|
|
785
806
|
* Channel event payload types for reliable messaging via @moleculer/channels
|
|
@@ -991,4 +1012,4 @@ declare class DBTransactionError extends Errors.MoleculerError {
|
|
|
991
1012
|
}
|
|
992
1013
|
declare function prismaErrorHandler(this: ServiceBroker, err: Error, info: BrokerErrorHandlerInfoAction): undefined;
|
|
993
1014
|
|
|
994
|
-
export { AbstractDatasource, type ActionHandler, type ActionWithPermissions, type AppContext, type AppMeta, type AuditTrailExtension, AuthenticationError, type BaseDatasource, type BaseSpec, CHANNELS, type CarouselItem, type ChannelSendOptions, ContextHelpersMiddleware, CreateHealthCheckMiddleware, DBConnectionError, DBConstraintError, DBError, DBNotFoundError, DBTimeoutError, DBTransactionError, DBValidationError, DEFAULT_DATASOURCE_CACHE_TTL, type DatasourceConstructorRegistry, type DatasourceContext, type DatasourceInstanceRegistry, type DatasourceInstanceTypes, DatasourceMixin, type Env, type GatewayError, HEALTH_CHECK_DEFAULTS, INTEGRATION_CHANNELS, IntegrationCapability, type IntegrationChannelName, type IntegrationConfig, type IntegrationMessageFailedPayload, type IntegrationMessageReceivedPayload, type IntegrationMessageSentPayload, IntegrationPlatform, type IntegrationRegisteredPayload, type IntegrationServiceConfig, type IntegrationServiceSchema, IntegrationStatus, type IntegrationUnregisteredPayload, MemoizeMixin, type MemoizeMixinOptions, type Message, type MessageAttachment, type MessageButton, type MessageContent, MessageContentType, type MessageDirection, type MessageParticipant, type MessageStatus, type MessageType, NAMESPACE, PERMISSIONS, type Permission, PermissionError, type PermissionHelpers, PermissionsMiddleware, type PlatformMessage, type PrismaClientLike, type PrismaClientWithTenant, PrismaDatasource, PrismaPgDatasource, REDIS_URL, ROLE_PERMISSIONS, SERVICE_NAME, SERVICE_VERSION, type SendResult, type SendToChannelMethod, type ServiceActionsSchema, type ServiceConfig, type ServiceSchema, type ServiceWithDatasources, type SoftDeleteExtension, type Tenant, TenantError, type TenantExtension, type User, UserRole, type WebhookEvent, createDatasourceMiddleware, createTenantExtension, defineIntegration, defineService, gatewayErrorHandler, getErrorLogLevel, isDev, isProd, isTest, configs as moleculer, nodeEnv, omit, prismaErrorHandler, retryExtension, sanitizeErrorData, softDeleteExtension };
|
|
1015
|
+
export { AbstractDatasource, type ActionHandler, type ActionWithPermissions, type AppContext, type AppMeta, type AuditTrailExtension, AuthenticationError, type BaseDatasource, type BaseSpec, CHANNELS, type CarouselItem, type ChannelSendOptions, ContextHelpersMiddleware, CreateHealthCheckMiddleware, DBConnectionError, DBConstraintError, DBError, DBNotFoundError, DBTimeoutError, DBTransactionError, DBValidationError, DEFAULT_DATASOURCE_CACHE_TTL, type DatasourceConstructorRegistry, type DatasourceContext, type DatasourceInstanceRegistry, type DatasourceInstanceTypes, DatasourceMixin, type Env, type GatewayError, HEALTH_CHECK_DEFAULTS, INTEGRATION_CHANNELS, IntegrationCapability, type IntegrationChannelName, type IntegrationConfig, type IntegrationMessageFailedPayload, type IntegrationMessageReceivedPayload, type IntegrationMessageSentPayload, IntegrationPlatform, type IntegrationRegisteredPayload, type IntegrationServiceConfig, type IntegrationServiceSchema, IntegrationStatus, type IntegrationUnregisteredPayload, MemoizeMixin, type MemoizeMixinOptions, type Message, type MessageAttachment, type MessageButton, type MessageContent, MessageContentType, type MessageDirection, type MessageParticipant, type MessageStatus, type MessageType, NAMESPACE, PERMISSIONS, type Permission, PermissionError, type PermissionHelpers, PermissionsMiddleware, type PlatformMessage, type PrismaClientLike, type PrismaClientWithTenant, PrismaDatasource, PrismaPgDatasource, REDIS_URL, ROLE_PERMISSIONS, SERVICE_NAME, SERVICE_VERSION, type SendResult, type SendToChannelMethod, type ServiceActionsSchema, type ServiceConfig, type ServiceSchema, type ServiceWithDatasources, type SoftDeleteExtension, TENANT_CHANNELS, type Tenant, type TenantChannelName, TenantError, type TenantExtension, USER_CHANNELS, type User, type UserChannelName, UserRole, type WebhookEvent, createDatasourceMiddleware, createTenantExtension, defineIntegration, defineService, gatewayErrorHandler, getErrorLogLevel, isDev, isProd, isTest, configs as moleculer, nodeEnv, omit, prismaErrorHandler, retryExtension, sanitizeErrorData, softDeleteExtension };
|
package/dist/index.js
CHANGED
|
@@ -1279,7 +1279,20 @@ var INTEGRATION_CHANNELS = {
|
|
|
1279
1279
|
// Message events
|
|
1280
1280
|
MESSAGE_RECEIVED: "processing.message.received",
|
|
1281
1281
|
MESSAGE_SENT: "processing.message.sent",
|
|
1282
|
-
MESSAGE_FAILED: "processing.message.failed"
|
|
1282
|
+
MESSAGE_FAILED: "processing.message.failed",
|
|
1283
|
+
CONTACT_CREATED: "processing.contact.created",
|
|
1284
|
+
CONVERSATION_CREATED: "processing.conversation.created",
|
|
1285
|
+
MESSAGE_CREATED: "processing.message.created"
|
|
1286
|
+
};
|
|
1287
|
+
var TENANT_CHANNELS = {
|
|
1288
|
+
TENANT_CREATED: "tenant_created",
|
|
1289
|
+
TENANT_UPDATED: "tenant_updated",
|
|
1290
|
+
TENANT_DELETED: "tenant_deleted"
|
|
1291
|
+
};
|
|
1292
|
+
var USER_CHANNELS = {
|
|
1293
|
+
USER_CREATED: "user_created",
|
|
1294
|
+
USER_UPDATED: "user_updated",
|
|
1295
|
+
USER_DELETED: "user_deleted"
|
|
1283
1296
|
};
|
|
1284
1297
|
var CHANNEL_CONFIG = {
|
|
1285
1298
|
// Default settings for message channels
|
|
@@ -2660,4 +2673,4 @@ var retryExtension = {
|
|
|
2660
2673
|
}
|
|
2661
2674
|
};
|
|
2662
2675
|
|
|
2663
|
-
export { AbstractDatasource, AuthenticationError, CHANNELS, ContextHelpersMiddleware, CreateHealthCheckMiddleware, DBConnectionError, DBConstraintError, DBError, DBNotFoundError, DBTimeoutError, DBTransactionError, DBValidationError, DEFAULT_DATASOURCE_CACHE_TTL, DatasourceMixin, HEALTH_CHECK_DEFAULTS, INTEGRATION_CHANNELS, IntegrationCapability, IntegrationPlatform, IntegrationStatus, MemoizeMixin, MessageContentType, NAMESPACE, PERMISSIONS, PermissionError, PermissionsMiddleware, PrismaDatasource, PrismaPgDatasource, REDIS_URL, ROLE_PERMISSIONS, SERVICE_NAME, SERVICE_VERSION, TenantError, UserRole, createDatasourceMiddleware, createTenantExtension, defineIntegration, defineService, env_default as env, gatewayErrorHandler, getErrorLogLevel, isDev, isProd, isTest, moleculer_default as moleculer, nodeEnv, omit, prismaErrorHandler, retryExtension, sanitizeErrorData, softDeleteExtension };
|
|
2676
|
+
export { AbstractDatasource, AuthenticationError, CHANNELS, ContextHelpersMiddleware, CreateHealthCheckMiddleware, DBConnectionError, DBConstraintError, DBError, DBNotFoundError, DBTimeoutError, DBTransactionError, DBValidationError, DEFAULT_DATASOURCE_CACHE_TTL, DatasourceMixin, HEALTH_CHECK_DEFAULTS, INTEGRATION_CHANNELS, IntegrationCapability, IntegrationPlatform, IntegrationStatus, MemoizeMixin, MessageContentType, NAMESPACE, PERMISSIONS, PermissionError, PermissionsMiddleware, PrismaDatasource, PrismaPgDatasource, REDIS_URL, ROLE_PERMISSIONS, SERVICE_NAME, SERVICE_VERSION, TENANT_CHANNELS, TenantError, USER_CHANNELS, UserRole, createDatasourceMiddleware, createTenantExtension, defineIntegration, defineService, env_default as env, gatewayErrorHandler, getErrorLogLevel, isDev, isProd, isTest, moleculer_default as moleculer, nodeEnv, omit, prismaErrorHandler, retryExtension, sanitizeErrorData, softDeleteExtension };
|