dub 0.61.11 → 0.61.12
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 +90 -16
- package/bin/mcp-server.js.map +16 -16
- package/dist/commonjs/funcs/customersList.js +4 -0
- package/dist/commonjs/funcs/customersList.js.map +1 -1
- package/dist/commonjs/funcs/linksCount.js +5 -4
- package/dist/commonjs/funcs/linksCount.js.map +1 -1
- package/dist/commonjs/funcs/linksList.js +5 -4
- package/dist/commonjs/funcs/linksList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/lib/config.js.map +1 -1
- 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 +10 -0
- package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.js +4 -0
- package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/leadevent.d.ts +10 -0
- package/dist/commonjs/models/components/leadevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadevent.js +4 -0
- package/dist/commonjs/models/components/leadevent.js.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.d.ts +10 -0
- package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.js +4 -0
- package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/saleevent.d.ts +10 -0
- package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/saleevent.js +4 -0
- package/dist/commonjs/models/components/saleevent.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +15 -0
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.js +6 -0
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +15 -0
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +6 -0
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.d.ts +97 -0
- package/dist/commonjs/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomers.js +59 -1
- package/dist/commonjs/models/operations/getcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +15 -0
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +6 -0
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
- package/dist/esm/funcs/customersList.js +4 -0
- package/dist/esm/funcs/customersList.js.map +1 -1
- package/dist/esm/funcs/linksCount.js +6 -5
- package/dist/esm/funcs/linksCount.js.map +1 -1
- package/dist/esm/funcs/linksList.js +6 -5
- package/dist/esm/funcs/linksList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/lib/config.js.map +1 -1
- 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 +10 -0
- package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.js +4 -0
- package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
- package/dist/esm/models/components/leadevent.d.ts +10 -0
- package/dist/esm/models/components/leadevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadevent.js +4 -0
- package/dist/esm/models/components/leadevent.js.map +1 -1
- package/dist/esm/models/components/salecreatedevent.d.ts +10 -0
- package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/salecreatedevent.js +4 -0
- package/dist/esm/models/components/salecreatedevent.js.map +1 -1
- package/dist/esm/models/components/saleevent.d.ts +10 -0
- package/dist/esm/models/components/saleevent.d.ts.map +1 -1
- package/dist/esm/models/components/saleevent.js +4 -0
- package/dist/esm/models/components/saleevent.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +15 -0
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomer.js +6 -0
- package/dist/esm/models/operations/createcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +15 -0
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +6 -0
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getcustomers.d.ts +97 -0
- package/dist/esm/models/operations/getcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomers.js +58 -0
- package/dist/esm/models/operations/getcustomers.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +15 -0
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +6 -0
- package/dist/esm/models/operations/updatecustomer.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/customersList.ts +4 -0
- package/src/funcs/linksCount.ts +18 -14
- package/src/funcs/linksList.ts +22 -18
- 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 +14 -0
- package/src/models/components/leadevent.ts +14 -0
- package/src/models/components/salecreatedevent.ts +14 -0
- package/src/models/components/saleevent.ts +14 -0
- package/src/models/operations/createcustomer.ts +21 -0
- package/src/models/operations/getcustomer.ts +21 -0
- package/src/models/operations/getcustomers.ts +119 -0
- package/src/models/operations/updatecustomer.ts +21 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34241,9 +34241,9 @@ var init_config = __esm(() => {
|
|
|
34241
34241
|
SDK_METADATA = {
|
|
34242
34242
|
language: "typescript",
|
|
34243
34243
|
openapiDocVersion: "0.0.1",
|
|
34244
|
-
sdkVersion: "0.61.
|
|
34245
|
-
genVersion: "2.
|
|
34246
|
-
userAgent: "speakeasy-sdk/typescript 0.61.
|
|
34244
|
+
sdkVersion: "0.61.12",
|
|
34245
|
+
genVersion: "2.598.21",
|
|
34246
|
+
userAgent: "speakeasy-sdk/typescript 0.61.12 2.598.21 0.0.1 dub"
|
|
34247
34247
|
};
|
|
34248
34248
|
});
|
|
34249
34249
|
|
|
@@ -39052,6 +39052,8 @@ var init_leadcreatedevent = __esm(() => {
|
|
|
39052
39052
|
email: nullableType(stringType()).optional(),
|
|
39053
39053
|
avatar: nullableType(stringType()).optional(),
|
|
39054
39054
|
country: nullableType(stringType()).optional(),
|
|
39055
|
+
sales: nullableType(numberType()).optional(),
|
|
39056
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
39055
39057
|
createdAt: stringType()
|
|
39056
39058
|
});
|
|
39057
39059
|
LeadCreatedEventCustomer$outboundSchema = objectType({
|
|
@@ -39061,6 +39063,8 @@ var init_leadcreatedevent = __esm(() => {
|
|
|
39061
39063
|
email: nullableType(stringType()).optional(),
|
|
39062
39064
|
avatar: nullableType(stringType()).optional(),
|
|
39063
39065
|
country: nullableType(stringType()).optional(),
|
|
39066
|
+
sales: nullableType(numberType()).optional(),
|
|
39067
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
39064
39068
|
createdAt: stringType()
|
|
39065
39069
|
});
|
|
39066
39070
|
((LeadCreatedEventCustomer$) => {
|
|
@@ -41491,6 +41495,8 @@ var init_leadevent = __esm(() => {
|
|
|
41491
41495
|
email: nullableType(stringType()).optional(),
|
|
41492
41496
|
avatar: nullableType(stringType()).optional(),
|
|
41493
41497
|
country: nullableType(stringType()).optional(),
|
|
41498
|
+
sales: nullableType(numberType()).optional(),
|
|
41499
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
41494
41500
|
createdAt: stringType()
|
|
41495
41501
|
});
|
|
41496
41502
|
Customer$outboundSchema = objectType({
|
|
@@ -41500,6 +41506,8 @@ var init_leadevent = __esm(() => {
|
|
|
41500
41506
|
email: nullableType(stringType()).optional(),
|
|
41501
41507
|
avatar: nullableType(stringType()).optional(),
|
|
41502
41508
|
country: nullableType(stringType()).optional(),
|
|
41509
|
+
sales: nullableType(numberType()).optional(),
|
|
41510
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
41503
41511
|
createdAt: stringType()
|
|
41504
41512
|
});
|
|
41505
41513
|
((Customer$) => {
|
|
@@ -46453,6 +46461,8 @@ var init_salecreatedevent = __esm(() => {
|
|
|
46453
46461
|
email: nullableType(stringType()).optional(),
|
|
46454
46462
|
avatar: nullableType(stringType()).optional(),
|
|
46455
46463
|
country: nullableType(stringType()).optional(),
|
|
46464
|
+
sales: nullableType(numberType()).optional(),
|
|
46465
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
46456
46466
|
createdAt: stringType()
|
|
46457
46467
|
});
|
|
46458
46468
|
SaleCreatedEventCustomer$outboundSchema = objectType({
|
|
@@ -46462,6 +46472,8 @@ var init_salecreatedevent = __esm(() => {
|
|
|
46462
46472
|
email: nullableType(stringType()).optional(),
|
|
46463
46473
|
avatar: nullableType(stringType()).optional(),
|
|
46464
46474
|
country: nullableType(stringType()).optional(),
|
|
46475
|
+
sales: nullableType(numberType()).optional(),
|
|
46476
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
46465
46477
|
createdAt: stringType()
|
|
46466
46478
|
});
|
|
46467
46479
|
((SaleCreatedEventCustomer$) => {
|
|
@@ -48917,6 +48929,8 @@ var init_saleevent = __esm(() => {
|
|
|
48917
48929
|
email: nullableType(stringType()).optional(),
|
|
48918
48930
|
avatar: nullableType(stringType()).optional(),
|
|
48919
48931
|
country: nullableType(stringType()).optional(),
|
|
48932
|
+
sales: nullableType(numberType()).optional(),
|
|
48933
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
48920
48934
|
createdAt: stringType()
|
|
48921
48935
|
});
|
|
48922
48936
|
SaleEventCustomer$outboundSchema = objectType({
|
|
@@ -48926,6 +48940,8 @@ var init_saleevent = __esm(() => {
|
|
|
48926
48940
|
email: nullableType(stringType()).optional(),
|
|
48927
48941
|
avatar: nullableType(stringType()).optional(),
|
|
48928
48942
|
country: nullableType(stringType()).optional(),
|
|
48943
|
+
sales: nullableType(numberType()).optional(),
|
|
48944
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
48929
48945
|
createdAt: stringType()
|
|
48930
48946
|
});
|
|
48931
48947
|
((SaleEventCustomer$) => {
|
|
@@ -49582,6 +49598,7 @@ var init_createcustomer = __esm(() => {
|
|
|
49582
49598
|
domain: stringType(),
|
|
49583
49599
|
key: stringType(),
|
|
49584
49600
|
shortLink: stringType(),
|
|
49601
|
+
url: stringType(),
|
|
49585
49602
|
programId: nullableType(stringType())
|
|
49586
49603
|
});
|
|
49587
49604
|
CreateCustomerLink$outboundSchema = objectType({
|
|
@@ -49589,6 +49606,7 @@ var init_createcustomer = __esm(() => {
|
|
|
49589
49606
|
domain: stringType(),
|
|
49590
49607
|
key: stringType(),
|
|
49591
49608
|
shortLink: stringType(),
|
|
49609
|
+
url: stringType(),
|
|
49592
49610
|
programId: nullableType(stringType())
|
|
49593
49611
|
});
|
|
49594
49612
|
((CreateCustomerLink$) => {
|
|
@@ -49648,6 +49666,8 @@ var init_createcustomer = __esm(() => {
|
|
|
49648
49666
|
email: nullableType(stringType()).optional(),
|
|
49649
49667
|
avatar: nullableType(stringType()).optional(),
|
|
49650
49668
|
country: nullableType(stringType()).optional(),
|
|
49669
|
+
sales: nullableType(numberType()).optional(),
|
|
49670
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
49651
49671
|
createdAt: stringType(),
|
|
49652
49672
|
link: nullableType(lazyType(() => CreateCustomerLink$inboundSchema)).optional(),
|
|
49653
49673
|
programId: nullableType(stringType()).optional(),
|
|
@@ -49661,6 +49681,8 @@ var init_createcustomer = __esm(() => {
|
|
|
49661
49681
|
email: nullableType(stringType()).optional(),
|
|
49662
49682
|
avatar: nullableType(stringType()).optional(),
|
|
49663
49683
|
country: nullableType(stringType()).optional(),
|
|
49684
|
+
sales: nullableType(numberType()).optional(),
|
|
49685
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
49664
49686
|
createdAt: stringType(),
|
|
49665
49687
|
link: nullableType(lazyType(() => CreateCustomerLink$outboundSchema)).optional(),
|
|
49666
49688
|
programId: nullableType(stringType()).optional(),
|
|
@@ -51098,6 +51120,7 @@ var init_getcustomer = __esm(() => {
|
|
|
51098
51120
|
domain: stringType(),
|
|
51099
51121
|
key: stringType(),
|
|
51100
51122
|
shortLink: stringType(),
|
|
51123
|
+
url: stringType(),
|
|
51101
51124
|
programId: nullableType(stringType())
|
|
51102
51125
|
});
|
|
51103
51126
|
GetCustomerLink$outboundSchema = objectType({
|
|
@@ -51105,6 +51128,7 @@ var init_getcustomer = __esm(() => {
|
|
|
51105
51128
|
domain: stringType(),
|
|
51106
51129
|
key: stringType(),
|
|
51107
51130
|
shortLink: stringType(),
|
|
51131
|
+
url: stringType(),
|
|
51108
51132
|
programId: nullableType(stringType())
|
|
51109
51133
|
});
|
|
51110
51134
|
((GetCustomerLink$) => {
|
|
@@ -51164,6 +51188,8 @@ var init_getcustomer = __esm(() => {
|
|
|
51164
51188
|
email: nullableType(stringType()).optional(),
|
|
51165
51189
|
avatar: nullableType(stringType()).optional(),
|
|
51166
51190
|
country: nullableType(stringType()).optional(),
|
|
51191
|
+
sales: nullableType(numberType()).optional(),
|
|
51192
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
51167
51193
|
createdAt: stringType(),
|
|
51168
51194
|
link: nullableType(lazyType(() => GetCustomerLink$inboundSchema)).optional(),
|
|
51169
51195
|
programId: nullableType(stringType()).optional(),
|
|
@@ -51177,6 +51203,8 @@ var init_getcustomer = __esm(() => {
|
|
|
51177
51203
|
email: nullableType(stringType()).optional(),
|
|
51178
51204
|
avatar: nullableType(stringType()).optional(),
|
|
51179
51205
|
country: nullableType(stringType()).optional(),
|
|
51206
|
+
sales: nullableType(numberType()).optional(),
|
|
51207
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
51180
51208
|
createdAt: stringType(),
|
|
51181
51209
|
link: nullableType(lazyType(() => GetCustomerLink$outboundSchema)).optional(),
|
|
51182
51210
|
programId: nullableType(stringType()).optional(),
|
|
@@ -51190,18 +51218,42 @@ var init_getcustomer = __esm(() => {
|
|
|
51190
51218
|
});
|
|
51191
51219
|
|
|
51192
51220
|
// src/models/operations/getcustomers.ts
|
|
51193
|
-
var GetCustomersType, GetCustomersRequest$inboundSchema, GetCustomersRequest$outboundSchema, GetCustomersRequest$, GetCustomersLink$inboundSchema, GetCustomersLink$outboundSchema, GetCustomersLink$, GetCustomersPartner$inboundSchema, GetCustomersPartner$outboundSchema, GetCustomersPartner$, GetCustomersType$inboundSchema, GetCustomersType$outboundSchema, GetCustomersType$, Discount$inboundSchema, Discount$outboundSchema, Discount$, GetCustomersResponseBody$inboundSchema, GetCustomersResponseBody$outboundSchema, GetCustomersResponseBody$;
|
|
51221
|
+
var GetCustomersQueryParamSortBy, GetCustomersQueryParamSortOrder, GetCustomersType, GetCustomersQueryParamSortBy$inboundSchema, GetCustomersQueryParamSortBy$outboundSchema, GetCustomersQueryParamSortBy$, GetCustomersQueryParamSortOrder$inboundSchema, GetCustomersQueryParamSortOrder$outboundSchema, GetCustomersQueryParamSortOrder$, GetCustomersRequest$inboundSchema, GetCustomersRequest$outboundSchema, GetCustomersRequest$, GetCustomersLink$inboundSchema, GetCustomersLink$outboundSchema, GetCustomersLink$, GetCustomersPartner$inboundSchema, GetCustomersPartner$outboundSchema, GetCustomersPartner$, GetCustomersType$inboundSchema, GetCustomersType$outboundSchema, GetCustomersType$, Discount$inboundSchema, Discount$outboundSchema, Discount$, GetCustomersResponseBody$inboundSchema, GetCustomersResponseBody$outboundSchema, GetCustomersResponseBody$;
|
|
51194
51222
|
var init_getcustomers = __esm(() => {
|
|
51195
51223
|
init_lib();
|
|
51224
|
+
GetCustomersQueryParamSortBy = {
|
|
51225
|
+
CreatedAt: "createdAt",
|
|
51226
|
+
SaleAmount: "saleAmount"
|
|
51227
|
+
};
|
|
51228
|
+
GetCustomersQueryParamSortOrder = {
|
|
51229
|
+
Asc: "asc",
|
|
51230
|
+
Desc: "desc"
|
|
51231
|
+
};
|
|
51196
51232
|
GetCustomersType = {
|
|
51197
51233
|
Percentage: "percentage",
|
|
51198
51234
|
Flat: "flat"
|
|
51199
51235
|
};
|
|
51236
|
+
GetCustomersQueryParamSortBy$inboundSchema = nativeEnumType(GetCustomersQueryParamSortBy);
|
|
51237
|
+
GetCustomersQueryParamSortBy$outboundSchema = GetCustomersQueryParamSortBy$inboundSchema;
|
|
51238
|
+
((GetCustomersQueryParamSortBy$) => {
|
|
51239
|
+
GetCustomersQueryParamSortBy$.inboundSchema = GetCustomersQueryParamSortBy$inboundSchema;
|
|
51240
|
+
GetCustomersQueryParamSortBy$.outboundSchema = GetCustomersQueryParamSortBy$outboundSchema;
|
|
51241
|
+
})(GetCustomersQueryParamSortBy$ ||= {});
|
|
51242
|
+
GetCustomersQueryParamSortOrder$inboundSchema = nativeEnumType(GetCustomersQueryParamSortOrder);
|
|
51243
|
+
GetCustomersQueryParamSortOrder$outboundSchema = GetCustomersQueryParamSortOrder$inboundSchema;
|
|
51244
|
+
((GetCustomersQueryParamSortOrder$) => {
|
|
51245
|
+
GetCustomersQueryParamSortOrder$.inboundSchema = GetCustomersQueryParamSortOrder$inboundSchema;
|
|
51246
|
+
GetCustomersQueryParamSortOrder$.outboundSchema = GetCustomersQueryParamSortOrder$outboundSchema;
|
|
51247
|
+
})(GetCustomersQueryParamSortOrder$ ||= {});
|
|
51200
51248
|
GetCustomersRequest$inboundSchema = objectType({
|
|
51201
51249
|
email: stringType().optional(),
|
|
51202
51250
|
externalId: stringType().optional(),
|
|
51203
51251
|
search: stringType().optional(),
|
|
51252
|
+
country: stringType().optional(),
|
|
51253
|
+
linkId: stringType().optional(),
|
|
51204
51254
|
includeExpandedFields: booleanType().optional(),
|
|
51255
|
+
sortBy: GetCustomersQueryParamSortBy$inboundSchema.default("createdAt"),
|
|
51256
|
+
sortOrder: GetCustomersQueryParamSortOrder$inboundSchema.default("desc"),
|
|
51205
51257
|
page: numberType().default(1),
|
|
51206
51258
|
pageSize: numberType().default(100)
|
|
51207
51259
|
});
|
|
@@ -51209,7 +51261,11 @@ var init_getcustomers = __esm(() => {
|
|
|
51209
51261
|
email: stringType().optional(),
|
|
51210
51262
|
externalId: stringType().optional(),
|
|
51211
51263
|
search: stringType().optional(),
|
|
51264
|
+
country: stringType().optional(),
|
|
51265
|
+
linkId: stringType().optional(),
|
|
51212
51266
|
includeExpandedFields: booleanType().optional(),
|
|
51267
|
+
sortBy: GetCustomersQueryParamSortBy$outboundSchema.default("createdAt"),
|
|
51268
|
+
sortOrder: GetCustomersQueryParamSortOrder$outboundSchema.default("desc"),
|
|
51213
51269
|
page: numberType().default(1),
|
|
51214
51270
|
pageSize: numberType().default(100)
|
|
51215
51271
|
});
|
|
@@ -51222,6 +51278,7 @@ var init_getcustomers = __esm(() => {
|
|
|
51222
51278
|
domain: stringType(),
|
|
51223
51279
|
key: stringType(),
|
|
51224
51280
|
shortLink: stringType(),
|
|
51281
|
+
url: stringType(),
|
|
51225
51282
|
programId: nullableType(stringType())
|
|
51226
51283
|
});
|
|
51227
51284
|
GetCustomersLink$outboundSchema = objectType({
|
|
@@ -51229,6 +51286,7 @@ var init_getcustomers = __esm(() => {
|
|
|
51229
51286
|
domain: stringType(),
|
|
51230
51287
|
key: stringType(),
|
|
51231
51288
|
shortLink: stringType(),
|
|
51289
|
+
url: stringType(),
|
|
51232
51290
|
programId: nullableType(stringType())
|
|
51233
51291
|
});
|
|
51234
51292
|
((GetCustomersLink$) => {
|
|
@@ -51288,6 +51346,8 @@ var init_getcustomers = __esm(() => {
|
|
|
51288
51346
|
email: nullableType(stringType()).optional(),
|
|
51289
51347
|
avatar: nullableType(stringType()).optional(),
|
|
51290
51348
|
country: nullableType(stringType()).optional(),
|
|
51349
|
+
sales: nullableType(numberType()).optional(),
|
|
51350
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
51291
51351
|
createdAt: stringType(),
|
|
51292
51352
|
link: nullableType(lazyType(() => GetCustomersLink$inboundSchema)).optional(),
|
|
51293
51353
|
programId: nullableType(stringType()).optional(),
|
|
@@ -51301,6 +51361,8 @@ var init_getcustomers = __esm(() => {
|
|
|
51301
51361
|
email: nullableType(stringType()).optional(),
|
|
51302
51362
|
avatar: nullableType(stringType()).optional(),
|
|
51303
51363
|
country: nullableType(stringType()).optional(),
|
|
51364
|
+
sales: nullableType(numberType()).optional(),
|
|
51365
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
51304
51366
|
createdAt: stringType(),
|
|
51305
51367
|
link: nullableType(lazyType(() => GetCustomersLink$outboundSchema)).optional(),
|
|
51306
51368
|
programId: nullableType(stringType()).optional(),
|
|
@@ -52495,6 +52557,7 @@ var init_updatecustomer = __esm(() => {
|
|
|
52495
52557
|
domain: stringType(),
|
|
52496
52558
|
key: stringType(),
|
|
52497
52559
|
shortLink: stringType(),
|
|
52560
|
+
url: stringType(),
|
|
52498
52561
|
programId: nullableType(stringType())
|
|
52499
52562
|
});
|
|
52500
52563
|
UpdateCustomerLink$outboundSchema = objectType({
|
|
@@ -52502,6 +52565,7 @@ var init_updatecustomer = __esm(() => {
|
|
|
52502
52565
|
domain: stringType(),
|
|
52503
52566
|
key: stringType(),
|
|
52504
52567
|
shortLink: stringType(),
|
|
52568
|
+
url: stringType(),
|
|
52505
52569
|
programId: nullableType(stringType())
|
|
52506
52570
|
});
|
|
52507
52571
|
((UpdateCustomerLink$) => {
|
|
@@ -52561,6 +52625,8 @@ var init_updatecustomer = __esm(() => {
|
|
|
52561
52625
|
email: nullableType(stringType()).optional(),
|
|
52562
52626
|
avatar: nullableType(stringType()).optional(),
|
|
52563
52627
|
country: nullableType(stringType()).optional(),
|
|
52628
|
+
sales: nullableType(numberType()).optional(),
|
|
52629
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
52564
52630
|
createdAt: stringType(),
|
|
52565
52631
|
link: nullableType(lazyType(() => UpdateCustomerLink$inboundSchema)).optional(),
|
|
52566
52632
|
programId: nullableType(stringType()).optional(),
|
|
@@ -52574,6 +52640,8 @@ var init_updatecustomer = __esm(() => {
|
|
|
52574
52640
|
email: nullableType(stringType()).optional(),
|
|
52575
52641
|
avatar: nullableType(stringType()).optional(),
|
|
52576
52642
|
country: nullableType(stringType()).optional(),
|
|
52643
|
+
sales: nullableType(numberType()).optional(),
|
|
52644
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
52577
52645
|
createdAt: stringType(),
|
|
52578
52646
|
link: nullableType(lazyType(() => UpdateCustomerLink$outboundSchema)).optional(),
|
|
52579
52647
|
programId: nullableType(stringType()).optional(),
|
|
@@ -53876,12 +53944,16 @@ async function $do5(client, request, options) {
|
|
|
53876
53944
|
const body = null;
|
|
53877
53945
|
const path = pathToFunc("/customers")();
|
|
53878
53946
|
const query = encodeFormQuery({
|
|
53947
|
+
country: payload?.country,
|
|
53879
53948
|
email: payload?.email,
|
|
53880
53949
|
externalId: payload?.externalId,
|
|
53881
53950
|
includeExpandedFields: payload?.includeExpandedFields,
|
|
53951
|
+
linkId: payload?.linkId,
|
|
53882
53952
|
page: payload?.page,
|
|
53883
53953
|
pageSize: payload?.pageSize,
|
|
53884
|
-
search: payload?.search
|
|
53954
|
+
search: payload?.search,
|
|
53955
|
+
sortBy: payload?.sortBy,
|
|
53956
|
+
sortOrder: payload?.sortOrder
|
|
53885
53957
|
});
|
|
53886
53958
|
const headers = new Headers(compactMap({
|
|
53887
53959
|
Accept: "application/json"
|
|
@@ -55414,19 +55486,20 @@ async function $do17(client, request, options) {
|
|
|
55414
55486
|
const payload = parsed.value;
|
|
55415
55487
|
const body = null;
|
|
55416
55488
|
const path = pathToFunc("/links/count")();
|
|
55417
|
-
const query = encodeFormQuery({
|
|
55489
|
+
const query = queryJoin(encodeFormQuery({
|
|
55490
|
+
tagIds: payload?.tagIds,
|
|
55491
|
+
tagNames: payload?.tagNames
|
|
55492
|
+
}, { explode: false }), encodeFormQuery({
|
|
55418
55493
|
domain: payload?.domain,
|
|
55419
55494
|
folderId: payload?.folderId,
|
|
55420
55495
|
groupBy: payload?.groupBy,
|
|
55421
55496
|
search: payload?.search,
|
|
55422
55497
|
showArchived: payload?.showArchived,
|
|
55423
55498
|
tagId: payload?.tagId,
|
|
55424
|
-
tagIds: payload?.tagIds,
|
|
55425
|
-
tagNames: payload?.tagNames,
|
|
55426
55499
|
tenantId: payload?.tenantId,
|
|
55427
55500
|
userId: payload?.userId,
|
|
55428
55501
|
withTags: payload?.withTags
|
|
55429
|
-
});
|
|
55502
|
+
}));
|
|
55430
55503
|
const headers = new Headers(compactMap({
|
|
55431
55504
|
Accept: "application/json"
|
|
55432
55505
|
}));
|
|
@@ -56127,7 +56200,10 @@ async function $do23(client, request, options) {
|
|
|
56127
56200
|
const payload = parsed.value;
|
|
56128
56201
|
const body = null;
|
|
56129
56202
|
const path = pathToFunc("/links")();
|
|
56130
|
-
const query = encodeFormQuery({
|
|
56203
|
+
const query = queryJoin(encodeFormQuery({
|
|
56204
|
+
tagIds: payload?.tagIds,
|
|
56205
|
+
tagNames: payload?.tagNames
|
|
56206
|
+
}, { explode: false }), encodeFormQuery({
|
|
56131
56207
|
domain: payload?.domain,
|
|
56132
56208
|
folderId: payload?.folderId,
|
|
56133
56209
|
page: payload?.page,
|
|
@@ -56138,12 +56214,10 @@ async function $do23(client, request, options) {
|
|
|
56138
56214
|
sortBy: payload?.sortBy,
|
|
56139
56215
|
sortOrder: payload?.sortOrder,
|
|
56140
56216
|
tagId: payload?.tagId,
|
|
56141
|
-
tagIds: payload?.tagIds,
|
|
56142
|
-
tagNames: payload?.tagNames,
|
|
56143
56217
|
tenantId: payload?.tenantId,
|
|
56144
56218
|
userId: payload?.userId,
|
|
56145
56219
|
withTags: payload?.withTags
|
|
56146
|
-
});
|
|
56220
|
+
}));
|
|
56147
56221
|
const headers = new Headers(compactMap({
|
|
56148
56222
|
Accept: "application/json"
|
|
56149
56223
|
}));
|
|
@@ -58410,7 +58484,7 @@ Update a workspace by ID or slug.`,
|
|
|
58410
58484
|
function createMCPServer(deps) {
|
|
58411
58485
|
const server = new McpServer({
|
|
58412
58486
|
name: "Dub",
|
|
58413
|
-
version: "0.61.
|
|
58487
|
+
version: "0.61.12"
|
|
58414
58488
|
});
|
|
58415
58489
|
const client = new DubCore({
|
|
58416
58490
|
token: deps.token,
|
|
@@ -59706,7 +59780,7 @@ var routes = rn({
|
|
|
59706
59780
|
var app = Ve(routes, {
|
|
59707
59781
|
name: "mcp",
|
|
59708
59782
|
versionInfo: {
|
|
59709
|
-
currentVersion: "0.61.
|
|
59783
|
+
currentVersion: "0.61.12"
|
|
59710
59784
|
}
|
|
59711
59785
|
});
|
|
59712
59786
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -59714,5 +59788,5 @@ export {
|
|
|
59714
59788
|
app
|
|
59715
59789
|
};
|
|
59716
59790
|
|
|
59717
|
-
//# debugId=
|
|
59791
|
+
//# debugId=A43B16710823EEEE64756E2164756E21
|
|
59718
59792
|
//# sourceMappingURL=mcp-server.js.map
|