@qelos/sdk 3.11.10 → 3.11.11
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.
|
@@ -5,7 +5,14 @@ export default class QlAdminWorkspaces extends BaseSDK {
|
|
|
5
5
|
private options;
|
|
6
6
|
private relativePath;
|
|
7
7
|
constructor(options: QelosSDKOptions);
|
|
8
|
-
getList(
|
|
8
|
+
getList(filters?: {
|
|
9
|
+
'members.user'?: string;
|
|
10
|
+
labels?: string[];
|
|
11
|
+
name?: string;
|
|
12
|
+
q?: string;
|
|
13
|
+
_id?: string[];
|
|
14
|
+
select?: string;
|
|
15
|
+
}): Promise<IWorkspace[]>;
|
|
9
16
|
getEncryptedData<Z = any>(workspaceId: string, encryptedId?: string): Promise<Z>;
|
|
10
17
|
setEncryptedData<Z = any>(workspaceId: string, encryptedId: string, data: Z): Promise<void>;
|
|
11
18
|
}
|
|
@@ -6,8 +6,13 @@ export default class QlAdminWorkspaces extends BaseSDK {
|
|
|
6
6
|
super(options);
|
|
7
7
|
this.options = options;
|
|
8
8
|
}
|
|
9
|
-
getList() {
|
|
10
|
-
|
|
9
|
+
getList(filters) {
|
|
10
|
+
const queryParams = filters
|
|
11
|
+
? `?${Object.entries(filters)
|
|
12
|
+
.filter(([, value]) => value !== undefined)
|
|
13
|
+
.map(([key, value]) => Array.isArray(value) ? `${key}=${value.join(',')}` : `${key}=${value}`).join('&')}`
|
|
14
|
+
: '';
|
|
15
|
+
return this.callJsonApi(this.relativePath + '/all' + queryParams);
|
|
11
16
|
}
|
|
12
17
|
getEncryptedData(workspaceId, encryptedId = '') {
|
|
13
18
|
return this.callJsonApi(`${this.relativePath}/${workspaceId}/encrypted`, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspaces.js","sourceRoot":"","sources":["../../src/administrator/workspaces.ts"],"names":[],"mappings":"AACA,OAAO,OAAO,MAAM,aAAa,CAAC;AAGlC,MAAM,CAAC,OAAO,OAAO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,EAAE;YAC1E,OAAO,EAAE;gBACP,gBAAgB,EAAE,WAAW;aAC9B;SACF,CAAC,CAAA;IACJ,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAU,WAAmB,EAAE,cAAsB,EAAE,EAAE,IAAO;QACpF,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,YAAY,IAAI,WAAW,YAAY,EAAE;YAC9E,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE,cAAc,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,WAAW,EAAE;YAC9E,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;SAC3B,CAAC,CAAA;QACF,IAAI,GAAG,CAAC,MAAM,IAAI,GAAG,EAAE;YACrB,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAA;SAChD;IACH,CAAC;CACF"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qelos/sdk",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.11",
|
|
4
4
|
"description": "SDK for Qelos API",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
"access": "public"
|
|
103
103
|
},
|
|
104
104
|
"dependencies": {
|
|
105
|
-
"@qelos/global-types": "^3.11.
|
|
105
|
+
"@qelos/global-types": "^3.11.11"
|
|
106
106
|
},
|
|
107
107
|
"devDependencies": {
|
|
108
108
|
"tsx": "^4.21.0",
|
|
@@ -9,8 +9,16 @@ export default class QlAdminWorkspaces extends BaseSDK {
|
|
|
9
9
|
super(options)
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
getList() {
|
|
13
|
-
|
|
12
|
+
getList(filters?: { 'members.user'?: string; labels?: string[]; name?: string; q?: string; _id?: string[]; select?: string }) {
|
|
13
|
+
const queryParams = filters
|
|
14
|
+
? `?${Object.entries(filters)
|
|
15
|
+
.filter(([, value]) => value !== undefined)
|
|
16
|
+
.map(([key, value]) =>
|
|
17
|
+
Array.isArray(value) ? `${key}=${value.join(',')}` : `${key}=${value}`
|
|
18
|
+
).join('&')}`
|
|
19
|
+
: '';
|
|
20
|
+
|
|
21
|
+
return this.callJsonApi<IWorkspace[]>(this.relativePath + '/all' + queryParams);
|
|
14
22
|
}
|
|
15
23
|
|
|
16
24
|
getEncryptedData<Z = any>(workspaceId: string, encryptedId: string = '') {
|