@tolt/api 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/resources/partners/types/GetPartnerResponse.d.ts +1 -1
- package/dist/api/resources/partners/types/ListPartnersResponse.d.ts +1 -1
- package/dist/api/types/CreatedPartner.d.ts +2 -0
- package/dist/api/types/Partner.d.ts +2 -0
- package/dist/api/types/PartnerDetails.d.ts +16 -0
- package/dist/api/types/PartnerDetails.js +2 -0
- package/dist/api/types/index.d.ts +1 -0
- package/dist/api/types/index.js +1 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import type * as ToltApi from "../../../index.js";
|
|
|
2
2
|
export interface ListPartnersResponse {
|
|
3
3
|
success: boolean;
|
|
4
4
|
message: string;
|
|
5
|
-
data: ToltApi.
|
|
5
|
+
data: ToltApi.PartnerDetails[];
|
|
6
6
|
has_more: boolean;
|
|
7
7
|
/** Opaque cursor marking the last item on this page. Pass it as starting_after to continue. Null when the page is empty. */
|
|
8
8
|
next_cursor: string | null;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type * as ToltApi from "../index.js";
|
|
2
|
+
export interface PartnerDetails extends ToltApi.Partner {
|
|
3
|
+
/** Custom-field answers with their questions. Empty when no answers exist. */
|
|
4
|
+
custom_fields: PartnerDetails.CustomFields.Item[];
|
|
5
|
+
}
|
|
6
|
+
export declare namespace PartnerDetails {
|
|
7
|
+
type CustomFields = CustomFields.Item[];
|
|
8
|
+
namespace CustomFields {
|
|
9
|
+
interface Item {
|
|
10
|
+
answer_id: string;
|
|
11
|
+
answer: string | null;
|
|
12
|
+
question_id: string | null;
|
|
13
|
+
question: string | null;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -9,6 +9,7 @@ export * from "./Flow.js";
|
|
|
9
9
|
export * from "./Group.js";
|
|
10
10
|
export * from "./Link.js";
|
|
11
11
|
export * from "./Partner.js";
|
|
12
|
+
export * from "./PartnerDetails.js";
|
|
12
13
|
export * from "./Program.js";
|
|
13
14
|
export * from "./PromotionCode.js";
|
|
14
15
|
export * from "./ReportsCustomerStats.js";
|
package/dist/api/types/index.js
CHANGED
|
@@ -9,6 +9,7 @@ export * from "./Flow.js";
|
|
|
9
9
|
export * from "./Group.js";
|
|
10
10
|
export * from "./Link.js";
|
|
11
11
|
export * from "./Partner.js";
|
|
12
|
+
export * from "./PartnerDetails.js";
|
|
12
13
|
export * from "./Program.js";
|
|
13
14
|
export * from "./PromotionCode.js";
|
|
14
15
|
export * from "./ReportsCustomerStats.js";
|