Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

contensis-management-api

Package Overview
Dependencies
Maintainers
8
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contensis-management-api - npm Package Compare versions

Comparing version 2.0.8 to 2.0.9

3

bundle-es2015/models/UserGroupsOptions.d.ts

@@ -0,4 +1,7 @@

import { PageOptions } from 'contensis-core-api';
export interface UserGroupsOptions {
userId: string;
includeInherited?: boolean;
pageOptions?: PageOptions;
order?: string[];
}

2

bundle-es2015/security/users/user-operations.js

@@ -49,3 +49,3 @@ import { UrlBuilder } from 'contensis-core-api';

getUserGroups(userIdOrOptions) {
let url = UrlBuilder.create('/api/security/users/:userId/groups', { includeInherited: null })
let url = UrlBuilder.create('/api/security/users/:userId/groups', { order: null, pageIndex: null, pageSize: null, includeInherited: null })
.addOptions(userIdOrOptions, 'userId')

@@ -52,0 +52,0 @@ .setParams(this.contensisClient.getParams())

@@ -336,3 +336,3 @@ import * as Contensis from '../../index';

expect(global.fetch.calls.mostRecent().args).toEqual([
`http://my-website.com/api/security/users/${defaultUsers[0].id}/groups`,
`http://my-website.com/api/security/users/${defaultUsers[0].id}/groups?pageIndex=0&pageSize=25`,
getDefaultFetchRequest()

@@ -348,2 +348,4 @@ ]);

userId: defaultUsers[0].id,
pageOptions: { pageIndex: 1, pageSize: 50 },
order: ['name'],
includeInherited: true

@@ -353,3 +355,3 @@ });

expect(global.fetch.calls.mostRecent().args).toEqual([
`http://my-website.com/api/security/users/${defaultUsers[0].id}/groups?includeInherited=true`,
`http://my-website.com/api/security/users/${defaultUsers[0].id}/groups?includeInherited=true&order=name&pageIndex=1&pageSize=50`,
getDefaultFetchRequest()

@@ -356,0 +358,0 @@ ]);

@@ -8,2 +8,6 @@ # Changelog

## [2.0.9] - 2022-07-08
### Added
- users: added pagination to *getUserGroups* operation
## [2.0.8] - 2022-06-21

@@ -10,0 +14,0 @@ ### Added

@@ -0,4 +1,7 @@

import { PageOptions } from 'contensis-core-api';
export interface UserGroupsOptions {
userId: string;
includeInherited?: boolean;
pageOptions?: PageOptions;
order?: string[];
}

@@ -51,3 +51,3 @@ "use strict";

getUserGroups(userIdOrOptions) {
let url = contensis_core_api_1.UrlBuilder.create('/api/security/users/:userId/groups', { includeInherited: null })
let url = contensis_core_api_1.UrlBuilder.create('/api/security/users/:userId/groups', { order: null, pageIndex: null, pageSize: null, includeInherited: null })
.addOptions(userIdOrOptions, 'userId')

@@ -54,0 +54,0 @@ .setParams(this.contensisClient.getParams())

@@ -339,3 +339,3 @@ "use strict";

expect(global.fetch.calls.mostRecent().args).toEqual([
`http://my-website.com/api/security/users/${specs_utils_spec_1.defaultUsers[0].id}/groups`,
`http://my-website.com/api/security/users/${specs_utils_spec_1.defaultUsers[0].id}/groups?pageIndex=0&pageSize=25`,
specs_utils_spec_1.getDefaultFetchRequest()

@@ -351,2 +351,4 @@ ]);

userId: specs_utils_spec_1.defaultUsers[0].id,
pageOptions: { pageIndex: 1, pageSize: 50 },
order: ['name'],
includeInherited: true

@@ -356,3 +358,3 @@ });

expect(global.fetch.calls.mostRecent().args).toEqual([
`http://my-website.com/api/security/users/${specs_utils_spec_1.defaultUsers[0].id}/groups?includeInherited=true`,
`http://my-website.com/api/security/users/${specs_utils_spec_1.defaultUsers[0].id}/groups?includeInherited=true&order=name&pageIndex=1&pageSize=50`,
specs_utils_spec_1.getDefaultFetchRequest()

@@ -359,0 +361,0 @@ ]);

{
"name": "contensis-management-api",
"version": "2.0.8",
"version": "2.0.9",
"description": "Contensis Javascript Management API",

@@ -5,0 +5,0 @@ "engines": {

@@ -0,4 +1,8 @@

import { PageOptions } from 'contensis-core-api';
export interface UserGroupsOptions {
userId: string;
includeInherited?: boolean;
pageOptions?: PageOptions;
order?: string[];
}

@@ -469,3 +469,3 @@ import * as Contensis from '../../index';

expect((global.fetch as any).calls.mostRecent().args).toEqual([
`http://my-website.com/api/security/users/${defaultUsers[0].id}/groups`,
`http://my-website.com/api/security/users/${defaultUsers[0].id}/groups?pageIndex=0&pageSize=25`,
getDefaultFetchRequest()

@@ -483,2 +483,4 @@ ]);

userId: defaultUsers[0].id,
pageOptions: { pageIndex: 1, pageSize: 50 },
order: ['name'],
includeInherited: true

@@ -490,3 +492,3 @@ });

expect((global.fetch as any).calls.mostRecent().args).toEqual([
`http://my-website.com/api/security/users/${defaultUsers[0].id}/groups?includeInherited=true`,
`http://my-website.com/api/security/users/${defaultUsers[0].id}/groups?includeInherited=true&order=name&pageIndex=1&pageSize=50`,
getDefaultFetchRequest()

@@ -493,0 +495,0 @@ ]);

@@ -65,3 +65,3 @@ import { ContensisClient, IUserOperations, User, UserListOptions, Group, UserGroupsOptions, UserUpdatePasswordOptions } from '../../models';

let url = UrlBuilder.create('/api/security/users/:userId/groups',
{ includeInherited: null })
{ order: null, pageIndex: null, pageSize: null, includeInherited: null })
.addOptions(userIdOrOptions, 'userId')

@@ -68,0 +68,0 @@ .setParams(this.contensisClient.getParams())

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc