@paid-ai/paid-node 0.0.5 → 0.0.7
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/README.md +8 -8
- package/dist/cjs/Client.d.ts +6 -6
- package/dist/cjs/Client.js +7 -7
- package/dist/cjs/api/resources/agents/client/Client.d.ts +11 -11
- package/dist/cjs/api/resources/agents/client/Client.js +43 -43
- package/dist/cjs/api/resources/contacts/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/contacts/client/Client.js +31 -31
- package/dist/cjs/api/resources/contacts/client/requests/ContactCreate.d.ts +2 -2
- package/dist/cjs/api/resources/customers/client/Client.d.ts +11 -11
- package/dist/cjs/api/resources/customers/client/Client.js +43 -43
- package/dist/cjs/api/resources/customers/client/requests/CustomerCreate.d.ts +4 -4
- package/dist/cjs/api/resources/orders/client/Client.d.ts +7 -7
- package/dist/cjs/api/resources/orders/client/Client.js +26 -26
- package/dist/cjs/api/resources/orders/client/requests/OrderCreate.d.ts +2 -2
- package/dist/cjs/api/resources/orders/resources/lines/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/orders/resources/lines/client/Client.js +6 -6
- package/dist/cjs/api/resources/orders/resources/lines/client/requests/LinesUpdateRequest.d.ts +2 -2
- package/dist/cjs/api/resources/usage/client/Client.d.ts +4 -4
- package/dist/cjs/api/resources/usage/client/Client.js +6 -6
- package/dist/cjs/api/resources/usage/client/requests/UsageRecordBulkRequest.d.ts +2 -2
- package/dist/cjs/api/types/Agent.d.ts +2 -2
- package/dist/cjs/api/types/AgentAttribute.d.ts +2 -2
- package/dist/cjs/api/types/AgentPricePoint.d.ts +2 -2
- package/dist/cjs/api/types/AgentUpdate.d.ts +2 -2
- package/dist/cjs/api/types/Contact.d.ts +2 -2
- package/dist/cjs/api/types/Customer.d.ts +5 -5
- package/dist/cjs/api/types/CustomerUpdate.d.ts +4 -4
- package/dist/cjs/api/types/Error_.d.ts +2 -2
- package/dist/cjs/api/types/Order.d.ts +4 -4
- package/dist/cjs/api/types/OrderLine.d.ts +4 -4
- package/dist/cjs/api/types/OrderLineAttribute.d.ts +2 -2
- package/dist/cjs/api/types/OrderLineAttributePricing.d.ts +5 -5
- package/dist/cjs/api/types/PricePoint.d.ts +2 -2
- package/dist/cjs/api/types/Pricing.d.ts +5 -5
- package/dist/cjs/environments.d.ts +2 -2
- package/dist/cjs/environments.js +2 -2
- package/dist/cjs/errors/{PaidApiError.d.ts → PaidError.d.ts} +1 -1
- package/dist/cjs/errors/{PaidApiError.js → PaidError.js} +4 -4
- package/dist/{esm/errors/PaidApiTimeoutError.d.mts → cjs/errors/PaidTimeoutError.d.ts} +1 -1
- package/dist/cjs/errors/{PaidApiTimeoutError.js → PaidTimeoutError.js} +4 -4
- package/dist/cjs/errors/index.d.ts +2 -2
- package/dist/cjs/errors/index.js +5 -5
- package/dist/cjs/index.d.ts +4 -4
- package/dist/cjs/index.js +6 -6
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/cjs/wrapper/BatchUsage.d.ts +6 -0
- package/dist/cjs/wrapper/BatchUsage.js +24 -0
- package/dist/esm/Client.d.mts +6 -6
- package/dist/esm/Client.mjs +4 -4
- package/dist/esm/api/resources/agents/client/Client.d.mts +11 -11
- package/dist/esm/api/resources/agents/client/Client.mjs +43 -43
- package/dist/esm/api/resources/contacts/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/contacts/client/Client.mjs +31 -31
- package/dist/esm/api/resources/contacts/client/requests/ContactCreate.d.mts +2 -2
- package/dist/esm/api/resources/customers/client/Client.d.mts +11 -11
- package/dist/esm/api/resources/customers/client/Client.mjs +43 -43
- package/dist/esm/api/resources/customers/client/requests/CustomerCreate.d.mts +4 -4
- package/dist/esm/api/resources/orders/client/Client.d.mts +7 -7
- package/dist/esm/api/resources/orders/client/Client.mjs +26 -26
- package/dist/esm/api/resources/orders/client/requests/OrderCreate.d.mts +2 -2
- package/dist/esm/api/resources/orders/resources/lines/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/orders/resources/lines/client/Client.mjs +6 -6
- package/dist/esm/api/resources/orders/resources/lines/client/requests/LinesUpdateRequest.d.mts +2 -2
- package/dist/esm/api/resources/usage/client/Client.d.mts +4 -4
- package/dist/esm/api/resources/usage/client/Client.mjs +6 -6
- package/dist/esm/api/resources/usage/client/requests/UsageRecordBulkRequest.d.mts +2 -2
- package/dist/esm/api/types/Agent.d.mts +2 -2
- package/dist/esm/api/types/AgentAttribute.d.mts +2 -2
- package/dist/esm/api/types/AgentPricePoint.d.mts +2 -2
- package/dist/esm/api/types/AgentUpdate.d.mts +2 -2
- package/dist/esm/api/types/Contact.d.mts +2 -2
- package/dist/esm/api/types/Customer.d.mts +5 -5
- package/dist/esm/api/types/CustomerUpdate.d.mts +4 -4
- package/dist/esm/api/types/Error_.d.mts +2 -2
- package/dist/esm/api/types/Order.d.mts +4 -4
- package/dist/esm/api/types/OrderLine.d.mts +4 -4
- package/dist/esm/api/types/OrderLineAttribute.d.mts +2 -2
- package/dist/esm/api/types/OrderLineAttributePricing.d.mts +5 -5
- package/dist/esm/api/types/PricePoint.d.mts +2 -2
- package/dist/esm/api/types/Pricing.d.mts +5 -5
- package/dist/esm/environments.d.mts +2 -2
- package/dist/esm/environments.mjs +1 -1
- package/dist/esm/errors/{PaidApiError.d.mts → PaidError.d.mts} +1 -1
- package/dist/esm/errors/{PaidApiError.mjs → PaidError.mjs} +2 -2
- package/dist/{cjs/errors/PaidApiTimeoutError.d.ts → esm/errors/PaidTimeoutError.d.mts} +1 -1
- package/dist/esm/errors/{PaidApiTimeoutError.mjs → PaidTimeoutError.mjs} +2 -2
- package/dist/esm/errors/index.d.mts +2 -2
- package/dist/esm/errors/index.mjs +2 -2
- package/dist/esm/index.d.mts +4 -4
- package/dist/esm/index.mjs +4 -4
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/dist/esm/wrapper/BatchUsage.d.mts +6 -0
- package/dist/esm/wrapper/BatchUsage.mjs +20 -0
- package/package.json +1 -1
- package/reference.md +31 -31
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as Paid from "../index.js";
|
|
5
5
|
export interface OrderLineAttribute {
|
|
6
6
|
agentAttributeId?: string;
|
|
7
7
|
quantity?: number;
|
|
8
8
|
currency?: string;
|
|
9
|
-
pricing?:
|
|
9
|
+
pricing?: Paid.OrderLineAttributePricing;
|
|
10
10
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as Paid from "../index.js";
|
|
5
5
|
export interface OrderLineAttributePricing {
|
|
6
6
|
eventName?: string;
|
|
7
|
-
chargeType?:
|
|
8
|
-
pricePoint?:
|
|
9
|
-
pricingModel?:
|
|
10
|
-
billingFrequency?:
|
|
7
|
+
chargeType?: Paid.ChargeType;
|
|
8
|
+
pricePoint?: Paid.PricePoint;
|
|
9
|
+
pricingModel?: Paid.PricingModelType;
|
|
10
|
+
billingFrequency?: Paid.BillingFrequency;
|
|
11
11
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as Paid from "../index.js";
|
|
5
5
|
export interface PricePoint {
|
|
6
6
|
currency?: string;
|
|
7
7
|
unitPrice?: number;
|
|
8
8
|
minQuantity?: number;
|
|
9
|
-
tiers?:
|
|
9
|
+
tiers?: Paid.Tier[];
|
|
10
10
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
import * as
|
|
4
|
+
import * as Paid from "../index.js";
|
|
5
5
|
export interface Pricing {
|
|
6
6
|
eventName?: string;
|
|
7
7
|
taxable: boolean;
|
|
8
|
-
chargeType:
|
|
9
|
-
pricingModel:
|
|
10
|
-
billingFrequency:
|
|
11
|
-
pricePoints: Record<string,
|
|
8
|
+
chargeType: Paid.ChargeType;
|
|
9
|
+
pricingModel: Paid.PricingModelType;
|
|
10
|
+
billingFrequency: Paid.BillingFrequency;
|
|
11
|
+
pricePoints: Record<string, Paid.AgentPricePoint>;
|
|
12
12
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const PaidEnvironment: {
|
|
5
5
|
readonly Production: "https://api.agentpaid.io/api/v1";
|
|
6
6
|
};
|
|
7
|
-
export type
|
|
7
|
+
export type PaidEnvironment = typeof PaidEnvironment.Production;
|
package/dist/cjs/environments.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.PaidEnvironment = void 0;
|
|
7
|
+
exports.PaidEnvironment = {
|
|
8
8
|
Production: "https://api.agentpaid.io/api/v1",
|
|
9
9
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* This file was auto-generated by Fern from our API Definition.
|
|
3
3
|
*/
|
|
4
4
|
import * as core from "../core/index.js";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class PaidError extends Error {
|
|
6
6
|
readonly statusCode?: number;
|
|
7
7
|
readonly body?: unknown;
|
|
8
8
|
readonly rawResponse?: core.RawResponse;
|
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
6
|
+
exports.PaidError = void 0;
|
|
7
7
|
const json_js_1 = require("../core/json.js");
|
|
8
|
-
class
|
|
8
|
+
class PaidError extends Error {
|
|
9
9
|
constructor({ message, statusCode, body, rawResponse, }) {
|
|
10
10
|
super(buildMessage({ message, statusCode, body }));
|
|
11
|
-
Object.setPrototypeOf(this,
|
|
11
|
+
Object.setPrototypeOf(this, PaidError.prototype);
|
|
12
12
|
this.statusCode = statusCode;
|
|
13
13
|
this.body = body;
|
|
14
14
|
this.rawResponse = rawResponse;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
exports.
|
|
17
|
+
exports.PaidError = PaidError;
|
|
18
18
|
function buildMessage({ message, statusCode, body, }) {
|
|
19
19
|
let lines = [];
|
|
20
20
|
if (message != null) {
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
* This file was auto-generated by Fern from our API Definition.
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
class
|
|
6
|
+
exports.PaidTimeoutError = void 0;
|
|
7
|
+
class PaidTimeoutError extends Error {
|
|
8
8
|
constructor(message) {
|
|
9
9
|
super(message);
|
|
10
|
-
Object.setPrototypeOf(this,
|
|
10
|
+
Object.setPrototypeOf(this, PaidTimeoutError.prototype);
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
|
-
exports.
|
|
13
|
+
exports.PaidTimeoutError = PaidTimeoutError;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
export {
|
|
1
|
+
export { PaidError } from "./PaidError.js";
|
|
2
|
+
export { PaidTimeoutError } from "./PaidTimeoutError.js";
|
package/dist/cjs/errors/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
Object.defineProperty(exports, "
|
|
6
|
-
var
|
|
7
|
-
Object.defineProperty(exports, "
|
|
3
|
+
exports.PaidTimeoutError = exports.PaidError = void 0;
|
|
4
|
+
var PaidError_js_1 = require("./PaidError.js");
|
|
5
|
+
Object.defineProperty(exports, "PaidError", { enumerable: true, get: function () { return PaidError_js_1.PaidError; } });
|
|
6
|
+
var PaidTimeoutError_js_1 = require("./PaidTimeoutError.js");
|
|
7
|
+
Object.defineProperty(exports, "PaidTimeoutError", { enumerable: true, get: function () { return PaidTimeoutError_js_1.PaidTimeoutError; } });
|
package/dist/cjs/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export * as
|
|
2
|
-
export {
|
|
3
|
-
export {
|
|
4
|
-
export {
|
|
1
|
+
export * as Paid from "./api/index.js";
|
|
2
|
+
export { PaidClient } from "./Client.js";
|
|
3
|
+
export { PaidEnvironment } from "./environments.js";
|
|
4
|
+
export { PaidError, PaidTimeoutError } from "./errors/index.js";
|
package/dist/cjs/index.js
CHANGED
|
@@ -33,12 +33,12 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.
|
|
37
|
-
exports.
|
|
36
|
+
exports.PaidTimeoutError = exports.PaidError = exports.PaidEnvironment = exports.PaidClient = exports.Paid = void 0;
|
|
37
|
+
exports.Paid = __importStar(require("./api/index.js"));
|
|
38
38
|
var Client_js_1 = require("./Client.js");
|
|
39
|
-
Object.defineProperty(exports, "
|
|
39
|
+
Object.defineProperty(exports, "PaidClient", { enumerable: true, get: function () { return Client_js_1.PaidClient; } });
|
|
40
40
|
var environments_js_1 = require("./environments.js");
|
|
41
|
-
Object.defineProperty(exports, "
|
|
41
|
+
Object.defineProperty(exports, "PaidEnvironment", { enumerable: true, get: function () { return environments_js_1.PaidEnvironment; } });
|
|
42
42
|
var index_js_1 = require("./errors/index.js");
|
|
43
|
-
Object.defineProperty(exports, "
|
|
44
|
-
Object.defineProperty(exports, "
|
|
43
|
+
Object.defineProperty(exports, "PaidError", { enumerable: true, get: function () { return index_js_1.PaidError; } });
|
|
44
|
+
Object.defineProperty(exports, "PaidTimeoutError", { enumerable: true, get: function () { return index_js_1.PaidTimeoutError; } });
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "0.0.
|
|
1
|
+
export declare const SDK_VERSION = "0.0.7";
|
package/dist/cjs/version.js
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Usage = void 0;
|
|
4
|
+
const Client_1 = require("../api/resources/usage/client/Client");
|
|
5
|
+
class Usage extends Client_1.Usage {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.signals = [];
|
|
9
|
+
}
|
|
10
|
+
flush(requestOptions) {
|
|
11
|
+
return this.recordBulk({ signals: this.signals }, requestOptions);
|
|
12
|
+
}
|
|
13
|
+
recordUsage(signal, requestOptions) {
|
|
14
|
+
if (!this.signals) {
|
|
15
|
+
this.signals = [];
|
|
16
|
+
}
|
|
17
|
+
this.signals.push(signal);
|
|
18
|
+
if (this.signals.length >= 100) {
|
|
19
|
+
this.recordBulk({ signals: this.signals }, requestOptions);
|
|
20
|
+
this.signals = [];
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.Usage = Usage;
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -7,10 +7,10 @@ import { Customers } from "./api/resources/customers/client/Client.mjs";
|
|
|
7
7
|
import { Agents } from "./api/resources/agents/client/Client.mjs";
|
|
8
8
|
import { Contacts } from "./api/resources/contacts/client/Client.mjs";
|
|
9
9
|
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
10
|
-
import { Usage } from "./
|
|
11
|
-
export declare namespace
|
|
10
|
+
import { Usage } from "./wrapper/BatchUsage.mjs";
|
|
11
|
+
export declare namespace PaidClient {
|
|
12
12
|
interface Options {
|
|
13
|
-
environment?: core.Supplier<environments.
|
|
13
|
+
environment?: core.Supplier<environments.PaidEnvironment | string>;
|
|
14
14
|
/** Specify a custom URL to connect the client to. */
|
|
15
15
|
baseUrl?: core.Supplier<string>;
|
|
16
16
|
token: core.Supplier<core.BearerToken>;
|
|
@@ -28,14 +28,14 @@ export declare namespace PaidApiClient {
|
|
|
28
28
|
headers?: Record<string, string | core.Supplier<string | undefined> | undefined>;
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
export declare class
|
|
32
|
-
protected readonly _options:
|
|
31
|
+
export declare class PaidClient {
|
|
32
|
+
protected readonly _options: PaidClient.Options;
|
|
33
33
|
protected _customers: Customers | undefined;
|
|
34
34
|
protected _agents: Agents | undefined;
|
|
35
35
|
protected _contacts: Contacts | undefined;
|
|
36
36
|
protected _orders: Orders | undefined;
|
|
37
37
|
protected _usage: Usage | undefined;
|
|
38
|
-
constructor(_options:
|
|
38
|
+
constructor(_options: PaidClient.Options);
|
|
39
39
|
get customers(): Customers;
|
|
40
40
|
get agents(): Agents;
|
|
41
41
|
get contacts(): Contacts;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -7,14 +7,14 @@ import { Customers } from "./api/resources/customers/client/Client.mjs";
|
|
|
7
7
|
import { Agents } from "./api/resources/agents/client/Client.mjs";
|
|
8
8
|
import { Contacts } from "./api/resources/contacts/client/Client.mjs";
|
|
9
9
|
import { Orders } from "./api/resources/orders/client/Client.mjs";
|
|
10
|
-
import { Usage } from "./
|
|
11
|
-
export class
|
|
10
|
+
import { Usage } from "./wrapper/BatchUsage.mjs";
|
|
11
|
+
export class PaidClient {
|
|
12
12
|
constructor(_options) {
|
|
13
13
|
this._options = Object.assign(Object.assign({}, _options), { headers: mergeHeaders({
|
|
14
14
|
"X-Fern-Language": "JavaScript",
|
|
15
15
|
"X-Fern-SDK-Name": "@paid-ai/paid-node",
|
|
16
|
-
"X-Fern-SDK-Version": "0.0.
|
|
17
|
-
"User-Agent": "@paid-ai/paid-node/0.0.
|
|
16
|
+
"X-Fern-SDK-Version": "0.0.6",
|
|
17
|
+
"User-Agent": "@paid-ai/paid-node/0.0.6",
|
|
18
18
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
19
19
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
20
20
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
|
@@ -3,10 +3,10 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import * as environments from "../../../../environments.mjs";
|
|
5
5
|
import * as core from "../../../../core/index.mjs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as Paid from "../../../index.mjs";
|
|
7
7
|
export declare namespace Agents {
|
|
8
8
|
interface Options {
|
|
9
|
-
environment?: core.Supplier<environments.
|
|
9
|
+
environment?: core.Supplier<environments.PaidEnvironment | string>;
|
|
10
10
|
/** Specify a custom URL to connect the client to. */
|
|
11
11
|
baseUrl?: core.Supplier<string>;
|
|
12
12
|
token: core.Supplier<core.BearerToken>;
|
|
@@ -33,10 +33,10 @@ export declare class Agents {
|
|
|
33
33
|
* @example
|
|
34
34
|
* await client.agents.list()
|
|
35
35
|
*/
|
|
36
|
-
list(requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<
|
|
36
|
+
list(requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Paid.Agent[]>;
|
|
37
37
|
private __list;
|
|
38
38
|
/**
|
|
39
|
-
* @param {
|
|
39
|
+
* @param {Paid.AgentCreate} request
|
|
40
40
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
41
41
|
*
|
|
42
42
|
* @example
|
|
@@ -45,7 +45,7 @@ export declare class Agents {
|
|
|
45
45
|
* description: "description"
|
|
46
46
|
* })
|
|
47
47
|
*/
|
|
48
|
-
create(request:
|
|
48
|
+
create(request: Paid.AgentCreate, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Paid.Agent>;
|
|
49
49
|
private __create;
|
|
50
50
|
/**
|
|
51
51
|
* @param {string} agentId
|
|
@@ -54,17 +54,17 @@ export declare class Agents {
|
|
|
54
54
|
* @example
|
|
55
55
|
* await client.agents.get("agentId")
|
|
56
56
|
*/
|
|
57
|
-
get(agentId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<
|
|
57
|
+
get(agentId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Paid.Agent>;
|
|
58
58
|
private __get;
|
|
59
59
|
/**
|
|
60
60
|
* @param {string} agentId
|
|
61
|
-
* @param {
|
|
61
|
+
* @param {Paid.AgentUpdate} request
|
|
62
62
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
63
63
|
*
|
|
64
64
|
* @example
|
|
65
65
|
* await client.agents.update("agentId", {})
|
|
66
66
|
*/
|
|
67
|
-
update(agentId: string, request:
|
|
67
|
+
update(agentId: string, request: Paid.AgentUpdate, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Paid.Agent>;
|
|
68
68
|
private __update;
|
|
69
69
|
/**
|
|
70
70
|
* @param {string} agentId
|
|
@@ -82,17 +82,17 @@ export declare class Agents {
|
|
|
82
82
|
* @example
|
|
83
83
|
* await client.agents.getByExternalId("externalId")
|
|
84
84
|
*/
|
|
85
|
-
getByExternalId(externalId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<
|
|
85
|
+
getByExternalId(externalId: string, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Paid.Agent>;
|
|
86
86
|
private __getByExternalId;
|
|
87
87
|
/**
|
|
88
88
|
* @param {string} externalId
|
|
89
|
-
* @param {
|
|
89
|
+
* @param {Paid.AgentUpdate} request
|
|
90
90
|
* @param {Agents.RequestOptions} requestOptions - Request-specific configuration.
|
|
91
91
|
*
|
|
92
92
|
* @example
|
|
93
93
|
* await client.agents.updateByExternalId("externalId", {})
|
|
94
94
|
*/
|
|
95
|
-
updateByExternalId(externalId: string, request:
|
|
95
|
+
updateByExternalId(externalId: string, request: Paid.AgentUpdate, requestOptions?: Agents.RequestOptions): core.HttpResponsePromise<Paid.Agent>;
|
|
96
96
|
private __updateByExternalId;
|
|
97
97
|
/**
|
|
98
98
|
* @param {string} externalId
|