@ttoss/ids 0.3.10 → 0.3.12
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.cts +4 -4
- package/dist/index.d.ts +4 -4
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Converts a global id into a type and record id.
|
|
3
3
|
*/
|
|
4
4
|
declare const fromGlobalId: (globalId: string) => {
|
|
5
5
|
type: string;
|
|
6
6
|
recordId: string;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Converts a type and record id into a global id.
|
|
10
10
|
*/
|
|
11
11
|
declare const toGlobalId: (type: string, recordId: string) => string;
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* Converts a record id into a list of database ids.
|
|
15
15
|
*/
|
|
16
16
|
declare const fromRecordId: (recordId: string) => string[];
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Converts a list of database ids into a record id.
|
|
19
19
|
*/
|
|
20
20
|
declare const toRecordId: (...databaseIds: string[]) => string;
|
|
21
21
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Converts a global id into a type and record id.
|
|
3
3
|
*/
|
|
4
4
|
declare const fromGlobalId: (globalId: string) => {
|
|
5
5
|
type: string;
|
|
6
6
|
recordId: string;
|
|
7
7
|
};
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
9
|
+
* Converts a type and record id into a global id.
|
|
10
10
|
*/
|
|
11
11
|
declare const toGlobalId: (type: string, recordId: string) => string;
|
|
12
12
|
/**
|
|
13
13
|
*
|
|
14
|
-
*
|
|
14
|
+
* Converts a record id into a list of database ids.
|
|
15
15
|
*/
|
|
16
16
|
declare const fromRecordId: (recordId: string) => string[];
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Converts a list of database ids into a record id.
|
|
19
19
|
*/
|
|
20
20
|
declare const toRecordId: (...databaseIds: string[]) => string;
|
|
21
21
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ttoss/ids",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.12",
|
|
4
4
|
"description": "A library to handle the different ids used in the ttoss ecosystem applications",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "ttoss",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"jest": "^30.2.0",
|
|
29
29
|
"tsup": "^8.5.1",
|
|
30
|
-
"@ttoss/config": "^1.35.
|
|
30
|
+
"@ttoss/config": "^1.35.11"
|
|
31
31
|
},
|
|
32
32
|
"keywords": [
|
|
33
33
|
"api",
|