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

@commercelayer/sdk

Package Overview
Dependencies
Maintainers
3
Versions
373
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercelayer/sdk - npm Package Compare versions

Comparing version 2.0.7 to 2.1.0-alpha.0

lib/interceptor.d.ts

15

lib/api.d.ts
/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -96,3 +95,11 @@ export { default as Addresses } from './resources/addresses';

export { default as WireTransfers } from './resources/wire_transfers';
export declare type ResTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'coupon_codes_promotion_rules' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscriptions' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
export declare const resourceList: string[];
export declare type ResourceTypeLock = 'addresses' | 'adjustments' | 'adyen_gateways' | 'adyen_payments' | 'application' | 'attachments' | 'authorizations' | 'avalara_accounts' | 'billing_info_validation_rules' | 'bing_geocoders' | 'braintree_gateways' | 'braintree_payments' | 'bundles' | 'captures' | 'carrier_accounts' | 'checkout_com_gateways' | 'checkout_com_payments' | 'coupon_codes_promotion_rules' | 'coupons' | 'customer_addresses' | 'customer_groups' | 'customer_password_resets' | 'customer_payment_sources' | 'customer_subscriptions' | 'customers' | 'delivery_lead_times' | 'external_gateways' | 'external_payments' | 'external_promotions' | 'external_tax_calculators' | 'fixed_amount_promotions' | 'free_shipping_promotions' | 'geocoders' | 'gift_card_recipients' | 'gift_cards' | 'google_geocoders' | 'imports' | 'in_stock_subscriptions' | 'inventory_models' | 'inventory_return_locations' | 'inventory_stock_locations' | 'line_item_options' | 'line_items' | 'manual_gateways' | 'manual_tax_calculators' | 'markets' | 'merchants' | 'order_amount_promotion_rules' | 'order_copies' | 'order_subscriptions' | 'orders' | 'organization' | 'packages' | 'parcel_line_items' | 'parcels' | 'payment_gateways' | 'payment_methods' | 'paypal_gateways' | 'paypal_payments' | 'percentage_discount_promotions' | 'price_lists' | 'prices' | 'promotion_rules' | 'promotions' | 'refunds' | 'return_line_items' | 'returns' | 'shipments' | 'shipping_categories' | 'shipping_methods' | 'shipping_zones' | 'sku_list_items' | 'sku_list_promotion_rules' | 'sku_lists' | 'sku_options' | 'skus' | 'stock_items' | 'stock_line_items' | 'stock_locations' | 'stock_transfers' | 'stripe_gateways' | 'stripe_payments' | 'tax_calculators' | 'tax_categories' | 'tax_rules' | 'taxjar_accounts' | 'transactions' | 'voids' | 'webhooks' | 'wire_transfers';
export declare const resourceList: ResourceTypeLock[];
export declare type ResourceInfo = {
name: string;
type: ResourceTypeLock;
api: string;
};
export declare const resourcMap: {
[res: string]: ResourceInfo;
};
import { Method } from 'axios';
import { DocWithData as JSONApiDocument, ResourceObject as JSONApiResource } from 'jsonapi-typescript';
import type { InterceptorManager } from './interceptor';
declare type RequestConfig = {

@@ -23,2 +24,3 @@ timeout?: number;

baseUrl: string;
interceptors: InterceptorManager;
private constructor();

@@ -25,0 +27,0 @@ config(config: ApiClientConfig): void;

import * as api from './api';
import ApiError from './error';
import { ErrorInterceptor, InterceptorType, RequestInterceptor, ResponseInterceptor } from './interceptor';
import { ResourcesConfig, ResourcesInitConfig } from './resource';

@@ -102,4 +103,7 @@ declare type SdkConfig = {};

config(config: CommerceLayerConfig): void;
resources(): string[];
resources(): api.ResourceTypeLock[];
isApiError(error: any): error is ApiError;
addRequestInterceptor(onFulfilled?: RequestInterceptor, onRejected?: ErrorInterceptor): number;
addResponseInterceptor(onFulfilled?: ResponseInterceptor, onRejected?: ErrorInterceptor): number;
removeInterceptor(type: InterceptorType, id: number): void;
}

@@ -109,1 +113,5 @@ declare const CommerceLayer: (config: CommerceLayerInitConfig) => CommerceLayerClient;

export type { CommerceLayerClient, CommerceLayerConfig, CommerceLayerInitConfig };
export declare const CommerceLayerStatic: {
resources: () => api.ResourceTypeLock[];
isApiError: (error: any) => error is ApiError;
};

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

export { default, CommerceLayerClient } from './commercelayer';
export type { QueryBuilderRetrieve, QueryBuilderList } from './query';
export { default, CommerceLayerStatic } from './commercelayer';
export type { CommerceLayerClient } from './commercelayer';
export type { QueryParamsRetrieve, QueryParamsList } from './query';
export * from './model';
import { ApiClientConfig, ApiClientInitConfig } from './client';
import { JSONValue } from './jsonapi';
import { QueryParamsRetrieve, QueryParamsList } from './query';
import { ResTypeLock } from './api';
import { ResourceTypeLock } from './api';
import { InterceptorManager } from './interceptor';
declare type Metadata = {

@@ -9,3 +10,3 @@ [key: string]: JSONValue;

interface ResourceType {
readonly type: ResTypeLock;
readonly type: ResourceTypeLock;
}

@@ -54,2 +55,3 @@ interface ResourceId extends ResourceType {

config(config: ResourcesConfig): void;
get interceptors(): InterceptorManager;
singleton<R extends Resource>(resource: ResourceType, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;

@@ -63,7 +65,8 @@ retrieve<R extends Resource>(resource: ResourceId, params?: QueryParamsRetrieve, options?: ResourcesConfig): Promise<R>;

declare abstract class ApiResource {
static readonly TYPE: string;
static readonly TYPE: ResourceTypeLock;
protected resources: ResourceAdapter;
constructor(adapter: ResourceAdapter);
abstract relationship(id: string | ResourceId): ResourceId;
}
export default ResourceAdapter;
export { ApiResource, ResourcesConfig, ResourcesInitConfig };
/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

/**
* ©2021 Commerce Layer Inc.
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.0
* Generation date: 15-09-2021
* Source code generated automatically by SDK codegen from OpenAPI schema 2.7.1
**/

@@ -6,0 +5,0 @@ import { ApiResource, Resource, ResourceCreate, ResourceUpdate, ResourcesConfig, ResourceId, ListResponse } from '../resource';

{
"name": "@commercelayer/sdk",
"version": "2.0.7",
"version": "2.1.0-alpha.0",
"main": "lib/index.js",

@@ -8,7 +8,9 @@ "types": "lib/index.d.ts",

"lint": "eslint ./src --ext .ts",
"lintspec": "eslint ./specs/resources/ --ext .spec.ts",
"build": "rm -rf ./dist/* & tsdx build --tsconfig tsconfig.prod.json",
"start": "ts-node src/index.ts",
"generate": "ts-node gen/generator.ts",
"prepare": "npm run build && cp -rf dist/* lib",
"test": "tsdx test"
"prepare": "npm run build && cp -rf dist/ lib",
"test": "tsdx test",
"coverage": "tsdx test --coverage"
},

@@ -32,5 +34,6 @@ "keywords": [

"dependencies": {
"axios": "^0.21.1"
"axios": "^0.21.4"
},
"devDependencies": {
"@commercelayer/js-auth": "^2.0.8",
"@types/lodash": "^4.14.170",

@@ -37,0 +40,0 @@ "@types/node": "^15.12.1",

@@ -7,3 +7,3 @@ # Commerce Layer JS SDK

[Commerce Layer](https://commercelayer.io/) is a headless platform that lets you easily build enterprise-grade ecommerce into any website, by using the language, CMS, and tools you already master and love.
[Commerce Layer](https://commercelayer.io) is a multi-market commerce API and order management system that lets you add global shopping capabilities to any website, mobile app, chatbot, wearable, voice, or IoT device, with ease. Compose your stack with the best-of-breed tools you already mastered and love. Make any experience shoppable, anywhere, through a blazing-fast, enterprise-grade, and secure API.

@@ -10,0 +10,0 @@ # Getting started

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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