@hiennc24/constant 1.7.0 → 1.7.1
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/lib/collections.constant.d.ts +20 -0
- package/lib/collections.constant.js +30 -0
- package/lib/index.d.ts +3 -3
- package/lib/index.js +4 -4
- package/lib/permission.constant.js +58 -58
- package/lib/service.constant.json +162 -22
- package/package.json +2 -7
|
@@ -468,6 +468,8 @@ declare const COLLECTIONS: {
|
|
|
468
468
|
LEAD_SCHEDULE_COLLECTION_NAME: string;
|
|
469
469
|
LEAD_COMMENT_REPOSITORY_NAME: string;
|
|
470
470
|
LEAD_COMMENT_COLLECTION_NAME: string;
|
|
471
|
+
LEAD_TASK_REPOSITORY_NAME: string;
|
|
472
|
+
LEAD_TASK_COLLECTION_NAME: string;
|
|
471
473
|
LEAD_SALE_TYPE_REPOSITORY_NAME: string;
|
|
472
474
|
LEAD_SALE_TYPE_COLLECTION_NAME: string;
|
|
473
475
|
PAYMENT_METHOD_REPOSITORY_NAME: string;
|
|
@@ -800,5 +802,23 @@ declare const COLLECTIONS: {
|
|
|
800
802
|
CHART_OF_ACCOUNTS_COLLECTION_NAME: string;
|
|
801
803
|
BATCH_METADATA_REPOSITORY_NAME: string;
|
|
802
804
|
BATCH_METADATA_COLLECTION_NAME: string;
|
|
805
|
+
AI_PLATFORM_CHANNEL_REPOSITORY_NAME: string;
|
|
806
|
+
AI_PLATFORM_CHANNEL_COLLECTION_NAME: string;
|
|
807
|
+
AI_PLATFORM_BOT_REPOSITORY_NAME: string;
|
|
808
|
+
AI_PLATFORM_BOT_COLLECTION_NAME: string;
|
|
809
|
+
AI_PLATFORM_INTEGRATION_PROVIDER_REPOSITORY_NAME: string;
|
|
810
|
+
AI_PLATFORM_INTEGRATION_PROVIDER_COLLECTION_NAME: string;
|
|
811
|
+
AI_PLATFORM_INTEGRATION_REPOSITORY_NAME: string;
|
|
812
|
+
AI_PLATFORM_INTEGRATION_COLLECTION_NAME: string;
|
|
813
|
+
AI_PLATFORM_CHANNEL_WIDGET_CHAT_REPOSITORY_NAME: string;
|
|
814
|
+
AI_PLATFORM_CHANNEL_WIDGET_CHAT_COLLECTION_NAME: string;
|
|
815
|
+
AI_PLATFORM_CONTACT_REPOSITORY_NAME: string;
|
|
816
|
+
AI_PLATFORM_CONTACT_COLLECTION_NAME: string;
|
|
817
|
+
AI_PLATFORM_CONVERSATION_REPOSITORY_NAME: string;
|
|
818
|
+
AI_PLATFORM_CONVERSATION_COLLECTION_NAME: string;
|
|
819
|
+
AI_PLATFORM_MESSAGE_REPOSITORY_NAME: string;
|
|
820
|
+
AI_PLATFORM_MESSAGE_COLLECTION_NAME: string;
|
|
821
|
+
AI_PLATFORM_DOCUMENT_REPOSITORY_NAME: string;
|
|
822
|
+
AI_PLATFORM_DOCUMENT_COLLECTION_NAME: string;
|
|
803
823
|
};
|
|
804
824
|
export default COLLECTIONS;
|
|
@@ -580,6 +580,8 @@ const COLLECTIONS = {
|
|
|
580
580
|
LEAD_SCHEDULE_COLLECTION_NAME: "lead_schedules",
|
|
581
581
|
LEAD_COMMENT_REPOSITORY_NAME: "leadComment",
|
|
582
582
|
LEAD_COMMENT_COLLECTION_NAME: "lead_comments",
|
|
583
|
+
LEAD_TASK_REPOSITORY_NAME: "leadTask",
|
|
584
|
+
LEAD_TASK_COLLECTION_NAME: "lead_tasks",
|
|
583
585
|
LEAD_SALE_TYPE_REPOSITORY_NAME: "leadSaleType",
|
|
584
586
|
LEAD_SALE_TYPE_COLLECTION_NAME: "lead_sale_types",
|
|
585
587
|
PAYMENT_METHOD_REPOSITORY_NAME: "paymentMethod",
|
|
@@ -1004,5 +1006,33 @@ const COLLECTIONS = {
|
|
|
1004
1006
|
// Debt Reconciliation & Batch
|
|
1005
1007
|
BATCH_METADATA_REPOSITORY_NAME: "BatchMetadata",
|
|
1006
1008
|
BATCH_METADATA_COLLECTION_NAME: "batch_metadata",
|
|
1009
|
+
// AI PLATFORM SERVICE
|
|
1010
|
+
// Channel
|
|
1011
|
+
AI_PLATFORM_CHANNEL_REPOSITORY_NAME: "aiPlatformChannel",
|
|
1012
|
+
AI_PLATFORM_CHANNEL_COLLECTION_NAME: "ai_platform_channels",
|
|
1013
|
+
// Bot
|
|
1014
|
+
AI_PLATFORM_BOT_REPOSITORY_NAME: "aiPlatformBot",
|
|
1015
|
+
AI_PLATFORM_BOT_COLLECTION_NAME: "ai_platform_bots",
|
|
1016
|
+
// Integration provider (catalog of supported platforms)
|
|
1017
|
+
AI_PLATFORM_INTEGRATION_PROVIDER_REPOSITORY_NAME: "aiPlatformIntegrationProvider",
|
|
1018
|
+
AI_PLATFORM_INTEGRATION_PROVIDER_COLLECTION_NAME: "ai_platform_integration_providers",
|
|
1019
|
+
// Integration instance (== Channel in the v2 spec; one row per connected channel)
|
|
1020
|
+
AI_PLATFORM_INTEGRATION_REPOSITORY_NAME: "aiPlatformIntegration",
|
|
1021
|
+
AI_PLATFORM_INTEGRATION_COLLECTION_NAME: "ai_platform_integrations",
|
|
1022
|
+
// Channel widget chat config
|
|
1023
|
+
AI_PLATFORM_CHANNEL_WIDGET_CHAT_REPOSITORY_NAME: "aiPlatformChannelWidgetChat",
|
|
1024
|
+
AI_PLATFORM_CHANNEL_WIDGET_CHAT_COLLECTION_NAME: "ai_platform_channel_widget_chats",
|
|
1025
|
+
// Contact
|
|
1026
|
+
AI_PLATFORM_CONTACT_REPOSITORY_NAME: "aiPlatformContact",
|
|
1027
|
+
AI_PLATFORM_CONTACT_COLLECTION_NAME: "ai_platform_contacts",
|
|
1028
|
+
// Conversation
|
|
1029
|
+
AI_PLATFORM_CONVERSATION_REPOSITORY_NAME: "aiPlatformConversation",
|
|
1030
|
+
AI_PLATFORM_CONVERSATION_COLLECTION_NAME: "ai_platform_conversations",
|
|
1031
|
+
// Message
|
|
1032
|
+
AI_PLATFORM_MESSAGE_REPOSITORY_NAME: "aiPlatformMessage",
|
|
1033
|
+
AI_PLATFORM_MESSAGE_COLLECTION_NAME: "ai_platform_messages",
|
|
1034
|
+
// Document (knowledge base file)
|
|
1035
|
+
AI_PLATFORM_DOCUMENT_REPOSITORY_NAME: "aiPlatformDocument",
|
|
1036
|
+
AI_PLATFORM_DOCUMENT_COLLECTION_NAME: "ai_platform_documents",
|
|
1007
1037
|
};
|
|
1008
1038
|
exports.default = COLLECTIONS;
|
package/lib/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import SERVICE_BROKER from
|
|
1
|
+
import SERVICE_BROKER from './service.constant.json';
|
|
2
2
|
export default SERVICE_BROKER;
|
|
3
3
|
export type ServiceBrokerConstantType = {
|
|
4
4
|
[K in keyof typeof SERVICE_BROKER]: (typeof SERVICE_BROKER)[K];
|
|
5
5
|
};
|
|
6
|
-
export { default as COLLECTIONS, CollectionsConstantType, } from
|
|
7
|
-
export { default as PERMISSIONS, PermissionConstantType, } from "./permission.constant";
|
|
6
|
+
export { default as COLLECTIONS, CollectionsConstantType, } from './collections.constant';
|
|
8
7
|
export declare const addLocalServices: (services: ServiceBrokerConstantType) => void;
|
|
8
|
+
export { default as PERMISSIONS } from './permission.constant';
|
package/lib/index.js
CHANGED
|
@@ -3,15 +3,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.PERMISSIONS = exports.addLocalServices = exports.COLLECTIONS = void 0;
|
|
7
7
|
const service_constant_json_1 = __importDefault(require("./service.constant.json"));
|
|
8
8
|
exports.default = service_constant_json_1.default;
|
|
9
9
|
var collections_constant_1 = require("./collections.constant");
|
|
10
10
|
Object.defineProperty(exports, "COLLECTIONS", { enumerable: true, get: function () { return __importDefault(collections_constant_1).default; } });
|
|
11
|
-
var permission_constant_1 = require("./permission.constant");
|
|
12
|
-
Object.defineProperty(exports, "PERMISSIONS", { enumerable: true, get: function () { return __importDefault(permission_constant_1).default; } });
|
|
13
11
|
const addLocalServices = (services) => {
|
|
14
12
|
Object.assign(service_constant_json_1.default, services);
|
|
15
|
-
console.log(
|
|
13
|
+
console.log('added local services!');
|
|
16
14
|
};
|
|
17
15
|
exports.addLocalServices = addLocalServices;
|
|
16
|
+
var permission_constant_1 = require("./permission.constant");
|
|
17
|
+
Object.defineProperty(exports, "PERMISSIONS", { enumerable: true, get: function () { return __importDefault(permission_constant_1).default; } });
|
|
@@ -2,71 +2,71 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const PERMISSIONS = {
|
|
4
4
|
// 1. System Management Permission
|
|
5
|
-
SVC_SYSTEM_MANAGEMENT_FULL:
|
|
5
|
+
SVC_SYSTEM_MANAGEMENT_FULL: 'system_management:*',
|
|
6
6
|
// 1.1 Accounts
|
|
7
|
-
SVC_AUTH_ACCOUNTS_FULL:
|
|
8
|
-
SVC_AUTH_ACCOUNTS_LIST:
|
|
9
|
-
SVC_AUTH_ACCOUNTS_READ:
|
|
10
|
-
SVC_AUTH_ACCOUNTS_WRITE:
|
|
11
|
-
SVC_AUTH_ACCOUNTS_UPDATE:
|
|
12
|
-
SVC_AUTH_ACCOUNTS_CREATE:
|
|
13
|
-
SVC_AUTH_ACCOUNTS_BULK_DELETE:
|
|
14
|
-
SVC_AUTH_ACCOUNTS_UPDATE_STATUS:
|
|
7
|
+
SVC_AUTH_ACCOUNTS_FULL: 'system_management:accounts:*',
|
|
8
|
+
SVC_AUTH_ACCOUNTS_LIST: 'system_management:accounts:list',
|
|
9
|
+
SVC_AUTH_ACCOUNTS_READ: 'system_management:accounts:read',
|
|
10
|
+
SVC_AUTH_ACCOUNTS_WRITE: 'system_management:accounts:write',
|
|
11
|
+
SVC_AUTH_ACCOUNTS_UPDATE: 'system_management:accounts:update',
|
|
12
|
+
SVC_AUTH_ACCOUNTS_CREATE: 'system_management:accounts:create',
|
|
13
|
+
SVC_AUTH_ACCOUNTS_BULK_DELETE: 'system_management:accounts:bulk_delete',
|
|
14
|
+
SVC_AUTH_ACCOUNTS_UPDATE_STATUS: 'system_management:accounts:update_status',
|
|
15
15
|
// 1.2 Roles Management
|
|
16
|
-
SVC_AUTH_ROLES_FULL:
|
|
17
|
-
SVC_AUTH_ROLES_LIST:
|
|
18
|
-
SVC_AUTH_ROLES_READ:
|
|
19
|
-
SVC_AUTH_ROLES_UPDATE:
|
|
20
|
-
SVC_AUTH_ROLES_CREATE:
|
|
21
|
-
SVC_AUTH_ROLES_BULK_DELETE:
|
|
16
|
+
SVC_AUTH_ROLES_FULL: 'system_management:roles:*',
|
|
17
|
+
SVC_AUTH_ROLES_LIST: 'system_management:roles:list',
|
|
18
|
+
SVC_AUTH_ROLES_READ: 'system_management:roles:read',
|
|
19
|
+
SVC_AUTH_ROLES_UPDATE: 'system_management:roles:update',
|
|
20
|
+
SVC_AUTH_ROLES_CREATE: 'system_management:roles:create',
|
|
21
|
+
SVC_AUTH_ROLES_BULK_DELETE: 'system_management:roles:bulk_delete',
|
|
22
22
|
// 1.3 Permission Cache (gateway admin force-clear)
|
|
23
|
-
SYSTEM_PERMISSION_CACHE_EVICT:
|
|
23
|
+
SYSTEM_PERMISSION_CACHE_EVICT: 'system_management:permission_cache:evict',
|
|
24
24
|
// 2. Organization — application + group wildcards
|
|
25
|
-
ORGANIZATION_APP_FULL:
|
|
26
|
-
ORGANIZATION_GROUP_FULL:
|
|
25
|
+
ORGANIZATION_APP_FULL: 'organization_service:*',
|
|
26
|
+
ORGANIZATION_GROUP_FULL: 'organization_service:operational_organization:*',
|
|
27
27
|
// 2.1 Employees (actions: list, read, create, update, delete, download, upload, cancel_approve)
|
|
28
|
-
ORGANIZATION_EMPLOYEES_FULL:
|
|
29
|
-
ORGANIZATION_EMPLOYEES_LIST:
|
|
30
|
-
ORGANIZATION_EMPLOYEES_READ:
|
|
31
|
-
ORGANIZATION_EMPLOYEES_CREATE:
|
|
32
|
-
ORGANIZATION_EMPLOYEES_UPDATE:
|
|
33
|
-
ORGANIZATION_EMPLOYEES_DELETE:
|
|
34
|
-
ORGANIZATION_EMPLOYEES_DOWNLOAD:
|
|
35
|
-
ORGANIZATION_EMPLOYEES_UPLOAD:
|
|
36
|
-
ORGANIZATION_EMPLOYEES_CANCEL_APPROVE:
|
|
28
|
+
ORGANIZATION_EMPLOYEES_FULL: 'organization_service:operational_organization:employees:*',
|
|
29
|
+
ORGANIZATION_EMPLOYEES_LIST: 'organization_service:operational_organization:employees:list',
|
|
30
|
+
ORGANIZATION_EMPLOYEES_READ: 'organization_service:operational_organization:employees:read',
|
|
31
|
+
ORGANIZATION_EMPLOYEES_CREATE: 'organization_service:operational_organization:employees:create',
|
|
32
|
+
ORGANIZATION_EMPLOYEES_UPDATE: 'organization_service:operational_organization:employees:update',
|
|
33
|
+
ORGANIZATION_EMPLOYEES_DELETE: 'organization_service:operational_organization:employees:delete',
|
|
34
|
+
ORGANIZATION_EMPLOYEES_DOWNLOAD: 'organization_service:operational_organization:employees:download',
|
|
35
|
+
ORGANIZATION_EMPLOYEES_UPLOAD: 'organization_service:operational_organization:employees:upload',
|
|
36
|
+
ORGANIZATION_EMPLOYEES_CANCEL_APPROVE: 'organization_service:operational_organization:employees:cancel_approve',
|
|
37
37
|
// 2.2 Organizational (actions: list, read, create, update, delete, download, upload, approve, cancel_approve, update_status)
|
|
38
|
-
ORGANIZATION_ORGANIZATIONAL_FULL:
|
|
39
|
-
ORGANIZATION_ORGANIZATIONAL_LIST:
|
|
40
|
-
ORGANIZATION_ORGANIZATIONAL_READ:
|
|
41
|
-
ORGANIZATION_ORGANIZATIONAL_CREATE:
|
|
42
|
-
ORGANIZATION_ORGANIZATIONAL_UPDATE:
|
|
43
|
-
ORGANIZATION_ORGANIZATIONAL_DELETE:
|
|
44
|
-
ORGANIZATION_ORGANIZATIONAL_DOWNLOAD:
|
|
45
|
-
ORGANIZATION_ORGANIZATIONAL_UPLOAD:
|
|
46
|
-
ORGANIZATION_ORGANIZATIONAL_APPROVE:
|
|
47
|
-
ORGANIZATION_ORGANIZATIONAL_CANCEL_APPROVE:
|
|
48
|
-
ORGANIZATION_ORGANIZATIONAL_UPDATE_STATUS:
|
|
38
|
+
ORGANIZATION_ORGANIZATIONAL_FULL: 'organization_service:operational_organization:organizational:*',
|
|
39
|
+
ORGANIZATION_ORGANIZATIONAL_LIST: 'organization_service:operational_organization:organizational:list',
|
|
40
|
+
ORGANIZATION_ORGANIZATIONAL_READ: 'organization_service:operational_organization:organizational:read',
|
|
41
|
+
ORGANIZATION_ORGANIZATIONAL_CREATE: 'organization_service:operational_organization:organizational:create',
|
|
42
|
+
ORGANIZATION_ORGANIZATIONAL_UPDATE: 'organization_service:operational_organization:organizational:update',
|
|
43
|
+
ORGANIZATION_ORGANIZATIONAL_DELETE: 'organization_service:operational_organization:organizational:delete',
|
|
44
|
+
ORGANIZATION_ORGANIZATIONAL_DOWNLOAD: 'organization_service:operational_organization:organizational:download',
|
|
45
|
+
ORGANIZATION_ORGANIZATIONAL_UPLOAD: 'organization_service:operational_organization:organizational:upload',
|
|
46
|
+
ORGANIZATION_ORGANIZATIONAL_APPROVE: 'organization_service:operational_organization:organizational:approve',
|
|
47
|
+
ORGANIZATION_ORGANIZATIONAL_CANCEL_APPROVE: 'organization_service:operational_organization:organizational:cancel_approve',
|
|
48
|
+
ORGANIZATION_ORGANIZATIONAL_UPDATE_STATUS: 'organization_service:operational_organization:organizational:update_status',
|
|
49
49
|
// 2.3 Value Chains (actions: list, read, create, update, delete, download, upload, approve)
|
|
50
|
-
ORGANIZATION_VALUE_CHAINS_FULL:
|
|
51
|
-
ORGANIZATION_VALUE_CHAINS_LIST:
|
|
52
|
-
ORGANIZATION_VALUE_CHAINS_READ:
|
|
53
|
-
ORGANIZATION_VALUE_CHAINS_CREATE:
|
|
54
|
-
ORGANIZATION_VALUE_CHAINS_UPDATE:
|
|
55
|
-
ORGANIZATION_VALUE_CHAINS_DELETE:
|
|
56
|
-
ORGANIZATION_VALUE_CHAINS_DOWNLOAD:
|
|
57
|
-
ORGANIZATION_VALUE_CHAINS_UPLOAD:
|
|
58
|
-
ORGANIZATION_VALUE_CHAINS_APPROVE:
|
|
50
|
+
ORGANIZATION_VALUE_CHAINS_FULL: 'organization_service:operational_organization:value_chains:*',
|
|
51
|
+
ORGANIZATION_VALUE_CHAINS_LIST: 'organization_service:operational_organization:value_chains:list',
|
|
52
|
+
ORGANIZATION_VALUE_CHAINS_READ: 'organization_service:operational_organization:value_chains:read',
|
|
53
|
+
ORGANIZATION_VALUE_CHAINS_CREATE: 'organization_service:operational_organization:value_chains:create',
|
|
54
|
+
ORGANIZATION_VALUE_CHAINS_UPDATE: 'organization_service:operational_organization:value_chains:update',
|
|
55
|
+
ORGANIZATION_VALUE_CHAINS_DELETE: 'organization_service:operational_organization:value_chains:delete',
|
|
56
|
+
ORGANIZATION_VALUE_CHAINS_DOWNLOAD: 'organization_service:operational_organization:value_chains:download',
|
|
57
|
+
ORGANIZATION_VALUE_CHAINS_UPLOAD: 'organization_service:operational_organization:value_chains:upload',
|
|
58
|
+
ORGANIZATION_VALUE_CHAINS_APPROVE: 'organization_service:operational_organization:value_chains:approve',
|
|
59
59
|
// 2.4 Mission (actions: list, read, create, update, copy, delete, download, upload, approve, setting)
|
|
60
|
-
ORGANIZATION_MISSION_FULL:
|
|
61
|
-
ORGANIZATION_MISSION_LIST:
|
|
62
|
-
ORGANIZATION_MISSION_READ:
|
|
63
|
-
ORGANIZATION_MISSION_CREATE:
|
|
64
|
-
ORGANIZATION_MISSION_UPDATE:
|
|
65
|
-
ORGANIZATION_MISSION_COPY:
|
|
66
|
-
ORGANIZATION_MISSION_DELETE:
|
|
67
|
-
ORGANIZATION_MISSION_DOWNLOAD:
|
|
68
|
-
ORGANIZATION_MISSION_UPLOAD:
|
|
69
|
-
ORGANIZATION_MISSION_APPROVE:
|
|
70
|
-
ORGANIZATION_MISSION_SETTING:
|
|
60
|
+
ORGANIZATION_MISSION_FULL: 'organization_service:operational_organization:mission:*',
|
|
61
|
+
ORGANIZATION_MISSION_LIST: 'organization_service:operational_organization:mission:list',
|
|
62
|
+
ORGANIZATION_MISSION_READ: 'organization_service:operational_organization:mission:read',
|
|
63
|
+
ORGANIZATION_MISSION_CREATE: 'organization_service:operational_organization:mission:create',
|
|
64
|
+
ORGANIZATION_MISSION_UPDATE: 'organization_service:operational_organization:mission:update',
|
|
65
|
+
ORGANIZATION_MISSION_COPY: 'organization_service:operational_organization:mission:copy',
|
|
66
|
+
ORGANIZATION_MISSION_DELETE: 'organization_service:operational_organization:mission:delete',
|
|
67
|
+
ORGANIZATION_MISSION_DOWNLOAD: 'organization_service:operational_organization:mission:download',
|
|
68
|
+
ORGANIZATION_MISSION_UPLOAD: 'organization_service:operational_organization:mission:upload',
|
|
69
|
+
ORGANIZATION_MISSION_APPROVE: 'organization_service:operational_organization:mission:approve',
|
|
70
|
+
ORGANIZATION_MISSION_SETTING: 'organization_service:operational_organization:mission:setting',
|
|
71
71
|
};
|
|
72
72
|
exports.default = PERMISSIONS;
|
|
@@ -243,28 +243,34 @@
|
|
|
243
243
|
"ACTION_PREVIEW_ALLOCATION": "previewAllocation",
|
|
244
244
|
"ACTION_GET_PAYMENT_DETAIL": "getPaymentDetail"
|
|
245
245
|
},
|
|
246
|
-
"
|
|
247
|
-
"NAME": "svc-business-partner.debt-
|
|
248
|
-
"
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
"
|
|
259
|
-
"
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
"
|
|
267
|
-
"
|
|
246
|
+
"SVC_DEBT_RECONCILIATIONS": {
|
|
247
|
+
"NAME": "svc-business-partner.debt-reconciliations",
|
|
248
|
+
"ACTION_RECONCILIATION_MATCH": "match",
|
|
249
|
+
"ACTION_RECONCILIATION_PENDING": "pendingMatches",
|
|
250
|
+
"ACTION_RECONCILIATION_LIST": "list",
|
|
251
|
+
"ACTION_RECONCILIATION_GET_DETAIL": "getDetail",
|
|
252
|
+
"ACTION_RECONCILIATION_CONFIRM_MATCH": "confirmMatch",
|
|
253
|
+
"ACTION_RECONCILIATION_REJECT_MATCH": "rejectMatch"
|
|
254
|
+
},
|
|
255
|
+
"SVC_DEBT_EXCEPTIONS": {
|
|
256
|
+
"NAME": "svc-business-partner.debt-exceptions",
|
|
257
|
+
"ACTION_EXCEPTIONS_QUEUE": "queue",
|
|
258
|
+
"ACTION_EXCEPTIONS_GET": "get",
|
|
259
|
+
"ACTION_EXCEPTIONS_ASSIGN": "assign",
|
|
260
|
+
"ACTION_EXCEPTIONS_RESOLVE": "resolve",
|
|
261
|
+
"ACTION_EXCEPTIONS_ESCALATE": "escalate",
|
|
262
|
+
"ACTION_EXCEPTIONS_METRICS": "metrics"
|
|
263
|
+
},
|
|
264
|
+
"SVC_DEBT_DUNNING": {
|
|
265
|
+
"NAME": "svc-business-partner.debt-dunning",
|
|
266
|
+
"ACTION_DUNNING_QUEUE": "queue",
|
|
267
|
+
"ACTION_DUNNING_SEND": "send",
|
|
268
|
+
"ACTION_DUNNING_SEND_BATCH": "sendBatch"
|
|
269
|
+
},
|
|
270
|
+
"SVC_DEBT_ALLOCATES": {
|
|
271
|
+
"NAME": "svc-business-partner.debt-allocates",
|
|
272
|
+
"ACTION_BATCH_ALLOCATE_PAYMENTS": "allocatePayments",
|
|
273
|
+
"ACTION_BATCH_EXECUTE_NETTING": "executeNetting"
|
|
268
274
|
},
|
|
269
275
|
"SVC_VOUCHER_TYPES": {
|
|
270
276
|
"NAME": "svc-administration-list.voucher-types",
|
|
@@ -519,6 +525,14 @@
|
|
|
519
525
|
"ACTION_UPDATE": "updateLeadComment",
|
|
520
526
|
"ACTION_DELETE": "deleteLeadComment"
|
|
521
527
|
},
|
|
528
|
+
"API_SALES_LEAD_TASK": {
|
|
529
|
+
"NAME": "api-sales.lead-task",
|
|
530
|
+
"ACTION_GET_LIST": "getListLeadTask",
|
|
531
|
+
"ACTION_CREATE": "createLeadTask",
|
|
532
|
+
"ACTION_UPDATE": "updateLeadTask",
|
|
533
|
+
"ACTION_COMPLETE": "completeLeadTask",
|
|
534
|
+
"ACTION_DELETE": "deleteLeadTask"
|
|
535
|
+
},
|
|
522
536
|
"API_SALES_SETTING": {
|
|
523
537
|
"NAME": "api-sales.settings",
|
|
524
538
|
"ACTION_GET": "getSetting",
|
|
@@ -3334,5 +3348,131 @@
|
|
|
3334
3348
|
"ACTION_LIVENESS": "live",
|
|
3335
3349
|
"ACTION_READINESS": "ready",
|
|
3336
3350
|
"ACTION_METRICS": "metrics"
|
|
3351
|
+
},
|
|
3352
|
+
"API_AI_PLATFORM_INTEGRATIONS": {
|
|
3353
|
+
"NAME": "svc-ai-platform.integrations",
|
|
3354
|
+
"ACTION_LIST_PROVIDERS": "listProviders",
|
|
3355
|
+
"ACTION_REGISTER_PROVIDER": "registerProvider",
|
|
3356
|
+
"ACTION_UNREGISTER_PROVIDER": "unregisterProvider",
|
|
3357
|
+
"ACTION_CREATE": "create",
|
|
3358
|
+
"ACTION_GET_LIST": "getList",
|
|
3359
|
+
"ACTION_GET_DETAIL": "getDetail",
|
|
3360
|
+
"ACTION_UPDATE": "update",
|
|
3361
|
+
"ACTION_DELETE": "delete",
|
|
3362
|
+
"ACTION_CONNECT_BOT": "connectBot",
|
|
3363
|
+
"ACTION_DISCONNECT_BOT": "disconnectBot",
|
|
3364
|
+
"ACTION_TEST_CONNECTION": "testConnection",
|
|
3365
|
+
"ACTION_VERIFY_WEBHOOK": "verifyWebhook",
|
|
3366
|
+
"ACTION_RECEIVE_WEBHOOK": "receiveWebhook",
|
|
3367
|
+
"ACTION_RECEIVE_OUTBOUND": "receiveOutbound",
|
|
3368
|
+
"ACTION_GET_WIDGET_CHAT": "getWidgetChat",
|
|
3369
|
+
"ACTION_UPDATE_WIDGET_CHAT": "updateWidgetChat",
|
|
3370
|
+
"EVENT_INTEGRATION_CREATED": "ai-platform.integration.created",
|
|
3371
|
+
"EVENT_INTEGRATION_UPDATED": "ai-platform.integration.updated",
|
|
3372
|
+
"EVENT_INTEGRATION_DELETED": "ai-platform.integration.deleted"
|
|
3373
|
+
},
|
|
3374
|
+
"API_AI_PLATFORM_BOTS": {
|
|
3375
|
+
"NAME": "svc-ai-platform.bots",
|
|
3376
|
+
"ACTION_CREATE": "create",
|
|
3377
|
+
"ACTION_GET_LIST": "getList",
|
|
3378
|
+
"ACTION_GET_DETAIL": "getDetail",
|
|
3379
|
+
"ACTION_UPDATE": "update",
|
|
3380
|
+
"ACTION_DELETE": "delete",
|
|
3381
|
+
"ACTION_TEST": "test",
|
|
3382
|
+
"ACTION_GET_ACTIVE_COUNT": "getActiveCount",
|
|
3383
|
+
"EVENT_BOT_INVOKE": "ai-platform.bot.invoke"
|
|
3384
|
+
},
|
|
3385
|
+
"API_AI_PLATFORM_CONVERSATIONS": {
|
|
3386
|
+
"NAME": "svc-ai-platform.conversations",
|
|
3387
|
+
"ACTION_GET_LIST": "getList",
|
|
3388
|
+
"ACTION_GET_DETAIL": "getDetail",
|
|
3389
|
+
"ACTION_FIND_BY_ID": "findById",
|
|
3390
|
+
"ACTION_RESOLVE": "resolve",
|
|
3391
|
+
"ACTION_ASSIGN": "assign",
|
|
3392
|
+
"ACTION_HANDOFF": "handoff",
|
|
3393
|
+
"ACTION_CLOSE": "close",
|
|
3394
|
+
"ACTION_REOPEN": "reopen",
|
|
3395
|
+
"ACTION_UPDATE_TAGS": "updateTags",
|
|
3396
|
+
"EVENT_CONVERSATION_CREATED": "ai-platform.conversation.created",
|
|
3397
|
+
"EVENT_CONVERSATION_HANDOFF": "ai-platform.conversation.handoff",
|
|
3398
|
+
"EVENT_CONVERSATION_CLOSED": "ai-platform.conversation.closed"
|
|
3399
|
+
},
|
|
3400
|
+
"API_AI_PLATFORM_MESSAGES": {
|
|
3401
|
+
"NAME": "svc-ai-platform.messages",
|
|
3402
|
+
"ACTION_CREATE": "create",
|
|
3403
|
+
"ACTION_GET_LIST": "getList",
|
|
3404
|
+
"ACTION_LIST_BY_CONVERSATION": "listByConversation",
|
|
3405
|
+
"ACTION_SEND": "send",
|
|
3406
|
+
"ACTION_UPDATE_STATUS": "updateStatus",
|
|
3407
|
+
"EVENT_MESSAGE_CREATED": "ai-platform.message.created"
|
|
3408
|
+
},
|
|
3409
|
+
"API_AI_PLATFORM_CONTACTS": {
|
|
3410
|
+
"NAME": "svc-ai-platform.contacts",
|
|
3411
|
+
"ACTION_CREATE": "create",
|
|
3412
|
+
"ACTION_GET_LIST": "getList",
|
|
3413
|
+
"ACTION_GET_DETAIL": "getDetail",
|
|
3414
|
+
"ACTION_FIND_BY_ID": "findById",
|
|
3415
|
+
"ACTION_RESOLVE": "resolve",
|
|
3416
|
+
"ACTION_UPDATE": "update",
|
|
3417
|
+
"ACTION_MERGE": "merge"
|
|
3418
|
+
},
|
|
3419
|
+
"API_AI_PLATFORM_DOCUMENTS": {
|
|
3420
|
+
"NAME": "svc-ai-platform.documents",
|
|
3421
|
+
"ACTION_GET_PRESIGNED_UPLOAD": "getPresignedUpload",
|
|
3422
|
+
"ACTION_CONFIRM_UPLOAD": "confirmUpload",
|
|
3423
|
+
"ACTION_GET_LIST": "getList",
|
|
3424
|
+
"ACTION_GET_DETAIL": "getDetail",
|
|
3425
|
+
"ACTION_GET_PRESIGNED_DOWNLOAD": "getPresignedDownload",
|
|
3426
|
+
"ACTION_GET_PRESIGNED_DOWNLOAD_BY_KEY": "getPresignedDownloadByKey",
|
|
3427
|
+
"ACTION_UPDATE": "update",
|
|
3428
|
+
"ACTION_DELETE": "delete",
|
|
3429
|
+
"EVENT_DOCUMENT_CONFIRMED": "ai-platform.document.confirmed"
|
|
3430
|
+
},
|
|
3431
|
+
"API_AI_PLATFORM_STORAGE": {
|
|
3432
|
+
"NAME": "svc-ai-platform.storage",
|
|
3433
|
+
"ACTION_GET_PRESIGNED_UPLOAD": "getPresignedUpload",
|
|
3434
|
+
"ACTION_GET_PRESIGNED_DOWNLOAD": "getPresignedDownload",
|
|
3435
|
+
"ACTION_VERIFY_FILE": "verifyFile",
|
|
3436
|
+
"ACTION_DELETE_FILE": "deleteFile",
|
|
3437
|
+
"ACTION_DELETE_FOLDER": "deleteFolder",
|
|
3438
|
+
"ACTION_MOVE_FILES": "moveFiles",
|
|
3439
|
+
"ACTION_COPY_FILE": "copyFile",
|
|
3440
|
+
"ACTION_HEAD_FILE": "headFile",
|
|
3441
|
+
"ACTION_LIST_FILES": "listFiles"
|
|
3442
|
+
},
|
|
3443
|
+
"API_AI_PLATFORM_MESSAGE_INBOUND": {
|
|
3444
|
+
"NAME": "svc-ai-platform.message-inbound",
|
|
3445
|
+
"ACTION_PROCESS": "process",
|
|
3446
|
+
"EVENT_MESSAGE_INBOUND": "ai-platform.message.inbound",
|
|
3447
|
+
"EVENT_DLQ_MESSAGE_INBOUND": "DEAD_LETTER.ai-platform.message.inbound"
|
|
3448
|
+
},
|
|
3449
|
+
"API_AI_PLATFORM_MESSAGE_OUTBOUND": {
|
|
3450
|
+
"NAME": "svc-ai-platform.message-outbound",
|
|
3451
|
+
"ACTION_PROCESS": "process",
|
|
3452
|
+
"EVENT_MESSAGE_OUTBOUND": "ai-platform.message.outbound",
|
|
3453
|
+
"EVENT_MESSAGE_DELIVERED": "ai-platform.message.delivered",
|
|
3454
|
+
"EVENT_DLQ_MESSAGE_OUTBOUND": "DEAD_LETTER.ai-platform.message.outbound"
|
|
3455
|
+
},
|
|
3456
|
+
"API_AI_PLATFORM_JOBS": {
|
|
3457
|
+
"NAME": "svc-ai-platform.jobs",
|
|
3458
|
+
"ACTION_TRIGGER_REINDEX": "triggerReindex",
|
|
3459
|
+
"ACTION_LIST": "list",
|
|
3460
|
+
"ACTION_GET_LOGS": "getLogs"
|
|
3461
|
+
},
|
|
3462
|
+
"API_AI_PLATFORM_WIDGET": {
|
|
3463
|
+
"NAME": "svc-ai-platform.widget",
|
|
3464
|
+
"ACTION_GET_CONFIG": "getConfig",
|
|
3465
|
+
"ACTION_RESOLVE_CONTACT": "resolveContact",
|
|
3466
|
+
"ACTION_LIST_MESSAGES": "listMessages",
|
|
3467
|
+
"ACTION_CREATE_MESSAGE": "createMessage",
|
|
3468
|
+
"ACTION_GET_CHANNEL_BY_TOKEN": "getChannelByWidgetToken"
|
|
3469
|
+
},
|
|
3470
|
+
"API_AI_PLATFORM_CLIENTS": {
|
|
3471
|
+
"NAME": "svc-ai-platform.clients",
|
|
3472
|
+
"ACTION_SIMULATE_BOT_STREAM": "simulateBotStream",
|
|
3473
|
+
"EVENT_STREAM_MESSAGE_CREATED": "ai-platform.stream.message.created"
|
|
3474
|
+
},
|
|
3475
|
+
"BISO24_API_GATEWAY": {
|
|
3476
|
+
"NAME": "BISO24-API-GATEWAY"
|
|
3337
3477
|
}
|
|
3338
3478
|
}
|
package/package.json
CHANGED
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hiennc24/constant",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.1",
|
|
4
4
|
"main": "lib/index.js",
|
|
5
5
|
"types": "lib/index.d.ts",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"build": "tsc",
|
|
8
8
|
"clean": "rimraf lib",
|
|
9
|
-
"test": "jest",
|
|
10
|
-
"test:watch": "jest --watch",
|
|
11
9
|
"prepare": "npm run clean && npm run build",
|
|
12
10
|
"prepublishOnly": "npm run build"
|
|
13
11
|
},
|
|
@@ -32,10 +30,7 @@
|
|
|
32
30
|
},
|
|
33
31
|
"homepage": "https://github.com/hiennc24/moleculer-action-constants.git#readme",
|
|
34
32
|
"devDependencies": {
|
|
35
|
-
"@types/jest": "30.0.0",
|
|
36
|
-
"jest": "30.2.0",
|
|
37
33
|
"rimraf": "5.0.6",
|
|
38
|
-
"ts-jest": "29.4.5",
|
|
39
34
|
"ts-node": "10.9.2",
|
|
40
35
|
"typescript": "^5.5.4"
|
|
41
36
|
},
|
|
@@ -43,4 +38,4 @@
|
|
|
43
38
|
"access": "public",
|
|
44
39
|
"registry": "https://registry.npmjs.org/"
|
|
45
40
|
}
|
|
46
|
-
}
|
|
41
|
+
}
|