dub 0.71.0 → 0.71.2
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 +7 -2
- package/dist/commonjs/funcs/bountiesListSubmissions.d.ts +1 -1
- package/dist/commonjs/funcs/bountiesListSubmissions.js +1 -1
- package/dist/commonjs/funcs/commissionsList.d.ts +2 -2
- package/dist/commonjs/funcs/commissionsList.js +2 -2
- package/dist/commonjs/funcs/payoutsList.d.ts +18 -0
- package/dist/commonjs/funcs/payoutsList.d.ts.map +1 -0
- package/dist/commonjs/funcs/payoutsList.js +141 -0
- package/dist/commonjs/funcs/payoutsList.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listbountysubmissions.d.ts +1 -1
- package/dist/commonjs/models/operations/listpayouts.d.ts +183 -0
- package/dist/commonjs/models/operations/listpayouts.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listpayouts.js +156 -0
- package/dist/commonjs/models/operations/listpayouts.js.map +1 -0
- package/dist/commonjs/sdk/bounties.d.ts +1 -1
- package/dist/commonjs/sdk/bounties.js +1 -1
- package/dist/commonjs/sdk/commissions.d.ts +2 -2
- package/dist/commonjs/sdk/commissions.js +2 -2
- package/dist/commonjs/sdk/payouts.d.ts +12 -0
- package/dist/commonjs/sdk/payouts.d.ts.map +1 -0
- package/dist/commonjs/sdk/payouts.js +22 -0
- package/dist/commonjs/sdk/payouts.js.map +1 -0
- package/dist/commonjs/sdk/sdk.d.ts +3 -0
- package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
- package/dist/commonjs/sdk/sdk.js +4 -0
- package/dist/commonjs/sdk/sdk.js.map +1 -1
- package/dist/esm/funcs/bountiesListSubmissions.d.ts +1 -1
- package/dist/esm/funcs/bountiesListSubmissions.js +1 -1
- package/dist/esm/funcs/commissionsList.d.ts +2 -2
- package/dist/esm/funcs/commissionsList.js +2 -2
- package/dist/esm/funcs/payoutsList.d.ts +18 -0
- package/dist/esm/funcs/payoutsList.d.ts.map +1 -0
- package/dist/esm/funcs/payoutsList.js +105 -0
- package/dist/esm/funcs/payoutsList.js.map +1 -0
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listbountysubmissions.d.ts +1 -1
- package/dist/esm/models/operations/listpayouts.d.ts +183 -0
- package/dist/esm/models/operations/listpayouts.d.ts.map +1 -0
- package/dist/esm/models/operations/listpayouts.js +116 -0
- package/dist/esm/models/operations/listpayouts.js.map +1 -0
- package/dist/esm/sdk/bounties.d.ts +1 -1
- package/dist/esm/sdk/bounties.js +1 -1
- package/dist/esm/sdk/commissions.d.ts +2 -2
- package/dist/esm/sdk/commissions.js +2 -2
- package/dist/esm/sdk/payouts.d.ts +12 -0
- package/dist/esm/sdk/payouts.d.ts.map +1 -0
- package/dist/esm/sdk/payouts.js +18 -0
- package/dist/esm/sdk/payouts.js.map +1 -0
- package/dist/esm/sdk/sdk.d.ts +3 -0
- package/dist/esm/sdk/sdk.d.ts.map +1 -1
- package/dist/esm/sdk/sdk.js +4 -0
- package/dist/esm/sdk/sdk.js.map +1 -1
- package/examples/package-lock.json +3 -3
- package/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/bountiesListSubmissions.ts +1 -1
- package/src/funcs/commissionsList.ts +2 -2
- package/src/funcs/payoutsList.ts +226 -0
- package/src/lib/config.ts +3 -3
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listbountysubmissions.ts +1 -1
- package/src/models/operations/listpayouts.ts +308 -0
- package/src/sdk/bounties.ts +1 -1
- package/src/sdk/commissions.ts +2 -2
- package/src/sdk/payouts.ts +27 -0
- package/src/sdk/sdk.ts +6 -0
package/README.md
CHANGED
|
@@ -130,7 +130,7 @@ run();
|
|
|
130
130
|
|
|
131
131
|
### [Commissions](docs/sdks/commissions/README.md)
|
|
132
132
|
|
|
133
|
-
* [list](docs/sdks/commissions/README.md#list) -
|
|
133
|
+
* [list](docs/sdks/commissions/README.md#list) - List all commissions
|
|
134
134
|
* [update](docs/sdks/commissions/README.md#update) - Update a commission.
|
|
135
135
|
|
|
136
136
|
### [Customers](docs/sdks/customers/README.md)
|
|
@@ -188,6 +188,10 @@ run();
|
|
|
188
188
|
* [ban](docs/sdks/partners/README.md#ban) - Ban a partner
|
|
189
189
|
* [deactivate](docs/sdks/partners/README.md#deactivate) - Deactivate a partner
|
|
190
190
|
|
|
191
|
+
### [Payouts](docs/sdks/payouts/README.md)
|
|
192
|
+
|
|
193
|
+
* [list](docs/sdks/payouts/README.md#list) - List all payouts
|
|
194
|
+
|
|
191
195
|
### [QRCodes](docs/sdks/qrcodes/README.md)
|
|
192
196
|
|
|
193
197
|
* [get](docs/sdks/qrcodes/README.md#get) - Retrieve a QR code
|
|
@@ -504,7 +508,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
504
508
|
- [`bountiesApproveSubmission`](docs/sdks/bounties/README.md#approvesubmission) - Approve a bounty submission
|
|
505
509
|
- [`bountiesListSubmissions`](docs/sdks/bounties/README.md#listsubmissions) - List bounty submissions
|
|
506
510
|
- [`bountiesRejectSubmission`](docs/sdks/bounties/README.md#rejectsubmission) - Reject a bounty submission
|
|
507
|
-
- [`commissionsList`](docs/sdks/commissions/README.md#list) -
|
|
511
|
+
- [`commissionsList`](docs/sdks/commissions/README.md#list) - List all commissions
|
|
508
512
|
- [`commissionsUpdate`](docs/sdks/commissions/README.md#update) - Update a commission.
|
|
509
513
|
- [`customersDelete`](docs/sdks/customers/README.md#delete) - Delete a customer
|
|
510
514
|
- [`customersGet`](docs/sdks/customers/README.md#get) - Retrieve a customer
|
|
@@ -540,6 +544,7 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
540
544
|
- [`partnersList`](docs/sdks/partners/README.md#list) - List all partners
|
|
541
545
|
- [`partnersRetrieveLinks`](docs/sdks/partners/README.md#retrievelinks) - Retrieve a partner's links.
|
|
542
546
|
- [`partnersUpsertLink`](docs/sdks/partners/README.md#upsertlink) - Upsert a link for a partner
|
|
547
|
+
- [`payoutsList`](docs/sdks/payouts/README.md#list) - List all payouts
|
|
543
548
|
- [`qrCodesGet`](docs/sdks/qrcodes/README.md#get) - Retrieve a QR code
|
|
544
549
|
- [`tagsCreate`](docs/sdks/tags/README.md#create) - Create a tag
|
|
545
550
|
- [`tagsDelete`](docs/sdks/tags/README.md#delete) - Delete a tag
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* List bounty submissions
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* List all submissions for a specific bounty.
|
|
15
|
+
* List all submissions for a specific bounty in your partner program.
|
|
16
16
|
*/
|
|
17
17
|
export declare function bountiesListSubmissions(client: DubCore, request: operations.ListBountySubmissionsRequest, options?: RequestOptions): APIPromise<Result<Array<operations.ListBountySubmissionsResponseBody>, errors.BadRequest | errors.Unauthorized | errors.Forbidden | errors.NotFound | errors.Conflict | errors.InviteExpired | errors.UnprocessableEntity | errors.RateLimitExceeded | errors.InternalServerError | DubError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=bountiesListSubmissions.d.ts.map
|
|
@@ -51,7 +51,7 @@ const async_js_1 = require("../types/async.js");
|
|
|
51
51
|
* List bounty submissions
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* List all submissions for a specific bounty.
|
|
54
|
+
* List all submissions for a specific bounty in your partner program.
|
|
55
55
|
*/
|
|
56
56
|
function bountiesListSubmissions(client, request, options) {
|
|
57
57
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -9,10 +9,10 @@ import * as operations from "../models/operations/index.js";
|
|
|
9
9
|
import { APIPromise } from "../types/async.js";
|
|
10
10
|
import { Result } from "../types/fp.js";
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* List all commissions
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Retrieve a list of commissions for
|
|
15
|
+
* Retrieve a list of commissions for your partner program.
|
|
16
16
|
*/
|
|
17
17
|
export declare function commissionsList(client: DubCore, request?: operations.ListCommissionsRequest | undefined, options?: RequestOptions): APIPromise<Result<Array<operations.ListCommissionsResponseBody>, errors.BadRequest | errors.Unauthorized | errors.Forbidden | errors.NotFound | errors.Conflict | errors.InviteExpired | errors.UnprocessableEntity | errors.RateLimitExceeded | errors.InternalServerError | DubError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=commissionsList.d.ts.map
|
|
@@ -48,10 +48,10 @@ const errors = __importStar(require("../models/errors/index.js"));
|
|
|
48
48
|
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
49
|
const async_js_1 = require("../types/async.js");
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* List all commissions
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Retrieve a list of commissions for
|
|
54
|
+
* Retrieve a list of commissions for your partner program.
|
|
55
55
|
*/
|
|
56
56
|
function commissionsList(client, request, options) {
|
|
57
57
|
return new async_js_1.APIPromise($do(client, request, options));
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { DubCore } from "../core.js";
|
|
2
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
3
|
+
import { DubError } from "../models/errors/duberror.js";
|
|
4
|
+
import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
|
|
5
|
+
import * as errors from "../models/errors/index.js";
|
|
6
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
7
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
8
|
+
import * as operations from "../models/operations/index.js";
|
|
9
|
+
import { APIPromise } from "../types/async.js";
|
|
10
|
+
import { Result } from "../types/fp.js";
|
|
11
|
+
/**
|
|
12
|
+
* List all payouts
|
|
13
|
+
*
|
|
14
|
+
* @remarks
|
|
15
|
+
* Retrieve a list of payouts for your partner program.
|
|
16
|
+
*/
|
|
17
|
+
export declare function payoutsList(client: DubCore, request?: operations.ListPayoutsRequest | undefined, options?: RequestOptions): APIPromise<Result<Array<operations.ListPayoutsResponseBody>, errors.BadRequest | errors.Unauthorized | errors.Forbidden | errors.NotFound | errors.Conflict | errors.InviteExpired | errors.UnprocessableEntity | errors.RateLimitExceeded | errors.InternalServerError | DubError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
|
+
//# sourceMappingURL=payoutsList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payoutsList.d.ts","sourceRoot":"","sources":["../../../src/funcs/payoutsList.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAKrC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,OAAO,EACf,OAAO,CAAC,EAAE,UAAU,CAAC,kBAAkB,GAAG,SAAS,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,KAAK,CAAC,UAAU,CAAC,uBAAuB,CAAC,EACvC,MAAM,CAAC,UAAU,GACjB,MAAM,CAAC,YAAY,GACnB,MAAM,CAAC,SAAS,GAChB,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,QAAQ,GACf,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,mBAAmB,GAC1B,MAAM,CAAC,iBAAiB,GACxB,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.payoutsList = payoutsList;
|
|
40
|
+
const z = __importStar(require("zod/v3"));
|
|
41
|
+
const encodings_js_1 = require("../lib/encodings.js");
|
|
42
|
+
const M = __importStar(require("../lib/matchers.js"));
|
|
43
|
+
const primitives_js_1 = require("../lib/primitives.js");
|
|
44
|
+
const schemas_js_1 = require("../lib/schemas.js");
|
|
45
|
+
const security_js_1 = require("../lib/security.js");
|
|
46
|
+
const url_js_1 = require("../lib/url.js");
|
|
47
|
+
const errors = __importStar(require("../models/errors/index.js"));
|
|
48
|
+
const operations = __importStar(require("../models/operations/index.js"));
|
|
49
|
+
const async_js_1 = require("../types/async.js");
|
|
50
|
+
/**
|
|
51
|
+
* List all payouts
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* Retrieve a list of payouts for your partner program.
|
|
55
|
+
*/
|
|
56
|
+
function payoutsList(client, request, options) {
|
|
57
|
+
return new async_js_1.APIPromise($do(client, request, options));
|
|
58
|
+
}
|
|
59
|
+
async function $do(client, request, options) {
|
|
60
|
+
const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.ListPayoutsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
61
|
+
if (!parsed.ok) {
|
|
62
|
+
return [parsed, { status: "invalid" }];
|
|
63
|
+
}
|
|
64
|
+
const payload = parsed.value;
|
|
65
|
+
const body = null;
|
|
66
|
+
const path = (0, url_js_1.pathToFunc)("/payouts")();
|
|
67
|
+
const query = (0, encodings_js_1.encodeFormQuery)({
|
|
68
|
+
"invoiceId": payload?.invoiceId,
|
|
69
|
+
"page": payload?.page,
|
|
70
|
+
"pageSize": payload?.pageSize,
|
|
71
|
+
"partnerId": payload?.partnerId,
|
|
72
|
+
"sortBy": payload?.sortBy,
|
|
73
|
+
"sortOrder": payload?.sortOrder,
|
|
74
|
+
"status": payload?.status,
|
|
75
|
+
"tenantId": payload?.tenantId,
|
|
76
|
+
});
|
|
77
|
+
const headers = new Headers((0, primitives_js_1.compactMap)({
|
|
78
|
+
Accept: "application/json",
|
|
79
|
+
}));
|
|
80
|
+
const secConfig = await (0, security_js_1.extractSecurity)(client._options.token);
|
|
81
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
82
|
+
const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
|
|
83
|
+
const context = {
|
|
84
|
+
options: client._options,
|
|
85
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
86
|
+
operationID: "listPayouts",
|
|
87
|
+
oAuth2Scopes: null,
|
|
88
|
+
resolvedSecurity: requestSecurity,
|
|
89
|
+
securitySource: client._options.token,
|
|
90
|
+
retryConfig: options?.retries
|
|
91
|
+
|| client._options.retryConfig
|
|
92
|
+
|| { strategy: "none" },
|
|
93
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
94
|
+
};
|
|
95
|
+
const requestRes = client._createRequest(context, {
|
|
96
|
+
security: requestSecurity,
|
|
97
|
+
method: "GET",
|
|
98
|
+
baseURL: options?.serverURL,
|
|
99
|
+
path: path,
|
|
100
|
+
headers: headers,
|
|
101
|
+
query: query,
|
|
102
|
+
body: body,
|
|
103
|
+
userAgent: client._options.userAgent,
|
|
104
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
|
|
105
|
+
}, options);
|
|
106
|
+
if (!requestRes.ok) {
|
|
107
|
+
return [requestRes, { status: "invalid" }];
|
|
108
|
+
}
|
|
109
|
+
const req = requestRes.value;
|
|
110
|
+
const doResult = await client._do(req, {
|
|
111
|
+
context,
|
|
112
|
+
errorCodes: [
|
|
113
|
+
"400",
|
|
114
|
+
"401",
|
|
115
|
+
"403",
|
|
116
|
+
"404",
|
|
117
|
+
"409",
|
|
118
|
+
"410",
|
|
119
|
+
"422",
|
|
120
|
+
"429",
|
|
121
|
+
"4XX",
|
|
122
|
+
"500",
|
|
123
|
+
"5XX",
|
|
124
|
+
],
|
|
125
|
+
retryConfig: context.retryConfig,
|
|
126
|
+
retryCodes: context.retryCodes,
|
|
127
|
+
});
|
|
128
|
+
if (!doResult.ok) {
|
|
129
|
+
return [doResult, { status: "request-error", request: req }];
|
|
130
|
+
}
|
|
131
|
+
const response = doResult.value;
|
|
132
|
+
const responseFields = {
|
|
133
|
+
HttpMeta: { Response: response, Request: req },
|
|
134
|
+
};
|
|
135
|
+
const [result] = await M.match(M.json(200, z.array(operations.ListPayoutsResponseBody$inboundSchema)), M.jsonErr(400, errors.BadRequest$inboundSchema), M.jsonErr(401, errors.Unauthorized$inboundSchema), M.jsonErr(403, errors.Forbidden$inboundSchema), M.jsonErr(404, errors.NotFound$inboundSchema), M.jsonErr(409, errors.Conflict$inboundSchema), M.jsonErr(410, errors.InviteExpired$inboundSchema), M.jsonErr(422, errors.UnprocessableEntity$inboundSchema), M.jsonErr(429, errors.RateLimitExceeded$inboundSchema), M.jsonErr(500, errors.InternalServerError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
|
|
136
|
+
if (!result.ok) {
|
|
137
|
+
return [result, { status: "complete", request: req, response }];
|
|
138
|
+
}
|
|
139
|
+
return [result, { status: "complete", request: req, response }];
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=payoutsList.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"payoutsList.js","sourceRoot":"","sources":["../../../src/funcs/payoutsList.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAgCH,kCA+BC;AA7DD,0CAA4B;AAE5B,sDAAsD;AACtD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAGpD,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;GAKG;AACH,SAAgB,WAAW,CACzB,MAAe,EACf,OAAmD,EACnD,OAAwB;IAuBxB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAe,EACf,OAAmD,EACnD,OAAwB;IA0BxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CACR,UAAU,CAAC,iCAAiC,CAAC,QAAQ,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,EACtE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,K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AAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
|
|
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
31
31
|
export declare const SDK_METADATA: {
|
|
32
32
|
readonly language: "typescript";
|
|
33
33
|
readonly openapiDocVersion: "0.0.1";
|
|
34
|
-
readonly sdkVersion: "0.71.
|
|
35
|
-
readonly genVersion: "2.
|
|
36
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.71.
|
|
34
|
+
readonly sdkVersion: "0.71.2";
|
|
35
|
+
readonly genVersion: "2.814.0";
|
|
36
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.71.2 2.814.0 0.0.1 dub";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
|
@@ -31,8 +31,8 @@ function serverURLFromOptions(options) {
|
|
|
31
31
|
exports.SDK_METADATA = {
|
|
32
32
|
language: "typescript",
|
|
33
33
|
openapiDocVersion: "0.0.1",
|
|
34
|
-
sdkVersion: "0.71.
|
|
35
|
-
genVersion: "2.
|
|
36
|
-
userAgent: "speakeasy-sdk/typescript 0.71.
|
|
34
|
+
sdkVersion: "0.71.2",
|
|
35
|
+
genVersion: "2.814.0",
|
|
36
|
+
userAgent: "speakeasy-sdk/typescript 0.71.2 2.814.0 0.0.1 dub",
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.js.map
|
|
@@ -30,6 +30,7 @@ export * from "./listdomains.js";
|
|
|
30
30
|
export * from "./listevents.js";
|
|
31
31
|
export * from "./listfolders.js";
|
|
32
32
|
export * from "./listpartners.js";
|
|
33
|
+
export * from "./listpayouts.js";
|
|
33
34
|
export * from "./registerdomain.js";
|
|
34
35
|
export * from "./rejectbountysubmission.js";
|
|
35
36
|
export * from "./retrieveanalytics.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
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gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC"}
|
|
@@ -49,6 +49,7 @@ __exportStar(require("./listdomains.js"), exports);
|
|
|
49
49
|
__exportStar(require("./listevents.js"), exports);
|
|
50
50
|
__exportStar(require("./listfolders.js"), exports);
|
|
51
51
|
__exportStar(require("./listpartners.js"), exports);
|
|
52
|
+
__exportStar(require("./listpayouts.js"), exports);
|
|
52
53
|
__exportStar(require("./registerdomain.js"), exports);
|
|
53
54
|
__exportStar(require("./rejectbountysubmission.js"), exports);
|
|
54
55
|
__exportStar(require("./retrieveanalytics.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,+DAA6C;AAC7C,kDAAgC;AAChC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,yDAAuC;AACvC,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC;AAChC,qDAAmC;AACnC,yDAAuC;AACvC,iEAA+C;AAC/C,iDAA+B;AAC/B,yDAAuC;AACvC,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC;AAChC,iDAA+B;AAC/B,mDAAiC;AACjC,oDAAkC;AAClC,mDAAiC;AACjC,gDAA8B;AAC9B,qDAAmC;AACnC,iDAA+B;AAC/B,+CAA6B;AAC7B,6DAA2C;AAC3C,uDAAqC;AACrC,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,sDAAoC;AACpC,8DAA4C;AAC5C,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAC9C,iDAA+B;AAC/B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC;AAChC,iDAA+B;AAC/B,kDAAgC;AAChC,yDAAuC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/models/operations/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,+DAA6C;AAC7C,kDAAgC;AAChC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,yDAAuC;AACvC,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC;AAChC,qDAAmC;AACnC,yDAAuC;AACvC,iEAA+C;AAC/C,iDAA+B;AAC/B,yDAAuC;AACvC,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC;AAChC,iDAA+B;AAC/B,mDAAiC;AACjC,oDAAkC;AAClC,mDAAiC;AACjC,gDAA8B;AAC9B,qDAAmC;AACnC,iDAA+B;AAC/B,+CAA6B;AAC7B,6DAA2C;AAC3C,uDAAqC;AACrC,mDAAiC;AACjC,kDAAgC;AAChC,mDAAiC;AACjC,oDAAkC;AAClC,mDAAiC;AACjC,sDAAoC;AACpC,8DAA4C;AAC5C,yDAAuC;AACvC,qDAAmC;AACnC,gEAA8C;AAC9C,iDAA+B;AAC/B,iDAA+B;AAC/B,wDAAsC;AACtC,sDAAoC;AACpC,oDAAkC;AAClC,oDAAkC;AAClC,kDAAgC;AAChC,iDAA+B;AAC/B,kDAAgC;AAChC,yDAAuC"}
|
|
@@ -39,7 +39,7 @@ export declare const ListBountySubmissionsQueryParamSortOrder: {
|
|
|
39
39
|
export type ListBountySubmissionsQueryParamSortOrder = ClosedEnum<typeof ListBountySubmissionsQueryParamSortOrder>;
|
|
40
40
|
export type ListBountySubmissionsRequest = {
|
|
41
41
|
/**
|
|
42
|
-
* The ID of the bounty
|
|
42
|
+
* The unique ID of the bounty on Dub. Can be found in the URL of the bounty page, prefixed with `bnty_`.
|
|
43
43
|
*/
|
|
44
44
|
bountyId: string;
|
|
45
45
|
/**
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import * as z from "zod/v3";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
/**
|
|
6
|
+
* Filter the list of payouts by their corresponding status.
|
|
7
|
+
*/
|
|
8
|
+
export declare const ListPayoutsQueryParamStatus: {
|
|
9
|
+
readonly Pending: "pending";
|
|
10
|
+
readonly Processing: "processing";
|
|
11
|
+
readonly Processed: "processed";
|
|
12
|
+
readonly Sent: "sent";
|
|
13
|
+
readonly Completed: "completed";
|
|
14
|
+
readonly Failed: "failed";
|
|
15
|
+
readonly Canceled: "canceled";
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Filter the list of payouts by their corresponding status.
|
|
19
|
+
*/
|
|
20
|
+
export type ListPayoutsQueryParamStatus = ClosedEnum<typeof ListPayoutsQueryParamStatus>;
|
|
21
|
+
/**
|
|
22
|
+
* The field to sort the list of payouts by.
|
|
23
|
+
*/
|
|
24
|
+
export declare const ListPayoutsQueryParamSortBy: {
|
|
25
|
+
readonly Amount: "amount";
|
|
26
|
+
readonly InitiatedAt: "initiatedAt";
|
|
27
|
+
readonly PaidAt: "paidAt";
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* The field to sort the list of payouts by.
|
|
31
|
+
*/
|
|
32
|
+
export type ListPayoutsQueryParamSortBy = ClosedEnum<typeof ListPayoutsQueryParamSortBy>;
|
|
33
|
+
/**
|
|
34
|
+
* The sort order for the list of payouts.
|
|
35
|
+
*/
|
|
36
|
+
export declare const ListPayoutsQueryParamSortOrder: {
|
|
37
|
+
readonly Asc: "asc";
|
|
38
|
+
readonly Desc: "desc";
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* The sort order for the list of payouts.
|
|
42
|
+
*/
|
|
43
|
+
export type ListPayoutsQueryParamSortOrder = ClosedEnum<typeof ListPayoutsQueryParamSortOrder>;
|
|
44
|
+
export type ListPayoutsRequest = {
|
|
45
|
+
/**
|
|
46
|
+
* Filter the list of payouts by their corresponding status.
|
|
47
|
+
*/
|
|
48
|
+
status?: ListPayoutsQueryParamStatus | undefined;
|
|
49
|
+
/**
|
|
50
|
+
* Filter the list of payouts by the associated partner. When specified, takes precedence over `tenantId`.
|
|
51
|
+
*/
|
|
52
|
+
partnerId?: string | undefined;
|
|
53
|
+
/**
|
|
54
|
+
* Filter the list of payouts by the associated partner's `tenantId` (their unique ID within your database).
|
|
55
|
+
*/
|
|
56
|
+
tenantId?: string | undefined;
|
|
57
|
+
/**
|
|
58
|
+
* Filter the list of payouts by invoice ID (the unique ID of the invoice you receive for each batch payout you process on Dub). Pending payouts will not have an invoice ID.
|
|
59
|
+
*/
|
|
60
|
+
invoiceId?: string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* The field to sort the list of payouts by.
|
|
63
|
+
*/
|
|
64
|
+
sortBy?: ListPayoutsQueryParamSortBy | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* The sort order for the list of payouts.
|
|
67
|
+
*/
|
|
68
|
+
sortOrder?: ListPayoutsQueryParamSortOrder | undefined;
|
|
69
|
+
/**
|
|
70
|
+
* The page number for pagination.
|
|
71
|
+
*/
|
|
72
|
+
page?: number | undefined;
|
|
73
|
+
/**
|
|
74
|
+
* The number of items per page.
|
|
75
|
+
*/
|
|
76
|
+
pageSize?: number | undefined;
|
|
77
|
+
};
|
|
78
|
+
export declare const ListPayoutsStatus: {
|
|
79
|
+
readonly Pending: "pending";
|
|
80
|
+
readonly Processing: "processing";
|
|
81
|
+
readonly Processed: "processed";
|
|
82
|
+
readonly Sent: "sent";
|
|
83
|
+
readonly Completed: "completed";
|
|
84
|
+
readonly Failed: "failed";
|
|
85
|
+
readonly Canceled: "canceled";
|
|
86
|
+
};
|
|
87
|
+
export type ListPayoutsStatus = ClosedEnum<typeof ListPayoutsStatus>;
|
|
88
|
+
export declare const ListPayoutsMode: {
|
|
89
|
+
readonly Internal: "internal";
|
|
90
|
+
readonly External: "external";
|
|
91
|
+
};
|
|
92
|
+
export type ListPayoutsMode = ClosedEnum<typeof ListPayoutsMode>;
|
|
93
|
+
export type ListPayoutsPartner = {
|
|
94
|
+
/**
|
|
95
|
+
* The partner's unique ID on Dub.
|
|
96
|
+
*/
|
|
97
|
+
id: string;
|
|
98
|
+
/**
|
|
99
|
+
* The partner's full legal name.
|
|
100
|
+
*/
|
|
101
|
+
name: string;
|
|
102
|
+
/**
|
|
103
|
+
* The partner's email address. Should be a unique value across Dub.
|
|
104
|
+
*/
|
|
105
|
+
email: string | null;
|
|
106
|
+
/**
|
|
107
|
+
* The partner's avatar image.
|
|
108
|
+
*/
|
|
109
|
+
image: string | null;
|
|
110
|
+
/**
|
|
111
|
+
* The date when the partner enabled payouts.
|
|
112
|
+
*/
|
|
113
|
+
payoutsEnabledAt: string | null;
|
|
114
|
+
/**
|
|
115
|
+
* The partner's country (required for tax purposes).
|
|
116
|
+
*/
|
|
117
|
+
country: string | null;
|
|
118
|
+
/**
|
|
119
|
+
* The partner's group ID on Dub.
|
|
120
|
+
*/
|
|
121
|
+
groupId?: string | null | undefined;
|
|
122
|
+
/**
|
|
123
|
+
* The partner's unique ID within your database. Can be useful for associating the partner with a user in your database and retrieving/update their data in the future.
|
|
124
|
+
*/
|
|
125
|
+
tenantId: string | null;
|
|
126
|
+
};
|
|
127
|
+
export type User = {
|
|
128
|
+
id: string;
|
|
129
|
+
name: string | null;
|
|
130
|
+
email: string | null;
|
|
131
|
+
image: string | null;
|
|
132
|
+
};
|
|
133
|
+
export type ListPayoutsResponseBody = {
|
|
134
|
+
id: string;
|
|
135
|
+
invoiceId: string | null;
|
|
136
|
+
amount: number;
|
|
137
|
+
currency: string;
|
|
138
|
+
status: ListPayoutsStatus;
|
|
139
|
+
description?: string | null | undefined;
|
|
140
|
+
periodStart: string | null;
|
|
141
|
+
periodEnd: string | null;
|
|
142
|
+
createdAt: string;
|
|
143
|
+
initiatedAt: string | null;
|
|
144
|
+
paidAt: string | null;
|
|
145
|
+
failureReason?: string | null | undefined;
|
|
146
|
+
mode: ListPayoutsMode | null;
|
|
147
|
+
partner: ListPayoutsPartner;
|
|
148
|
+
user?: User | null | undefined;
|
|
149
|
+
};
|
|
150
|
+
/** @internal */
|
|
151
|
+
export declare const ListPayoutsQueryParamStatus$outboundSchema: z.ZodNativeEnum<typeof ListPayoutsQueryParamStatus>;
|
|
152
|
+
/** @internal */
|
|
153
|
+
export declare const ListPayoutsQueryParamSortBy$outboundSchema: z.ZodNativeEnum<typeof ListPayoutsQueryParamSortBy>;
|
|
154
|
+
/** @internal */
|
|
155
|
+
export declare const ListPayoutsQueryParamSortOrder$outboundSchema: z.ZodNativeEnum<typeof ListPayoutsQueryParamSortOrder>;
|
|
156
|
+
/** @internal */
|
|
157
|
+
export type ListPayoutsRequest$Outbound = {
|
|
158
|
+
status?: string | undefined;
|
|
159
|
+
partnerId?: string | undefined;
|
|
160
|
+
tenantId?: string | undefined;
|
|
161
|
+
invoiceId?: string | undefined;
|
|
162
|
+
sortBy: string;
|
|
163
|
+
sortOrder: string;
|
|
164
|
+
page: number;
|
|
165
|
+
pageSize: number;
|
|
166
|
+
};
|
|
167
|
+
/** @internal */
|
|
168
|
+
export declare const ListPayoutsRequest$outboundSchema: z.ZodType<ListPayoutsRequest$Outbound, z.ZodTypeDef, ListPayoutsRequest>;
|
|
169
|
+
export declare function listPayoutsRequestToJSON(listPayoutsRequest: ListPayoutsRequest): string;
|
|
170
|
+
/** @internal */
|
|
171
|
+
export declare const ListPayoutsStatus$inboundSchema: z.ZodNativeEnum<typeof ListPayoutsStatus>;
|
|
172
|
+
/** @internal */
|
|
173
|
+
export declare const ListPayoutsMode$inboundSchema: z.ZodNativeEnum<typeof ListPayoutsMode>;
|
|
174
|
+
/** @internal */
|
|
175
|
+
export declare const ListPayoutsPartner$inboundSchema: z.ZodType<ListPayoutsPartner, z.ZodTypeDef, unknown>;
|
|
176
|
+
export declare function listPayoutsPartnerFromJSON(jsonString: string): SafeParseResult<ListPayoutsPartner, SDKValidationError>;
|
|
177
|
+
/** @internal */
|
|
178
|
+
export declare const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown>;
|
|
179
|
+
export declare function userFromJSON(jsonString: string): SafeParseResult<User, SDKValidationError>;
|
|
180
|
+
/** @internal */
|
|
181
|
+
export declare const ListPayoutsResponseBody$inboundSchema: z.ZodType<ListPayoutsResponseBody, z.ZodTypeDef, unknown>;
|
|
182
|
+
export declare function listPayoutsResponseBodyFromJSON(jsonString: string): SafeParseResult<ListPayoutsResponseBody, SDKValidationError>;
|
|
183
|
+
//# sourceMappingURL=listpayouts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listpayouts.d.ts","sourceRoot":"","sources":["../../../../src/models/operations/listpayouts.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAErE;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;CAQ9B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,2BAA2B;;;;CAI9B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,UAAU,CAClD,OAAO,2BAA2B,CACnC,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,8BAA8B;;;CAGjC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG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