@field123/client-common
Advanced tools
Comparing version 0.1.0 to 0.2.0
import * as O from 'fp-ts/Option'; | ||
import { CatalogRelease, Hierarchy, Product, Node } from '@field123/shopper-common'; | ||
import { EPQueryClauseType } from '@field123/core'; | ||
import { Transporter } from '@field123/transporter'; | ||
interface Offset { | ||
type: 'offset'; | ||
value: number; | ||
} | ||
interface Limit { | ||
type: 'limit'; | ||
value: number; | ||
} | ||
declare type IncludeValue = 'component_products'; | ||
interface Include { | ||
type: 'include'; | ||
value: IncludeValue; | ||
} | ||
declare type EPQueryClause = Offset | Limit | Include; | ||
declare type EPQueryClauseType = EPQueryClause['type']; | ||
declare type LimitFunction = (value: number) => Limit; | ||
declare type IncludeFunction = (value: IncludeValue) => Include; | ||
declare type OffsetFunction = (value: number) => Offset; | ||
declare type EPQueryClauseFunction = LimitFunction | IncludeFunction | OffsetFunction; | ||
declare type GrantType = 'implicit' | 'client_credentials'; | ||
@@ -37,2 +19,3 @@ interface EPClientConfig { | ||
authToken: O.Option<AccessToken>; | ||
transporter: Transporter; | ||
} | ||
@@ -103,2 +86,3 @@ interface AccessToken { | ||
options?: EPBaseResourceOptions; | ||
transporter: Transporter; | ||
} | ||
@@ -140,9 +124,2 @@ interface EPServerResponseData<T> { | ||
interface EPClientError { | ||
type: 'General' | 'Auth' | 'Request'; | ||
message: string; | ||
name?: string; | ||
source?: Error; | ||
} | ||
export { AccessToken, EPBaseResourceOptions, EPCatalogQueryReference, EPCatalogReference, EPClient, EPClientConfig, EPClientError, EPClientRequest, EPHierarchyQueryReference, EPHierarchyReference, EPNodeQueryReference, EPNodeReference, EPProductQueryReference, EPProductReference, EPQueryClause, EPQueryClauseFunction, EPQueryClauseType, EPQueryResourceResponseHandler, EPResourceData, EPResourceQueryReference, EPResourceQueryReferenceBase, EPResourceQueryResponse, EPResourceReference, EPResourceResponseHandler, EPResourceType, EPServerQueryResponse, EPServerQueryResponseMeta, EPServerResponse, GrantType, Include, IncludeFunction, IncludeValue, Limit, LimitFunction, Offset, OffsetFunction }; | ||
export { AccessToken, EPBaseResourceOptions, EPCatalogQueryReference, EPCatalogReference, EPClient, EPClientConfig, EPClientRequest, EPHierarchyQueryReference, EPHierarchyReference, EPNodeQueryReference, EPNodeReference, EPProductQueryReference, EPProductReference, EPQueryResourceResponseHandler, EPResourceData, EPResourceQueryReference, EPResourceQueryReferenceBase, EPResourceQueryResponse, EPResourceReference, EPResourceResponseHandler, EPResourceType, EPServerQueryResponse, EPServerQueryResponseMeta, EPServerResponse, GrantType }; |
{ | ||
"name": "@field123/client-common", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"main": "./dist/client-common.cjs.js", | ||
@@ -25,3 +25,5 @@ "browser": "./dist/client-common.esm.js", | ||
"dependencies": { | ||
"@field123/shopper-common": "0.1.0" | ||
"@field123/shopper-common": "0.1.0", | ||
"@field123/transporter": "0.1.0", | ||
"@field123/core": "0.4.0" | ||
}, | ||
@@ -28,0 +30,0 @@ "publishConfig": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5905
3
138
+ Added@field123/core@0.4.0
+ Added@field123/transporter@0.1.0
+ Added@field123/core@0.4.0(transitive)
+ Added@field123/requester-common@0.2.0(transitive)
+ Added@field123/transporter@0.1.0(transitive)