@cellaware/utils 3.3.27 → 3.3.29
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/chatwms/azure/cosmos.d.ts +16 -4
- package/dist/chatwms/azure/cosmos.js +20 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare function
|
|
1
|
+
/**
|
|
2
|
+
* Default `partitionKey` is '/clientId'
|
|
3
|
+
*/
|
|
4
|
+
export declare function chatwmsCosmosSelect(collectionId: string, query: string, partitionKey?: string): Promise<any[]>;
|
|
5
|
+
/**
|
|
6
|
+
* Default `partitionKey` is '/clientId'
|
|
7
|
+
*/
|
|
8
|
+
export declare function chatwmsCosmosInsert(collectionId: string, data: any, partitionKey?: string): Promise<boolean>;
|
|
9
|
+
/**
|
|
10
|
+
* Default `partitionKey` is '/clientId'
|
|
11
|
+
*/
|
|
12
|
+
export declare function chatwmsCosmosDelete(collectionId: string, query: string, partitionKey?: string): Promise<boolean>;
|
|
13
|
+
/**
|
|
14
|
+
* Default `partitionKey` is '/clientId'
|
|
15
|
+
*/
|
|
16
|
+
export declare function chatwmsCosmosUpdate(collectionId: string, query: string, data: any, partitionKey?: string): Promise<boolean>;
|
|
@@ -1,15 +1,27 @@
|
|
|
1
1
|
import { cosmosDelete, cosmosInsert, cosmosSelect, cosmosUpdate } from "../../azure/cosmos.js";
|
|
2
2
|
const DATABASE_ID = 'chatwms';
|
|
3
3
|
const PARTITION_KEY = '/clientId';
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
/**
|
|
5
|
+
* Default `partitionKey` is '/clientId'
|
|
6
|
+
*/
|
|
7
|
+
export async function chatwmsCosmosSelect(collectionId, query, partitionKey) {
|
|
8
|
+
return cosmosSelect(DATABASE_ID, collectionId, partitionKey ?? PARTITION_KEY, query);
|
|
6
9
|
}
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
/**
|
|
11
|
+
* Default `partitionKey` is '/clientId'
|
|
12
|
+
*/
|
|
13
|
+
export async function chatwmsCosmosInsert(collectionId, data, partitionKey) {
|
|
14
|
+
return cosmosInsert(DATABASE_ID, collectionId, partitionKey ?? PARTITION_KEY, data);
|
|
9
15
|
}
|
|
10
|
-
|
|
11
|
-
|
|
16
|
+
/**
|
|
17
|
+
* Default `partitionKey` is '/clientId'
|
|
18
|
+
*/
|
|
19
|
+
export async function chatwmsCosmosDelete(collectionId, query, partitionKey) {
|
|
20
|
+
return cosmosDelete(DATABASE_ID, collectionId, partitionKey ?? PARTITION_KEY, query);
|
|
12
21
|
}
|
|
13
|
-
|
|
14
|
-
|
|
22
|
+
/**
|
|
23
|
+
* Default `partitionKey` is '/clientId'
|
|
24
|
+
*/
|
|
25
|
+
export async function chatwmsCosmosUpdate(collectionId, query, data, partitionKey) {
|
|
26
|
+
return cosmosUpdate(DATABASE_ID, collectionId, partitionKey ?? PARTITION_KEY, query, data);
|
|
15
27
|
}
|
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED