dub 0.71.0 → 0.71.1
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 +342 -0
- package/dist/commonjs/models/operations/listpayouts.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listpayouts.js +254 -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 +342 -0
- package/dist/esm/models/operations/listpayouts.d.ts.map +1 -0
- package/dist/esm/models/operations/listpayouts.js +213 -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 +525 -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
|
@@ -0,0 +1,342 @@
|
|
|
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
|
+
/**
|
|
94
|
+
* The partner's profile type on Dub.
|
|
95
|
+
*/
|
|
96
|
+
export declare const ProfileType: {
|
|
97
|
+
readonly Individual: "individual";
|
|
98
|
+
readonly Company: "company";
|
|
99
|
+
};
|
|
100
|
+
/**
|
|
101
|
+
* The partner's profile type on Dub.
|
|
102
|
+
*/
|
|
103
|
+
export type ProfileType = ClosedEnum<typeof ProfileType>;
|
|
104
|
+
/**
|
|
105
|
+
* The partner's invoice settings.
|
|
106
|
+
*/
|
|
107
|
+
export type InvoiceSettings = {
|
|
108
|
+
address?: string | null | undefined;
|
|
109
|
+
taxId?: string | null | undefined;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* The partner's monthly traffic.
|
|
113
|
+
*/
|
|
114
|
+
export declare const MonthlyTraffic: {
|
|
115
|
+
readonly ZeroToOneThousand: "ZeroToOneThousand";
|
|
116
|
+
readonly OneThousandToTenThousand: "OneThousandToTenThousand";
|
|
117
|
+
readonly TenThousandToFiftyThousand: "TenThousandToFiftyThousand";
|
|
118
|
+
readonly FiftyThousandToOneHundredThousand: "FiftyThousandToOneHundredThousand";
|
|
119
|
+
readonly OneHundredThousandPlus: "OneHundredThousandPlus";
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* The partner's monthly traffic.
|
|
123
|
+
*/
|
|
124
|
+
export type MonthlyTraffic = ClosedEnum<typeof MonthlyTraffic>;
|
|
125
|
+
export declare const IndustryInterests: {
|
|
126
|
+
readonly SaaS: "SaaS";
|
|
127
|
+
readonly DevTool: "DevTool";
|
|
128
|
+
readonly Ai: "AI";
|
|
129
|
+
readonly CreativeAndDesign: "Creative_And_Design";
|
|
130
|
+
readonly ProductivitySoftware: "Productivity_Software";
|
|
131
|
+
readonly Marketing: "Marketing";
|
|
132
|
+
readonly Gaming: "Gaming";
|
|
133
|
+
readonly Finance: "Finance";
|
|
134
|
+
readonly Sales: "Sales";
|
|
135
|
+
readonly Ecommerce: "Ecommerce";
|
|
136
|
+
readonly CustomerServiceAndSupport: "Customer_Service_And_Support";
|
|
137
|
+
readonly ContentManagement: "Content_Management";
|
|
138
|
+
readonly HumanResources: "Human_Resources";
|
|
139
|
+
readonly Security: "Security";
|
|
140
|
+
readonly AnalyticsAndData: "Analytics_And_Data";
|
|
141
|
+
readonly SocialMedia: "Social_Media";
|
|
142
|
+
readonly ConsumerTech: "Consumer_Tech";
|
|
143
|
+
readonly EducationAndLearning: "Education_And_Learning";
|
|
144
|
+
readonly HealthAndFitness: "Health_And_Fitness";
|
|
145
|
+
readonly FoodAndBeverage: "Food_And_Beverage";
|
|
146
|
+
readonly TravelAndLifestyle: "Travel_And_Lifestyle";
|
|
147
|
+
readonly EntertainmentAndMedia: "Entertainment_And_Media";
|
|
148
|
+
readonly Sports: "Sports";
|
|
149
|
+
readonly ScienceAndEngineering: "Science_And_Engineering";
|
|
150
|
+
};
|
|
151
|
+
export type IndustryInterests = ClosedEnum<typeof IndustryInterests>;
|
|
152
|
+
export declare const PreferredEarningStructures: {
|
|
153
|
+
readonly RevenueShare: "Revenue_Share";
|
|
154
|
+
readonly PerLead: "Per_Lead";
|
|
155
|
+
readonly PerSale: "Per_Sale";
|
|
156
|
+
readonly PerClick: "Per_Click";
|
|
157
|
+
readonly OneTimePayment: "One_Time_Payment";
|
|
158
|
+
};
|
|
159
|
+
export type PreferredEarningStructures = ClosedEnum<typeof PreferredEarningStructures>;
|
|
160
|
+
export declare const SalesChannels: {
|
|
161
|
+
readonly Blogs: "Blogs";
|
|
162
|
+
readonly Coupons: "Coupons";
|
|
163
|
+
readonly DirectReselling: "Direct_Reselling";
|
|
164
|
+
readonly Newsletters: "Newsletters";
|
|
165
|
+
readonly SocialMedia: "Social_Media";
|
|
166
|
+
readonly Events: "Events";
|
|
167
|
+
readonly CompanyReferrals: "Company_Referrals";
|
|
168
|
+
};
|
|
169
|
+
export type SalesChannels = ClosedEnum<typeof SalesChannels>;
|
|
170
|
+
export type ListPayoutsPartner = {
|
|
171
|
+
/**
|
|
172
|
+
* The partner's unique ID on Dub.
|
|
173
|
+
*/
|
|
174
|
+
id: string;
|
|
175
|
+
/**
|
|
176
|
+
* The partner's full legal name.
|
|
177
|
+
*/
|
|
178
|
+
name: string;
|
|
179
|
+
/**
|
|
180
|
+
* If the partner profile type is a company, this is the partner's legal company name.
|
|
181
|
+
*/
|
|
182
|
+
companyName: string | null;
|
|
183
|
+
/**
|
|
184
|
+
* The partner's profile type on Dub.
|
|
185
|
+
*/
|
|
186
|
+
profileType: ProfileType;
|
|
187
|
+
/**
|
|
188
|
+
* The partner's email address. Should be a unique value across Dub.
|
|
189
|
+
*/
|
|
190
|
+
email: string | null;
|
|
191
|
+
/**
|
|
192
|
+
* The partner's avatar image.
|
|
193
|
+
*/
|
|
194
|
+
image: string | null;
|
|
195
|
+
/**
|
|
196
|
+
* A brief description of the partner and their background.
|
|
197
|
+
*/
|
|
198
|
+
description?: string | null | undefined;
|
|
199
|
+
/**
|
|
200
|
+
* The partner's country (required for tax purposes).
|
|
201
|
+
*/
|
|
202
|
+
country: string | null;
|
|
203
|
+
/**
|
|
204
|
+
* The partner's Stripe Connect ID (for receiving payouts via Stripe).
|
|
205
|
+
*/
|
|
206
|
+
stripeConnectId: string | null;
|
|
207
|
+
/**
|
|
208
|
+
* The partner's PayPal email (for receiving payouts via PayPal).
|
|
209
|
+
*/
|
|
210
|
+
paypalEmail: string | null;
|
|
211
|
+
/**
|
|
212
|
+
* The date when the partner enabled payouts.
|
|
213
|
+
*/
|
|
214
|
+
payoutsEnabledAt: string | null;
|
|
215
|
+
/**
|
|
216
|
+
* The partner's invoice settings.
|
|
217
|
+
*/
|
|
218
|
+
invoiceSettings: InvoiceSettings | null;
|
|
219
|
+
/**
|
|
220
|
+
* The date when the partner was created on Dub.
|
|
221
|
+
*/
|
|
222
|
+
createdAt: string;
|
|
223
|
+
/**
|
|
224
|
+
* The date when the partner was added to the partner network.
|
|
225
|
+
*/
|
|
226
|
+
discoverableAt: string | null;
|
|
227
|
+
/**
|
|
228
|
+
* The date when the partner received the trusted badge in the partner network.
|
|
229
|
+
*/
|
|
230
|
+
trustedAt: string | null;
|
|
231
|
+
/**
|
|
232
|
+
* The partner's website URL (including the https protocol).
|
|
233
|
+
*/
|
|
234
|
+
website?: string | null | undefined;
|
|
235
|
+
/**
|
|
236
|
+
* The partner's YouTube channel username (e.g. `johndoe`).
|
|
237
|
+
*/
|
|
238
|
+
youtube?: string | null | undefined;
|
|
239
|
+
/**
|
|
240
|
+
* The partner's Twitter username (e.g. `johndoe`).
|
|
241
|
+
*/
|
|
242
|
+
twitter?: string | null | undefined;
|
|
243
|
+
/**
|
|
244
|
+
* The partner's LinkedIn username (e.g. `johndoe`).
|
|
245
|
+
*/
|
|
246
|
+
linkedin?: string | null | undefined;
|
|
247
|
+
/**
|
|
248
|
+
* The partner's Instagram username (e.g. `johndoe`).
|
|
249
|
+
*/
|
|
250
|
+
instagram?: string | null | undefined;
|
|
251
|
+
/**
|
|
252
|
+
* The partner's TikTok username (e.g. `johndoe`).
|
|
253
|
+
*/
|
|
254
|
+
tiktok?: string | null | undefined;
|
|
255
|
+
/**
|
|
256
|
+
* The partner's monthly traffic.
|
|
257
|
+
*/
|
|
258
|
+
monthlyTraffic?: MonthlyTraffic | null | undefined;
|
|
259
|
+
/**
|
|
260
|
+
* The partner's industry interests.
|
|
261
|
+
*/
|
|
262
|
+
industryInterests?: Array<IndustryInterests> | undefined;
|
|
263
|
+
/**
|
|
264
|
+
* The partner's preferred earning structures.
|
|
265
|
+
*/
|
|
266
|
+
preferredEarningStructures?: Array<PreferredEarningStructures> | undefined;
|
|
267
|
+
/**
|
|
268
|
+
* The partner's sales channels.
|
|
269
|
+
*/
|
|
270
|
+
salesChannels?: Array<SalesChannels> | undefined;
|
|
271
|
+
tenantId: string | null;
|
|
272
|
+
};
|
|
273
|
+
export type User = {
|
|
274
|
+
id: string;
|
|
275
|
+
name: string | null;
|
|
276
|
+
email: string | null;
|
|
277
|
+
image: string | null;
|
|
278
|
+
};
|
|
279
|
+
export type ListPayoutsResponseBody = {
|
|
280
|
+
id: string;
|
|
281
|
+
invoiceId: string | null;
|
|
282
|
+
amount: number;
|
|
283
|
+
currency: string;
|
|
284
|
+
status: ListPayoutsStatus;
|
|
285
|
+
description?: string | null | undefined;
|
|
286
|
+
periodStart: string | null;
|
|
287
|
+
periodEnd: string | null;
|
|
288
|
+
createdAt: string;
|
|
289
|
+
initiatedAt: string | null;
|
|
290
|
+
paidAt: string | null;
|
|
291
|
+
failureReason?: string | null | undefined;
|
|
292
|
+
mode: ListPayoutsMode | null;
|
|
293
|
+
partner: ListPayoutsPartner;
|
|
294
|
+
user?: User | null | undefined;
|
|
295
|
+
};
|
|
296
|
+
/** @internal */
|
|
297
|
+
export declare const ListPayoutsQueryParamStatus$outboundSchema: z.ZodNativeEnum<typeof ListPayoutsQueryParamStatus>;
|
|
298
|
+
/** @internal */
|
|
299
|
+
export declare const ListPayoutsQueryParamSortBy$outboundSchema: z.ZodNativeEnum<typeof ListPayoutsQueryParamSortBy>;
|
|
300
|
+
/** @internal */
|
|
301
|
+
export declare const ListPayoutsQueryParamSortOrder$outboundSchema: z.ZodNativeEnum<typeof ListPayoutsQueryParamSortOrder>;
|
|
302
|
+
/** @internal */
|
|
303
|
+
export type ListPayoutsRequest$Outbound = {
|
|
304
|
+
status?: string | undefined;
|
|
305
|
+
partnerId?: string | undefined;
|
|
306
|
+
tenantId?: string | undefined;
|
|
307
|
+
invoiceId?: string | undefined;
|
|
308
|
+
sortBy: string;
|
|
309
|
+
sortOrder: string;
|
|
310
|
+
page: number;
|
|
311
|
+
pageSize: number;
|
|
312
|
+
};
|
|
313
|
+
/** @internal */
|
|
314
|
+
export declare const ListPayoutsRequest$outboundSchema: z.ZodType<ListPayoutsRequest$Outbound, z.ZodTypeDef, ListPayoutsRequest>;
|
|
315
|
+
export declare function listPayoutsRequestToJSON(listPayoutsRequest: ListPayoutsRequest): string;
|
|
316
|
+
/** @internal */
|
|
317
|
+
export declare const ListPayoutsStatus$inboundSchema: z.ZodNativeEnum<typeof ListPayoutsStatus>;
|
|
318
|
+
/** @internal */
|
|
319
|
+
export declare const ListPayoutsMode$inboundSchema: z.ZodNativeEnum<typeof ListPayoutsMode>;
|
|
320
|
+
/** @internal */
|
|
321
|
+
export declare const ProfileType$inboundSchema: z.ZodNativeEnum<typeof ProfileType>;
|
|
322
|
+
/** @internal */
|
|
323
|
+
export declare const InvoiceSettings$inboundSchema: z.ZodType<InvoiceSettings, z.ZodTypeDef, unknown>;
|
|
324
|
+
export declare function invoiceSettingsFromJSON(jsonString: string): SafeParseResult<InvoiceSettings, SDKValidationError>;
|
|
325
|
+
/** @internal */
|
|
326
|
+
export declare const MonthlyTraffic$inboundSchema: z.ZodNativeEnum<typeof MonthlyTraffic>;
|
|
327
|
+
/** @internal */
|
|
328
|
+
export declare const IndustryInterests$inboundSchema: z.ZodNativeEnum<typeof IndustryInterests>;
|
|
329
|
+
/** @internal */
|
|
330
|
+
export declare const PreferredEarningStructures$inboundSchema: z.ZodNativeEnum<typeof PreferredEarningStructures>;
|
|
331
|
+
/** @internal */
|
|
332
|
+
export declare const SalesChannels$inboundSchema: z.ZodNativeEnum<typeof SalesChannels>;
|
|
333
|
+
/** @internal */
|
|
334
|
+
export declare const ListPayoutsPartner$inboundSchema: z.ZodType<ListPayoutsPartner, z.ZodTypeDef, unknown>;
|
|
335
|
+
export declare function listPayoutsPartnerFromJSON(jsonString: string): SafeParseResult<ListPayoutsPartner, SDKValidationError>;
|
|
336
|
+
/** @internal */
|
|
337
|
+
export declare const User$inboundSchema: z.ZodType<User, z.ZodTypeDef, unknown>;
|
|
338
|
+
export declare function userFromJSON(jsonString: string): SafeParseResult<User, SDKValidationError>;
|
|
339
|
+
/** @internal */
|
|
340
|
+
export declare const ListPayoutsResponseBody$inboundSchema: z.ZodType<ListPayoutsResponseBody, z.ZodTypeDef, unknown>;
|
|
341
|
+
export declare function listPayoutsResponseBodyFromJSON(jsonString: string): SafeParseResult<ListPayoutsResponseBody, SDKValidationError>;
|
|
342
|
+
//# 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,UAAU,CACrD,OAAO,8BAA8B,CACtC,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,MAAM,CAAC,EAAE,2BAA2B,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IAC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C,CAAC,OAAO,CAC3D,uBAAuB,EACvB,CAAC,CAAC,UAAU,EACZ,OAAO,CAiBP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
|
|
@@ -0,0 +1,254 @@
|
|
|
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.ListPayoutsResponseBody$inboundSchema = exports.User$inboundSchema = exports.ListPayoutsPartner$inboundSchema = exports.SalesChannels$inboundSchema = exports.PreferredEarningStructures$inboundSchema = exports.IndustryInterests$inboundSchema = exports.MonthlyTraffic$inboundSchema = exports.InvoiceSettings$inboundSchema = exports.ProfileType$inboundSchema = exports.ListPayoutsMode$inboundSchema = exports.ListPayoutsStatus$inboundSchema = exports.ListPayoutsRequest$outboundSchema = exports.ListPayoutsQueryParamSortOrder$outboundSchema = exports.ListPayoutsQueryParamSortBy$outboundSchema = exports.ListPayoutsQueryParamStatus$outboundSchema = exports.SalesChannels = exports.PreferredEarningStructures = exports.IndustryInterests = exports.MonthlyTraffic = exports.ProfileType = exports.ListPayoutsMode = exports.ListPayoutsStatus = exports.ListPayoutsQueryParamSortOrder = exports.ListPayoutsQueryParamSortBy = exports.ListPayoutsQueryParamStatus = void 0;
|
|
40
|
+
exports.listPayoutsRequestToJSON = listPayoutsRequestToJSON;
|
|
41
|
+
exports.invoiceSettingsFromJSON = invoiceSettingsFromJSON;
|
|
42
|
+
exports.listPayoutsPartnerFromJSON = listPayoutsPartnerFromJSON;
|
|
43
|
+
exports.userFromJSON = userFromJSON;
|
|
44
|
+
exports.listPayoutsResponseBodyFromJSON = listPayoutsResponseBodyFromJSON;
|
|
45
|
+
const z = __importStar(require("zod/v3"));
|
|
46
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
47
|
+
/**
|
|
48
|
+
* Filter the list of payouts by their corresponding status.
|
|
49
|
+
*/
|
|
50
|
+
exports.ListPayoutsQueryParamStatus = {
|
|
51
|
+
Pending: "pending",
|
|
52
|
+
Processing: "processing",
|
|
53
|
+
Processed: "processed",
|
|
54
|
+
Sent: "sent",
|
|
55
|
+
Completed: "completed",
|
|
56
|
+
Failed: "failed",
|
|
57
|
+
Canceled: "canceled",
|
|
58
|
+
};
|
|
59
|
+
/**
|
|
60
|
+
* The field to sort the list of payouts by.
|
|
61
|
+
*/
|
|
62
|
+
exports.ListPayoutsQueryParamSortBy = {
|
|
63
|
+
Amount: "amount",
|
|
64
|
+
InitiatedAt: "initiatedAt",
|
|
65
|
+
PaidAt: "paidAt",
|
|
66
|
+
};
|
|
67
|
+
/**
|
|
68
|
+
* The sort order for the list of payouts.
|
|
69
|
+
*/
|
|
70
|
+
exports.ListPayoutsQueryParamSortOrder = {
|
|
71
|
+
Asc: "asc",
|
|
72
|
+
Desc: "desc",
|
|
73
|
+
};
|
|
74
|
+
exports.ListPayoutsStatus = {
|
|
75
|
+
Pending: "pending",
|
|
76
|
+
Processing: "processing",
|
|
77
|
+
Processed: "processed",
|
|
78
|
+
Sent: "sent",
|
|
79
|
+
Completed: "completed",
|
|
80
|
+
Failed: "failed",
|
|
81
|
+
Canceled: "canceled",
|
|
82
|
+
};
|
|
83
|
+
exports.ListPayoutsMode = {
|
|
84
|
+
Internal: "internal",
|
|
85
|
+
External: "external",
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* The partner's profile type on Dub.
|
|
89
|
+
*/
|
|
90
|
+
exports.ProfileType = {
|
|
91
|
+
Individual: "individual",
|
|
92
|
+
Company: "company",
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* The partner's monthly traffic.
|
|
96
|
+
*/
|
|
97
|
+
exports.MonthlyTraffic = {
|
|
98
|
+
ZeroToOneThousand: "ZeroToOneThousand",
|
|
99
|
+
OneThousandToTenThousand: "OneThousandToTenThousand",
|
|
100
|
+
TenThousandToFiftyThousand: "TenThousandToFiftyThousand",
|
|
101
|
+
FiftyThousandToOneHundredThousand: "FiftyThousandToOneHundredThousand",
|
|
102
|
+
OneHundredThousandPlus: "OneHundredThousandPlus",
|
|
103
|
+
};
|
|
104
|
+
exports.IndustryInterests = {
|
|
105
|
+
SaaS: "SaaS",
|
|
106
|
+
DevTool: "DevTool",
|
|
107
|
+
Ai: "AI",
|
|
108
|
+
CreativeAndDesign: "Creative_And_Design",
|
|
109
|
+
ProductivitySoftware: "Productivity_Software",
|
|
110
|
+
Marketing: "Marketing",
|
|
111
|
+
Gaming: "Gaming",
|
|
112
|
+
Finance: "Finance",
|
|
113
|
+
Sales: "Sales",
|
|
114
|
+
Ecommerce: "Ecommerce",
|
|
115
|
+
CustomerServiceAndSupport: "Customer_Service_And_Support",
|
|
116
|
+
ContentManagement: "Content_Management",
|
|
117
|
+
HumanResources: "Human_Resources",
|
|
118
|
+
Security: "Security",
|
|
119
|
+
AnalyticsAndData: "Analytics_And_Data",
|
|
120
|
+
SocialMedia: "Social_Media",
|
|
121
|
+
ConsumerTech: "Consumer_Tech",
|
|
122
|
+
EducationAndLearning: "Education_And_Learning",
|
|
123
|
+
HealthAndFitness: "Health_And_Fitness",
|
|
124
|
+
FoodAndBeverage: "Food_And_Beverage",
|
|
125
|
+
TravelAndLifestyle: "Travel_And_Lifestyle",
|
|
126
|
+
EntertainmentAndMedia: "Entertainment_And_Media",
|
|
127
|
+
Sports: "Sports",
|
|
128
|
+
ScienceAndEngineering: "Science_And_Engineering",
|
|
129
|
+
};
|
|
130
|
+
exports.PreferredEarningStructures = {
|
|
131
|
+
RevenueShare: "Revenue_Share",
|
|
132
|
+
PerLead: "Per_Lead",
|
|
133
|
+
PerSale: "Per_Sale",
|
|
134
|
+
PerClick: "Per_Click",
|
|
135
|
+
OneTimePayment: "One_Time_Payment",
|
|
136
|
+
};
|
|
137
|
+
exports.SalesChannels = {
|
|
138
|
+
Blogs: "Blogs",
|
|
139
|
+
Coupons: "Coupons",
|
|
140
|
+
DirectReselling: "Direct_Reselling",
|
|
141
|
+
Newsletters: "Newsletters",
|
|
142
|
+
SocialMedia: "Social_Media",
|
|
143
|
+
Events: "Events",
|
|
144
|
+
CompanyReferrals: "Company_Referrals",
|
|
145
|
+
};
|
|
146
|
+
/** @internal */
|
|
147
|
+
exports.ListPayoutsQueryParamStatus$outboundSchema = z.nativeEnum(exports.ListPayoutsQueryParamStatus);
|
|
148
|
+
/** @internal */
|
|
149
|
+
exports.ListPayoutsQueryParamSortBy$outboundSchema = z.nativeEnum(exports.ListPayoutsQueryParamSortBy);
|
|
150
|
+
/** @internal */
|
|
151
|
+
exports.ListPayoutsQueryParamSortOrder$outboundSchema = z.nativeEnum(exports.ListPayoutsQueryParamSortOrder);
|
|
152
|
+
/** @internal */
|
|
153
|
+
exports.ListPayoutsRequest$outboundSchema = z.object({
|
|
154
|
+
status: exports.ListPayoutsQueryParamStatus$outboundSchema.optional(),
|
|
155
|
+
partnerId: z.string().optional(),
|
|
156
|
+
tenantId: z.string().optional(),
|
|
157
|
+
invoiceId: z.string().optional(),
|
|
158
|
+
sortBy: exports.ListPayoutsQueryParamSortBy$outboundSchema.default("amount"),
|
|
159
|
+
sortOrder: exports.ListPayoutsQueryParamSortOrder$outboundSchema.default("desc"),
|
|
160
|
+
page: z.number().default(1),
|
|
161
|
+
pageSize: z.number().default(100),
|
|
162
|
+
});
|
|
163
|
+
function listPayoutsRequestToJSON(listPayoutsRequest) {
|
|
164
|
+
return JSON.stringify(exports.ListPayoutsRequest$outboundSchema.parse(listPayoutsRequest));
|
|
165
|
+
}
|
|
166
|
+
/** @internal */
|
|
167
|
+
exports.ListPayoutsStatus$inboundSchema = z.nativeEnum(exports.ListPayoutsStatus);
|
|
168
|
+
/** @internal */
|
|
169
|
+
exports.ListPayoutsMode$inboundSchema = z.nativeEnum(exports.ListPayoutsMode);
|
|
170
|
+
/** @internal */
|
|
171
|
+
exports.ProfileType$inboundSchema = z
|
|
172
|
+
.nativeEnum(exports.ProfileType);
|
|
173
|
+
/** @internal */
|
|
174
|
+
exports.InvoiceSettings$inboundSchema = z.object({
|
|
175
|
+
address: z.nullable(z.string()).optional(),
|
|
176
|
+
taxId: z.nullable(z.string()).optional(),
|
|
177
|
+
});
|
|
178
|
+
function invoiceSettingsFromJSON(jsonString) {
|
|
179
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.InvoiceSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'InvoiceSettings' from JSON`);
|
|
180
|
+
}
|
|
181
|
+
/** @internal */
|
|
182
|
+
exports.MonthlyTraffic$inboundSchema = z.nativeEnum(exports.MonthlyTraffic);
|
|
183
|
+
/** @internal */
|
|
184
|
+
exports.IndustryInterests$inboundSchema = z.nativeEnum(exports.IndustryInterests);
|
|
185
|
+
/** @internal */
|
|
186
|
+
exports.PreferredEarningStructures$inboundSchema = z.nativeEnum(exports.PreferredEarningStructures);
|
|
187
|
+
/** @internal */
|
|
188
|
+
exports.SalesChannels$inboundSchema = z.nativeEnum(exports.SalesChannels);
|
|
189
|
+
/** @internal */
|
|
190
|
+
exports.ListPayoutsPartner$inboundSchema = z.object({
|
|
191
|
+
id: z.string(),
|
|
192
|
+
name: z.string(),
|
|
193
|
+
companyName: z.nullable(z.string()),
|
|
194
|
+
profileType: exports.ProfileType$inboundSchema,
|
|
195
|
+
email: z.nullable(z.string()),
|
|
196
|
+
image: z.nullable(z.string()),
|
|
197
|
+
description: z.nullable(z.string()).optional(),
|
|
198
|
+
country: z.nullable(z.string()),
|
|
199
|
+
stripeConnectId: z.nullable(z.string()),
|
|
200
|
+
paypalEmail: z.nullable(z.string()),
|
|
201
|
+
payoutsEnabledAt: z.nullable(z.string()),
|
|
202
|
+
invoiceSettings: z.nullable(z.lazy(() => exports.InvoiceSettings$inboundSchema)),
|
|
203
|
+
createdAt: z.string(),
|
|
204
|
+
discoverableAt: z.nullable(z.string()),
|
|
205
|
+
trustedAt: z.nullable(z.string()),
|
|
206
|
+
website: z.nullable(z.string()).optional(),
|
|
207
|
+
youtube: z.nullable(z.string()).optional(),
|
|
208
|
+
twitter: z.nullable(z.string()).optional(),
|
|
209
|
+
linkedin: z.nullable(z.string()).optional(),
|
|
210
|
+
instagram: z.nullable(z.string()).optional(),
|
|
211
|
+
tiktok: z.nullable(z.string()).optional(),
|
|
212
|
+
monthlyTraffic: z.nullable(exports.MonthlyTraffic$inboundSchema).optional(),
|
|
213
|
+
industryInterests: z.array(exports.IndustryInterests$inboundSchema).optional(),
|
|
214
|
+
preferredEarningStructures: z.array(exports.PreferredEarningStructures$inboundSchema)
|
|
215
|
+
.optional(),
|
|
216
|
+
salesChannels: z.array(exports.SalesChannels$inboundSchema).optional(),
|
|
217
|
+
tenantId: z.nullable(z.string()),
|
|
218
|
+
});
|
|
219
|
+
function listPayoutsPartnerFromJSON(jsonString) {
|
|
220
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPayoutsPartner$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPayoutsPartner' from JSON`);
|
|
221
|
+
}
|
|
222
|
+
/** @internal */
|
|
223
|
+
exports.User$inboundSchema = z
|
|
224
|
+
.object({
|
|
225
|
+
id: z.string(),
|
|
226
|
+
name: z.nullable(z.string()),
|
|
227
|
+
email: z.nullable(z.string()),
|
|
228
|
+
image: z.nullable(z.string()),
|
|
229
|
+
});
|
|
230
|
+
function userFromJSON(jsonString) {
|
|
231
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.User$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'User' from JSON`);
|
|
232
|
+
}
|
|
233
|
+
/** @internal */
|
|
234
|
+
exports.ListPayoutsResponseBody$inboundSchema = z.object({
|
|
235
|
+
id: z.string(),
|
|
236
|
+
invoiceId: z.nullable(z.string()),
|
|
237
|
+
amount: z.number(),
|
|
238
|
+
currency: z.string(),
|
|
239
|
+
status: exports.ListPayoutsStatus$inboundSchema,
|
|
240
|
+
description: z.nullable(z.string()).optional(),
|
|
241
|
+
periodStart: z.nullable(z.string()),
|
|
242
|
+
periodEnd: z.nullable(z.string()),
|
|
243
|
+
createdAt: z.string(),
|
|
244
|
+
initiatedAt: z.nullable(z.string()),
|
|
245
|
+
paidAt: z.nullable(z.string()),
|
|
246
|
+
failureReason: z.nullable(z.string()).optional(),
|
|
247
|
+
mode: z.nullable(exports.ListPayoutsMode$inboundSchema),
|
|
248
|
+
partner: z.lazy(() => exports.ListPayoutsPartner$inboundSchema),
|
|
249
|
+
user: z.nullable(z.lazy(() => exports.User$inboundSchema)).optional(),
|
|
250
|
+
});
|
|
251
|
+
function listPayoutsResponseBodyFromJSON(jsonString) {
|
|
252
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListPayoutsResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListPayoutsResponseBody' from JSON`);
|
|
253
|
+
}
|
|
254
|
+
//# sourceMappingURL=listpayouts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"listpayouts.js","sourceRoot":"","sources":["../../../../src/models/operations/listpayouts.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6WH,4DAMC;AA0BD,0DAQC;AAyDD,gEAQC;AAWD,oCAQC;AAyBD,0EAQC;AAxgBD,0CAA4B;AAC5B,qDAAiD;AAKjD;;GAEG;AACU,QAAA,2BAA2B,GAAG;IACzC,OAAO,EAAE,SAAS;IAClB,UAAU,EAAE,YAAY;IACxB,SAAS,EAAE,WAAW;IACtB,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,WAAW;IACtB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAQX;;GAEG;AACU,QAAA,2BAA2B,GAAG;IACzC,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,aAAa;IAC1B,MAAM,EAAE,QAAQ;CACR,CAAC;AAQX;;GAEG;AACU,QAAA,8BAA8B,GAAG;IAC5C,GAAG,EAAE,KAAK;IACV,IAAI,EAAE,MAAM;CACJ,CAAC;AA2CE,QAAA,iBAAiB,GAAG;IAC/B,OAAO,EAAE,SAAS;IACl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C,wCAAgC,CAAC;IACvD,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,0BAAkB,CAAC,CAAC,CAAC,QAAQ,EAAE;CAC9D,CAAC,CAAC;AAEH,SAAgB,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,6CAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
|
|
@@ -5,7 +5,7 @@ export declare class Bounties extends ClientSDK {
|
|
|
5
5
|
* List bounty submissions
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* List all submissions for a specific bounty.
|
|
8
|
+
* List all submissions for a specific bounty in your partner program.
|
|
9
9
|
*/
|
|
10
10
|
listSubmissions(request: operations.ListBountySubmissionsRequest, options?: RequestOptions): Promise<Array<operations.ListBountySubmissionsResponseBody>>;
|
|
11
11
|
/**
|
|
@@ -14,7 +14,7 @@ class Bounties extends sdks_js_1.ClientSDK {
|
|
|
14
14
|
* List bounty submissions
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* List all submissions for a specific bounty.
|
|
17
|
+
* List all submissions for a specific bounty in your partner program.
|
|
18
18
|
*/
|
|
19
19
|
async listSubmissions(request, options) {
|
|
20
20
|
return (0, fp_js_1.unwrapAsync)((0, bountiesListSubmissions_js_1.bountiesListSubmissions)(this, request, options));
|
|
@@ -2,10 +2,10 @@ import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
|
2
2
|
import * as operations from "../models/operations/index.js";
|
|
3
3
|
export declare class Commissions extends ClientSDK {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* List all commissions
|
|
6
6
|
*
|
|
7
7
|
* @remarks
|
|
8
|
-
* Retrieve a list of commissions for
|
|
8
|
+
* Retrieve a list of commissions for your partner program.
|
|
9
9
|
*/
|
|
10
10
|
list(request?: operations.ListCommissionsRequest | undefined, options?: RequestOptions): Promise<Array<operations.ListCommissionsResponseBody>>;
|
|
11
11
|
/**
|
|
@@ -10,10 +10,10 @@ const sdks_js_1 = require("../lib/sdks.js");
|
|
|
10
10
|
const fp_js_1 = require("../types/fp.js");
|
|
11
11
|
class Commissions extends sdks_js_1.ClientSDK {
|
|
12
12
|
/**
|
|
13
|
-
*
|
|
13
|
+
* List all commissions
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* Retrieve a list of commissions for
|
|
16
|
+
* Retrieve a list of commissions for your partner program.
|
|
17
17
|
*/
|
|
18
18
|
async list(request, options) {
|
|
19
19
|
return (0, fp_js_1.unwrapAsync)((0, commissionsList_js_1.commissionsList)(this, request, options));
|