core-services-sdk 1.3.42 → 1.3.43
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/package.json
CHANGED
package/src/ids/generators.js
CHANGED
|
@@ -215,3 +215,11 @@ export const generateAlertId = () => generatePrefixedId(ID_PREFIXES.ALERT)
|
|
|
215
215
|
* @returns {string} A resource ID.
|
|
216
216
|
*/
|
|
217
217
|
export const generateResourceId = () => generatePrefixedId(ID_PREFIXES.RESOURCE)
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Generates a resource ID with a `ieml_` prefix.
|
|
221
|
+
*
|
|
222
|
+
* @returns {string} An incoming email ID.
|
|
223
|
+
*/
|
|
224
|
+
export const generateIncomingEmailId = () =>
|
|
225
|
+
generatePrefixedId(ID_PREFIXES.INCOMING_EMAIL)
|
package/src/ids/prefixes.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
2
|
import { describe, it, expect } from 'vitest'
|
|
3
|
-
|
|
4
3
|
import { ID_PREFIXES } from '../../src/ids/prefixes.js'
|
|
5
4
|
|
|
6
5
|
describe('ID_PREFIXES', () => {
|
|
@@ -32,6 +31,7 @@ describe('ID_PREFIXES', () => {
|
|
|
32
31
|
DEVICE: 'dev',
|
|
33
32
|
ALERT: 'alr',
|
|
34
33
|
RESOURCE: 'res',
|
|
34
|
+
INCOMING_EMAIL: 'ieml', // ✅ added
|
|
35
35
|
})
|
|
36
36
|
})
|
|
37
37
|
|