@paid-ai/paid-node 1.0.0 → 1.0.1-alpha1
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/dist/cjs/BaseClient.d.ts +4 -17
- package/dist/cjs/BaseClient.js +0 -59
- package/dist/cjs/Client.d.ts +28 -28
- package/dist/cjs/Client.js +52 -11
- package/dist/cjs/api/errors/BadRequestError.js +1 -5
- package/dist/cjs/api/errors/ForbiddenError.js +1 -5
- package/dist/cjs/api/errors/InternalServerError.js +1 -5
- package/dist/cjs/api/errors/NotFoundError.js +1 -5
- package/dist/cjs/api/resources/agents/client/Client.d.ts +23 -22
- package/dist/cjs/api/resources/agents/client/Client.js +158 -55
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +19 -18
- package/dist/cjs/api/resources/contacts/client/Client.js +122 -43
- package/dist/cjs/api/resources/customers/client/Client.d.ts +37 -36
- package/dist/cjs/api/resources/customers/client/Client.js +315 -113
- package/dist/cjs/api/resources/orders/client/Client.d.ts +28 -27
- package/dist/cjs/api/resources/orders/client/Client.js +177 -62
- package/dist/cjs/api/resources/orders/resources/lines/client/Client.d.ts +9 -8
- package/dist/cjs/api/resources/orders/resources/lines/client/Client.js +32 -13
- package/dist/cjs/api/resources/plans/client/Client.d.ts +25 -12
- package/dist/cjs/api/resources/plans/client/Client.js +143 -33
- package/dist/cjs/api/resources/products/client/Client.d.ts +23 -22
- package/dist/cjs/api/resources/products/client/Client.js +158 -55
- package/dist/cjs/api/resources/products/client/requests/index.d.ts +1 -1
- package/dist/cjs/api/resources/products/client/requests/index.js +0 -3
- package/dist/cjs/api/resources/traces/client/Client.d.ts +9 -8
- package/dist/cjs/api/resources/traces/client/Client.js +57 -23
- package/dist/cjs/api/resources/usage/client/Client.d.ts +16 -15
- package/dist/cjs/api/resources/usage/client/Client.js +71 -28
- package/dist/cjs/api/resources/usage/client/requests/UsageRecordBulkV2Request.d.ts +3 -3
- package/dist/cjs/api/types/PlanWithFeatures.d.ts +34 -0
- package/dist/cjs/api/types/PlanWithFeatures.js +3 -0
- package/dist/cjs/api/types/SignalV2.d.ts +5 -5
- package/dist/cjs/api/types/index.d.ts +1 -0
- package/dist/cjs/api/types/index.js +1 -0
- package/dist/cjs/core/auth/AuthProvider.d.ts +1 -4
- package/dist/cjs/core/auth/BearerToken.d.ts +1 -3
- package/dist/cjs/core/auth/BearerToken.js +6 -7
- package/dist/cjs/core/auth/index.d.ts +0 -1
- package/dist/cjs/core/auth/index.js +1 -3
- package/dist/cjs/core/fetcher/BinaryResponse.d.ts +7 -6
- package/dist/cjs/core/fetcher/EndpointSupplier.d.ts +2 -2
- package/dist/cjs/core/fetcher/Fetcher.d.ts +4 -10
- package/dist/cjs/core/fetcher/Fetcher.js +10 -204
- package/dist/cjs/core/fetcher/ResponseWithBody.d.ts +4 -0
- package/dist/cjs/core/fetcher/ResponseWithBody.js +6 -0
- package/dist/cjs/core/fetcher/getRequestBody.d.ts +1 -1
- package/dist/cjs/core/fetcher/getRequestBody.js +0 -4
- package/dist/cjs/core/fetcher/getResponseBody.js +4 -18
- package/dist/cjs/core/fetcher/makeRequest.d.ts +1 -1
- package/dist/cjs/core/fetcher/makeRequest.js +2 -0
- package/dist/cjs/core/fetcher/requestWithRetries.js +9 -0
- package/dist/cjs/core/fetcher/signals.d.ts +7 -1
- package/dist/cjs/core/fetcher/signals.js +12 -0
- package/dist/cjs/core/headers.d.ts +2 -2
- package/dist/cjs/core/headers.js +4 -6
- package/dist/cjs/core/index.d.ts +0 -1
- package/dist/cjs/core/index.js +1 -2
- package/dist/cjs/core/runtime/runtime.js +10 -11
- package/dist/cjs/core/url/join.js +1 -0
- package/dist/cjs/errors/PaidError.js +1 -5
- package/dist/cjs/errors/PaidTimeoutError.js +1 -5
- package/dist/cjs/index.d.ts +0 -1
- package/dist/cjs/index.js +0 -4
- package/dist/cjs/integrations/adapters/expressjs/index.d.ts +2 -2
- package/dist/cjs/integrations/adapters/expressjs/index.js +2 -1
- package/dist/cjs/integrations/adapters/expressjs/routes.d.ts +16 -0
- package/dist/cjs/integrations/adapters/expressjs/routes.js +28 -0
- package/dist/cjs/integrations/adapters/nextjs/index.d.ts +1 -1
- package/dist/cjs/integrations/adapters/nextjs/index.js +2 -1
- package/dist/cjs/integrations/adapters/nextjs/routes.d.ts +15 -0
- package/dist/cjs/integrations/adapters/nextjs/routes.js +21 -0
- package/dist/cjs/integrations/controllers/index.d.ts +1 -0
- package/dist/cjs/integrations/controllers/index.js +3 -1
- package/dist/cjs/integrations/controllers/orders.js +52 -17
- package/dist/cjs/integrations/controllers/plans.d.ts +50 -0
- package/dist/cjs/integrations/controllers/plans.js +88 -0
- package/dist/cjs/integrations/types.d.ts +5 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.d.mts +4 -17
- package/dist/esm/BaseClient.mjs +1 -24
- package/dist/esm/Client.d.mts +28 -28
- package/dist/esm/Client.mjs +27 -19
- package/dist/esm/api/errors/BadRequestError.mjs +1 -5
- package/dist/esm/api/errors/ForbiddenError.mjs +1 -5
- package/dist/esm/api/errors/InternalServerError.mjs +1 -5
- package/dist/esm/api/errors/NotFoundError.mjs +1 -5
- package/dist/esm/api/resources/agents/client/Client.d.mts +23 -22
- package/dist/esm/api/resources/agents/client/Client.mjs +157 -54
- package/dist/esm/api/resources/contacts/client/Client.d.mts +19 -18
- package/dist/esm/api/resources/contacts/client/Client.mjs +121 -42
- package/dist/esm/api/resources/customers/client/Client.d.mts +37 -36
- package/dist/esm/api/resources/customers/client/Client.mjs +314 -112
- package/dist/esm/api/resources/orders/client/Client.d.mts +28 -27
- package/dist/esm/api/resources/orders/client/Client.mjs +177 -62
- package/dist/esm/api/resources/orders/resources/lines/client/Client.d.mts +9 -8
- package/dist/esm/api/resources/orders/resources/lines/client/Client.mjs +31 -12
- package/dist/esm/api/resources/plans/client/Client.d.mts +25 -12
- package/dist/esm/api/resources/plans/client/Client.mjs +142 -32
- package/dist/esm/api/resources/products/client/Client.d.mts +23 -22
- package/dist/esm/api/resources/products/client/Client.mjs +157 -54
- package/dist/esm/api/resources/products/client/requests/index.d.mts +1 -1
- package/dist/esm/api/resources/products/client/requests/index.mjs +1 -1
- package/dist/esm/api/resources/traces/client/Client.d.mts +9 -8
- package/dist/esm/api/resources/traces/client/Client.mjs +56 -22
- package/dist/esm/api/resources/usage/client/Client.d.mts +16 -15
- package/dist/esm/api/resources/usage/client/Client.mjs +70 -27
- package/dist/esm/api/resources/usage/client/requests/UsageRecordBulkV2Request.d.mts +3 -3
- package/dist/esm/api/types/PlanWithFeatures.d.mts +34 -0
- package/dist/esm/api/types/PlanWithFeatures.mjs +2 -0
- package/dist/esm/api/types/SignalV2.d.mts +5 -5
- package/dist/esm/api/types/index.d.mts +1 -0
- package/dist/esm/api/types/index.mjs +1 -0
- package/dist/esm/core/auth/AuthProvider.d.mts +1 -4
- package/dist/esm/core/auth/BearerToken.d.mts +1 -3
- package/dist/esm/core/auth/BearerToken.mjs +6 -7
- package/dist/esm/core/auth/index.d.mts +0 -1
- package/dist/esm/core/auth/index.mjs +0 -1
- package/dist/esm/core/fetcher/BinaryResponse.d.mts +7 -6
- package/dist/esm/core/fetcher/EndpointSupplier.d.mts +2 -2
- package/dist/esm/core/fetcher/Fetcher.d.mts +4 -10
- package/dist/esm/core/fetcher/Fetcher.mjs +10 -204
- package/dist/esm/core/fetcher/ResponseWithBody.d.mts +4 -0
- package/dist/esm/core/fetcher/ResponseWithBody.mjs +3 -0
- package/dist/esm/core/fetcher/getRequestBody.d.mts +1 -1
- package/dist/esm/core/fetcher/getRequestBody.mjs +0 -4
- package/dist/esm/core/fetcher/getResponseBody.mjs +4 -18
- package/dist/esm/core/fetcher/makeRequest.d.mts +1 -1
- package/dist/esm/core/fetcher/makeRequest.mjs +2 -0
- package/dist/esm/core/fetcher/requestWithRetries.mjs +9 -0
- package/dist/esm/core/fetcher/signals.d.mts +7 -1
- package/dist/esm/core/fetcher/signals.mjs +12 -0
- package/dist/esm/core/headers.d.mts +2 -2
- package/dist/esm/core/headers.mjs +4 -6
- package/dist/esm/core/index.d.mts +0 -1
- package/dist/esm/core/index.mjs +0 -1
- package/dist/esm/core/runtime/runtime.mjs +10 -11
- package/dist/esm/core/url/join.mjs +1 -0
- package/dist/esm/errors/PaidError.mjs +1 -5
- package/dist/esm/errors/PaidTimeoutError.mjs +1 -5
- package/dist/esm/index.d.mts +0 -1
- package/dist/esm/index.mjs +0 -1
- package/dist/esm/integrations/adapters/expressjs/index.d.mts +2 -2
- package/dist/esm/integrations/adapters/expressjs/index.mjs +2 -2
- package/dist/esm/integrations/adapters/expressjs/routes.d.mts +16 -0
- package/dist/esm/integrations/adapters/expressjs/routes.mjs +27 -0
- package/dist/esm/integrations/adapters/nextjs/index.d.mts +1 -1
- package/dist/esm/integrations/adapters/nextjs/index.mjs +1 -1
- package/dist/esm/integrations/adapters/nextjs/routes.d.mts +15 -0
- package/dist/esm/integrations/adapters/nextjs/routes.mjs +20 -0
- package/dist/esm/integrations/controllers/index.d.mts +1 -0
- package/dist/esm/integrations/controllers/index.mjs +1 -0
- package/dist/esm/integrations/controllers/orders.mjs +52 -17
- package/dist/esm/integrations/controllers/plans.d.mts +50 -0
- package/dist/esm/integrations/controllers/plans.mjs +84 -0
- package/dist/esm/integrations/types.d.mts +5 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +38 -7
- package/reference.md +106 -57
- package/dist/cjs/auth/BearerAuthProvider.d.ts +0 -20
- package/dist/cjs/auth/BearerAuthProvider.js +0 -79
- package/dist/cjs/auth/index.d.ts +0 -1
- package/dist/cjs/auth/index.js +0 -5
- package/dist/cjs/core/auth/NoOpAuthProvider.d.ts +0 -5
- package/dist/cjs/core/auth/NoOpAuthProvider.js +0 -9
- package/dist/cjs/core/exports.d.ts +0 -1
- package/dist/cjs/core/exports.js +0 -17
- package/dist/cjs/core/logging/exports.d.ts +0 -18
- package/dist/cjs/core/logging/exports.js +0 -45
- package/dist/cjs/core/logging/index.d.ts +0 -1
- package/dist/cjs/core/logging/index.js +0 -17
- package/dist/cjs/core/logging/logger.d.ts +0 -126
- package/dist/cjs/core/logging/logger.js +0 -144
- package/dist/cjs/errors/handleNonStatusCodeError.d.ts +0 -2
- package/dist/cjs/errors/handleNonStatusCodeError.js +0 -65
- package/dist/cjs/exports.d.ts +0 -1
- package/dist/cjs/exports.js +0 -17
- package/dist/esm/auth/BearerAuthProvider.d.mts +0 -20
- package/dist/esm/auth/BearerAuthProvider.mjs +0 -42
- package/dist/esm/auth/index.d.mts +0 -1
- package/dist/esm/auth/index.mjs +0 -1
- package/dist/esm/core/auth/NoOpAuthProvider.d.mts +0 -5
- package/dist/esm/core/auth/NoOpAuthProvider.mjs +0 -5
- package/dist/esm/core/exports.d.mts +0 -1
- package/dist/esm/core/exports.mjs +0 -1
- package/dist/esm/core/logging/exports.d.mts +0 -18
- package/dist/esm/core/logging/exports.mjs +0 -9
- package/dist/esm/core/logging/index.d.mts +0 -1
- package/dist/esm/core/logging/index.mjs +0 -1
- package/dist/esm/core/logging/logger.d.mts +0 -126
- package/dist/esm/core/logging/logger.mjs +0 -138
- package/dist/esm/errors/handleNonStatusCodeError.d.mts +0 -2
- package/dist/esm/errors/handleNonStatusCodeError.mjs +0 -29
- package/dist/esm/exports.d.mts +0 -1
- package/dist/esm/exports.mjs +0 -1
package/dist/esm/Client.mjs
CHANGED
|
@@ -1,47 +1,55 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
2
|
+
import { Agents } from "./api/resources/agents/client/Client.mjs";
|
|
3
|
+
import { Contacts } from "./api/resources/contacts/client/Client.mjs";
|
|
4
|
+
import { Customers } from "./api/resources/customers/client/Client.mjs";
|
|
5
|
+
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
6
|
+
import { Plans } from "./api/resources/plans/client/Client.mjs";
|
|
7
|
+
import { Products } from "./api/resources/products/client/Client.mjs";
|
|
8
|
+
import { Traces } from "./api/resources/traces/client/Client.mjs";
|
|
9
|
+
import { Usage } from "./api/resources/usage/client/Client.mjs";
|
|
10
|
+
import { mergeHeaders } from "./core/headers.mjs";
|
|
11
|
+
import * as core from "./core/index.mjs";
|
|
11
12
|
export class PaidClient {
|
|
12
|
-
constructor(
|
|
13
|
-
this._options =
|
|
13
|
+
constructor(_options = {}) {
|
|
14
|
+
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
15
|
+
"X-Fern-Language": "JavaScript",
|
|
16
|
+
"X-Fern-SDK-Name": "@paid-ai/paid-node",
|
|
17
|
+
"X-Fern-SDK-Version": "1.0.1-alpha1",
|
|
18
|
+
"User-Agent": "@paid-ai/paid-node/1.0.1-alpha1",
|
|
19
|
+
"X-Fern-Runtime": core.RUNTIME.type,
|
|
20
|
+
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
21
|
+
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
14
22
|
}
|
|
15
23
|
get customers() {
|
|
16
24
|
var _a;
|
|
17
|
-
return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new
|
|
25
|
+
return ((_a = this._customers) !== null && _a !== void 0 ? _a : (this._customers = new Customers(this._options)));
|
|
18
26
|
}
|
|
19
27
|
get agents() {
|
|
20
28
|
var _a;
|
|
21
|
-
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new
|
|
29
|
+
return ((_a = this._agents) !== null && _a !== void 0 ? _a : (this._agents = new Agents(this._options)));
|
|
22
30
|
}
|
|
23
31
|
get products() {
|
|
24
32
|
var _a;
|
|
25
|
-
return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new
|
|
33
|
+
return ((_a = this._products) !== null && _a !== void 0 ? _a : (this._products = new Products(this._options)));
|
|
26
34
|
}
|
|
27
35
|
get contacts() {
|
|
28
36
|
var _a;
|
|
29
|
-
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new
|
|
37
|
+
return ((_a = this._contacts) !== null && _a !== void 0 ? _a : (this._contacts = new Contacts(this._options)));
|
|
30
38
|
}
|
|
31
39
|
get orders() {
|
|
32
40
|
var _a;
|
|
33
|
-
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new
|
|
41
|
+
return ((_a = this._orders) !== null && _a !== void 0 ? _a : (this._orders = new Orders(this._options)));
|
|
34
42
|
}
|
|
35
43
|
get plans() {
|
|
36
44
|
var _a;
|
|
37
|
-
return ((_a = this._plans) !== null && _a !== void 0 ? _a : (this._plans = new
|
|
45
|
+
return ((_a = this._plans) !== null && _a !== void 0 ? _a : (this._plans = new Plans(this._options)));
|
|
38
46
|
}
|
|
39
47
|
get usage() {
|
|
40
48
|
var _a;
|
|
41
|
-
return ((_a = this._usage) !== null && _a !== void 0 ? _a : (this._usage = new
|
|
49
|
+
return ((_a = this._usage) !== null && _a !== void 0 ? _a : (this._usage = new Usage(this._options)));
|
|
42
50
|
}
|
|
43
51
|
get traces() {
|
|
44
52
|
var _a;
|
|
45
|
-
return ((_a = this._traces) !== null && _a !== void 0 ? _a : (this._traces = new
|
|
53
|
+
return ((_a = this._traces) !== null && _a !== void 0 ? _a : (this._traces = new Traces(this._options)));
|
|
46
54
|
}
|
|
47
55
|
}
|
|
@@ -8,10 +8,6 @@ export class BadRequestError extends errors.PaidError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
12
|
-
if (Error.captureStackTrace) {
|
|
13
|
-
Error.captureStackTrace(this, this.constructor);
|
|
14
|
-
}
|
|
15
|
-
this.name = this.constructor.name;
|
|
11
|
+
Object.setPrototypeOf(this, BadRequestError.prototype);
|
|
16
12
|
}
|
|
17
13
|
}
|
|
@@ -8,10 +8,6 @@ export class ForbiddenError extends errors.PaidError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
12
|
-
if (Error.captureStackTrace) {
|
|
13
|
-
Error.captureStackTrace(this, this.constructor);
|
|
14
|
-
}
|
|
15
|
-
this.name = this.constructor.name;
|
|
11
|
+
Object.setPrototypeOf(this, ForbiddenError.prototype);
|
|
16
12
|
}
|
|
17
13
|
}
|
|
@@ -8,10 +8,6 @@ export class InternalServerError extends errors.PaidError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
12
|
-
if (Error.captureStackTrace) {
|
|
13
|
-
Error.captureStackTrace(this, this.constructor);
|
|
14
|
-
}
|
|
15
|
-
this.name = this.constructor.name;
|
|
11
|
+
Object.setPrototypeOf(this, InternalServerError.prototype);
|
|
16
12
|
}
|
|
17
13
|
}
|
|
@@ -8,10 +8,6 @@ export class NotFoundError extends errors.PaidError {
|
|
|
8
8
|
body: body,
|
|
9
9
|
rawResponse: rawResponse,
|
|
10
10
|
});
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
12
|
-
if (Error.captureStackTrace) {
|
|
13
|
-
Error.captureStackTrace(this, this.constructor);
|
|
14
|
-
}
|
|
15
|
-
this.name = this.constructor.name;
|
|
11
|
+
Object.setPrototypeOf(this, NotFoundError.prototype);
|
|
16
12
|
}
|
|
17
13
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.mjs";
|
|
2
|
-
import { type NormalizedClientOptions } from "../../../../BaseClient.mjs";
|
|
3
2
|
import * as core from "../../../../core/index.mjs";
|
|
4
3
|
import type * as Paid from "../../../index.mjs";
|
|
5
|
-
export declare namespace
|
|
6
|
-
|
|
4
|
+
export declare namespace Agents {
|
|
5
|
+
interface Options extends BaseClientOptions {
|
|
6
|
+
}
|
|
7
7
|
interface RequestOptions extends BaseRequestOptions {
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare class
|
|
11
|
-
protected readonly _options:
|
|
12
|
-
constructor(
|
|
10
|
+
export declare class Agents {
|
|
11
|
+
protected readonly _options: Agents.Options;
|
|
12
|
+
constructor(_options?: Agents.Options);
|
|
13
13
|
/**
|
|
14
14
|
* DEPRECATED: Use /products instead. Agents are now products with type='agent'.
|
|
15
15
|
*
|
|
16
|
-
* @param {
|
|
16
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
17
17
|
*
|
|
18
18
|
* @example
|
|
19
19
|
* await client.agents.list()
|
|
20
20
|
*/
|
|
21
|
-
list(requestOptions?:
|
|
21
|
+
list(requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Paid.Agent[]>;
|
|
22
22
|
private __list;
|
|
23
23
|
/**
|
|
24
24
|
* DEPRECATED: Use POST /products instead.
|
|
25
25
|
*
|
|
26
26
|
* @param {Paid.AgentCreate} request
|
|
27
|
-
* @param {
|
|
27
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
28
28
|
*
|
|
29
29
|
* @example
|
|
30
30
|
* await client.agents.create({
|
|
@@ -33,25 +33,25 @@ export declare class AgentsClient {
|
|
|
33
33
|
* externalId: "acme-agent"
|
|
34
34
|
* })
|
|
35
35
|
*/
|
|
36
|
-
create(request: Paid.AgentCreate, requestOptions?:
|
|
36
|
+
create(request: Paid.AgentCreate, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Paid.Agent>;
|
|
37
37
|
private __create;
|
|
38
38
|
/**
|
|
39
39
|
* DEPRECATED: Use GET /products/{productId} instead.
|
|
40
40
|
*
|
|
41
41
|
* @param {string} agentId
|
|
42
|
-
* @param {
|
|
42
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
43
43
|
*
|
|
44
44
|
* @example
|
|
45
45
|
* await client.agents.get("agentId")
|
|
46
46
|
*/
|
|
47
|
-
get(agentId: string, requestOptions?:
|
|
47
|
+
get(agentId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Paid.Agent>;
|
|
48
48
|
private __get;
|
|
49
49
|
/**
|
|
50
50
|
* DEPRECATED: Use PUT /products/{productId} instead.
|
|
51
51
|
*
|
|
52
52
|
* @param {string} agentId
|
|
53
53
|
* @param {Paid.AgentUpdate} request
|
|
54
|
-
* @param {
|
|
54
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
55
55
|
*
|
|
56
56
|
* @example
|
|
57
57
|
* await client.agents.update("agentId", {
|
|
@@ -85,36 +85,36 @@ export declare class AgentsClient {
|
|
|
85
85
|
* }]
|
|
86
86
|
* })
|
|
87
87
|
*/
|
|
88
|
-
update(agentId: string, request: Paid.AgentUpdate, requestOptions?:
|
|
88
|
+
update(agentId: string, request: Paid.AgentUpdate, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Paid.Agent>;
|
|
89
89
|
private __update;
|
|
90
90
|
/**
|
|
91
91
|
* DEPRECATED: Use DELETE /products/{productId} instead.
|
|
92
92
|
*
|
|
93
93
|
* @param {string} agentId
|
|
94
|
-
* @param {
|
|
94
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
95
95
|
*
|
|
96
96
|
* @example
|
|
97
97
|
* await client.agents.delete("agentId")
|
|
98
98
|
*/
|
|
99
|
-
delete(agentId: string, requestOptions?:
|
|
99
|
+
delete(agentId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<void>;
|
|
100
100
|
private __delete;
|
|
101
101
|
/**
|
|
102
102
|
* DEPRECATED: Use GET /products/external/{externalId} instead.
|
|
103
103
|
*
|
|
104
104
|
* @param {string} externalId
|
|
105
|
-
* @param {
|
|
105
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
106
106
|
*
|
|
107
107
|
* @example
|
|
108
108
|
* await client.agents.getByExternalId("externalId")
|
|
109
109
|
*/
|
|
110
|
-
getByExternalId(externalId: string, requestOptions?:
|
|
110
|
+
getByExternalId(externalId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Paid.Agent>;
|
|
111
111
|
private __getByExternalId;
|
|
112
112
|
/**
|
|
113
113
|
* DEPRECATED: Use PUT /products/external/{externalId} instead.
|
|
114
114
|
*
|
|
115
115
|
* @param {string} externalId
|
|
116
116
|
* @param {Paid.AgentUpdate} request
|
|
117
|
-
* @param {
|
|
117
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
118
118
|
*
|
|
119
119
|
* @example
|
|
120
120
|
* await client.agents.updateByExternalId("externalId", {
|
|
@@ -137,17 +137,18 @@ export declare class AgentsClient {
|
|
|
137
137
|
* }]
|
|
138
138
|
* })
|
|
139
139
|
*/
|
|
140
|
-
updateByExternalId(externalId: string, request: Paid.AgentUpdate, requestOptions?:
|
|
140
|
+
updateByExternalId(externalId: string, request: Paid.AgentUpdate, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Paid.Agent>;
|
|
141
141
|
private __updateByExternalId;
|
|
142
142
|
/**
|
|
143
143
|
* DEPRECATED: Use DELETE /products/external/{externalId} instead.
|
|
144
144
|
*
|
|
145
145
|
* @param {string} externalId
|
|
146
|
-
* @param {
|
|
146
|
+
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
147
147
|
*
|
|
148
148
|
* @example
|
|
149
149
|
* await client.agents.deleteByExternalId("externalId")
|
|
150
150
|
*/
|
|
151
|
-
deleteByExternalId(externalId: string, requestOptions?:
|
|
151
|
+
deleteByExternalId(externalId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<void>;
|
|
152
152
|
private __deleteByExternalId;
|
|
153
|
+
protected _getAuthorizationHeader(): Promise<string | undefined>;
|
|
153
154
|
}
|