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

@equinor/fusion-framework-module-services

Package Overview
Dependencies
Maintainers
4
Versions
109
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@equinor/fusion-framework-module-services - npm Package Compare versions

Comparing version 0.0.0-next-20230915185612 to 0.0.0-next-20230922071857

dist/esm/people/utils.js

2

dist/esm/version.js

@@ -1,2 +0,2 @@

export const version = '3.2.0';
export const version = '3.2.1';
//# sourceMappingURL=version.js.map

@@ -1,3 +0,11 @@

import { ApiAccountClassification, ApiInvitationStatus, ApiProfileAccountLink, ApiProfileAccountType, ApiProjectMaster } from './api-models';
export type ApiPerson_v4 = {
import { ApiAccountClassification, ApiInvitationStatus, ApiManager, ApiProfileAccountLink, ApiProfileAccountType, ApiProjectMaster } from './api-models';
export type ApiPersonExpandMap_v4 = {
roles: Array<ApiPersonRole_v4>;
positions: Array<ApiPersonPosition_v4>;
contracts: Array<ApiPersonContract_v4>;
manager: ApiManager;
companies: Array<ApiCompanyInfo_v4>;
};
export type ApiPersonExpandProps_v4 = keyof ApiPersonExpandMap_v4;
export type ApiPerson_v4<TExpand extends Array<ApiPersonExpandProps_v4> = []> = {
azureUniqueId: string;

@@ -22,2 +30,4 @@ mail?: string;

linkedAccounts?: Array<ApiProfileAccountLink>;
} & Partial<ApiPersonExpandMap_v4> & {
[K in TExpand[number]]: ApiPersonExpandMap_v4[K];
};

@@ -24,0 +34,0 @@ export type ApiCompanyInfo_v4 = {

import { ApiVersion } from '../static';
import type { ApiManager } from '../api-models';
import type { ApiCompanyInfo_v4, ApiPersonContract_v4, ApiPerson_v4, ApiPersonPosition_v4, ApiPersonRole_v4 } from '../api-models.v4';
import type { ApiPerson_v4, ApiPersonExpandProps_v4 } from '../api-models.v4';
import { ClientMethod } from '../../types';

@@ -9,20 +8,9 @@ export type SupportedApiVersion = Extract<keyof typeof ApiVersion, 'v4'>;

azureId: string;
expand?: Array<keyof ExpandMap[ApiVersion.v4]>;
expand?: Array<ApiPersonExpandProps_v4>;
};
};
export type AllowedArgs = ApiRequestArgsMap[keyof ApiRequestArgsMap];
type ExpandMap = {
[ApiVersion.v4]: {
roles: Array<ApiPersonRole_v4>;
positions: Array<ApiPersonPosition_v4>;
contracts: Array<ApiPersonContract_v4>;
manager: ApiManager;
companies: Array<ApiCompanyInfo_v4>;
};
};
export type ApiRequestArgs<T extends SupportedApiVersion> = ApiRequestArgsMap[(typeof ApiVersion)[T]];
type ApiResponseTypes<TArgs extends AllowedArgs> = {
[ApiVersion.v4]: TArgs['expand'] extends Array<keyof ExpandMap[ApiVersion.v4]> ? ApiPerson_v4 & {
[K in TArgs['expand'][number]]: ExpandMap[ApiVersion.v4][K];
} : ApiPerson_v4;
[ApiVersion.v4]: ApiPerson_v4<TArgs['expand'] extends [] ? TArgs['expand'] : []>;
};

@@ -29,0 +17,0 @@ export type ApiResponse<T extends SupportedApiVersion, TArgs extends AllowedArgs> = ApiResponseTypes<TArgs>[(typeof ApiVersion)[T]];

@@ -1,1 +0,1 @@

export declare const version = "3.2.0";
export declare const version = "3.2.1";
{
"name": "@equinor/fusion-framework-module-services",
"version": "0.0.0-next-20230915185612",
"version": "0.0.0-next-20230922071857",
"description": "",

@@ -31,2 +31,5 @@ "sideEffects": false,

],
"people/utils": [
"dist/types/people/utils"
],
"people/get": [

@@ -53,2 +56,3 @@ "dist/types/people/person-details/index"

"./people": "./dist/esm/people/index.js",
"./people/utils": "./dist/esm/people/utils.js",
"./people/get": "./dist/esm/people/person-details/index.js",

@@ -76,9 +80,9 @@ "./people/query": "./dist/esm/people/query/index.js",

"typescript": "^5.1.3",
"@equinor/fusion-framework-module": "^0.0.0-next-20230915185612",
"@equinor/fusion-framework-module-http": "^0.0.0-next-20230915185612",
"@equinor/fusion-framework-module-service-discovery": "^0.0.0-next-20230915185612"
"@equinor/fusion-framework-module": "^4.2.5",
"@equinor/fusion-framework-module-service-discovery": "^0.0.0-next-20230922071857",
"@equinor/fusion-framework-module-http": "^5.1.1"
},
"peerDependencies": {
"odata-query": "^7.0.4",
"@equinor/fusion-framework-module": "^0.0.0-next-20230915185612"
"@equinor/fusion-framework-module": "^4.2.5"
},

@@ -85,0 +89,0 @@ "scripts": {

import {
ApiAccountClassification,
ApiInvitationStatus,
ApiManager,
ApiProfileAccountLink,

@@ -9,3 +10,13 @@ ApiProfileAccountType,

export type ApiPerson_v4 = {
export type ApiPersonExpandMap_v4 = {
roles: Array<ApiPersonRole_v4>;
positions: Array<ApiPersonPosition_v4>;
contracts: Array<ApiPersonContract_v4>;
manager: ApiManager;
companies: Array<ApiCompanyInfo_v4>;
};
export type ApiPersonExpandProps_v4 = keyof ApiPersonExpandMap_v4;
export type ApiPerson_v4<TExpand extends Array<ApiPersonExpandProps_v4> = []> = {
azureUniqueId: string;

@@ -34,3 +45,6 @@ mail?: string;

linkedAccounts?: Array<ApiProfileAccountLink>;
};
} & /** expanded */ Partial<ApiPersonExpandMap_v4> & {
/** Provided */
[K in TExpand[number]]: ApiPersonExpandMap_v4[K];
};

@@ -37,0 +51,0 @@ export type ApiCompanyInfo_v4 = {

import { ApiVersion } from '../static';
import type { ApiManager } from '../api-models';
import type {
ApiCompanyInfo_v4,
ApiPersonContract_v4,
ApiPerson_v4,
ApiPersonPosition_v4,
ApiPersonRole_v4,
} from '../api-models.v4';
import type { ApiPerson_v4, ApiPersonExpandProps_v4 } from '../api-models.v4';
import { ClientMethod } from '../../types';

@@ -17,3 +10,3 @@

azureId: string;
expand?: Array<keyof ExpandMap[ApiVersion.v4]>;
expand?: Array<ApiPersonExpandProps_v4>;
};

@@ -24,12 +17,2 @@ };

type ExpandMap = {
[ApiVersion.v4]: {
roles: Array<ApiPersonRole_v4>;
positions: Array<ApiPersonPosition_v4>;
contracts: Array<ApiPersonContract_v4>;
manager: ApiManager;
companies: Array<ApiCompanyInfo_v4>;
};
};
export type ApiRequestArgs<T extends SupportedApiVersion> =

@@ -39,7 +22,3 @@ ApiRequestArgsMap[(typeof ApiVersion)[T]];

type ApiResponseTypes<TArgs extends AllowedArgs> = {
[ApiVersion.v4]: TArgs['expand'] extends Array<keyof ExpandMap[ApiVersion.v4]>
? ApiPerson_v4 & {
[K in TArgs['expand'][number]]: ExpandMap[ApiVersion.v4][K];
}
: ApiPerson_v4;
[ApiVersion.v4]: ApiPerson_v4<TArgs['expand'] extends [] ? TArgs['expand'] : []>;
};

@@ -46,0 +25,0 @@

// Generated by genversion.
export const version = '3.2.0';
export const version = '3.2.1';

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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