New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@epilot/customer-portal-client

Package Overview
Dependencies
Maintainers
0
Versions
249
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@epilot/customer-portal-client - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

dist/definition.js

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

!function(e,t){for(var o in t)e[o]=t[o];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,t,o){var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(o(279));t.default=i.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"Customer Portal API","description":"Backend for epilot end customer portals","version":"1.0.0"},"tags":[{"name":"mock","description":"Mock endpoints"},{"name":"auth","description":"Auth endpoints"}],"security":[{"CustomerPortalAuth":[]},{"AsOrganization":[]},{"AsBrand":[]},{"AsCustomer":[]}],"paths":{"/v1/customer-portal/public/mock":{"get":{"operationId":"mockPublicOperation","summary":"mockPublicOperation","description":"Mock response from OAS definition","tags":["mock"],"security":[],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"hello":{"type":"string","example":"world"}},"required":["hello"]}}}}}}},"/v1/customer-portal/mock":{"get":{"operationId":"mockOperation","summary":"mockOperation","description":"Mock response from OAS definition","tags":["mock"],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"hello":{"type":"string","example":"world"}},"required":["hello"]}}}}}}},"/v1/customer-portal/auth":{"get":{"operationId":"testAuth","summary":"testAuth","description":"Return auth context","tags":["auth"],"responses":{"200":{"description":"ok"}}}},"/v1/customer-portal/admin/auth":{"get":{"operationId":"testAdminAuth","summary":"testAdminAuth","description":"Return auth context","tags":["auth"],"security":[{"EpilotAuth":[]},{"AsOrganization":[]}],"responses":{"200":{"description":"ok"}}}}},"components":{"securitySchemes":{"CustomerPortalAuth":{"type":"http","scheme":"bearer","description":"Customer Portal Cognito Token"},"EpilotAuth":{"type":"http","scheme":"bearer","description":"Epilot Bearer Token"},"AsOrganization":{"type":"apiKey","in":"header","name":"x-ivy-org-id","description":"Set organization id as internal user"},"AsBrand":{"type":"apiKey","in":"header","name":"x-ivy-brand-id","description":"Set brand id as internal user"},"AsContact":{"type":"apiKey","in":"header","name":"x-contact-id","description":"Set contact id as internal user"}},"schemas":{"HelloWorldObject":{"type":"object","properties":{"hello":{"type":"string","example":"world"}},"required":["hello"]}}}}')}},t={};return function o(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,o),i.exports}(914)})());
!function(e,t){for(var r in t)e[r]=t[r];t.__esModule&&Object.defineProperty(e,"__esModule",{value:!0})}(exports,(()=>{"use strict";var e={914:function(e,t,r){var o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=o(r(279));t.default=i.default},279:e=>{e.exports=JSON.parse('{"openapi":"3.0.3","info":{"title":"Customer Portal API","description":"Backend for epilot end customer portals","version":"1.0.0"},"tags":[{"name":"mock","description":"Mock endpoints"}],"security":[{"CustomerPortalAuth":[]},{"AsOrganization":[]},{"AsBrand":[]},{"AsCustomer":[]}],"paths":{"/v1/customer-portal/auth":{"get":{"operationId":"testAuth","summary":"testAuth","tags":["mock"],"responses":{"200":{"description":"ok"}}}},"/v1/customer-portal/config":{"get":{"operationId":"getPortalConfig","summary":"getPortalConfig","description":null,"tags":["mock"],"security":[],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"auth_config":{"type":"object","properties":{"user_pool_id":{"type":"string","example":"eu-central-1_rxF1VaLSQ"},"user_pool_client_id":{"type":"string","example":"50n1u62b65bdkiviuadvbatulc"}},"required":["user_pool_id","user_pool_client_id"]}}}}}}}}},"/v1/customer-portal/info":{"get":{"operationId":"getCustomerInfo","summary":"getCustomerInfo","description":null,"tags":["mock"],"responses":{"200":{"description":"ok","content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"object","properties":{"street":{"type":"string","example":"Melatengurtel"},"street_number":{"type":"string","example":"71"},"city":{"type":"string","example":"Koln"}}}}}}}}}}}},"components":{"securitySchemes":{"CustomerPortalAuth":{"type":"http","scheme":"bearer","description":"Customer Portal Cognito Token"},"EpilotAuth":{"type":"http","scheme":"bearer","description":"Epilot Bearer Token"},"AsOrganization":{"type":"apiKey","in":"header","name":"x-ivy-org-id","description":"Set organization id as internal user"},"AsBrand":{"type":"apiKey","in":"header","name":"x-ivy-brand-id","description":"Set brand id as internal user"},"AsContact":{"type":"apiKey","in":"header","name":"x-contact-id","description":"Set contact id as internal user"}},"schemas":{"PortalConfig":{"type":"object","properties":{"auth_config":{"type":"object","properties":{"user_pool_id":{"type":"string","example":"eu-central-1_rxF1VaLSQ"},"user_pool_client_id":{"type":"string","example":"50n1u62b65bdkiviuadvbatulc"}},"required":["user_pool_id","user_pool_client_id"]}}},"AuthConfig":{"type":"object","properties":{"user_pool_id":{"type":"string","example":"eu-central-1_rxF1VaLSQ"},"user_pool_client_id":{"type":"string","example":"50n1u62b65bdkiviuadvbatulc"}},"required":["user_pool_id","user_pool_client_id"]}}}}')}},t={};return function r(o){if(t[o])return t[o].exports;var i=t[o]={exports:{}};return e[o].call(i.exports,i,i.exports,r),i.exports}(914)})());

@@ -12,20 +12,46 @@ /* eslint-disable */

namespace Schemas {
export interface HelloWorldObject {
export interface AuthConfig {
/**
* example:
* world
* eu-central-1_rxF1VaLSQ
*/
hello: string;
user_pool_id: string;
/**
* example:
* 50n1u62b65bdkiviuadvbatulc
*/
user_pool_client_id: string;
}
export interface PortalConfig {
auth_config?: AuthConfig;
}
}
}
declare namespace Paths {
namespace MockOperation {
namespace GetCustomerInfo {
namespace Responses {
export type $200 = Components.Schemas.HelloWorldObject;
export interface $200 {
address?: {
/**
* example:
* Melatengurtel
*/
street?: string;
/**
* example:
* 71
*/
street_number?: string;
/**
* example:
* Koln
*/
city?: string;
};
}
}
}
namespace MockPublicOperation {
namespace GetPortalConfig {
namespace Responses {
export type $200 = Components.Schemas.HelloWorldObject;
export type $200 = Components.Schemas.PortalConfig;
}

@@ -37,49 +63,31 @@ }

/**
* mockPublicOperation - mockPublicOperation
*
* Mock response from OAS definition
* testAuth - testAuth
*/
'mockPublicOperation'(
'testAuth'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: any,
config?: AxiosRequestConfig
): OperationResponse<Paths.MockPublicOperation.Responses.$200>
): OperationResponse<any>
/**
* mockOperation - mockOperation
*
* Mock response from OAS definition
* getPortalConfig - getPortalConfig
*/
'mockOperation'(
'getPortalConfig'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: any,
config?: AxiosRequestConfig
): OperationResponse<Paths.MockOperation.Responses.$200>
): OperationResponse<Paths.GetPortalConfig.Responses.$200>
/**
* testAuth - testAuth
*
* Return auth context
* getCustomerInfo - getCustomerInfo
*/
'testAuth'(
'getCustomerInfo'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: any,
config?: AxiosRequestConfig
): OperationResponse<any>
/**
* testAdminAuth - testAdminAuth
*
* Return auth context
*/
'testAdminAuth'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: any,
config?: AxiosRequestConfig
): OperationResponse<any>
): OperationResponse<Paths.GetCustomerInfo.Responses.$200>
}
export interface PathsDictionary {
['/v1/customer-portal/public/mock']: {
['/v1/customer-portal/auth']: {
/**
* mockPublicOperation - mockPublicOperation
*
* Mock response from OAS definition
* testAuth - testAuth
*/

@@ -90,9 +98,7 @@ 'get'(

config?: AxiosRequestConfig
): OperationResponse<Paths.MockPublicOperation.Responses.$200>
): OperationResponse<any>
}
['/v1/customer-portal/mock']: {
['/v1/customer-portal/config']: {
/**
* mockOperation - mockOperation
*
* Mock response from OAS definition
* getPortalConfig - getPortalConfig
*/

@@ -103,9 +109,7 @@ 'get'(

config?: AxiosRequestConfig
): OperationResponse<Paths.MockOperation.Responses.$200>
): OperationResponse<Paths.GetPortalConfig.Responses.$200>
}
['/v1/customer-portal/auth']: {
['/v1/customer-portal/info']: {
/**
* testAuth - testAuth
*
* Return auth context
* getCustomerInfo - getCustomerInfo
*/

@@ -116,18 +120,6 @@ 'get'(

config?: AxiosRequestConfig
): OperationResponse<any>
): OperationResponse<Paths.GetCustomerInfo.Responses.$200>
}
['/v1/customer-portal/admin/auth']: {
/**
* testAdminAuth - testAdminAuth
*
* Return auth context
*/
'get'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: any,
config?: AxiosRequestConfig
): OperationResponse<any>
}
}
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
{
"name": "@epilot/customer-portal-client",
"version": "0.1.0",
"version": "0.1.1",
"description": "API Client for epilot customer-portal API",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -12,20 +12,46 @@ /* eslint-disable */

namespace Schemas {
export interface HelloWorldObject {
export interface AuthConfig {
/**
* example:
* world
* eu-central-1_rxF1VaLSQ
*/
hello: string;
user_pool_id: string;
/**
* example:
* 50n1u62b65bdkiviuadvbatulc
*/
user_pool_client_id: string;
}
export interface PortalConfig {
auth_config?: AuthConfig;
}
}
}
declare namespace Paths {
namespace MockOperation {
namespace GetCustomerInfo {
namespace Responses {
export type $200 = Components.Schemas.HelloWorldObject;
export interface $200 {
address?: {
/**
* example:
* Melatengurtel
*/
street?: string;
/**
* example:
* 71
*/
street_number?: string;
/**
* example:
* Koln
*/
city?: string;
};
}
}
}
namespace MockPublicOperation {
namespace GetPortalConfig {
namespace Responses {
export type $200 = Components.Schemas.HelloWorldObject;
export type $200 = Components.Schemas.PortalConfig;
}

@@ -37,49 +63,31 @@ }

/**
* mockPublicOperation - mockPublicOperation
*
* Mock response from OAS definition
* testAuth - testAuth
*/
'mockPublicOperation'(
'testAuth'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: any,
config?: AxiosRequestConfig
): OperationResponse<Paths.MockPublicOperation.Responses.$200>
): OperationResponse<any>
/**
* mockOperation - mockOperation
*
* Mock response from OAS definition
* getPortalConfig - getPortalConfig
*/
'mockOperation'(
'getPortalConfig'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: any,
config?: AxiosRequestConfig
): OperationResponse<Paths.MockOperation.Responses.$200>
): OperationResponse<Paths.GetPortalConfig.Responses.$200>
/**
* testAuth - testAuth
*
* Return auth context
* getCustomerInfo - getCustomerInfo
*/
'testAuth'(
'getCustomerInfo'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: any,
config?: AxiosRequestConfig
): OperationResponse<any>
/**
* testAdminAuth - testAdminAuth
*
* Return auth context
*/
'testAdminAuth'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: any,
config?: AxiosRequestConfig
): OperationResponse<any>
): OperationResponse<Paths.GetCustomerInfo.Responses.$200>
}
export interface PathsDictionary {
['/v1/customer-portal/public/mock']: {
['/v1/customer-portal/auth']: {
/**
* mockPublicOperation - mockPublicOperation
*
* Mock response from OAS definition
* testAuth - testAuth
*/

@@ -90,9 +98,7 @@ 'get'(

config?: AxiosRequestConfig
): OperationResponse<Paths.MockPublicOperation.Responses.$200>
): OperationResponse<any>
}
['/v1/customer-portal/mock']: {
['/v1/customer-portal/config']: {
/**
* mockOperation - mockOperation
*
* Mock response from OAS definition
* getPortalConfig - getPortalConfig
*/

@@ -103,9 +109,7 @@ 'get'(

config?: AxiosRequestConfig
): OperationResponse<Paths.MockOperation.Responses.$200>
): OperationResponse<Paths.GetPortalConfig.Responses.$200>
}
['/v1/customer-portal/auth']: {
['/v1/customer-portal/info']: {
/**
* testAuth - testAuth
*
* Return auth context
* getCustomerInfo - getCustomerInfo
*/

@@ -116,18 +120,6 @@ 'get'(

config?: AxiosRequestConfig
): OperationResponse<any>
): OperationResponse<Paths.GetCustomerInfo.Responses.$200>
}
['/v1/customer-portal/admin/auth']: {
/**
* testAdminAuth - testAdminAuth
*
* Return auth context
*/
'get'(
parameters?: Parameters<UnknownParamsObject> | null,
data?: any,
config?: AxiosRequestConfig
): OperationResponse<any>
}
}
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
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