@thunderid/javascript 1.8.1 → 1.9.1

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.
@@ -3,7 +3,7 @@ import { GroupListResponse } from '../../../models/group';
3
3
  /**
4
4
  * Configuration for the getGroups request.
5
5
  */
6
- export type GetGroupsConfig = ManagementRequestConfig & Pick<ApiFilteringParams, 'limit' | 'offset'>;
6
+ export type GetGroupsConfig = ManagementRequestConfig & Pick<ApiFilteringParams, 'filter' | 'limit' | 'offset'>;
7
7
  /**
8
8
  * Retrieves a page of groups.
9
9
  *
@@ -12,9 +12,13 @@ export type GetGroupsConfig = ManagementRequestConfig & Pick<ApiFilteringParams,
12
12
  *
13
13
  * @example
14
14
  * ```typescript
15
- * const {groups} = await getGroups({baseUrl: 'https://localhost:8090', limit: 20});
15
+ * const {groups} = await getGroups({
16
+ * baseUrl: 'https://localhost:8090',
17
+ * filter: 'ouId eq "c4f2a5e0-0a54-4b8e-9d1a-2f6c1e7b8a90"',
18
+ * limit: 20,
19
+ * });
16
20
  * ```
17
21
  */
18
- declare const getGroups: ({ limit, offset, ...config }: GetGroupsConfig) => Promise<GroupListResponse>;
22
+ declare const getGroups: ({ filter, limit, offset, ...config }: GetGroupsConfig) => Promise<GroupListResponse>;
19
23
  export default getGroups;
20
24
  //# sourceMappingURL=getGroups.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getGroups.d.ts","sourceRoot":"","sources":["../../../../src/api/management/groups/getGroups.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,kBAAkB,EAAE,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AAGxD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,uBAAuB,GAAG,IAAI,CAAC,kBAAkB,EAAE,OAAO,GAAG,QAAQ,CAAC,CAAC;AAErG;;;;;;;;;;GAUG;AACH,QAAA,MAAM,SAAS,GAAU,8BAA4B,eAAe,KAAG,OAAO,CAAC,iBAAiB,CAO5F,CAAC;AAEL,eAAe,SAAS,CAAC"}
1
+ {"version":3,"file":"getGroups.d.ts","sourceRoot":"","sources":["../../../../src/api/management/groups/getGroups.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,kBAAkB,EAAE,uBAAuB,EAAC,MAAM,qBAAqB,CAAC;AAChF,OAAO,EAAC,iBAAiB,EAAC,MAAM,uBAAuB,CAAC;AAGxD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,uBAAuB,GAAG,IAAI,CAAC,kBAAkB,EAAE,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC,CAAC;AAEhH;;;;;;;;;;;;;;GAcG;AACH,QAAA,MAAM,SAAS,GAAU,sCAAoC,eAAe,KAAG,OAAO,CAAC,iBAAiB,CAOpG,CAAC;AAEL,eAAe,SAAS,CAAC"}
@@ -2746,15 +2746,20 @@ var removeRoleAssignments_default = removeRoleAssignments;
2746
2746
  *
2747
2747
  * @example
2748
2748
  * ```typescript
2749
- * const {groups} = await getGroups({baseUrl: 'https://localhost:8090', limit: 20});
2749
+ * const {groups} = await getGroups({
2750
+ * baseUrl: 'https://localhost:8090',
2751
+ * filter: 'ouId eq "c4f2a5e0-0a54-4b8e-9d1a-2f6c1e7b8a90"',
2752
+ * limit: 20,
2753
+ * });
2750
2754
  * ```
2751
2755
  */
2752
- const getGroups = async ({ limit, offset,...config }) => requestManagementResource_default(config, {
2756
+ const getGroups = async ({ filter, limit, offset,...config }) => requestManagementResource_default(config, {
2753
2757
  collection: "groups",
2754
2758
  failureMessage: "Failed to fetch groups",
2755
2759
  method: "GET",
2756
2760
  operation: "getGroups",
2757
2761
  query: {
2762
+ filter,
2758
2763
  include: "display",
2759
2764
  limit,
2760
2765
  offset
@@ -2724,15 +2724,20 @@ var removeRoleAssignments_default = removeRoleAssignments;
2724
2724
  *
2725
2725
  * @example
2726
2726
  * ```typescript
2727
- * const {groups} = await getGroups({baseUrl: 'https://localhost:8090', limit: 20});
2727
+ * const {groups} = await getGroups({
2728
+ * baseUrl: 'https://localhost:8090',
2729
+ * filter: 'ouId eq "c4f2a5e0-0a54-4b8e-9d1a-2f6c1e7b8a90"',
2730
+ * limit: 20,
2731
+ * });
2728
2732
  * ```
2729
2733
  */
2730
- const getGroups = async ({ limit, offset,...config }) => requestManagementResource_default(config, {
2734
+ const getGroups = async ({ filter, limit, offset,...config }) => requestManagementResource_default(config, {
2731
2735
  collection: "groups",
2732
2736
  failureMessage: "Failed to fetch groups",
2733
2737
  method: "GET",
2734
2738
  operation: "getGroups",
2735
2739
  query: {
2740
+ filter,
2736
2741
  include: "display",
2737
2742
  limit,
2738
2743
  offset
package/dist/index.js CHANGED
@@ -2724,15 +2724,20 @@ var removeRoleAssignments_default = removeRoleAssignments;
2724
2724
  *
2725
2725
  * @example
2726
2726
  * ```typescript
2727
- * const {groups} = await getGroups({baseUrl: 'https://localhost:8090', limit: 20});
2727
+ * const {groups} = await getGroups({
2728
+ * baseUrl: 'https://localhost:8090',
2729
+ * filter: 'ouId eq "c4f2a5e0-0a54-4b8e-9d1a-2f6c1e7b8a90"',
2730
+ * limit: 20,
2731
+ * });
2728
2732
  * ```
2729
2733
  */
2730
- const getGroups = async ({ limit, offset,...config }) => requestManagementResource_default(config, {
2734
+ const getGroups = async ({ filter, limit, offset,...config }) => requestManagementResource_default(config, {
2731
2735
  collection: "groups",
2732
2736
  failureMessage: "Failed to fetch groups",
2733
2737
  method: "GET",
2734
2738
  operation: "getGroups",
2735
2739
  query: {
2740
+ filter,
2736
2741
  include: "display",
2737
2742
  limit,
2738
2743
  offset
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thunderid/javascript",
3
- "version": "1.8.1",
3
+ "version": "1.9.1",
4
4
  "description": "JavaScript Ecosystem SDK for ThunderID",
5
5
  "keywords": [
6
6
  "thunderid",