dub 0.58.0 → 0.58.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/bin/mcp-server.js +67 -393
- package/bin/mcp-server.js.map +16 -16
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.d.ts +0 -172
- package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.js +1 -159
- package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/leadevent.d.ts +0 -172
- package/dist/commonjs/models/components/leadevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadevent.js +1 -156
- package/dist/commonjs/models/components/leadevent.js.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.d.ts +0 -172
- package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.js +1 -159
- package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/saleevent.d.ts +0 -172
- package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/saleevent.js +1 -157
- package/dist/commonjs/models/components/saleevent.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +4 -4
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.js +4 -4
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +4 -4
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +4 -4
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.d.ts +4 -4
- package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.js +4 -4
- package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts +0 -3
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js +0 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/commonjs/models/operations/retrievepartneranalytics.d.ts +0 -3
- package/dist/commonjs/models/operations/retrievepartneranalytics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrievepartneranalytics.js +0 -1
- package/dist/commonjs/models/operations/retrievepartneranalytics.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +4 -4
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +4 -4
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
- package/dist/commonjs/models/operations/updatepartnersale.d.ts +10 -3
- package/dist/commonjs/models/operations/updatepartnersale.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatepartnersale.js +6 -2
- package/dist/commonjs/models/operations/updatepartnersale.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/components/leadcreatedevent.d.ts +0 -172
- package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.js +0 -151
- package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
- package/dist/esm/models/components/leadevent.d.ts +0 -172
- package/dist/esm/models/components/leadevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadevent.js +0 -148
- package/dist/esm/models/components/leadevent.js.map +1 -1
- package/dist/esm/models/components/salecreatedevent.d.ts +0 -172
- package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/salecreatedevent.js +0 -151
- package/dist/esm/models/components/salecreatedevent.js.map +1 -1
- package/dist/esm/models/components/saleevent.d.ts +0 -172
- package/dist/esm/models/components/saleevent.d.ts.map +1 -1
- package/dist/esm/models/components/saleevent.js +0 -149
- package/dist/esm/models/components/saleevent.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +4 -4
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomer.js +4 -4
- package/dist/esm/models/operations/createcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +4 -4
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +4 -4
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomers.d.ts +4 -4
- package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomers.js +4 -4
- package/dist/esm/models/operations/getcustomers.js.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.d.ts +0 -3
- package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.js +0 -1
- package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/esm/models/operations/retrievepartneranalytics.d.ts +0 -3
- package/dist/esm/models/operations/retrievepartneranalytics.d.ts.map +1 -1
- package/dist/esm/models/operations/retrievepartneranalytics.js +0 -1
- package/dist/esm/models/operations/retrievepartneranalytics.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +4 -4
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +4 -4
- package/dist/esm/models/operations/updatecustomer.js.map +1 -1
- package/dist/esm/models/operations/updatepartnersale.d.ts +10 -3
- package/dist/esm/models/operations/updatepartnersale.d.ts.map +1 -1
- package/dist/esm/models/operations/updatepartnersale.js +6 -2
- package/dist/esm/models/operations/updatepartnersale.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/components/leadcreatedevent.ts +0 -315
- package/src/models/components/leadevent.ts +0 -296
- package/src/models/components/salecreatedevent.ts +0 -315
- package/src/models/components/saleevent.ts +0 -311
- package/src/models/operations/createcustomer.ts +8 -8
- package/src/models/operations/getcustomer.ts +8 -8
- package/src/models/operations/getcustomers.ts +8 -8
- package/src/models/operations/retrieveanalytics.ts +0 -1
- package/src/models/operations/retrievepartneranalytics.ts +0 -1
- package/src/models/operations/updatecustomer.ts +8 -8
- package/src/models/operations/updatepartnersale.ts +16 -5
|
@@ -53,8 +53,8 @@ export type CreateCustomerLink = {
|
|
|
53
53
|
export type CreateCustomerPartner = {
|
|
54
54
|
id: string;
|
|
55
55
|
name: string;
|
|
56
|
-
email: string;
|
|
57
|
-
image
|
|
56
|
+
email: string | null;
|
|
57
|
+
image: string | null;
|
|
58
58
|
};
|
|
59
59
|
|
|
60
60
|
export const CreateCustomerType = {
|
|
@@ -253,16 +253,16 @@ export const CreateCustomerPartner$inboundSchema: z.ZodType<
|
|
|
253
253
|
> = z.object({
|
|
254
254
|
id: z.string(),
|
|
255
255
|
name: z.string(),
|
|
256
|
-
email: z.string(),
|
|
257
|
-
image: z.nullable(z.string())
|
|
256
|
+
email: z.nullable(z.string()),
|
|
257
|
+
image: z.nullable(z.string()),
|
|
258
258
|
});
|
|
259
259
|
|
|
260
260
|
/** @internal */
|
|
261
261
|
export type CreateCustomerPartner$Outbound = {
|
|
262
262
|
id: string;
|
|
263
263
|
name: string;
|
|
264
|
-
email: string;
|
|
265
|
-
image
|
|
264
|
+
email: string | null;
|
|
265
|
+
image: string | null;
|
|
266
266
|
};
|
|
267
267
|
|
|
268
268
|
/** @internal */
|
|
@@ -273,8 +273,8 @@ export const CreateCustomerPartner$outboundSchema: z.ZodType<
|
|
|
273
273
|
> = z.object({
|
|
274
274
|
id: z.string(),
|
|
275
275
|
name: z.string(),
|
|
276
|
-
email: z.string(),
|
|
277
|
-
image: z.nullable(z.string())
|
|
276
|
+
email: z.nullable(z.string()),
|
|
277
|
+
image: z.nullable(z.string()),
|
|
278
278
|
});
|
|
279
279
|
|
|
280
280
|
/**
|
|
@@ -45,8 +45,8 @@ export type GetCustomerLink = {
|
|
|
45
45
|
export type GetCustomerPartner = {
|
|
46
46
|
id: string;
|
|
47
47
|
name: string;
|
|
48
|
-
email: string;
|
|
49
|
-
image
|
|
48
|
+
email: string | null;
|
|
49
|
+
image: string | null;
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
export const GetCustomerType = {
|
|
@@ -237,16 +237,16 @@ export const GetCustomerPartner$inboundSchema: z.ZodType<
|
|
|
237
237
|
> = z.object({
|
|
238
238
|
id: z.string(),
|
|
239
239
|
name: z.string(),
|
|
240
|
-
email: z.string(),
|
|
241
|
-
image: z.nullable(z.string())
|
|
240
|
+
email: z.nullable(z.string()),
|
|
241
|
+
image: z.nullable(z.string()),
|
|
242
242
|
});
|
|
243
243
|
|
|
244
244
|
/** @internal */
|
|
245
245
|
export type GetCustomerPartner$Outbound = {
|
|
246
246
|
id: string;
|
|
247
247
|
name: string;
|
|
248
|
-
email: string;
|
|
249
|
-
image
|
|
248
|
+
email: string | null;
|
|
249
|
+
image: string | null;
|
|
250
250
|
};
|
|
251
251
|
|
|
252
252
|
/** @internal */
|
|
@@ -257,8 +257,8 @@ export const GetCustomerPartner$outboundSchema: z.ZodType<
|
|
|
257
257
|
> = z.object({
|
|
258
258
|
id: z.string(),
|
|
259
259
|
name: z.string(),
|
|
260
|
-
email: z.string(),
|
|
261
|
-
image: z.nullable(z.string())
|
|
260
|
+
email: z.nullable(z.string()),
|
|
261
|
+
image: z.nullable(z.string()),
|
|
262
262
|
});
|
|
263
263
|
|
|
264
264
|
/**
|
|
@@ -49,8 +49,8 @@ export type Link = {
|
|
|
49
49
|
export type GetCustomersPartner = {
|
|
50
50
|
id: string;
|
|
51
51
|
name: string;
|
|
52
|
-
email: string;
|
|
53
|
-
image
|
|
52
|
+
email: string | null;
|
|
53
|
+
image: string | null;
|
|
54
54
|
};
|
|
55
55
|
|
|
56
56
|
export const Type = {
|
|
@@ -233,16 +233,16 @@ export const GetCustomersPartner$inboundSchema: z.ZodType<
|
|
|
233
233
|
> = z.object({
|
|
234
234
|
id: z.string(),
|
|
235
235
|
name: z.string(),
|
|
236
|
-
email: z.string(),
|
|
237
|
-
image: z.nullable(z.string())
|
|
236
|
+
email: z.nullable(z.string()),
|
|
237
|
+
image: z.nullable(z.string()),
|
|
238
238
|
});
|
|
239
239
|
|
|
240
240
|
/** @internal */
|
|
241
241
|
export type GetCustomersPartner$Outbound = {
|
|
242
242
|
id: string;
|
|
243
243
|
name: string;
|
|
244
|
-
email: string;
|
|
245
|
-
image
|
|
244
|
+
email: string | null;
|
|
245
|
+
image: string | null;
|
|
246
246
|
};
|
|
247
247
|
|
|
248
248
|
/** @internal */
|
|
@@ -253,8 +253,8 @@ export const GetCustomersPartner$outboundSchema: z.ZodType<
|
|
|
253
253
|
> = z.object({
|
|
254
254
|
id: z.string(),
|
|
255
255
|
name: z.string(),
|
|
256
|
-
email: z.string(),
|
|
257
|
-
image: z.nullable(z.string())
|
|
256
|
+
email: z.nullable(z.string()),
|
|
257
|
+
image: z.nullable(z.string()),
|
|
258
258
|
});
|
|
259
259
|
|
|
260
260
|
/**
|
|
@@ -66,8 +66,8 @@ export type UpdateCustomerLink = {
|
|
|
66
66
|
export type UpdateCustomerPartner = {
|
|
67
67
|
id: string;
|
|
68
68
|
name: string;
|
|
69
|
-
email: string;
|
|
70
|
-
image
|
|
69
|
+
email: string | null;
|
|
70
|
+
image: string | null;
|
|
71
71
|
};
|
|
72
72
|
|
|
73
73
|
export const UpdateCustomerType = {
|
|
@@ -335,16 +335,16 @@ export const UpdateCustomerPartner$inboundSchema: z.ZodType<
|
|
|
335
335
|
> = z.object({
|
|
336
336
|
id: z.string(),
|
|
337
337
|
name: z.string(),
|
|
338
|
-
email: z.string(),
|
|
339
|
-
image: z.nullable(z.string())
|
|
338
|
+
email: z.nullable(z.string()),
|
|
339
|
+
image: z.nullable(z.string()),
|
|
340
340
|
});
|
|
341
341
|
|
|
342
342
|
/** @internal */
|
|
343
343
|
export type UpdateCustomerPartner$Outbound = {
|
|
344
344
|
id: string;
|
|
345
345
|
name: string;
|
|
346
|
-
email: string;
|
|
347
|
-
image
|
|
346
|
+
email: string | null;
|
|
347
|
+
image: string | null;
|
|
348
348
|
};
|
|
349
349
|
|
|
350
350
|
/** @internal */
|
|
@@ -355,8 +355,8 @@ export const UpdateCustomerPartner$outboundSchema: z.ZodType<
|
|
|
355
355
|
> = z.object({
|
|
356
356
|
id: z.string(),
|
|
357
357
|
name: z.string(),
|
|
358
|
-
email: z.string(),
|
|
359
|
-
image: z.nullable(z.string())
|
|
358
|
+
email: z.nullable(z.string()),
|
|
359
|
+
image: z.nullable(z.string()),
|
|
360
360
|
});
|
|
361
361
|
|
|
362
362
|
/**
|
|
@@ -12,9 +12,13 @@ export type UpdatePartnerSaleRequestBody = {
|
|
|
12
12
|
programId: string;
|
|
13
13
|
invoiceId: string;
|
|
14
14
|
/**
|
|
15
|
-
* The new amount for the sale.
|
|
15
|
+
* The new absolute amount for the sale.
|
|
16
16
|
*/
|
|
17
|
-
amount
|
|
17
|
+
amount?: number | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Modify the current sale amount: use positive values to increase the amount, negative values to decrease it.
|
|
20
|
+
*/
|
|
21
|
+
modifyAmount?: number | undefined;
|
|
18
22
|
};
|
|
19
23
|
|
|
20
24
|
export const UpdatePartnerSaleStatus = {
|
|
@@ -38,6 +42,7 @@ export type UpdatePartnerSaleResponseBody = {
|
|
|
38
42
|
earnings: number;
|
|
39
43
|
currency: string;
|
|
40
44
|
status: UpdatePartnerSaleStatus;
|
|
45
|
+
invoiceId?: string | null | undefined;
|
|
41
46
|
createdAt: string;
|
|
42
47
|
updatedAt: string;
|
|
43
48
|
};
|
|
@@ -50,14 +55,16 @@ export const UpdatePartnerSaleRequestBody$inboundSchema: z.ZodType<
|
|
|
50
55
|
> = z.object({
|
|
51
56
|
programId: z.string(),
|
|
52
57
|
invoiceId: z.string(),
|
|
53
|
-
amount: z.number(),
|
|
58
|
+
amount: z.number().optional(),
|
|
59
|
+
modifyAmount: z.number().optional(),
|
|
54
60
|
});
|
|
55
61
|
|
|
56
62
|
/** @internal */
|
|
57
63
|
export type UpdatePartnerSaleRequestBody$Outbound = {
|
|
58
64
|
programId: string;
|
|
59
65
|
invoiceId: string;
|
|
60
|
-
amount
|
|
66
|
+
amount?: number | undefined;
|
|
67
|
+
modifyAmount?: number | undefined;
|
|
61
68
|
};
|
|
62
69
|
|
|
63
70
|
/** @internal */
|
|
@@ -68,7 +75,8 @@ export const UpdatePartnerSaleRequestBody$outboundSchema: z.ZodType<
|
|
|
68
75
|
> = z.object({
|
|
69
76
|
programId: z.string(),
|
|
70
77
|
invoiceId: z.string(),
|
|
71
|
-
amount: z.number(),
|
|
78
|
+
amount: z.number().optional(),
|
|
79
|
+
modifyAmount: z.number().optional(),
|
|
72
80
|
});
|
|
73
81
|
|
|
74
82
|
/**
|
|
@@ -136,6 +144,7 @@ export const UpdatePartnerSaleResponseBody$inboundSchema: z.ZodType<
|
|
|
136
144
|
earnings: z.number(),
|
|
137
145
|
currency: z.string(),
|
|
138
146
|
status: UpdatePartnerSaleStatus$inboundSchema,
|
|
147
|
+
invoiceId: z.nullable(z.string()).optional(),
|
|
139
148
|
createdAt: z.string(),
|
|
140
149
|
updatedAt: z.string(),
|
|
141
150
|
});
|
|
@@ -147,6 +156,7 @@ export type UpdatePartnerSaleResponseBody$Outbound = {
|
|
|
147
156
|
earnings: number;
|
|
148
157
|
currency: string;
|
|
149
158
|
status: string;
|
|
159
|
+
invoiceId?: string | null | undefined;
|
|
150
160
|
createdAt: string;
|
|
151
161
|
updatedAt: string;
|
|
152
162
|
};
|
|
@@ -162,6 +172,7 @@ export const UpdatePartnerSaleResponseBody$outboundSchema: z.ZodType<
|
|
|
162
172
|
earnings: z.number(),
|
|
163
173
|
currency: z.string(),
|
|
164
174
|
status: UpdatePartnerSaleStatus$outboundSchema,
|
|
175
|
+
invoiceId: z.nullable(z.string()).optional(),
|
|
165
176
|
createdAt: z.string(),
|
|
166
177
|
updatedAt: z.string(),
|
|
167
178
|
});
|