@commercetools/sdk-client-v2 0.1.2 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/dist/commercetools-sdk-client-v2.browser.cjs.js +780 -1156
- package/dist/commercetools-sdk-client-v2.browser.esm.js +780 -1156
- package/dist/commercetools-sdk-client-v2.cjs.dev.js +780 -1156
- package/dist/commercetools-sdk-client-v2.cjs.prod.js +780 -1156
- package/dist/commercetools-sdk-client-v2.esm.js +780 -1156
- package/dist/commercetools-sdk-client-v2.umd.js +1 -1
- package/dist/declarations/src/client-builder/ClientBuilder.d.ts +26 -26
- package/dist/declarations/src/http-user-agent/create-user-agent.d.ts +2 -2
- package/dist/declarations/src/index.d.ts +14 -14
- package/dist/declarations/src/sdk-client/allowed-methods.d.ts +2 -2
- package/dist/declarations/src/sdk-client/client.d.ts +2 -2
- package/dist/declarations/src/sdk-client/errors.d.ts +10 -10
- package/dist/declarations/src/sdk-client/validate.d.ts +7 -7
- package/dist/declarations/src/sdk-middleware-auth/anonymous-session-flow.d.ts +2 -2
- package/dist/declarations/src/sdk-middleware-auth/base-auth-flow.d.ts +2 -2
- package/dist/declarations/src/sdk-middleware-auth/build-requests.d.ts +11 -11
- package/dist/declarations/src/sdk-middleware-auth/build-token-cache-key.d.ts +2 -2
- package/dist/declarations/src/sdk-middleware-auth/client-credentials-flow.d.ts +2 -2
- package/dist/declarations/src/sdk-middleware-auth/existing-token.d.ts +2 -2
- package/dist/declarations/src/sdk-middleware-auth/index.d.ts +5 -5
- package/dist/declarations/src/sdk-middleware-auth/password-flow.d.ts +2 -2
- package/dist/declarations/src/sdk-middleware-auth/refresh-token-flow.d.ts +2 -2
- package/dist/declarations/src/sdk-middleware-auth/utils.d.ts +4 -4
- package/dist/declarations/src/sdk-middleware-correlation-id/correlation-id.d.ts +2 -2
- package/dist/declarations/src/sdk-middleware-http/http.d.ts +2 -2
- package/dist/declarations/src/sdk-middleware-http/parse-headers.d.ts +2 -2
- package/dist/declarations/src/sdk-middleware-logger/logger.d.ts +2 -2
- package/dist/declarations/src/sdk-middleware-queue/queue.d.ts +2 -2
- package/dist/declarations/src/sdk-middleware-user-agent/user-agent.d.ts +2 -2
- package/package.json +4 -4
- package/dist/declarations/package.d.ts +0 -46
|
@@ -1,26 +1,26 @@
|
|
|
1
|
-
import { AnonymousAuthMiddlewareOptions, AuthMiddlewareOptions, Client, CorrelationIdMiddlewareOptions, Credentials, ExistingTokenMiddlewareOptions, HttpMiddlewareOptions, Middleware, PasswordAuthMiddlewareOptions, QueueMiddlewareOptions, RefreshAuthMiddlewareOptions } from '../types/sdk';
|
|
2
|
-
export default class ClientBuilder {
|
|
3
|
-
private projectKey;
|
|
4
|
-
private authMiddleware;
|
|
5
|
-
private httpMiddleware;
|
|
6
|
-
private userAgentMiddleware;
|
|
7
|
-
private correlationIdMiddleware;
|
|
8
|
-
private loggerMiddleware;
|
|
9
|
-
private queueMiddleware;
|
|
10
|
-
private middlewares;
|
|
11
|
-
withProjectKey(key: string): ClientBuilder;
|
|
12
|
-
defaultClient(baseUri: string, credentials: Credentials, oauthUri?: string, projectKey?: string): ClientBuilder;
|
|
13
|
-
withAuthMiddleware(authMiddleware: Middleware): ClientBuilder;
|
|
14
|
-
withMiddleware(middleware: Middleware): ClientBuilder;
|
|
15
|
-
withClientCredentialsFlow(options: AuthMiddlewareOptions): ClientBuilder;
|
|
16
|
-
withPasswordFlow(options: PasswordAuthMiddlewareOptions): ClientBuilder;
|
|
17
|
-
withAnonymousSessionFlow(options: AnonymousAuthMiddlewareOptions): ClientBuilder;
|
|
18
|
-
withRefreshTokenFlow(options: RefreshAuthMiddlewareOptions): ClientBuilder;
|
|
19
|
-
withExistingTokenFlow(authorization: string, options: ExistingTokenMiddlewareOptions): ClientBuilder;
|
|
20
|
-
withHttpMiddleware(options: HttpMiddlewareOptions): ClientBuilder;
|
|
21
|
-
withUserAgentMiddleware(): ClientBuilder;
|
|
22
|
-
withQueueMiddleware(options: QueueMiddlewareOptions): ClientBuilder;
|
|
23
|
-
withLoggerMiddleware(): this;
|
|
24
|
-
withCorrelationIdMiddleware(options: CorrelationIdMiddlewareOptions): ClientBuilder;
|
|
25
|
-
build(): Client;
|
|
26
|
-
}
|
|
1
|
+
import { AnonymousAuthMiddlewareOptions, AuthMiddlewareOptions, Client, CorrelationIdMiddlewareOptions, Credentials, ExistingTokenMiddlewareOptions, HttpMiddlewareOptions, Middleware, PasswordAuthMiddlewareOptions, QueueMiddlewareOptions, RefreshAuthMiddlewareOptions } from '../types/sdk';
|
|
2
|
+
export default class ClientBuilder {
|
|
3
|
+
private projectKey;
|
|
4
|
+
private authMiddleware;
|
|
5
|
+
private httpMiddleware;
|
|
6
|
+
private userAgentMiddleware;
|
|
7
|
+
private correlationIdMiddleware;
|
|
8
|
+
private loggerMiddleware;
|
|
9
|
+
private queueMiddleware;
|
|
10
|
+
private middlewares;
|
|
11
|
+
withProjectKey(key: string): ClientBuilder;
|
|
12
|
+
defaultClient(baseUri: string, credentials: Credentials, oauthUri?: string, projectKey?: string): ClientBuilder;
|
|
13
|
+
withAuthMiddleware(authMiddleware: Middleware): ClientBuilder;
|
|
14
|
+
withMiddleware(middleware: Middleware): ClientBuilder;
|
|
15
|
+
withClientCredentialsFlow(options: AuthMiddlewareOptions): ClientBuilder;
|
|
16
|
+
withPasswordFlow(options: PasswordAuthMiddlewareOptions): ClientBuilder;
|
|
17
|
+
withAnonymousSessionFlow(options: AnonymousAuthMiddlewareOptions): ClientBuilder;
|
|
18
|
+
withRefreshTokenFlow(options: RefreshAuthMiddlewareOptions): ClientBuilder;
|
|
19
|
+
withExistingTokenFlow(authorization: string, options: ExistingTokenMiddlewareOptions): ClientBuilder;
|
|
20
|
+
withHttpMiddleware(options: HttpMiddlewareOptions): ClientBuilder;
|
|
21
|
+
withUserAgentMiddleware(): ClientBuilder;
|
|
22
|
+
withQueueMiddleware(options: QueueMiddlewareOptions): ClientBuilder;
|
|
23
|
+
withLoggerMiddleware(): this;
|
|
24
|
+
withCorrelationIdMiddleware(options: CorrelationIdMiddlewareOptions): ClientBuilder;
|
|
25
|
+
build(): Client;
|
|
26
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { HttpUserAgentOptions } from '../types/sdk.d';
|
|
2
|
-
export default function createUserAgent(options: HttpUserAgentOptions): string;
|
|
1
|
+
import { HttpUserAgentOptions } from '../types/sdk.d';
|
|
2
|
+
export default function createUserAgent(options: HttpUserAgentOptions): string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
export { default as ClientBuilder } from './client-builder/ClientBuilder';
|
|
2
|
-
export { default as createClient } from './sdk-client/client';
|
|
3
|
-
export { default as getErrorByCode } from './sdk-client/errors';
|
|
4
|
-
export { default as createAuthForAnonymousSessionFlow } from './sdk-middleware-auth/anonymous-session-flow';
|
|
5
|
-
export { default as createAuthForClientCredentialsFlow } from './sdk-middleware-auth/client-credentials-flow';
|
|
6
|
-
export { default as createAuthWithExistingToken } from './sdk-middleware-auth/existing-token';
|
|
7
|
-
export { default as createAuthForPasswordFlow } from './sdk-middleware-auth/password-flow';
|
|
8
|
-
export { default as createAuthForRefreshTokenFlow } from './sdk-middleware-auth/refresh-token-flow';
|
|
9
|
-
export { default as createCorrelationIdMiddleware } from './sdk-middleware-correlation-id/correlation-id';
|
|
10
|
-
export { default as createHttpClient } from './sdk-middleware-http/http';
|
|
11
|
-
export { default as createLoggerMiddleware } from './sdk-middleware-logger/logger';
|
|
12
|
-
export { default as createQueueMiddleware } from './sdk-middleware-queue/queue';
|
|
13
|
-
export { default as createUserAgentMiddleware } from './sdk-middleware-user-agent/user-agent';
|
|
14
|
-
export * from './types/sdk.d';
|
|
1
|
+
export { default as ClientBuilder } from './client-builder/ClientBuilder';
|
|
2
|
+
export { default as createClient } from './sdk-client/client';
|
|
3
|
+
export { default as getErrorByCode } from './sdk-client/errors';
|
|
4
|
+
export { default as createAuthForAnonymousSessionFlow } from './sdk-middleware-auth/anonymous-session-flow';
|
|
5
|
+
export { default as createAuthForClientCredentialsFlow } from './sdk-middleware-auth/client-credentials-flow';
|
|
6
|
+
export { default as createAuthWithExistingToken } from './sdk-middleware-auth/existing-token';
|
|
7
|
+
export { default as createAuthForPasswordFlow } from './sdk-middleware-auth/password-flow';
|
|
8
|
+
export { default as createAuthForRefreshTokenFlow } from './sdk-middleware-auth/refresh-token-flow';
|
|
9
|
+
export { default as createCorrelationIdMiddleware } from './sdk-middleware-correlation-id/correlation-id';
|
|
10
|
+
export { default as createHttpClient } from './sdk-middleware-http/http';
|
|
11
|
+
export { default as createLoggerMiddleware } from './sdk-middleware-logger/logger';
|
|
12
|
+
export { default as createQueueMiddleware } from './sdk-middleware-queue/queue';
|
|
13
|
+
export { default as createUserAgentMiddleware } from './sdk-middleware-user-agent/user-agent';
|
|
14
|
+
export * from './types/sdk.d';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: string[];
|
|
2
|
-
export default _default;
|
|
1
|
+
declare const _default: string[];
|
|
2
|
+
export default _default;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Client, ClientOptions } from '../types/sdk.d';
|
|
2
|
-
export default function createClient(options: ClientOptions): Client;
|
|
1
|
+
import { Client, ClientOptions } from '../types/sdk.d';
|
|
2
|
+
export default function createClient(options: ClientOptions): Client;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
export declare function NetworkError(this: any, ...args: Array<unknown>): void;
|
|
2
|
-
export declare function HttpError(...args: Array<unknown>): void;
|
|
3
|
-
export declare function BadRequest(this: any, ...args: Array<unknown>): void;
|
|
4
|
-
export declare function Unauthorized(this: any, ...args: Array<unknown>): void;
|
|
5
|
-
export declare function Forbidden(this: any, ...args: Array<unknown>): void;
|
|
6
|
-
export declare function NotFound(this: any, ...args: Array<unknown>): void;
|
|
7
|
-
export declare function ConcurrentModification(this: any, ...args: Array<unknown>): void;
|
|
8
|
-
export declare function InternalServerError(this: any, ...args: Array<unknown>): void;
|
|
9
|
-
export declare function ServiceUnavailable(this: any, ...args: Array<unknown>): void;
|
|
10
|
-
export default function getErrorByCode(code: number): typeof NetworkError;
|
|
1
|
+
export declare function NetworkError(this: any, ...args: Array<unknown>): void;
|
|
2
|
+
export declare function HttpError(...args: Array<unknown>): void;
|
|
3
|
+
export declare function BadRequest(this: any, ...args: Array<unknown>): void;
|
|
4
|
+
export declare function Unauthorized(this: any, ...args: Array<unknown>): void;
|
|
5
|
+
export declare function Forbidden(this: any, ...args: Array<unknown>): void;
|
|
6
|
+
export declare function NotFound(this: any, ...args: Array<unknown>): void;
|
|
7
|
+
export declare function ConcurrentModification(this: any, ...args: Array<unknown>): void;
|
|
8
|
+
export declare function InternalServerError(this: any, ...args: Array<unknown>): void;
|
|
9
|
+
export declare function ServiceUnavailable(this: any, ...args: Array<unknown>): void;
|
|
10
|
+
export default function getErrorByCode(code: number): typeof NetworkError;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ClientRequest } from '../types/sdk.d';
|
|
2
|
-
/**
|
|
3
|
-
* @throws {Error}
|
|
4
|
-
*/
|
|
5
|
-
export default function validate(funcName: string, request: ClientRequest, options?: {
|
|
6
|
-
allowedMethods: Array<string>;
|
|
7
|
-
}): void;
|
|
1
|
+
import { ClientRequest } from '../types/sdk.d';
|
|
2
|
+
/**
|
|
3
|
+
* @throws {Error}
|
|
4
|
+
*/
|
|
5
|
+
export default function validate(funcName: string, request: ClientRequest, options?: {
|
|
6
|
+
allowedMethods: Array<string>;
|
|
7
|
+
}): void;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AuthMiddlewareOptions, Middleware } from '../types/sdk.d';
|
|
2
|
-
export default function createAuthMiddlewareForAnonymousSessionFlow(options: AuthMiddlewareOptions): Middleware;
|
|
1
|
+
import { AuthMiddlewareOptions, Middleware } from '../types/sdk.d';
|
|
2
|
+
export default function createAuthMiddlewareForAnonymousSessionFlow(options: AuthMiddlewareOptions): Middleware;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AuthMiddlewareBaseOptions, AuthMiddlewareOptions, Next, PasswordAuthMiddlewareOptions } from '../types/sdk.d';
|
|
2
|
-
export default function authMiddlewareBase({ request, response, url, basicAuth, body, pendingTasks, requestState, tokenCache, tokenCacheKey, fetch: fetcher, }: AuthMiddlewareBaseOptions, next: Next, userOptions?: AuthMiddlewareOptions | PasswordAuthMiddlewareOptions): void;
|
|
1
|
+
import { AuthMiddlewareBaseOptions, AuthMiddlewareOptions, Next, PasswordAuthMiddlewareOptions } from '../types/sdk.d';
|
|
2
|
+
export default function authMiddlewareBase({ request, response, url, basicAuth, body, pendingTasks, requestState, tokenCache, tokenCacheKey, fetch: fetcher, }: AuthMiddlewareBaseOptions, next: Next, userOptions?: AuthMiddlewareOptions | PasswordAuthMiddlewareOptions): void;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { AuthMiddlewareOptions, PasswordAuthMiddlewareOptions, RefreshAuthMiddlewareOptions } from '../types/sdk.d';
|
|
2
|
-
interface IBuiltRequestParams {
|
|
3
|
-
basicAuth: string;
|
|
4
|
-
url: string;
|
|
5
|
-
body: string;
|
|
6
|
-
}
|
|
7
|
-
export declare function buildRequestForClientCredentialsFlow(options: AuthMiddlewareOptions): IBuiltRequestParams;
|
|
8
|
-
export declare function buildRequestForPasswordFlow(options: PasswordAuthMiddlewareOptions): IBuiltRequestParams;
|
|
9
|
-
export declare function buildRequestForRefreshTokenFlow(options: RefreshAuthMiddlewareOptions): IBuiltRequestParams;
|
|
10
|
-
export declare function buildRequestForAnonymousSessionFlow(options: AuthMiddlewareOptions): IBuiltRequestParams;
|
|
11
|
-
export {};
|
|
1
|
+
import { AuthMiddlewareOptions, PasswordAuthMiddlewareOptions, RefreshAuthMiddlewareOptions } from '../types/sdk.d';
|
|
2
|
+
interface IBuiltRequestParams {
|
|
3
|
+
basicAuth: string;
|
|
4
|
+
url: string;
|
|
5
|
+
body: string;
|
|
6
|
+
}
|
|
7
|
+
export declare function buildRequestForClientCredentialsFlow(options: AuthMiddlewareOptions): IBuiltRequestParams;
|
|
8
|
+
export declare function buildRequestForPasswordFlow(options: PasswordAuthMiddlewareOptions): IBuiltRequestParams;
|
|
9
|
+
export declare function buildRequestForRefreshTokenFlow(options: RefreshAuthMiddlewareOptions): IBuiltRequestParams;
|
|
10
|
+
export declare function buildRequestForAnonymousSessionFlow(options: AuthMiddlewareOptions): IBuiltRequestParams;
|
|
11
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AuthMiddlewareOptions, TokenCacheOptions } from '../types/sdk.d';
|
|
2
|
-
export default function buildTokenCacheKey(options: AuthMiddlewareOptions): TokenCacheOptions;
|
|
1
|
+
import { AuthMiddlewareOptions, TokenCacheOptions } from '../types/sdk.d';
|
|
2
|
+
export default function buildTokenCacheKey(options: AuthMiddlewareOptions): TokenCacheOptions;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { AuthMiddlewareOptions, Middleware } from '../types/sdk.d';
|
|
2
|
-
export default function createAuthMiddlewareForClientCredentialsFlow(options: AuthMiddlewareOptions): Middleware;
|
|
1
|
+
import { AuthMiddlewareOptions, Middleware } from '../types/sdk.d';
|
|
2
|
+
export default function createAuthMiddlewareForClientCredentialsFlow(options: AuthMiddlewareOptions): Middleware;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { ExistingTokenMiddlewareOptions, Middleware } from '../types/sdk.d';
|
|
2
|
-
export default function createAuthMiddlewareWithExistingToken(authorization?: string, options?: ExistingTokenMiddlewareOptions): Middleware;
|
|
1
|
+
import { ExistingTokenMiddlewareOptions, Middleware } from '../types/sdk.d';
|
|
2
|
+
export default function createAuthMiddlewareWithExistingToken(authorization?: string, options?: ExistingTokenMiddlewareOptions): Middleware;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { default as createAuthMiddlewareForAnonymousSessionFlow } from './anonymous-session-flow';
|
|
2
|
-
export { default as createAuthMiddlewareForClientCredentialsFlow } from './client-credentials-flow';
|
|
3
|
-
export { default as createAuthMiddlewareWithExistingToken } from './existing-token';
|
|
4
|
-
export { default as createAuthMiddlewareForPasswordFlow } from './password-flow';
|
|
5
|
-
export { default as createAuthMiddlewareForRefreshTokenFlow } from './refresh-token-flow';
|
|
1
|
+
export { default as createAuthMiddlewareForAnonymousSessionFlow } from './anonymous-session-flow';
|
|
2
|
+
export { default as createAuthMiddlewareForClientCredentialsFlow } from './client-credentials-flow';
|
|
3
|
+
export { default as createAuthMiddlewareWithExistingToken } from './existing-token';
|
|
4
|
+
export { default as createAuthMiddlewareForPasswordFlow } from './password-flow';
|
|
5
|
+
export { default as createAuthMiddlewareForRefreshTokenFlow } from './refresh-token-flow';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Middleware, PasswordAuthMiddlewareOptions } from '../types/sdk.d';
|
|
2
|
-
export default function createAuthMiddlewareForPasswordFlow(options: PasswordAuthMiddlewareOptions): Middleware;
|
|
1
|
+
import { Middleware, PasswordAuthMiddlewareOptions } from '../types/sdk.d';
|
|
2
|
+
export default function createAuthMiddlewareForPasswordFlow(options: PasswordAuthMiddlewareOptions): Middleware;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Middleware, RefreshAuthMiddlewareOptions } from '../types/sdk.d';
|
|
2
|
-
export default function createAuthMiddlewareForRefreshTokenFlow(options: RefreshAuthMiddlewareOptions): Middleware;
|
|
1
|
+
import { Middleware, RefreshAuthMiddlewareOptions } from '../types/sdk.d';
|
|
2
|
+
export default function createAuthMiddlewareForRefreshTokenFlow(options: RefreshAuthMiddlewareOptions): Middleware;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default function store(initVal: any): {
|
|
2
|
-
get: () => any;
|
|
3
|
-
set: (val: any) => any;
|
|
4
|
-
};
|
|
1
|
+
export default function store(initVal: any): {
|
|
2
|
+
get: () => any;
|
|
3
|
+
set: (val: any) => any;
|
|
4
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { CorrelationIdMiddlewareOptions, Middleware } from '../types/sdk.d';
|
|
2
|
-
export default function createCorrelationIdMiddleware(options: CorrelationIdMiddlewareOptions): Middleware;
|
|
1
|
+
import type { CorrelationIdMiddlewareOptions, Middleware } from '../types/sdk.d';
|
|
2
|
+
export default function createCorrelationIdMiddleware(options: CorrelationIdMiddlewareOptions): Middleware;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { HttpMiddlewareOptions, Middleware } from '../types/sdk.d';
|
|
2
|
-
export default function createHttpMiddleware({ host, credentialsMode, includeResponseHeaders, includeOriginalRequest, maskSensitiveHeaderData, enableRetry, timeout, retryConfig: { maxRetries, backoff, retryDelay, maxDelay, }, fetch: fetcher, getAbortController, }: HttpMiddlewareOptions): Middleware;
|
|
1
|
+
import { HttpMiddlewareOptions, Middleware } from '../types/sdk.d';
|
|
2
|
+
export default function createHttpMiddleware({ host, credentialsMode, includeResponseHeaders, includeOriginalRequest, maskSensitiveHeaderData, enableRetry, timeout, retryConfig: { maxRetries, backoff, retryDelay, maxDelay, }, fetch: fetcher, getAbortController, }: HttpMiddlewareOptions): Middleware;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { JsonObject } from '../types/sdk.d';
|
|
2
|
-
export default function parseHeaders(headers: JsonObject<any>): JsonObject<string>;
|
|
1
|
+
import { JsonObject } from '../types/sdk.d';
|
|
2
|
+
export default function parseHeaders(headers: JsonObject<any>): JsonObject<string>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Middleware } from '../types/sdk.d';
|
|
2
|
-
export default function createLoggerMiddleware(): Middleware;
|
|
1
|
+
import type { Middleware } from '../types/sdk.d';
|
|
2
|
+
export default function createLoggerMiddleware(): Middleware;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Middleware, QueueMiddlewareOptions } from '../types/sdk';
|
|
2
|
-
export default function createQueueMiddleware({ concurrency, }: QueueMiddlewareOptions): Middleware;
|
|
1
|
+
import type { Middleware, QueueMiddlewareOptions } from '../types/sdk';
|
|
2
|
+
export default function createQueueMiddleware({ concurrency, }: QueueMiddlewareOptions): Middleware;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { Middleware } from '../types/sdk';
|
|
2
|
-
export default function createUserAgentMiddleware(): Middleware;
|
|
1
|
+
import { Middleware } from '../types/sdk';
|
|
2
|
+
export default function createUserAgentMiddleware(): Middleware;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commercetools/sdk-client-v2",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "commercetools TypeScript SDK client.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"commercetools",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"abort-controller": "3.0.0",
|
|
45
|
-
"common-tags": "
|
|
46
|
-
"dotenv": "
|
|
47
|
-
"jest": "27.
|
|
45
|
+
"common-tags": "1.8.2",
|
|
46
|
+
"dotenv": "10.0.0",
|
|
47
|
+
"jest": "27.3.1",
|
|
48
48
|
"nock": "12.0.3",
|
|
49
49
|
"organize-imports-cli": "0.8.0"
|
|
50
50
|
},
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
export const name: string;
|
|
2
|
-
export const version: string;
|
|
3
|
-
export const description: string;
|
|
4
|
-
export const keywords: string[];
|
|
5
|
-
export const homepage: string;
|
|
6
|
-
export const license: string;
|
|
7
|
-
export namespace directories {
|
|
8
|
-
const lib: string;
|
|
9
|
-
const test: string;
|
|
10
|
-
}
|
|
11
|
-
export namespace publishConfig {
|
|
12
|
-
const access: string;
|
|
13
|
-
}
|
|
14
|
-
export namespace repository {
|
|
15
|
-
const type: string;
|
|
16
|
-
const url: string;
|
|
17
|
-
}
|
|
18
|
-
export namespace bugs {
|
|
19
|
-
const url_1: string;
|
|
20
|
-
export { url_1 as url };
|
|
21
|
-
}
|
|
22
|
-
export const dependencies: {
|
|
23
|
-
"node-fetch": string;
|
|
24
|
-
querystring: string;
|
|
25
|
-
};
|
|
26
|
-
export const files: string[];
|
|
27
|
-
export const author: string;
|
|
28
|
-
export const main: string;
|
|
29
|
-
export const module: string;
|
|
30
|
-
export const browser: {
|
|
31
|
-
"./dist/commercetools-sdk-client-v2.cjs.js": string;
|
|
32
|
-
"./dist/commercetools-sdk-client-v2.esm.js": string;
|
|
33
|
-
};
|
|
34
|
-
export const devDependencies: {
|
|
35
|
-
"abort-controller": string;
|
|
36
|
-
"common-tags": string;
|
|
37
|
-
dotenv: string;
|
|
38
|
-
jest: string;
|
|
39
|
-
nock: string;
|
|
40
|
-
"organize-imports-cli": string;
|
|
41
|
-
};
|
|
42
|
-
export namespace scripts {
|
|
43
|
-
const organize_imports: string;
|
|
44
|
-
const postbuild: string;
|
|
45
|
-
const post_process_generate: string;
|
|
46
|
-
}
|