@hiennc24/constant 1.7.8 → 1.7.9

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.
@@ -824,5 +824,7 @@ declare const COLLECTIONS: {
824
824
  AI_PLATFORM_MODEL_CATALOG_COLLECTION_NAME: string;
825
825
  AI_PLATFORM_PROMPT_TEMPLATE_REPOSITORY_NAME: string;
826
826
  AI_PLATFORM_PROMPT_TEMPLATE_COLLECTION_NAME: string;
827
+ ENTITY_MAPPING_REPOSITORY_NAME: string;
828
+ ENTITY_MAPPING_COLLECTION_NAME: string;
827
829
  };
828
830
  export default COLLECTIONS;
@@ -1040,5 +1040,9 @@ const COLLECTIONS = {
1040
1040
  // Prompt template (system stock + tenant-custom)
1041
1041
  AI_PLATFORM_PROMPT_TEMPLATE_REPOSITORY_NAME: "aiPlatformPromptTemplate",
1042
1042
  AI_PLATFORM_PROMPT_TEMPLATE_COLLECTION_NAME: "ai_platform_prompt_templates",
1043
+ // ADMIN — Generic cross-tenant entity mapping (used for webhook routing,
1044
+ // resource ↔ domain lookup, etc.). Discriminator `type` keeps the table reusable.
1045
+ ENTITY_MAPPING_REPOSITORY_NAME: "entityMapping",
1046
+ ENTITY_MAPPING_COLLECTION_NAME: "entity_mappings",
1043
1047
  };
1044
1048
  exports.default = COLLECTIONS;
@@ -2640,6 +2640,14 @@
2640
2640
  "ACTION_CREATE": "create",
2641
2641
  "ACTION_DELETE": "delete"
2642
2642
  },
2643
+ "SVC_ADMIN_ENTITY_MAPPINGS": {
2644
+ "NAME": "api-admin.entity-mappings",
2645
+ "ACTION_RESOLVE_MAPPING": "resolveMapping",
2646
+ "ACTION_FIND_BY_TARGET": "findByTargetId",
2647
+ "ACTION_CREATE_MAPPING": "createMapping",
2648
+ "ACTION_SOFT_DELETE_BY_TARGET": "softDeleteByTargetId",
2649
+ "ACTION_UPDATE_DOMAIN": "updateDomainByTargetIds"
2650
+ },
2643
2651
  "SVC_ADMIN_VERIFY_EMAIL_TOKEN": {
2644
2652
  "NAME": "api-admin.verify-email-token"
2645
2653
  },
@@ -3394,6 +3402,8 @@
3394
3402
  "ACTION_TEST_CONNECTION": "testConnection",
3395
3403
  "ACTION_VERIFY_WEBHOOK": "verifyWebhook",
3396
3404
  "ACTION_RECEIVE_WEBHOOK": "receiveWebhook",
3405
+ "ACTION_RECEIVE_WEBHOOK_BY_PLATFORM": "receiveWebhookByPlatform",
3406
+ "ACTION_VERIFY_CONFIG": "verifyConfig",
3397
3407
  "ACTION_RECEIVE_OUTBOUND": "receiveOutbound",
3398
3408
  "ACTION_GET_WIDGET_CHAT": "getWidgetChat",
3399
3409
  "ACTION_UPDATE_WIDGET_CHAT": "updateWidgetChat",
@@ -3467,6 +3477,7 @@
3467
3477
  "NAME": "svc-ai-platform.storage",
3468
3478
  "ACTION_GET_PRESIGNED_UPLOAD": "getPresignedUpload",
3469
3479
  "ACTION_GET_PRESIGNED_DOWNLOAD": "getPresignedDownload",
3480
+ "ACTION_UPLOAD_FILE": "uploadFile",
3470
3481
  "ACTION_VERIFY_FILE": "verifyFile",
3471
3482
  "ACTION_DELETE_FILE": "deleteFile",
3472
3483
  "ACTION_DELETE_FOLDER": "deleteFolder",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiennc24/constant",
3
- "version": "1.7.8",
3
+ "version": "1.7.9",
4
4
  "main": "lib/index.js",
5
5
  "types": "lib/index.d.ts",
6
6
  "scripts": {