dub 0.64.1 → 0.64.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 +2 -0
- package/bin/mcp-server.js +883 -154
- package/bin/mcp-server.js.map +24 -20
- package/dist/commonjs/funcs/analyticsRetrieve.js +1 -0
- package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +1 -0
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/partnersList.d.ts +18 -0
- package/dist/commonjs/funcs/partnersList.d.ts.map +1 -0
- package/dist/commonjs/funcs/partnersList.js +133 -0
- package/dist/commonjs/funcs/partnersList.js.map +1 -0
- 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.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +3 -1
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/partnersList.d.ts +8 -0
- package/dist/commonjs/mcp-server/tools/partnersList.d.ts.map +1 -0
- package/dist/commonjs/mcp-server/tools/partnersList.js +54 -0
- package/dist/commonjs/mcp-server/tools/partnersList.js.map +1 -0
- package/dist/commonjs/models/components/analyticstriggers.d.ts +6 -0
- package/dist/commonjs/models/components/analyticstriggers.d.ts.map +1 -1
- package/dist/commonjs/models/components/analyticstriggers.js +2 -0
- package/dist/commonjs/models/components/analyticstriggers.js.map +1 -1
- package/dist/commonjs/models/components/commissioncreatedevent.d.ts +310 -0
- package/dist/commonjs/models/components/commissioncreatedevent.d.ts.map +1 -0
- package/dist/commonjs/models/components/commissioncreatedevent.js +261 -0
- package/dist/commonjs/models/components/commissioncreatedevent.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +1 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +1 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/components/partnerenrolledevent.d.ts +131 -52
- package/dist/commonjs/models/components/partnerenrolledevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/partnerenrolledevent.js +79 -21
- package/dist/commonjs/models/components/partnerenrolledevent.js.map +1 -1
- package/dist/commonjs/models/components/saleevent.d.ts +3 -0
- package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/saleevent.js +1 -0
- package/dist/commonjs/models/components/saleevent.js.map +1 -1
- package/dist/commonjs/models/components/webhookevent.d.ts +3 -2
- package/dist/commonjs/models/components/webhookevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/webhookevent.js +3 -0
- package/dist/commonjs/models/components/webhookevent.js.map +1 -1
- package/dist/commonjs/models/operations/createpartner.d.ts +131 -52
- package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpartner.js +79 -21
- package/dist/commonjs/models/operations/createpartner.js.map +1 -1
- 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/listcommissions.d.ts +136 -4
- package/dist/commonjs/models/operations/listcommissions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcommissions.js +95 -5
- package/dist/commonjs/models/operations/listcommissions.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +42 -0
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +27 -1
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/commonjs/models/operations/listpartners.d.ts +549 -0
- package/dist/commonjs/models/operations/listpartners.d.ts.map +1 -0
- package/dist/commonjs/models/operations/listpartners.js +358 -0
- package/dist/commonjs/models/operations/listpartners.js.map +1 -0
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts +42 -0
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js +28 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/commonjs/models/operations/tracksale.d.ts +3 -0
- package/dist/commonjs/models/operations/tracksale.d.ts.map +1 -1
- package/dist/commonjs/models/operations/tracksale.js +1 -0
- package/dist/commonjs/models/operations/tracksale.js.map +1 -1
- package/dist/commonjs/models/operations/updatecommission.d.ts +136 -4
- package/dist/commonjs/models/operations/updatecommission.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecommission.js +95 -5
- package/dist/commonjs/models/operations/updatecommission.js.map +1 -1
- package/dist/commonjs/sdk/partners.d.ts +7 -0
- package/dist/commonjs/sdk/partners.d.ts.map +1 -1
- package/dist/commonjs/sdk/partners.js +10 -0
- package/dist/commonjs/sdk/partners.js.map +1 -1
- package/dist/esm/funcs/analyticsRetrieve.js +1 -0
- package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/esm/funcs/eventsList.js +1 -0
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/partnersList.d.ts +18 -0
- package/dist/esm/funcs/partnersList.d.ts.map +1 -0
- package/dist/esm/funcs/partnersList.js +106 -0
- package/dist/esm/funcs/partnersList.js.map +1 -0
- 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.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +3 -1
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/mcp-server/tools/partnersList.d.ts +8 -0
- package/dist/esm/mcp-server/tools/partnersList.d.ts.map +1 -0
- package/dist/esm/mcp-server/tools/partnersList.js +28 -0
- package/dist/esm/mcp-server/tools/partnersList.js.map +1 -0
- package/dist/esm/models/components/analyticstriggers.d.ts +6 -0
- package/dist/esm/models/components/analyticstriggers.d.ts.map +1 -1
- package/dist/esm/models/components/analyticstriggers.js +2 -0
- package/dist/esm/models/components/analyticstriggers.js.map +1 -1
- package/dist/esm/models/components/commissioncreatedevent.d.ts +310 -0
- package/dist/esm/models/components/commissioncreatedevent.d.ts.map +1 -0
- package/dist/esm/models/components/commissioncreatedevent.js +227 -0
- package/dist/esm/models/components/commissioncreatedevent.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +1 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +1 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/components/partnerenrolledevent.d.ts +131 -52
- package/dist/esm/models/components/partnerenrolledevent.d.ts.map +1 -1
- package/dist/esm/models/components/partnerenrolledevent.js +78 -20
- package/dist/esm/models/components/partnerenrolledevent.js.map +1 -1
- package/dist/esm/models/components/saleevent.d.ts +3 -0
- package/dist/esm/models/components/saleevent.d.ts.map +1 -1
- package/dist/esm/models/components/saleevent.js +1 -0
- package/dist/esm/models/components/saleevent.js.map +1 -1
- package/dist/esm/models/components/webhookevent.d.ts +3 -2
- package/dist/esm/models/components/webhookevent.d.ts.map +1 -1
- package/dist/esm/models/components/webhookevent.js +3 -0
- package/dist/esm/models/components/webhookevent.js.map +1 -1
- package/dist/esm/models/operations/createpartner.d.ts +131 -52
- package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
- package/dist/esm/models/operations/createpartner.js +78 -20
- package/dist/esm/models/operations/createpartner.js.map +1 -1
- 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/listcommissions.d.ts +136 -4
- package/dist/esm/models/operations/listcommissions.d.ts.map +1 -1
- package/dist/esm/models/operations/listcommissions.js +90 -4
- package/dist/esm/models/operations/listcommissions.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +42 -0
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +26 -0
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/dist/esm/models/operations/listpartners.d.ts +549 -0
- package/dist/esm/models/operations/listpartners.d.ts.map +1 -0
- package/dist/esm/models/operations/listpartners.js +326 -0
- package/dist/esm/models/operations/listpartners.js.map +1 -0
- package/dist/esm/models/operations/retrieveanalytics.d.ts +42 -0
- package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.js +27 -0
- package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/esm/models/operations/tracksale.d.ts +3 -0
- package/dist/esm/models/operations/tracksale.d.ts.map +1 -1
- package/dist/esm/models/operations/tracksale.js +1 -0
- package/dist/esm/models/operations/tracksale.js.map +1 -1
- package/dist/esm/models/operations/updatecommission.d.ts +136 -4
- package/dist/esm/models/operations/updatecommission.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecommission.js +90 -4
- package/dist/esm/models/operations/updatecommission.js.map +1 -1
- package/dist/esm/sdk/partners.d.ts +7 -0
- package/dist/esm/sdk/partners.d.ts.map +1 -1
- package/dist/esm/sdk/partners.js +10 -0
- package/dist/esm/sdk/partners.js.map +1 -1
- package/docs/sdks/partners/README.md +78 -0
- package/examples/README.md +5 -0
- package/examples/linksCreate.example.ts +2 -0
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/analyticsRetrieve.ts +1 -0
- package/src/funcs/eventsList.ts +1 -0
- package/src/funcs/partnersList.ts +227 -0
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +3 -1
- package/src/mcp-server/tools/partnersList.ts +37 -0
- package/src/models/components/analyticstriggers.ts +2 -0
- package/src/models/components/commissioncreatedevent.ts +503 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/partnerenrolledevent.ts +175 -72
- package/src/models/components/saleevent.ts +1 -0
- package/src/models/components/webhookevent.ts +12 -2
- package/src/models/operations/createpartner.ts +175 -72
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listcommissions.ts +242 -8
- package/src/models/operations/listevents.ts +42 -0
- package/src/models/operations/listpartners.ts +748 -0
- package/src/models/operations/retrieveanalytics.ts +40 -0
- package/src/models/operations/tracksale.ts +1 -0
- package/src/models/operations/updatecommission.ts +242 -8
- package/src/sdk/partners.ts +18 -0
package/bin/mcp-server.js
CHANGED
|
@@ -34196,9 +34196,9 @@ var init_config = __esm(() => {
|
|
|
34196
34196
|
SDK_METADATA = {
|
|
34197
34197
|
language: "typescript",
|
|
34198
34198
|
openapiDocVersion: "0.0.1",
|
|
34199
|
-
sdkVersion: "0.64.
|
|
34200
|
-
genVersion: "2.
|
|
34201
|
-
userAgent: "speakeasy-sdk/typescript 0.64.
|
|
34199
|
+
sdkVersion: "0.64.2",
|
|
34200
|
+
genVersion: "2.662.0",
|
|
34201
|
+
userAgent: "speakeasy-sdk/typescript 0.64.2 2.662.0 0.0.1 dub"
|
|
34202
34202
|
};
|
|
34203
34203
|
});
|
|
34204
34204
|
|
|
@@ -36654,7 +36654,9 @@ var init_analyticstriggers = __esm(() => {
|
|
|
36654
36654
|
init_esm();
|
|
36655
36655
|
Trigger = {
|
|
36656
36656
|
Qr: "qr",
|
|
36657
|
-
Link: "link"
|
|
36657
|
+
Link: "link",
|
|
36658
|
+
Pageview: "pageview",
|
|
36659
|
+
Deeplink: "deeplink"
|
|
36658
36660
|
};
|
|
36659
36661
|
Trigger$inboundSchema = nativeEnumType(Trigger);
|
|
36660
36662
|
Trigger$outboundSchema = Trigger$inboundSchema;
|
|
@@ -37970,6 +37972,146 @@ var init_clickevent = __esm(() => {
|
|
|
37970
37972
|
})(ClickEvent$ ||= {});
|
|
37971
37973
|
});
|
|
37972
37974
|
|
|
37975
|
+
// src/models/components/commissioncreatedevent.ts
|
|
37976
|
+
var CommissionCreatedEventEvent, CommissionCreatedEventType, CommissionCreatedEventStatus, CommissionCreatedEventEvent$inboundSchema, CommissionCreatedEventEvent$outboundSchema, CommissionCreatedEventEvent$, CommissionCreatedEventType$inboundSchema, CommissionCreatedEventType$outboundSchema, CommissionCreatedEventType$, CommissionCreatedEventStatus$inboundSchema, CommissionCreatedEventStatus$outboundSchema, CommissionCreatedEventStatus$, Partner$inboundSchema, Partner$outboundSchema, Partner$, CommissionCreatedEventCustomer$inboundSchema, CommissionCreatedEventCustomer$outboundSchema, CommissionCreatedEventCustomer$, CommissionCreatedEventData$inboundSchema, CommissionCreatedEventData$outboundSchema, CommissionCreatedEventData$, CommissionCreatedEvent$inboundSchema, CommissionCreatedEvent$outboundSchema, CommissionCreatedEvent$;
|
|
37977
|
+
var init_commissioncreatedevent = __esm(() => {
|
|
37978
|
+
init_esm();
|
|
37979
|
+
CommissionCreatedEventEvent = {
|
|
37980
|
+
CommissionCreated: "commission.created"
|
|
37981
|
+
};
|
|
37982
|
+
CommissionCreatedEventType = {
|
|
37983
|
+
Click: "click",
|
|
37984
|
+
Lead: "lead",
|
|
37985
|
+
Sale: "sale",
|
|
37986
|
+
Custom: "custom"
|
|
37987
|
+
};
|
|
37988
|
+
CommissionCreatedEventStatus = {
|
|
37989
|
+
Pending: "pending",
|
|
37990
|
+
Processed: "processed",
|
|
37991
|
+
Paid: "paid",
|
|
37992
|
+
Refunded: "refunded",
|
|
37993
|
+
Duplicate: "duplicate",
|
|
37994
|
+
Fraud: "fraud",
|
|
37995
|
+
Canceled: "canceled"
|
|
37996
|
+
};
|
|
37997
|
+
CommissionCreatedEventEvent$inboundSchema = nativeEnumType(CommissionCreatedEventEvent);
|
|
37998
|
+
CommissionCreatedEventEvent$outboundSchema = CommissionCreatedEventEvent$inboundSchema;
|
|
37999
|
+
((CommissionCreatedEventEvent$) => {
|
|
38000
|
+
CommissionCreatedEventEvent$.inboundSchema = CommissionCreatedEventEvent$inboundSchema;
|
|
38001
|
+
CommissionCreatedEventEvent$.outboundSchema = CommissionCreatedEventEvent$outboundSchema;
|
|
38002
|
+
})(CommissionCreatedEventEvent$ ||= {});
|
|
38003
|
+
CommissionCreatedEventType$inboundSchema = nativeEnumType(CommissionCreatedEventType);
|
|
38004
|
+
CommissionCreatedEventType$outboundSchema = CommissionCreatedEventType$inboundSchema;
|
|
38005
|
+
((CommissionCreatedEventType$) => {
|
|
38006
|
+
CommissionCreatedEventType$.inboundSchema = CommissionCreatedEventType$inboundSchema;
|
|
38007
|
+
CommissionCreatedEventType$.outboundSchema = CommissionCreatedEventType$outboundSchema;
|
|
38008
|
+
})(CommissionCreatedEventType$ ||= {});
|
|
38009
|
+
CommissionCreatedEventStatus$inboundSchema = nativeEnumType(CommissionCreatedEventStatus);
|
|
38010
|
+
CommissionCreatedEventStatus$outboundSchema = CommissionCreatedEventStatus$inboundSchema;
|
|
38011
|
+
((CommissionCreatedEventStatus$) => {
|
|
38012
|
+
CommissionCreatedEventStatus$.inboundSchema = CommissionCreatedEventStatus$inboundSchema;
|
|
38013
|
+
CommissionCreatedEventStatus$.outboundSchema = CommissionCreatedEventStatus$outboundSchema;
|
|
38014
|
+
})(CommissionCreatedEventStatus$ ||= {});
|
|
38015
|
+
Partner$inboundSchema = objectType({
|
|
38016
|
+
id: stringType(),
|
|
38017
|
+
name: stringType(),
|
|
38018
|
+
email: nullableType(stringType()),
|
|
38019
|
+
image: nullableType(stringType()),
|
|
38020
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
38021
|
+
country: nullableType(stringType())
|
|
38022
|
+
});
|
|
38023
|
+
Partner$outboundSchema = objectType({
|
|
38024
|
+
id: stringType(),
|
|
38025
|
+
name: stringType(),
|
|
38026
|
+
email: nullableType(stringType()),
|
|
38027
|
+
image: nullableType(stringType()),
|
|
38028
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
38029
|
+
country: nullableType(stringType())
|
|
38030
|
+
});
|
|
38031
|
+
((Partner$) => {
|
|
38032
|
+
Partner$.inboundSchema = Partner$inboundSchema;
|
|
38033
|
+
Partner$.outboundSchema = Partner$outboundSchema;
|
|
38034
|
+
})(Partner$ ||= {});
|
|
38035
|
+
CommissionCreatedEventCustomer$inboundSchema = objectType({
|
|
38036
|
+
id: stringType(),
|
|
38037
|
+
externalId: stringType(),
|
|
38038
|
+
name: stringType(),
|
|
38039
|
+
email: nullableType(stringType()).optional(),
|
|
38040
|
+
avatar: nullableType(stringType()).optional(),
|
|
38041
|
+
country: nullableType(stringType()).optional(),
|
|
38042
|
+
sales: nullableType(numberType()).optional(),
|
|
38043
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
38044
|
+
createdAt: stringType()
|
|
38045
|
+
});
|
|
38046
|
+
CommissionCreatedEventCustomer$outboundSchema = objectType({
|
|
38047
|
+
id: stringType(),
|
|
38048
|
+
externalId: stringType(),
|
|
38049
|
+
name: stringType(),
|
|
38050
|
+
email: nullableType(stringType()).optional(),
|
|
38051
|
+
avatar: nullableType(stringType()).optional(),
|
|
38052
|
+
country: nullableType(stringType()).optional(),
|
|
38053
|
+
sales: nullableType(numberType()).optional(),
|
|
38054
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
38055
|
+
createdAt: stringType()
|
|
38056
|
+
});
|
|
38057
|
+
((CommissionCreatedEventCustomer$) => {
|
|
38058
|
+
CommissionCreatedEventCustomer$.inboundSchema = CommissionCreatedEventCustomer$inboundSchema;
|
|
38059
|
+
CommissionCreatedEventCustomer$.outboundSchema = CommissionCreatedEventCustomer$outboundSchema;
|
|
38060
|
+
})(CommissionCreatedEventCustomer$ ||= {});
|
|
38061
|
+
CommissionCreatedEventData$inboundSchema = objectType({
|
|
38062
|
+
id: stringType(),
|
|
38063
|
+
type: CommissionCreatedEventType$inboundSchema.optional(),
|
|
38064
|
+
amount: numberType(),
|
|
38065
|
+
earnings: numberType(),
|
|
38066
|
+
currency: stringType(),
|
|
38067
|
+
status: CommissionCreatedEventStatus$inboundSchema,
|
|
38068
|
+
invoiceId: nullableType(stringType()),
|
|
38069
|
+
description: nullableType(stringType()),
|
|
38070
|
+
quantity: numberType(),
|
|
38071
|
+
userId: nullableType(stringType()).optional(),
|
|
38072
|
+
createdAt: stringType(),
|
|
38073
|
+
updatedAt: stringType(),
|
|
38074
|
+
partner: lazyType(() => Partner$inboundSchema),
|
|
38075
|
+
customer: nullableType(lazyType(() => CommissionCreatedEventCustomer$inboundSchema)).optional()
|
|
38076
|
+
});
|
|
38077
|
+
CommissionCreatedEventData$outboundSchema = objectType({
|
|
38078
|
+
id: stringType(),
|
|
38079
|
+
type: CommissionCreatedEventType$outboundSchema.optional(),
|
|
38080
|
+
amount: numberType(),
|
|
38081
|
+
earnings: numberType(),
|
|
38082
|
+
currency: stringType(),
|
|
38083
|
+
status: CommissionCreatedEventStatus$outboundSchema,
|
|
38084
|
+
invoiceId: nullableType(stringType()),
|
|
38085
|
+
description: nullableType(stringType()),
|
|
38086
|
+
quantity: numberType(),
|
|
38087
|
+
userId: nullableType(stringType()).optional(),
|
|
38088
|
+
createdAt: stringType(),
|
|
38089
|
+
updatedAt: stringType(),
|
|
38090
|
+
partner: lazyType(() => Partner$outboundSchema),
|
|
38091
|
+
customer: nullableType(lazyType(() => CommissionCreatedEventCustomer$outboundSchema)).optional()
|
|
38092
|
+
});
|
|
38093
|
+
((CommissionCreatedEventData$) => {
|
|
38094
|
+
CommissionCreatedEventData$.inboundSchema = CommissionCreatedEventData$inboundSchema;
|
|
38095
|
+
CommissionCreatedEventData$.outboundSchema = CommissionCreatedEventData$outboundSchema;
|
|
38096
|
+
})(CommissionCreatedEventData$ ||= {});
|
|
38097
|
+
CommissionCreatedEvent$inboundSchema = objectType({
|
|
38098
|
+
id: stringType(),
|
|
38099
|
+
event: CommissionCreatedEventEvent$inboundSchema,
|
|
38100
|
+
createdAt: stringType(),
|
|
38101
|
+
data: lazyType(() => CommissionCreatedEventData$inboundSchema)
|
|
38102
|
+
});
|
|
38103
|
+
CommissionCreatedEvent$outboundSchema = objectType({
|
|
38104
|
+
id: stringType(),
|
|
38105
|
+
event: CommissionCreatedEventEvent$outboundSchema,
|
|
38106
|
+
createdAt: stringType(),
|
|
38107
|
+
data: lazyType(() => CommissionCreatedEventData$outboundSchema)
|
|
38108
|
+
});
|
|
38109
|
+
((CommissionCreatedEvent$) => {
|
|
38110
|
+
CommissionCreatedEvent$.inboundSchema = CommissionCreatedEvent$inboundSchema;
|
|
38111
|
+
CommissionCreatedEvent$.outboundSchema = CommissionCreatedEvent$outboundSchema;
|
|
38112
|
+
})(CommissionCreatedEvent$ ||= {});
|
|
38113
|
+
});
|
|
38114
|
+
|
|
37973
38115
|
// src/models/components/continentcode.ts
|
|
37974
38116
|
var ContinentCode, ContinentCode$inboundSchema, ContinentCode$outboundSchema, ContinentCode$;
|
|
37975
38117
|
var init_continentcode = __esm(() => {
|
|
@@ -45648,7 +45790,7 @@ var init_partneranalyticstoplinks = __esm(() => {
|
|
|
45648
45790
|
});
|
|
45649
45791
|
|
|
45650
45792
|
// src/models/components/partnerenrolledevent.ts
|
|
45651
|
-
var PartnerEnrolledEventEvent, Status, PartnerEnrolledEventEvent$inboundSchema, PartnerEnrolledEventEvent$outboundSchema, PartnerEnrolledEventEvent$, Status$inboundSchema, Status$outboundSchema, Status$, PartnerEnrolledEventLink$inboundSchema, PartnerEnrolledEventLink$outboundSchema, PartnerEnrolledEventLink$, PartnerEnrolledEventData$inboundSchema, PartnerEnrolledEventData$outboundSchema, PartnerEnrolledEventData$, PartnerEnrolledEvent$inboundSchema, PartnerEnrolledEvent$outboundSchema, PartnerEnrolledEvent$;
|
|
45793
|
+
var PartnerEnrolledEventEvent, Status, BannedReason, PartnerEnrolledEventEvent$inboundSchema, PartnerEnrolledEventEvent$outboundSchema, PartnerEnrolledEventEvent$, Status$inboundSchema, Status$outboundSchema, Status$, PartnerEnrolledEventLink$inboundSchema, PartnerEnrolledEventLink$outboundSchema, PartnerEnrolledEventLink$, BannedReason$inboundSchema, BannedReason$outboundSchema, BannedReason$, PartnerEnrolledEventData$inboundSchema, PartnerEnrolledEventData$outboundSchema, PartnerEnrolledEventData$, PartnerEnrolledEvent$inboundSchema, PartnerEnrolledEvent$outboundSchema, PartnerEnrolledEvent$;
|
|
45652
45794
|
var init_partnerenrolledevent = __esm(() => {
|
|
45653
45795
|
init_esm();
|
|
45654
45796
|
PartnerEnrolledEventEvent = {
|
|
@@ -45663,6 +45805,14 @@ var init_partnerenrolledevent = __esm(() => {
|
|
|
45663
45805
|
Banned: "banned",
|
|
45664
45806
|
Archived: "archived"
|
|
45665
45807
|
};
|
|
45808
|
+
BannedReason = {
|
|
45809
|
+
TosViolation: "tos_violation",
|
|
45810
|
+
InappropriateContent: "inappropriate_content",
|
|
45811
|
+
FakeTraffic: "fake_traffic",
|
|
45812
|
+
Fraud: "fraud",
|
|
45813
|
+
Spam: "spam",
|
|
45814
|
+
BrandAbuse: "brand_abuse"
|
|
45815
|
+
};
|
|
45666
45816
|
PartnerEnrolledEventEvent$inboundSchema = nativeEnumType(PartnerEnrolledEventEvent);
|
|
45667
45817
|
PartnerEnrolledEventEvent$outboundSchema = PartnerEnrolledEventEvent$inboundSchema;
|
|
45668
45818
|
((PartnerEnrolledEventEvent$) => {
|
|
@@ -45701,6 +45851,12 @@ var init_partnerenrolledevent = __esm(() => {
|
|
|
45701
45851
|
PartnerEnrolledEventLink$.inboundSchema = PartnerEnrolledEventLink$inboundSchema;
|
|
45702
45852
|
PartnerEnrolledEventLink$.outboundSchema = PartnerEnrolledEventLink$outboundSchema;
|
|
45703
45853
|
})(PartnerEnrolledEventLink$ ||= {});
|
|
45854
|
+
BannedReason$inboundSchema = nativeEnumType(BannedReason);
|
|
45855
|
+
BannedReason$outboundSchema = BannedReason$inboundSchema;
|
|
45856
|
+
((BannedReason$) => {
|
|
45857
|
+
BannedReason$.inboundSchema = BannedReason$inboundSchema;
|
|
45858
|
+
BannedReason$.outboundSchema = BannedReason$outboundSchema;
|
|
45859
|
+
})(BannedReason$ ||= {});
|
|
45704
45860
|
PartnerEnrolledEventData$inboundSchema = objectType({
|
|
45705
45861
|
id: stringType(),
|
|
45706
45862
|
name: stringType(),
|
|
@@ -45708,27 +45864,43 @@ var init_partnerenrolledevent = __esm(() => {
|
|
|
45708
45864
|
image: nullableType(stringType()),
|
|
45709
45865
|
description: nullableType(stringType()).optional(),
|
|
45710
45866
|
country: nullableType(stringType()),
|
|
45711
|
-
website: nullableType(stringType()),
|
|
45712
|
-
youtube: nullableType(stringType()),
|
|
45713
|
-
twitter: nullableType(stringType()),
|
|
45714
|
-
linkedin: nullableType(stringType()),
|
|
45715
|
-
instagram: nullableType(stringType()),
|
|
45716
|
-
tiktok: nullableType(stringType()),
|
|
45717
45867
|
paypalEmail: nullableType(stringType()),
|
|
45718
45868
|
stripeConnectId: nullableType(stringType()),
|
|
45719
45869
|
payoutsEnabledAt: nullableType(stringType()),
|
|
45870
|
+
partnerId: stringType(),
|
|
45871
|
+
tenantId: nullableType(stringType()),
|
|
45872
|
+
programId: stringType(),
|
|
45720
45873
|
createdAt: stringType(),
|
|
45721
45874
|
status: Status$inboundSchema,
|
|
45722
|
-
programId: stringType(),
|
|
45723
|
-
tenantId: nullableType(stringType()),
|
|
45724
45875
|
links: nullableType(arrayType(lazyType(() => PartnerEnrolledEventLink$inboundSchema))),
|
|
45876
|
+
totalCommissions: numberType().default(0),
|
|
45877
|
+
clickRewardId: nullableType(stringType()).optional(),
|
|
45878
|
+
leadRewardId: nullableType(stringType()).optional(),
|
|
45879
|
+
saleRewardId: nullableType(stringType()).optional(),
|
|
45880
|
+
discountId: nullableType(stringType()).optional(),
|
|
45881
|
+
applicationId: nullableType(stringType()).optional(),
|
|
45882
|
+
bannedAt: nullableType(stringType()).optional(),
|
|
45883
|
+
bannedReason: nullableType(BannedReason$inboundSchema).optional(),
|
|
45725
45884
|
clicks: numberType().default(0),
|
|
45726
45885
|
leads: numberType().default(0),
|
|
45727
45886
|
sales: numberType().default(0),
|
|
45728
45887
|
saleAmount: numberType().default(0),
|
|
45729
|
-
totalCommissions: numberType().default(0),
|
|
45730
45888
|
netRevenue: numberType().default(0),
|
|
45731
|
-
|
|
45889
|
+
website: nullableType(stringType()).optional(),
|
|
45890
|
+
websiteTxtRecord: nullableType(stringType()).optional(),
|
|
45891
|
+
websiteVerifiedAt: nullableType(stringType()).optional(),
|
|
45892
|
+
youtube: nullableType(stringType()).optional(),
|
|
45893
|
+
youtubeVerifiedAt: nullableType(stringType()).optional(),
|
|
45894
|
+
youtubeSubscriberCount: nullableType(numberType()).optional(),
|
|
45895
|
+
youtubeViewCount: nullableType(numberType()).optional(),
|
|
45896
|
+
twitter: nullableType(stringType()).optional(),
|
|
45897
|
+
twitterVerifiedAt: nullableType(stringType()).optional(),
|
|
45898
|
+
linkedin: nullableType(stringType()).optional(),
|
|
45899
|
+
linkedinVerifiedAt: nullableType(stringType()).optional(),
|
|
45900
|
+
instagram: nullableType(stringType()).optional(),
|
|
45901
|
+
instagramVerifiedAt: nullableType(stringType()).optional(),
|
|
45902
|
+
tiktok: nullableType(stringType()).optional(),
|
|
45903
|
+
tiktokVerifiedAt: nullableType(stringType()).optional()
|
|
45732
45904
|
});
|
|
45733
45905
|
PartnerEnrolledEventData$outboundSchema = objectType({
|
|
45734
45906
|
id: stringType(),
|
|
@@ -45737,27 +45909,43 @@ var init_partnerenrolledevent = __esm(() => {
|
|
|
45737
45909
|
image: nullableType(stringType()),
|
|
45738
45910
|
description: nullableType(stringType()).optional(),
|
|
45739
45911
|
country: nullableType(stringType()),
|
|
45740
|
-
website: nullableType(stringType()),
|
|
45741
|
-
youtube: nullableType(stringType()),
|
|
45742
|
-
twitter: nullableType(stringType()),
|
|
45743
|
-
linkedin: nullableType(stringType()),
|
|
45744
|
-
instagram: nullableType(stringType()),
|
|
45745
|
-
tiktok: nullableType(stringType()),
|
|
45746
45912
|
paypalEmail: nullableType(stringType()),
|
|
45747
45913
|
stripeConnectId: nullableType(stringType()),
|
|
45748
45914
|
payoutsEnabledAt: nullableType(stringType()),
|
|
45915
|
+
partnerId: stringType(),
|
|
45916
|
+
tenantId: nullableType(stringType()),
|
|
45917
|
+
programId: stringType(),
|
|
45749
45918
|
createdAt: stringType(),
|
|
45750
45919
|
status: Status$outboundSchema,
|
|
45751
|
-
programId: stringType(),
|
|
45752
|
-
tenantId: nullableType(stringType()),
|
|
45753
45920
|
links: nullableType(arrayType(lazyType(() => PartnerEnrolledEventLink$outboundSchema))),
|
|
45921
|
+
totalCommissions: numberType().default(0),
|
|
45922
|
+
clickRewardId: nullableType(stringType()).optional(),
|
|
45923
|
+
leadRewardId: nullableType(stringType()).optional(),
|
|
45924
|
+
saleRewardId: nullableType(stringType()).optional(),
|
|
45925
|
+
discountId: nullableType(stringType()).optional(),
|
|
45926
|
+
applicationId: nullableType(stringType()).optional(),
|
|
45927
|
+
bannedAt: nullableType(stringType()).optional(),
|
|
45928
|
+
bannedReason: nullableType(BannedReason$outboundSchema).optional(),
|
|
45754
45929
|
clicks: numberType().default(0),
|
|
45755
45930
|
leads: numberType().default(0),
|
|
45756
45931
|
sales: numberType().default(0),
|
|
45757
45932
|
saleAmount: numberType().default(0),
|
|
45758
|
-
totalCommissions: numberType().default(0),
|
|
45759
45933
|
netRevenue: numberType().default(0),
|
|
45760
|
-
|
|
45934
|
+
website: nullableType(stringType()).optional(),
|
|
45935
|
+
websiteTxtRecord: nullableType(stringType()).optional(),
|
|
45936
|
+
websiteVerifiedAt: nullableType(stringType()).optional(),
|
|
45937
|
+
youtube: nullableType(stringType()).optional(),
|
|
45938
|
+
youtubeVerifiedAt: nullableType(stringType()).optional(),
|
|
45939
|
+
youtubeSubscriberCount: nullableType(numberType()).optional(),
|
|
45940
|
+
youtubeViewCount: nullableType(numberType()).optional(),
|
|
45941
|
+
twitter: nullableType(stringType()).optional(),
|
|
45942
|
+
twitterVerifiedAt: nullableType(stringType()).optional(),
|
|
45943
|
+
linkedin: nullableType(stringType()).optional(),
|
|
45944
|
+
linkedinVerifiedAt: nullableType(stringType()).optional(),
|
|
45945
|
+
instagram: nullableType(stringType()).optional(),
|
|
45946
|
+
instagramVerifiedAt: nullableType(stringType()).optional(),
|
|
45947
|
+
tiktok: nullableType(stringType()).optional(),
|
|
45948
|
+
tiktokVerifiedAt: nullableType(stringType()).optional()
|
|
45761
45949
|
});
|
|
45762
45950
|
((PartnerEnrolledEventData$) => {
|
|
45763
45951
|
PartnerEnrolledEventData$.inboundSchema = PartnerEnrolledEventData$inboundSchema;
|
|
@@ -47072,6 +47260,7 @@ var init_saleevent = __esm(() => {
|
|
|
47072
47260
|
Shopify: "shopify",
|
|
47073
47261
|
Polar: "polar",
|
|
47074
47262
|
Paddle: "paddle",
|
|
47263
|
+
Revenuecat: "revenuecat",
|
|
47075
47264
|
Custom: "custom"
|
|
47076
47265
|
};
|
|
47077
47266
|
SaleEventEvent$inboundSchema = nativeEnumType(SaleEventEvent);
|
|
@@ -48402,6 +48591,7 @@ var init_security2 = __esm(() => {
|
|
|
48402
48591
|
var WebhookEvent$inboundSchema, WebhookEvent$outboundSchema, WebhookEvent$;
|
|
48403
48592
|
var init_webhookevent = __esm(() => {
|
|
48404
48593
|
init_esm();
|
|
48594
|
+
init_commissioncreatedevent();
|
|
48405
48595
|
init_leadcreatedevent();
|
|
48406
48596
|
init_linkclickedevent();
|
|
48407
48597
|
init_linkwebhookevent();
|
|
@@ -48412,14 +48602,16 @@ var init_webhookevent = __esm(() => {
|
|
|
48412
48602
|
LinkClickedEvent$inboundSchema,
|
|
48413
48603
|
LeadCreatedEvent$inboundSchema,
|
|
48414
48604
|
SaleCreatedEvent$inboundSchema,
|
|
48415
|
-
PartnerEnrolledEvent$inboundSchema
|
|
48605
|
+
PartnerEnrolledEvent$inboundSchema,
|
|
48606
|
+
CommissionCreatedEvent$inboundSchema
|
|
48416
48607
|
]);
|
|
48417
48608
|
WebhookEvent$outboundSchema = unionType([
|
|
48418
48609
|
LinkWebhookEvent$outboundSchema,
|
|
48419
48610
|
LinkClickedEvent$outboundSchema,
|
|
48420
48611
|
LeadCreatedEvent$outboundSchema,
|
|
48421
48612
|
SaleCreatedEvent$outboundSchema,
|
|
48422
|
-
PartnerEnrolledEvent$outboundSchema
|
|
48613
|
+
PartnerEnrolledEvent$outboundSchema,
|
|
48614
|
+
CommissionCreatedEvent$outboundSchema
|
|
48423
48615
|
]);
|
|
48424
48616
|
((WebhookEvent$) => {
|
|
48425
48617
|
WebhookEvent$.inboundSchema = WebhookEvent$inboundSchema;
|
|
@@ -48578,6 +48770,7 @@ var init_components = __esm(() => {
|
|
|
48578
48770
|
init_analyticstopurls();
|
|
48579
48771
|
init_analyticstriggers();
|
|
48580
48772
|
init_clickevent();
|
|
48773
|
+
init_commissioncreatedevent();
|
|
48581
48774
|
init_continentcode();
|
|
48582
48775
|
init_countrycode();
|
|
48583
48776
|
init_domainschema();
|
|
@@ -49276,7 +49469,7 @@ var init_createlink = __esm(() => {
|
|
|
49276
49469
|
});
|
|
49277
49470
|
|
|
49278
49471
|
// src/models/operations/createpartner.ts
|
|
49279
|
-
var Country, CreatePartnerStatus, Country$inboundSchema, Country$outboundSchema, Country$, CreatePartnerTagIds$inboundSchema, CreatePartnerTagIds$outboundSchema, CreatePartnerTagIds$, CreatePartnerTagNames$inboundSchema, CreatePartnerTagNames$outboundSchema, CreatePartnerTagNames$, CreatePartnerTestVariants$inboundSchema, CreatePartnerTestVariants$outboundSchema, CreatePartnerTestVariants$, LinkProps$inboundSchema, LinkProps$outboundSchema, LinkProps$, CreatePartnerRequestBody$inboundSchema, CreatePartnerRequestBody$outboundSchema, CreatePartnerRequestBody$, CreatePartnerStatus$inboundSchema, CreatePartnerStatus$outboundSchema, CreatePartnerStatus$, CreatePartnerLink$inboundSchema, CreatePartnerLink$outboundSchema, CreatePartnerLink$, CreatePartnerResponseBody$inboundSchema, CreatePartnerResponseBody$outboundSchema, CreatePartnerResponseBody$;
|
|
49472
|
+
var Country, CreatePartnerStatus, BannedReason2, Country$inboundSchema, Country$outboundSchema, Country$, CreatePartnerTagIds$inboundSchema, CreatePartnerTagIds$outboundSchema, CreatePartnerTagIds$, CreatePartnerTagNames$inboundSchema, CreatePartnerTagNames$outboundSchema, CreatePartnerTagNames$, CreatePartnerTestVariants$inboundSchema, CreatePartnerTestVariants$outboundSchema, CreatePartnerTestVariants$, LinkProps$inboundSchema, LinkProps$outboundSchema, LinkProps$, CreatePartnerRequestBody$inboundSchema, CreatePartnerRequestBody$outboundSchema, CreatePartnerRequestBody$, CreatePartnerStatus$inboundSchema, CreatePartnerStatus$outboundSchema, CreatePartnerStatus$, CreatePartnerLink$inboundSchema, CreatePartnerLink$outboundSchema, CreatePartnerLink$, BannedReason$inboundSchema2, BannedReason$outboundSchema2, BannedReason$2, CreatePartnerResponseBody$inboundSchema, CreatePartnerResponseBody$outboundSchema, CreatePartnerResponseBody$;
|
|
49280
49473
|
var init_createpartner = __esm(() => {
|
|
49281
49474
|
init_esm();
|
|
49282
49475
|
init_primitives();
|
|
@@ -49541,6 +49734,14 @@ var init_createpartner = __esm(() => {
|
|
|
49541
49734
|
Banned: "banned",
|
|
49542
49735
|
Archived: "archived"
|
|
49543
49736
|
};
|
|
49737
|
+
BannedReason2 = {
|
|
49738
|
+
TosViolation: "tos_violation",
|
|
49739
|
+
InappropriateContent: "inappropriate_content",
|
|
49740
|
+
FakeTraffic: "fake_traffic",
|
|
49741
|
+
Fraud: "fraud",
|
|
49742
|
+
Spam: "spam",
|
|
49743
|
+
BrandAbuse: "brand_abuse"
|
|
49744
|
+
};
|
|
49544
49745
|
Country$inboundSchema = nativeEnumType(Country);
|
|
49545
49746
|
Country$outboundSchema = Country$inboundSchema;
|
|
49546
49747
|
((Country$) => {
|
|
@@ -49711,6 +49912,12 @@ var init_createpartner = __esm(() => {
|
|
|
49711
49912
|
CreatePartnerLink$.inboundSchema = CreatePartnerLink$inboundSchema;
|
|
49712
49913
|
CreatePartnerLink$.outboundSchema = CreatePartnerLink$outboundSchema;
|
|
49713
49914
|
})(CreatePartnerLink$ ||= {});
|
|
49915
|
+
BannedReason$inboundSchema2 = nativeEnumType(BannedReason2);
|
|
49916
|
+
BannedReason$outboundSchema2 = BannedReason$inboundSchema2;
|
|
49917
|
+
((BannedReason$) => {
|
|
49918
|
+
BannedReason$.inboundSchema = BannedReason$inboundSchema2;
|
|
49919
|
+
BannedReason$.outboundSchema = BannedReason$outboundSchema2;
|
|
49920
|
+
})(BannedReason$2 ||= {});
|
|
49714
49921
|
CreatePartnerResponseBody$inboundSchema = objectType({
|
|
49715
49922
|
id: stringType(),
|
|
49716
49923
|
name: stringType(),
|
|
@@ -49718,27 +49925,43 @@ var init_createpartner = __esm(() => {
|
|
|
49718
49925
|
image: nullableType(stringType()),
|
|
49719
49926
|
description: nullableType(stringType()).optional(),
|
|
49720
49927
|
country: nullableType(stringType()),
|
|
49721
|
-
website: nullableType(stringType()),
|
|
49722
|
-
youtube: nullableType(stringType()),
|
|
49723
|
-
twitter: nullableType(stringType()),
|
|
49724
|
-
linkedin: nullableType(stringType()),
|
|
49725
|
-
instagram: nullableType(stringType()),
|
|
49726
|
-
tiktok: nullableType(stringType()),
|
|
49727
49928
|
paypalEmail: nullableType(stringType()),
|
|
49728
49929
|
stripeConnectId: nullableType(stringType()),
|
|
49729
49930
|
payoutsEnabledAt: nullableType(stringType()),
|
|
49931
|
+
partnerId: stringType(),
|
|
49932
|
+
tenantId: nullableType(stringType()),
|
|
49933
|
+
programId: stringType(),
|
|
49730
49934
|
createdAt: stringType(),
|
|
49731
49935
|
status: CreatePartnerStatus$inboundSchema,
|
|
49732
|
-
programId: stringType(),
|
|
49733
|
-
tenantId: nullableType(stringType()),
|
|
49734
49936
|
links: nullableType(arrayType(lazyType(() => CreatePartnerLink$inboundSchema))),
|
|
49937
|
+
totalCommissions: numberType().default(0),
|
|
49938
|
+
clickRewardId: nullableType(stringType()).optional(),
|
|
49939
|
+
leadRewardId: nullableType(stringType()).optional(),
|
|
49940
|
+
saleRewardId: nullableType(stringType()).optional(),
|
|
49941
|
+
discountId: nullableType(stringType()).optional(),
|
|
49942
|
+
applicationId: nullableType(stringType()).optional(),
|
|
49943
|
+
bannedAt: nullableType(stringType()).optional(),
|
|
49944
|
+
bannedReason: nullableType(BannedReason$inboundSchema2).optional(),
|
|
49735
49945
|
clicks: numberType().default(0),
|
|
49736
49946
|
leads: numberType().default(0),
|
|
49737
49947
|
sales: numberType().default(0),
|
|
49738
49948
|
saleAmount: numberType().default(0),
|
|
49739
|
-
totalCommissions: numberType().default(0),
|
|
49740
49949
|
netRevenue: numberType().default(0),
|
|
49741
|
-
|
|
49950
|
+
website: nullableType(stringType()).optional(),
|
|
49951
|
+
websiteTxtRecord: nullableType(stringType()).optional(),
|
|
49952
|
+
websiteVerifiedAt: nullableType(stringType()).optional(),
|
|
49953
|
+
youtube: nullableType(stringType()).optional(),
|
|
49954
|
+
youtubeVerifiedAt: nullableType(stringType()).optional(),
|
|
49955
|
+
youtubeSubscriberCount: nullableType(numberType()).optional(),
|
|
49956
|
+
youtubeViewCount: nullableType(numberType()).optional(),
|
|
49957
|
+
twitter: nullableType(stringType()).optional(),
|
|
49958
|
+
twitterVerifiedAt: nullableType(stringType()).optional(),
|
|
49959
|
+
linkedin: nullableType(stringType()).optional(),
|
|
49960
|
+
linkedinVerifiedAt: nullableType(stringType()).optional(),
|
|
49961
|
+
instagram: nullableType(stringType()).optional(),
|
|
49962
|
+
instagramVerifiedAt: nullableType(stringType()).optional(),
|
|
49963
|
+
tiktok: nullableType(stringType()).optional(),
|
|
49964
|
+
tiktokVerifiedAt: nullableType(stringType()).optional()
|
|
49742
49965
|
});
|
|
49743
49966
|
CreatePartnerResponseBody$outboundSchema = objectType({
|
|
49744
49967
|
id: stringType(),
|
|
@@ -49747,27 +49970,43 @@ var init_createpartner = __esm(() => {
|
|
|
49747
49970
|
image: nullableType(stringType()),
|
|
49748
49971
|
description: nullableType(stringType()).optional(),
|
|
49749
49972
|
country: nullableType(stringType()),
|
|
49750
|
-
website: nullableType(stringType()),
|
|
49751
|
-
youtube: nullableType(stringType()),
|
|
49752
|
-
twitter: nullableType(stringType()),
|
|
49753
|
-
linkedin: nullableType(stringType()),
|
|
49754
|
-
instagram: nullableType(stringType()),
|
|
49755
|
-
tiktok: nullableType(stringType()),
|
|
49756
49973
|
paypalEmail: nullableType(stringType()),
|
|
49757
49974
|
stripeConnectId: nullableType(stringType()),
|
|
49758
49975
|
payoutsEnabledAt: nullableType(stringType()),
|
|
49976
|
+
partnerId: stringType(),
|
|
49977
|
+
tenantId: nullableType(stringType()),
|
|
49978
|
+
programId: stringType(),
|
|
49759
49979
|
createdAt: stringType(),
|
|
49760
49980
|
status: CreatePartnerStatus$outboundSchema,
|
|
49761
|
-
programId: stringType(),
|
|
49762
|
-
tenantId: nullableType(stringType()),
|
|
49763
49981
|
links: nullableType(arrayType(lazyType(() => CreatePartnerLink$outboundSchema))),
|
|
49982
|
+
totalCommissions: numberType().default(0),
|
|
49983
|
+
clickRewardId: nullableType(stringType()).optional(),
|
|
49984
|
+
leadRewardId: nullableType(stringType()).optional(),
|
|
49985
|
+
saleRewardId: nullableType(stringType()).optional(),
|
|
49986
|
+
discountId: nullableType(stringType()).optional(),
|
|
49987
|
+
applicationId: nullableType(stringType()).optional(),
|
|
49988
|
+
bannedAt: nullableType(stringType()).optional(),
|
|
49989
|
+
bannedReason: nullableType(BannedReason$outboundSchema2).optional(),
|
|
49764
49990
|
clicks: numberType().default(0),
|
|
49765
49991
|
leads: numberType().default(0),
|
|
49766
49992
|
sales: numberType().default(0),
|
|
49767
49993
|
saleAmount: numberType().default(0),
|
|
49768
|
-
totalCommissions: numberType().default(0),
|
|
49769
49994
|
netRevenue: numberType().default(0),
|
|
49770
|
-
|
|
49995
|
+
website: nullableType(stringType()).optional(),
|
|
49996
|
+
websiteTxtRecord: nullableType(stringType()).optional(),
|
|
49997
|
+
websiteVerifiedAt: nullableType(stringType()).optional(),
|
|
49998
|
+
youtube: nullableType(stringType()).optional(),
|
|
49999
|
+
youtubeVerifiedAt: nullableType(stringType()).optional(),
|
|
50000
|
+
youtubeSubscriberCount: nullableType(numberType()).optional(),
|
|
50001
|
+
youtubeViewCount: nullableType(numberType()).optional(),
|
|
50002
|
+
twitter: nullableType(stringType()).optional(),
|
|
50003
|
+
twitterVerifiedAt: nullableType(stringType()).optional(),
|
|
50004
|
+
linkedin: nullableType(stringType()).optional(),
|
|
50005
|
+
linkedinVerifiedAt: nullableType(stringType()).optional(),
|
|
50006
|
+
instagram: nullableType(stringType()).optional(),
|
|
50007
|
+
instagramVerifiedAt: nullableType(stringType()).optional(),
|
|
50008
|
+
tiktok: nullableType(stringType()).optional(),
|
|
50009
|
+
tiktokVerifiedAt: nullableType(stringType()).optional()
|
|
49771
50010
|
});
|
|
49772
50011
|
((CreatePartnerResponseBody$) => {
|
|
49773
50012
|
CreatePartnerResponseBody$.inboundSchema = CreatePartnerResponseBody$inboundSchema;
|
|
@@ -49911,7 +50150,7 @@ var init_createpartnerlink = __esm(() => {
|
|
|
49911
50150
|
});
|
|
49912
50151
|
|
|
49913
50152
|
// src/models/operations/createreferralsembedtoken.ts
|
|
49914
|
-
var CreateReferralsEmbedTokenCountry, CreateReferralsEmbedTokenCountry$inboundSchema, CreateReferralsEmbedTokenCountry$outboundSchema, CreateReferralsEmbedTokenCountry$, CreateReferralsEmbedTokenTagIds$inboundSchema, CreateReferralsEmbedTokenTagIds$outboundSchema, CreateReferralsEmbedTokenTagIds$, CreateReferralsEmbedTokenTagNames$inboundSchema, CreateReferralsEmbedTokenTagNames$outboundSchema, CreateReferralsEmbedTokenTagNames$, CreateReferralsEmbedTokenTestVariants$inboundSchema, CreateReferralsEmbedTokenTestVariants$outboundSchema, CreateReferralsEmbedTokenTestVariants$, CreateReferralsEmbedTokenLinkProps$inboundSchema, CreateReferralsEmbedTokenLinkProps$outboundSchema, CreateReferralsEmbedTokenLinkProps$, Partner$
|
|
50153
|
+
var CreateReferralsEmbedTokenCountry, CreateReferralsEmbedTokenCountry$inboundSchema, CreateReferralsEmbedTokenCountry$outboundSchema, CreateReferralsEmbedTokenCountry$, CreateReferralsEmbedTokenTagIds$inboundSchema, CreateReferralsEmbedTokenTagIds$outboundSchema, CreateReferralsEmbedTokenTagIds$, CreateReferralsEmbedTokenTagNames$inboundSchema, CreateReferralsEmbedTokenTagNames$outboundSchema, CreateReferralsEmbedTokenTagNames$, CreateReferralsEmbedTokenTestVariants$inboundSchema, CreateReferralsEmbedTokenTestVariants$outboundSchema, CreateReferralsEmbedTokenTestVariants$, CreateReferralsEmbedTokenLinkProps$inboundSchema, CreateReferralsEmbedTokenLinkProps$outboundSchema, CreateReferralsEmbedTokenLinkProps$, Partner$inboundSchema2, Partner$outboundSchema2, Partner$2, CreateReferralsEmbedTokenRequestBody$inboundSchema, CreateReferralsEmbedTokenRequestBody$outboundSchema, CreateReferralsEmbedTokenRequestBody$, CreateReferralsEmbedTokenResponseBody$inboundSchema, CreateReferralsEmbedTokenResponseBody$outboundSchema, CreateReferralsEmbedTokenResponseBody$;
|
|
49915
50154
|
var init_createreferralsembedtoken = __esm(() => {
|
|
49916
50155
|
init_esm();
|
|
49917
50156
|
init_primitives();
|
|
@@ -50281,7 +50520,7 @@ var init_createreferralsembedtoken = __esm(() => {
|
|
|
50281
50520
|
CreateReferralsEmbedTokenLinkProps$.inboundSchema = CreateReferralsEmbedTokenLinkProps$inboundSchema;
|
|
50282
50521
|
CreateReferralsEmbedTokenLinkProps$.outboundSchema = CreateReferralsEmbedTokenLinkProps$outboundSchema;
|
|
50283
50522
|
})(CreateReferralsEmbedTokenLinkProps$ ||= {});
|
|
50284
|
-
Partner$
|
|
50523
|
+
Partner$inboundSchema2 = objectType({
|
|
50285
50524
|
name: nullableType(stringType()).optional(),
|
|
50286
50525
|
email: stringType(),
|
|
50287
50526
|
username: nullableType(stringType()).optional(),
|
|
@@ -50291,7 +50530,7 @@ var init_createreferralsembedtoken = __esm(() => {
|
|
|
50291
50530
|
description: nullableType(stringType()).optional(),
|
|
50292
50531
|
linkProps: lazyType(() => CreateReferralsEmbedTokenLinkProps$inboundSchema).optional()
|
|
50293
50532
|
});
|
|
50294
|
-
Partner$
|
|
50533
|
+
Partner$outboundSchema2 = objectType({
|
|
50295
50534
|
name: nullableType(stringType()).optional(),
|
|
50296
50535
|
email: stringType(),
|
|
50297
50536
|
username: nullableType(stringType()).optional(),
|
|
@@ -50302,18 +50541,18 @@ var init_createreferralsembedtoken = __esm(() => {
|
|
|
50302
50541
|
linkProps: lazyType(() => CreateReferralsEmbedTokenLinkProps$outboundSchema).optional()
|
|
50303
50542
|
});
|
|
50304
50543
|
((Partner$) => {
|
|
50305
|
-
Partner$.inboundSchema = Partner$
|
|
50306
|
-
Partner$.outboundSchema = Partner$
|
|
50307
|
-
})(Partner$ ||= {});
|
|
50544
|
+
Partner$.inboundSchema = Partner$inboundSchema2;
|
|
50545
|
+
Partner$.outboundSchema = Partner$outboundSchema2;
|
|
50546
|
+
})(Partner$2 ||= {});
|
|
50308
50547
|
CreateReferralsEmbedTokenRequestBody$inboundSchema = objectType({
|
|
50309
50548
|
partnerId: stringType().optional(),
|
|
50310
50549
|
tenantId: stringType().optional(),
|
|
50311
|
-
partner: lazyType(() => Partner$
|
|
50550
|
+
partner: lazyType(() => Partner$inboundSchema2).optional()
|
|
50312
50551
|
});
|
|
50313
50552
|
CreateReferralsEmbedTokenRequestBody$outboundSchema = objectType({
|
|
50314
50553
|
partnerId: stringType().optional(),
|
|
50315
50554
|
tenantId: stringType().optional(),
|
|
50316
|
-
partner: lazyType(() => Partner$
|
|
50555
|
+
partner: lazyType(() => Partner$outboundSchema2).optional()
|
|
50317
50556
|
});
|
|
50318
50557
|
((CreateReferralsEmbedTokenRequestBody$) => {
|
|
50319
50558
|
CreateReferralsEmbedTokenRequestBody$.inboundSchema = CreateReferralsEmbedTokenRequestBody$inboundSchema;
|
|
@@ -51137,7 +51376,7 @@ var init_getworkspace = __esm(() => {
|
|
|
51137
51376
|
});
|
|
51138
51377
|
|
|
51139
51378
|
// src/models/operations/listcommissions.ts
|
|
51140
|
-
var Type2, QueryParamStatus, ListCommissionsQueryParamSortBy, ListCommissionsQueryParamSortOrder, ListCommissionsQueryParamInterval, ListCommissionsType, ListCommissionsStatus, Type$inboundSchema2, Type$outboundSchema2, Type$2, QueryParamStatus$inboundSchema, QueryParamStatus$outboundSchema, QueryParamStatus$, ListCommissionsQueryParamSortBy$inboundSchema, ListCommissionsQueryParamSortBy$outboundSchema, ListCommissionsQueryParamSortBy$, ListCommissionsQueryParamSortOrder$inboundSchema, ListCommissionsQueryParamSortOrder$outboundSchema, ListCommissionsQueryParamSortOrder$, ListCommissionsQueryParamInterval$inboundSchema, ListCommissionsQueryParamInterval$outboundSchema, ListCommissionsQueryParamInterval$, ListCommissionsRequest$inboundSchema, ListCommissionsRequest$outboundSchema, ListCommissionsRequest$, ListCommissionsType$inboundSchema, ListCommissionsType$outboundSchema, ListCommissionsType$, ListCommissionsStatus$inboundSchema, ListCommissionsStatus$outboundSchema, ListCommissionsStatus$, ListCommissionsResponseBody$inboundSchema, ListCommissionsResponseBody$outboundSchema, ListCommissionsResponseBody$;
|
|
51379
|
+
var Type2, QueryParamStatus, ListCommissionsQueryParamSortBy, ListCommissionsQueryParamSortOrder, ListCommissionsQueryParamInterval, ListCommissionsType, ListCommissionsStatus, Type$inboundSchema2, Type$outboundSchema2, Type$2, QueryParamStatus$inboundSchema, QueryParamStatus$outboundSchema, QueryParamStatus$, ListCommissionsQueryParamSortBy$inboundSchema, ListCommissionsQueryParamSortBy$outboundSchema, ListCommissionsQueryParamSortBy$, ListCommissionsQueryParamSortOrder$inboundSchema, ListCommissionsQueryParamSortOrder$outboundSchema, ListCommissionsQueryParamSortOrder$, ListCommissionsQueryParamInterval$inboundSchema, ListCommissionsQueryParamInterval$outboundSchema, ListCommissionsQueryParamInterval$, ListCommissionsRequest$inboundSchema, ListCommissionsRequest$outboundSchema, ListCommissionsRequest$, ListCommissionsType$inboundSchema, ListCommissionsType$outboundSchema, ListCommissionsType$, ListCommissionsStatus$inboundSchema, ListCommissionsStatus$outboundSchema, ListCommissionsStatus$, ListCommissionsPartner$inboundSchema, ListCommissionsPartner$outboundSchema, ListCommissionsPartner$, ListCommissionsCustomer$inboundSchema, ListCommissionsCustomer$outboundSchema, ListCommissionsCustomer$, ListCommissionsResponseBody$inboundSchema, ListCommissionsResponseBody$outboundSchema, ListCommissionsResponseBody$;
|
|
51141
51380
|
var init_listcommissions = __esm(() => {
|
|
51142
51381
|
init_esm();
|
|
51143
51382
|
Type2 = {
|
|
@@ -51265,6 +51504,52 @@ var init_listcommissions = __esm(() => {
|
|
|
51265
51504
|
ListCommissionsStatus$.inboundSchema = ListCommissionsStatus$inboundSchema;
|
|
51266
51505
|
ListCommissionsStatus$.outboundSchema = ListCommissionsStatus$outboundSchema;
|
|
51267
51506
|
})(ListCommissionsStatus$ ||= {});
|
|
51507
|
+
ListCommissionsPartner$inboundSchema = objectType({
|
|
51508
|
+
id: stringType(),
|
|
51509
|
+
name: stringType(),
|
|
51510
|
+
email: nullableType(stringType()),
|
|
51511
|
+
image: nullableType(stringType()),
|
|
51512
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
51513
|
+
country: nullableType(stringType())
|
|
51514
|
+
});
|
|
51515
|
+
ListCommissionsPartner$outboundSchema = objectType({
|
|
51516
|
+
id: stringType(),
|
|
51517
|
+
name: stringType(),
|
|
51518
|
+
email: nullableType(stringType()),
|
|
51519
|
+
image: nullableType(stringType()),
|
|
51520
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
51521
|
+
country: nullableType(stringType())
|
|
51522
|
+
});
|
|
51523
|
+
((ListCommissionsPartner$) => {
|
|
51524
|
+
ListCommissionsPartner$.inboundSchema = ListCommissionsPartner$inboundSchema;
|
|
51525
|
+
ListCommissionsPartner$.outboundSchema = ListCommissionsPartner$outboundSchema;
|
|
51526
|
+
})(ListCommissionsPartner$ ||= {});
|
|
51527
|
+
ListCommissionsCustomer$inboundSchema = objectType({
|
|
51528
|
+
id: stringType(),
|
|
51529
|
+
externalId: stringType(),
|
|
51530
|
+
name: stringType(),
|
|
51531
|
+
email: nullableType(stringType()).optional(),
|
|
51532
|
+
avatar: nullableType(stringType()).optional(),
|
|
51533
|
+
country: nullableType(stringType()).optional(),
|
|
51534
|
+
sales: nullableType(numberType()).optional(),
|
|
51535
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
51536
|
+
createdAt: stringType()
|
|
51537
|
+
});
|
|
51538
|
+
ListCommissionsCustomer$outboundSchema = objectType({
|
|
51539
|
+
id: stringType(),
|
|
51540
|
+
externalId: stringType(),
|
|
51541
|
+
name: stringType(),
|
|
51542
|
+
email: nullableType(stringType()).optional(),
|
|
51543
|
+
avatar: nullableType(stringType()).optional(),
|
|
51544
|
+
country: nullableType(stringType()).optional(),
|
|
51545
|
+
sales: nullableType(numberType()).optional(),
|
|
51546
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
51547
|
+
createdAt: stringType()
|
|
51548
|
+
});
|
|
51549
|
+
((ListCommissionsCustomer$) => {
|
|
51550
|
+
ListCommissionsCustomer$.inboundSchema = ListCommissionsCustomer$inboundSchema;
|
|
51551
|
+
ListCommissionsCustomer$.outboundSchema = ListCommissionsCustomer$outboundSchema;
|
|
51552
|
+
})(ListCommissionsCustomer$ ||= {});
|
|
51268
51553
|
ListCommissionsResponseBody$inboundSchema = objectType({
|
|
51269
51554
|
id: stringType(),
|
|
51270
51555
|
type: ListCommissionsType$inboundSchema.optional(),
|
|
@@ -51272,10 +51557,14 @@ var init_listcommissions = __esm(() => {
|
|
|
51272
51557
|
earnings: numberType(),
|
|
51273
51558
|
currency: stringType(),
|
|
51274
51559
|
status: ListCommissionsStatus$inboundSchema,
|
|
51275
|
-
invoiceId: nullableType(stringType())
|
|
51276
|
-
description: nullableType(stringType())
|
|
51560
|
+
invoiceId: nullableType(stringType()),
|
|
51561
|
+
description: nullableType(stringType()),
|
|
51562
|
+
quantity: numberType(),
|
|
51563
|
+
userId: nullableType(stringType()).optional(),
|
|
51277
51564
|
createdAt: stringType(),
|
|
51278
|
-
updatedAt: stringType()
|
|
51565
|
+
updatedAt: stringType(),
|
|
51566
|
+
partner: lazyType(() => ListCommissionsPartner$inboundSchema),
|
|
51567
|
+
customer: nullableType(lazyType(() => ListCommissionsCustomer$inboundSchema)).optional()
|
|
51279
51568
|
});
|
|
51280
51569
|
ListCommissionsResponseBody$outboundSchema = objectType({
|
|
51281
51570
|
id: stringType(),
|
|
@@ -51284,10 +51573,14 @@ var init_listcommissions = __esm(() => {
|
|
|
51284
51573
|
earnings: numberType(),
|
|
51285
51574
|
currency: stringType(),
|
|
51286
51575
|
status: ListCommissionsStatus$outboundSchema,
|
|
51287
|
-
invoiceId: nullableType(stringType())
|
|
51288
|
-
description: nullableType(stringType())
|
|
51576
|
+
invoiceId: nullableType(stringType()),
|
|
51577
|
+
description: nullableType(stringType()),
|
|
51578
|
+
quantity: numberType(),
|
|
51579
|
+
userId: nullableType(stringType()).optional(),
|
|
51289
51580
|
createdAt: stringType(),
|
|
51290
|
-
updatedAt: stringType()
|
|
51581
|
+
updatedAt: stringType(),
|
|
51582
|
+
partner: lazyType(() => ListCommissionsPartner$outboundSchema),
|
|
51583
|
+
customer: nullableType(lazyType(() => ListCommissionsCustomer$outboundSchema)).optional()
|
|
51291
51584
|
});
|
|
51292
51585
|
((ListCommissionsResponseBody$) => {
|
|
51293
51586
|
ListCommissionsResponseBody$.inboundSchema = ListCommissionsResponseBody$inboundSchema;
|
|
@@ -51338,7 +51631,7 @@ var init_listdomains = __esm(() => {
|
|
|
51338
51631
|
});
|
|
51339
51632
|
|
|
51340
51633
|
// src/models/operations/listevents.ts
|
|
51341
|
-
var QueryParamEvent, QueryParamInterval, QueryParamTrigger, QueryParamSortOrder, QueryParamSortBy, Order, QueryParamEvent$inboundSchema, QueryParamEvent$outboundSchema, QueryParamEvent$, QueryParamInterval$inboundSchema, QueryParamInterval$outboundSchema, QueryParamInterval$, QueryParamTrigger$inboundSchema, QueryParamTrigger$outboundSchema, QueryParamTrigger$, ListEventsQueryParamTagIds$inboundSchema, ListEventsQueryParamTagIds$outboundSchema, ListEventsQueryParamTagIds$, QueryParamSortOrder$inboundSchema, QueryParamSortOrder$outboundSchema, QueryParamSortOrder$, QueryParamSortBy$inboundSchema, QueryParamSortBy$outboundSchema, QueryParamSortBy$, Order$inboundSchema, Order$outboundSchema, Order$, ListEventsRequest$inboundSchema, ListEventsRequest$outboundSchema, ListEventsRequest$, ListEventsResponseBody$inboundSchema, ListEventsResponseBody$outboundSchema, ListEventsResponseBody$;
|
|
51634
|
+
var QueryParamEvent, QueryParamInterval, QueryParamTrigger, QueryParamSaleType, QueryParamSortOrder, QueryParamSortBy, Order, QueryParamEvent$inboundSchema, QueryParamEvent$outboundSchema, QueryParamEvent$, QueryParamInterval$inboundSchema, QueryParamInterval$outboundSchema, QueryParamInterval$, QueryParamTrigger$inboundSchema, QueryParamTrigger$outboundSchema, QueryParamTrigger$, ListEventsQueryParamTagIds$inboundSchema, ListEventsQueryParamTagIds$outboundSchema, ListEventsQueryParamTagIds$, QueryParamSaleType$inboundSchema, QueryParamSaleType$outboundSchema, QueryParamSaleType$, QueryParamSortOrder$inboundSchema, QueryParamSortOrder$outboundSchema, QueryParamSortOrder$, QueryParamSortBy$inboundSchema, QueryParamSortBy$outboundSchema, QueryParamSortBy$, Order$inboundSchema, Order$outboundSchema, Order$, ListEventsRequest$inboundSchema, ListEventsRequest$outboundSchema, ListEventsRequest$, ListEventsResponseBody$inboundSchema, ListEventsResponseBody$outboundSchema, ListEventsResponseBody$;
|
|
51342
51635
|
var init_listevents = __esm(() => {
|
|
51343
51636
|
init_esm();
|
|
51344
51637
|
init_primitives();
|
|
@@ -51361,7 +51654,13 @@ var init_listevents = __esm(() => {
|
|
|
51361
51654
|
};
|
|
51362
51655
|
QueryParamTrigger = {
|
|
51363
51656
|
Qr: "qr",
|
|
51364
|
-
Link: "link"
|
|
51657
|
+
Link: "link",
|
|
51658
|
+
Pageview: "pageview",
|
|
51659
|
+
Deeplink: "deeplink"
|
|
51660
|
+
};
|
|
51661
|
+
QueryParamSaleType = {
|
|
51662
|
+
New: "new",
|
|
51663
|
+
Recurring: "recurring"
|
|
51365
51664
|
};
|
|
51366
51665
|
QueryParamSortOrder = {
|
|
51367
51666
|
Asc: "asc",
|
|
@@ -51398,6 +51697,12 @@ var init_listevents = __esm(() => {
|
|
|
51398
51697
|
ListEventsQueryParamTagIds$.inboundSchema = ListEventsQueryParamTagIds$inboundSchema;
|
|
51399
51698
|
ListEventsQueryParamTagIds$.outboundSchema = ListEventsQueryParamTagIds$outboundSchema;
|
|
51400
51699
|
})(ListEventsQueryParamTagIds$ ||= {});
|
|
51700
|
+
QueryParamSaleType$inboundSchema = nativeEnumType(QueryParamSaleType);
|
|
51701
|
+
QueryParamSaleType$outboundSchema = QueryParamSaleType$inboundSchema;
|
|
51702
|
+
((QueryParamSaleType$) => {
|
|
51703
|
+
QueryParamSaleType$.inboundSchema = QueryParamSaleType$inboundSchema;
|
|
51704
|
+
QueryParamSaleType$.outboundSchema = QueryParamSaleType$outboundSchema;
|
|
51705
|
+
})(QueryParamSaleType$ ||= {});
|
|
51401
51706
|
QueryParamSortOrder$inboundSchema = nativeEnumType(QueryParamSortOrder);
|
|
51402
51707
|
QueryParamSortOrder$outboundSchema = QueryParamSortOrder$inboundSchema;
|
|
51403
51708
|
((QueryParamSortOrder$) => {
|
|
@@ -51446,6 +51751,7 @@ var init_listevents = __esm(() => {
|
|
|
51446
51751
|
folderId: stringType().optional(),
|
|
51447
51752
|
qr: booleanType().optional(),
|
|
51448
51753
|
root: booleanType().optional(),
|
|
51754
|
+
saleType: QueryParamSaleType$inboundSchema.optional(),
|
|
51449
51755
|
utm_source: nullableType(stringType()).optional(),
|
|
51450
51756
|
utm_medium: nullableType(stringType()).optional(),
|
|
51451
51757
|
utm_campaign: nullableType(stringType()).optional(),
|
|
@@ -51495,6 +51801,7 @@ var init_listevents = __esm(() => {
|
|
|
51495
51801
|
folderId: stringType().optional(),
|
|
51496
51802
|
qr: booleanType().optional(),
|
|
51497
51803
|
root: booleanType().optional(),
|
|
51804
|
+
saleType: QueryParamSaleType$outboundSchema.optional(),
|
|
51498
51805
|
utmSource: nullableType(stringType()).optional(),
|
|
51499
51806
|
utmMedium: nullableType(stringType()).optional(),
|
|
51500
51807
|
utmCampaign: nullableType(stringType()).optional(),
|
|
@@ -51566,6 +51873,227 @@ var init_listfolders = __esm(() => {
|
|
|
51566
51873
|
})(ListFoldersRequest$ ||= {});
|
|
51567
51874
|
});
|
|
51568
51875
|
|
|
51876
|
+
// src/models/operations/listpartners.ts
|
|
51877
|
+
var ListPartnersQueryParamStatus, ListPartnersQueryParamSortBy, ListPartnersQueryParamSortOrder, ListPartnersStatus, ListPartnersBannedReason, ListPartnersQueryParamStatus$inboundSchema, ListPartnersQueryParamStatus$outboundSchema, ListPartnersQueryParamStatus$, ListPartnersQueryParamSortBy$inboundSchema, ListPartnersQueryParamSortBy$outboundSchema, ListPartnersQueryParamSortBy$, ListPartnersQueryParamSortOrder$inboundSchema, ListPartnersQueryParamSortOrder$outboundSchema, ListPartnersQueryParamSortOrder$, ListPartnersRequest$inboundSchema, ListPartnersRequest$outboundSchema, ListPartnersRequest$, ListPartnersStatus$inboundSchema, ListPartnersStatus$outboundSchema, ListPartnersStatus$, ListPartnersLink$inboundSchema, ListPartnersLink$outboundSchema, ListPartnersLink$, ListPartnersBannedReason$inboundSchema, ListPartnersBannedReason$outboundSchema, ListPartnersBannedReason$, ListPartnersResponseBody$inboundSchema, ListPartnersResponseBody$outboundSchema, ListPartnersResponseBody$;
|
|
51878
|
+
var init_listpartners = __esm(() => {
|
|
51879
|
+
init_esm();
|
|
51880
|
+
ListPartnersQueryParamStatus = {
|
|
51881
|
+
Pending: "pending",
|
|
51882
|
+
Approved: "approved",
|
|
51883
|
+
Rejected: "rejected",
|
|
51884
|
+
Invited: "invited",
|
|
51885
|
+
Declined: "declined",
|
|
51886
|
+
Banned: "banned",
|
|
51887
|
+
Archived: "archived"
|
|
51888
|
+
};
|
|
51889
|
+
ListPartnersQueryParamSortBy = {
|
|
51890
|
+
CreatedAt: "createdAt",
|
|
51891
|
+
Clicks: "clicks",
|
|
51892
|
+
Leads: "leads",
|
|
51893
|
+
Sales: "sales",
|
|
51894
|
+
SaleAmount: "saleAmount",
|
|
51895
|
+
Commissions: "commissions",
|
|
51896
|
+
NetRevenue: "netRevenue"
|
|
51897
|
+
};
|
|
51898
|
+
ListPartnersQueryParamSortOrder = {
|
|
51899
|
+
Asc: "asc",
|
|
51900
|
+
Desc: "desc"
|
|
51901
|
+
};
|
|
51902
|
+
ListPartnersStatus = {
|
|
51903
|
+
Pending: "pending",
|
|
51904
|
+
Approved: "approved",
|
|
51905
|
+
Rejected: "rejected",
|
|
51906
|
+
Invited: "invited",
|
|
51907
|
+
Declined: "declined",
|
|
51908
|
+
Banned: "banned",
|
|
51909
|
+
Archived: "archived"
|
|
51910
|
+
};
|
|
51911
|
+
ListPartnersBannedReason = {
|
|
51912
|
+
TosViolation: "tos_violation",
|
|
51913
|
+
InappropriateContent: "inappropriate_content",
|
|
51914
|
+
FakeTraffic: "fake_traffic",
|
|
51915
|
+
Fraud: "fraud",
|
|
51916
|
+
Spam: "spam",
|
|
51917
|
+
BrandAbuse: "brand_abuse"
|
|
51918
|
+
};
|
|
51919
|
+
ListPartnersQueryParamStatus$inboundSchema = nativeEnumType(ListPartnersQueryParamStatus);
|
|
51920
|
+
ListPartnersQueryParamStatus$outboundSchema = ListPartnersQueryParamStatus$inboundSchema;
|
|
51921
|
+
((ListPartnersQueryParamStatus$) => {
|
|
51922
|
+
ListPartnersQueryParamStatus$.inboundSchema = ListPartnersQueryParamStatus$inboundSchema;
|
|
51923
|
+
ListPartnersQueryParamStatus$.outboundSchema = ListPartnersQueryParamStatus$outboundSchema;
|
|
51924
|
+
})(ListPartnersQueryParamStatus$ ||= {});
|
|
51925
|
+
ListPartnersQueryParamSortBy$inboundSchema = nativeEnumType(ListPartnersQueryParamSortBy);
|
|
51926
|
+
ListPartnersQueryParamSortBy$outboundSchema = ListPartnersQueryParamSortBy$inboundSchema;
|
|
51927
|
+
((ListPartnersQueryParamSortBy$) => {
|
|
51928
|
+
ListPartnersQueryParamSortBy$.inboundSchema = ListPartnersQueryParamSortBy$inboundSchema;
|
|
51929
|
+
ListPartnersQueryParamSortBy$.outboundSchema = ListPartnersQueryParamSortBy$outboundSchema;
|
|
51930
|
+
})(ListPartnersQueryParamSortBy$ ||= {});
|
|
51931
|
+
ListPartnersQueryParamSortOrder$inboundSchema = nativeEnumType(ListPartnersQueryParamSortOrder);
|
|
51932
|
+
ListPartnersQueryParamSortOrder$outboundSchema = ListPartnersQueryParamSortOrder$inboundSchema;
|
|
51933
|
+
((ListPartnersQueryParamSortOrder$) => {
|
|
51934
|
+
ListPartnersQueryParamSortOrder$.inboundSchema = ListPartnersQueryParamSortOrder$inboundSchema;
|
|
51935
|
+
ListPartnersQueryParamSortOrder$.outboundSchema = ListPartnersQueryParamSortOrder$outboundSchema;
|
|
51936
|
+
})(ListPartnersQueryParamSortOrder$ ||= {});
|
|
51937
|
+
ListPartnersRequest$inboundSchema = objectType({
|
|
51938
|
+
status: ListPartnersQueryParamStatus$inboundSchema.optional(),
|
|
51939
|
+
country: stringType().optional(),
|
|
51940
|
+
sortBy: ListPartnersQueryParamSortBy$inboundSchema.default("saleAmount"),
|
|
51941
|
+
sortOrder: ListPartnersQueryParamSortOrder$inboundSchema.default("desc"),
|
|
51942
|
+
tenantId: stringType().optional(),
|
|
51943
|
+
includeExpandedFields: booleanType().optional(),
|
|
51944
|
+
search: stringType().optional(),
|
|
51945
|
+
page: numberType().default(1),
|
|
51946
|
+
pageSize: numberType().default(100)
|
|
51947
|
+
});
|
|
51948
|
+
ListPartnersRequest$outboundSchema = objectType({
|
|
51949
|
+
status: ListPartnersQueryParamStatus$outboundSchema.optional(),
|
|
51950
|
+
country: stringType().optional(),
|
|
51951
|
+
sortBy: ListPartnersQueryParamSortBy$outboundSchema.default("saleAmount"),
|
|
51952
|
+
sortOrder: ListPartnersQueryParamSortOrder$outboundSchema.default("desc"),
|
|
51953
|
+
tenantId: stringType().optional(),
|
|
51954
|
+
includeExpandedFields: booleanType().optional(),
|
|
51955
|
+
search: stringType().optional(),
|
|
51956
|
+
page: numberType().default(1),
|
|
51957
|
+
pageSize: numberType().default(100)
|
|
51958
|
+
});
|
|
51959
|
+
((ListPartnersRequest$) => {
|
|
51960
|
+
ListPartnersRequest$.inboundSchema = ListPartnersRequest$inboundSchema;
|
|
51961
|
+
ListPartnersRequest$.outboundSchema = ListPartnersRequest$outboundSchema;
|
|
51962
|
+
})(ListPartnersRequest$ ||= {});
|
|
51963
|
+
ListPartnersStatus$inboundSchema = nativeEnumType(ListPartnersStatus);
|
|
51964
|
+
ListPartnersStatus$outboundSchema = ListPartnersStatus$inboundSchema;
|
|
51965
|
+
((ListPartnersStatus$) => {
|
|
51966
|
+
ListPartnersStatus$.inboundSchema = ListPartnersStatus$inboundSchema;
|
|
51967
|
+
ListPartnersStatus$.outboundSchema = ListPartnersStatus$outboundSchema;
|
|
51968
|
+
})(ListPartnersStatus$ ||= {});
|
|
51969
|
+
ListPartnersLink$inboundSchema = objectType({
|
|
51970
|
+
id: stringType(),
|
|
51971
|
+
domain: stringType(),
|
|
51972
|
+
key: stringType(),
|
|
51973
|
+
shortLink: stringType(),
|
|
51974
|
+
url: stringType(),
|
|
51975
|
+
clicks: numberType().default(0),
|
|
51976
|
+
leads: numberType().default(0),
|
|
51977
|
+
sales: numberType().default(0),
|
|
51978
|
+
saleAmount: numberType().default(0)
|
|
51979
|
+
});
|
|
51980
|
+
ListPartnersLink$outboundSchema = objectType({
|
|
51981
|
+
id: stringType(),
|
|
51982
|
+
domain: stringType(),
|
|
51983
|
+
key: stringType(),
|
|
51984
|
+
shortLink: stringType(),
|
|
51985
|
+
url: stringType(),
|
|
51986
|
+
clicks: numberType().default(0),
|
|
51987
|
+
leads: numberType().default(0),
|
|
51988
|
+
sales: numberType().default(0),
|
|
51989
|
+
saleAmount: numberType().default(0)
|
|
51990
|
+
});
|
|
51991
|
+
((ListPartnersLink$) => {
|
|
51992
|
+
ListPartnersLink$.inboundSchema = ListPartnersLink$inboundSchema;
|
|
51993
|
+
ListPartnersLink$.outboundSchema = ListPartnersLink$outboundSchema;
|
|
51994
|
+
})(ListPartnersLink$ ||= {});
|
|
51995
|
+
ListPartnersBannedReason$inboundSchema = nativeEnumType(ListPartnersBannedReason);
|
|
51996
|
+
ListPartnersBannedReason$outboundSchema = ListPartnersBannedReason$inboundSchema;
|
|
51997
|
+
((ListPartnersBannedReason$) => {
|
|
51998
|
+
ListPartnersBannedReason$.inboundSchema = ListPartnersBannedReason$inboundSchema;
|
|
51999
|
+
ListPartnersBannedReason$.outboundSchema = ListPartnersBannedReason$outboundSchema;
|
|
52000
|
+
})(ListPartnersBannedReason$ ||= {});
|
|
52001
|
+
ListPartnersResponseBody$inboundSchema = objectType({
|
|
52002
|
+
id: stringType(),
|
|
52003
|
+
name: stringType(),
|
|
52004
|
+
email: nullableType(stringType()),
|
|
52005
|
+
image: nullableType(stringType()),
|
|
52006
|
+
description: nullableType(stringType()).optional(),
|
|
52007
|
+
country: nullableType(stringType()),
|
|
52008
|
+
paypalEmail: nullableType(stringType()),
|
|
52009
|
+
stripeConnectId: nullableType(stringType()),
|
|
52010
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
52011
|
+
partnerId: stringType(),
|
|
52012
|
+
tenantId: nullableType(stringType()),
|
|
52013
|
+
programId: stringType(),
|
|
52014
|
+
createdAt: stringType(),
|
|
52015
|
+
status: ListPartnersStatus$inboundSchema,
|
|
52016
|
+
links: nullableType(arrayType(lazyType(() => ListPartnersLink$inboundSchema))),
|
|
52017
|
+
totalCommissions: numberType().default(0),
|
|
52018
|
+
clickRewardId: nullableType(stringType()).optional(),
|
|
52019
|
+
leadRewardId: nullableType(stringType()).optional(),
|
|
52020
|
+
saleRewardId: nullableType(stringType()).optional(),
|
|
52021
|
+
discountId: nullableType(stringType()).optional(),
|
|
52022
|
+
applicationId: nullableType(stringType()).optional(),
|
|
52023
|
+
bannedAt: nullableType(stringType()).optional(),
|
|
52024
|
+
bannedReason: nullableType(ListPartnersBannedReason$inboundSchema).optional(),
|
|
52025
|
+
clicks: numberType().default(0),
|
|
52026
|
+
leads: numberType().default(0),
|
|
52027
|
+
sales: numberType().default(0),
|
|
52028
|
+
saleAmount: numberType().default(0),
|
|
52029
|
+
netRevenue: numberType().default(0),
|
|
52030
|
+
website: nullableType(stringType()).optional(),
|
|
52031
|
+
websiteTxtRecord: nullableType(stringType()).optional(),
|
|
52032
|
+
websiteVerifiedAt: nullableType(stringType()).optional(),
|
|
52033
|
+
youtube: nullableType(stringType()).optional(),
|
|
52034
|
+
youtubeVerifiedAt: nullableType(stringType()).optional(),
|
|
52035
|
+
youtubeSubscriberCount: nullableType(numberType()).optional(),
|
|
52036
|
+
youtubeViewCount: nullableType(numberType()).optional(),
|
|
52037
|
+
twitter: nullableType(stringType()).optional(),
|
|
52038
|
+
twitterVerifiedAt: nullableType(stringType()).optional(),
|
|
52039
|
+
linkedin: nullableType(stringType()).optional(),
|
|
52040
|
+
linkedinVerifiedAt: nullableType(stringType()).optional(),
|
|
52041
|
+
instagram: nullableType(stringType()).optional(),
|
|
52042
|
+
instagramVerifiedAt: nullableType(stringType()).optional(),
|
|
52043
|
+
tiktok: nullableType(stringType()).optional(),
|
|
52044
|
+
tiktokVerifiedAt: nullableType(stringType()).optional()
|
|
52045
|
+
});
|
|
52046
|
+
ListPartnersResponseBody$outboundSchema = objectType({
|
|
52047
|
+
id: stringType(),
|
|
52048
|
+
name: stringType(),
|
|
52049
|
+
email: nullableType(stringType()),
|
|
52050
|
+
image: nullableType(stringType()),
|
|
52051
|
+
description: nullableType(stringType()).optional(),
|
|
52052
|
+
country: nullableType(stringType()),
|
|
52053
|
+
paypalEmail: nullableType(stringType()),
|
|
52054
|
+
stripeConnectId: nullableType(stringType()),
|
|
52055
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
52056
|
+
partnerId: stringType(),
|
|
52057
|
+
tenantId: nullableType(stringType()),
|
|
52058
|
+
programId: stringType(),
|
|
52059
|
+
createdAt: stringType(),
|
|
52060
|
+
status: ListPartnersStatus$outboundSchema,
|
|
52061
|
+
links: nullableType(arrayType(lazyType(() => ListPartnersLink$outboundSchema))),
|
|
52062
|
+
totalCommissions: numberType().default(0),
|
|
52063
|
+
clickRewardId: nullableType(stringType()).optional(),
|
|
52064
|
+
leadRewardId: nullableType(stringType()).optional(),
|
|
52065
|
+
saleRewardId: nullableType(stringType()).optional(),
|
|
52066
|
+
discountId: nullableType(stringType()).optional(),
|
|
52067
|
+
applicationId: nullableType(stringType()).optional(),
|
|
52068
|
+
bannedAt: nullableType(stringType()).optional(),
|
|
52069
|
+
bannedReason: nullableType(ListPartnersBannedReason$outboundSchema).optional(),
|
|
52070
|
+
clicks: numberType().default(0),
|
|
52071
|
+
leads: numberType().default(0),
|
|
52072
|
+
sales: numberType().default(0),
|
|
52073
|
+
saleAmount: numberType().default(0),
|
|
52074
|
+
netRevenue: numberType().default(0),
|
|
52075
|
+
website: nullableType(stringType()).optional(),
|
|
52076
|
+
websiteTxtRecord: nullableType(stringType()).optional(),
|
|
52077
|
+
websiteVerifiedAt: nullableType(stringType()).optional(),
|
|
52078
|
+
youtube: nullableType(stringType()).optional(),
|
|
52079
|
+
youtubeVerifiedAt: nullableType(stringType()).optional(),
|
|
52080
|
+
youtubeSubscriberCount: nullableType(numberType()).optional(),
|
|
52081
|
+
youtubeViewCount: nullableType(numberType()).optional(),
|
|
52082
|
+
twitter: nullableType(stringType()).optional(),
|
|
52083
|
+
twitterVerifiedAt: nullableType(stringType()).optional(),
|
|
52084
|
+
linkedin: nullableType(stringType()).optional(),
|
|
52085
|
+
linkedinVerifiedAt: nullableType(stringType()).optional(),
|
|
52086
|
+
instagram: nullableType(stringType()).optional(),
|
|
52087
|
+
instagramVerifiedAt: nullableType(stringType()).optional(),
|
|
52088
|
+
tiktok: nullableType(stringType()).optional(),
|
|
52089
|
+
tiktokVerifiedAt: nullableType(stringType()).optional()
|
|
52090
|
+
});
|
|
52091
|
+
((ListPartnersResponseBody$) => {
|
|
52092
|
+
ListPartnersResponseBody$.inboundSchema = ListPartnersResponseBody$inboundSchema;
|
|
52093
|
+
ListPartnersResponseBody$.outboundSchema = ListPartnersResponseBody$outboundSchema;
|
|
52094
|
+
})(ListPartnersResponseBody$ ||= {});
|
|
52095
|
+
});
|
|
52096
|
+
|
|
51569
52097
|
// src/models/operations/registerdomain.ts
|
|
51570
52098
|
var RegisterDomainRequestBody$inboundSchema, RegisterDomainRequestBody$outboundSchema, RegisterDomainRequestBody$, RegisterDomainResponseBody$inboundSchema, RegisterDomainResponseBody$outboundSchema, RegisterDomainResponseBody$;
|
|
51571
52099
|
var init_registerdomain = __esm(() => {
|
|
@@ -51597,7 +52125,7 @@ var init_registerdomain = __esm(() => {
|
|
|
51597
52125
|
});
|
|
51598
52126
|
|
|
51599
52127
|
// src/models/operations/retrieveanalytics.ts
|
|
51600
|
-
var Event2, QueryParamGroupBy, Interval, Trigger2, Event$inboundSchema2, Event$outboundSchema2, Event$2, QueryParamGroupBy$inboundSchema, QueryParamGroupBy$outboundSchema, QueryParamGroupBy$, Interval$inboundSchema, Interval$outboundSchema, Interval$, Trigger$inboundSchema2, Trigger$outboundSchema2, Trigger$2, RetrieveAnalyticsQueryParamTagIds$inboundSchema, RetrieveAnalyticsQueryParamTagIds$outboundSchema, RetrieveAnalyticsQueryParamTagIds$, RetrieveAnalyticsRequest$inboundSchema, RetrieveAnalyticsRequest$outboundSchema, RetrieveAnalyticsRequest$, RetrieveAnalyticsResponseBody$inboundSchema, RetrieveAnalyticsResponseBody$outboundSchema, RetrieveAnalyticsResponseBody$;
|
|
52128
|
+
var Event2, QueryParamGroupBy, Interval, Trigger2, SaleType, Event$inboundSchema2, Event$outboundSchema2, Event$2, QueryParamGroupBy$inboundSchema, QueryParamGroupBy$outboundSchema, QueryParamGroupBy$, Interval$inboundSchema, Interval$outboundSchema, Interval$, Trigger$inboundSchema2, Trigger$outboundSchema2, Trigger$2, RetrieveAnalyticsQueryParamTagIds$inboundSchema, RetrieveAnalyticsQueryParamTagIds$outboundSchema, RetrieveAnalyticsQueryParamTagIds$, SaleType$inboundSchema, SaleType$outboundSchema, SaleType$, RetrieveAnalyticsRequest$inboundSchema, RetrieveAnalyticsRequest$outboundSchema, RetrieveAnalyticsRequest$, RetrieveAnalyticsResponseBody$inboundSchema, RetrieveAnalyticsResponseBody$outboundSchema, RetrieveAnalyticsResponseBody$;
|
|
51601
52129
|
var init_retrieveanalytics = __esm(() => {
|
|
51602
52130
|
init_esm();
|
|
51603
52131
|
init_primitives();
|
|
@@ -51644,7 +52172,13 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
51644
52172
|
};
|
|
51645
52173
|
Trigger2 = {
|
|
51646
52174
|
Qr: "qr",
|
|
51647
|
-
Link: "link"
|
|
52175
|
+
Link: "link",
|
|
52176
|
+
Pageview: "pageview",
|
|
52177
|
+
Deeplink: "deeplink"
|
|
52178
|
+
};
|
|
52179
|
+
SaleType = {
|
|
52180
|
+
New: "new",
|
|
52181
|
+
Recurring: "recurring"
|
|
51648
52182
|
};
|
|
51649
52183
|
Event$inboundSchema2 = nativeEnumType(Event2);
|
|
51650
52184
|
Event$outboundSchema2 = Event$inboundSchema2;
|
|
@@ -51676,6 +52210,12 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
51676
52210
|
RetrieveAnalyticsQueryParamTagIds$.inboundSchema = RetrieveAnalyticsQueryParamTagIds$inboundSchema;
|
|
51677
52211
|
RetrieveAnalyticsQueryParamTagIds$.outboundSchema = RetrieveAnalyticsQueryParamTagIds$outboundSchema;
|
|
51678
52212
|
})(RetrieveAnalyticsQueryParamTagIds$ ||= {});
|
|
52213
|
+
SaleType$inboundSchema = nativeEnumType(SaleType);
|
|
52214
|
+
SaleType$outboundSchema = SaleType$inboundSchema;
|
|
52215
|
+
((SaleType$) => {
|
|
52216
|
+
SaleType$.inboundSchema = SaleType$inboundSchema;
|
|
52217
|
+
SaleType$.outboundSchema = SaleType$outboundSchema;
|
|
52218
|
+
})(SaleType$ ||= {});
|
|
51679
52219
|
RetrieveAnalyticsRequest$inboundSchema = objectType({
|
|
51680
52220
|
event: Event$inboundSchema2.default("clicks"),
|
|
51681
52221
|
groupBy: QueryParamGroupBy$inboundSchema.default("count"),
|
|
@@ -51707,6 +52247,7 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
51707
52247
|
folderId: stringType().optional(),
|
|
51708
52248
|
qr: booleanType().optional(),
|
|
51709
52249
|
root: booleanType().optional(),
|
|
52250
|
+
saleType: SaleType$inboundSchema.optional(),
|
|
51710
52251
|
utm_source: nullableType(stringType()).optional(),
|
|
51711
52252
|
utm_medium: nullableType(stringType()).optional(),
|
|
51712
52253
|
utm_campaign: nullableType(stringType()).optional(),
|
|
@@ -51752,6 +52293,7 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
51752
52293
|
folderId: stringType().optional(),
|
|
51753
52294
|
qr: booleanType().optional(),
|
|
51754
52295
|
root: booleanType().optional(),
|
|
52296
|
+
saleType: SaleType$outboundSchema.optional(),
|
|
51755
52297
|
utmSource: nullableType(stringType()).optional(),
|
|
51756
52298
|
utmMedium: nullableType(stringType()).optional(),
|
|
51757
52299
|
utmCampaign: nullableType(stringType()).optional(),
|
|
@@ -52012,6 +52554,7 @@ var init_tracksale = __esm(() => {
|
|
|
52012
52554
|
Shopify: "shopify",
|
|
52013
52555
|
Polar: "polar",
|
|
52014
52556
|
Paddle: "paddle",
|
|
52557
|
+
Revenuecat: "revenuecat",
|
|
52015
52558
|
Custom: "custom"
|
|
52016
52559
|
};
|
|
52017
52560
|
PaymentProcessor$inboundSchema2 = nativeEnumType(PaymentProcessor2);
|
|
@@ -52097,7 +52640,7 @@ var init_tracksale = __esm(() => {
|
|
|
52097
52640
|
});
|
|
52098
52641
|
|
|
52099
52642
|
// src/models/operations/updatecommission.ts
|
|
52100
|
-
var Status2, UpdateCommissionType, UpdateCommissionStatus, Status$inboundSchema2, Status$outboundSchema2, Status$2, UpdateCommissionRequestBody$inboundSchema, UpdateCommissionRequestBody$outboundSchema, UpdateCommissionRequestBody$, UpdateCommissionRequest$inboundSchema, UpdateCommissionRequest$outboundSchema, UpdateCommissionRequest$, UpdateCommissionType$inboundSchema, UpdateCommissionType$outboundSchema, UpdateCommissionType$, UpdateCommissionStatus$inboundSchema, UpdateCommissionStatus$outboundSchema, UpdateCommissionStatus$, UpdateCommissionResponseBody$inboundSchema, UpdateCommissionResponseBody$outboundSchema, UpdateCommissionResponseBody$;
|
|
52643
|
+
var Status2, UpdateCommissionType, UpdateCommissionStatus, Status$inboundSchema2, Status$outboundSchema2, Status$2, UpdateCommissionRequestBody$inboundSchema, UpdateCommissionRequestBody$outboundSchema, UpdateCommissionRequestBody$, UpdateCommissionRequest$inboundSchema, UpdateCommissionRequest$outboundSchema, UpdateCommissionRequest$, UpdateCommissionType$inboundSchema, UpdateCommissionType$outboundSchema, UpdateCommissionType$, UpdateCommissionStatus$inboundSchema, UpdateCommissionStatus$outboundSchema, UpdateCommissionStatus$, UpdateCommissionPartner$inboundSchema, UpdateCommissionPartner$outboundSchema, UpdateCommissionPartner$, UpdateCommissionCustomer$inboundSchema, UpdateCommissionCustomer$outboundSchema, UpdateCommissionCustomer$, UpdateCommissionResponseBody$inboundSchema, UpdateCommissionResponseBody$outboundSchema, UpdateCommissionResponseBody$;
|
|
52101
52644
|
var init_updatecommission = __esm(() => {
|
|
52102
52645
|
init_esm();
|
|
52103
52646
|
init_primitives();
|
|
@@ -52176,6 +52719,52 @@ var init_updatecommission = __esm(() => {
|
|
|
52176
52719
|
UpdateCommissionStatus$.inboundSchema = UpdateCommissionStatus$inboundSchema;
|
|
52177
52720
|
UpdateCommissionStatus$.outboundSchema = UpdateCommissionStatus$outboundSchema;
|
|
52178
52721
|
})(UpdateCommissionStatus$ ||= {});
|
|
52722
|
+
UpdateCommissionPartner$inboundSchema = objectType({
|
|
52723
|
+
id: stringType(),
|
|
52724
|
+
name: stringType(),
|
|
52725
|
+
email: nullableType(stringType()),
|
|
52726
|
+
image: nullableType(stringType()),
|
|
52727
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
52728
|
+
country: nullableType(stringType())
|
|
52729
|
+
});
|
|
52730
|
+
UpdateCommissionPartner$outboundSchema = objectType({
|
|
52731
|
+
id: stringType(),
|
|
52732
|
+
name: stringType(),
|
|
52733
|
+
email: nullableType(stringType()),
|
|
52734
|
+
image: nullableType(stringType()),
|
|
52735
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
52736
|
+
country: nullableType(stringType())
|
|
52737
|
+
});
|
|
52738
|
+
((UpdateCommissionPartner$) => {
|
|
52739
|
+
UpdateCommissionPartner$.inboundSchema = UpdateCommissionPartner$inboundSchema;
|
|
52740
|
+
UpdateCommissionPartner$.outboundSchema = UpdateCommissionPartner$outboundSchema;
|
|
52741
|
+
})(UpdateCommissionPartner$ ||= {});
|
|
52742
|
+
UpdateCommissionCustomer$inboundSchema = objectType({
|
|
52743
|
+
id: stringType(),
|
|
52744
|
+
externalId: stringType(),
|
|
52745
|
+
name: stringType(),
|
|
52746
|
+
email: nullableType(stringType()).optional(),
|
|
52747
|
+
avatar: nullableType(stringType()).optional(),
|
|
52748
|
+
country: nullableType(stringType()).optional(),
|
|
52749
|
+
sales: nullableType(numberType()).optional(),
|
|
52750
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
52751
|
+
createdAt: stringType()
|
|
52752
|
+
});
|
|
52753
|
+
UpdateCommissionCustomer$outboundSchema = objectType({
|
|
52754
|
+
id: stringType(),
|
|
52755
|
+
externalId: stringType(),
|
|
52756
|
+
name: stringType(),
|
|
52757
|
+
email: nullableType(stringType()).optional(),
|
|
52758
|
+
avatar: nullableType(stringType()).optional(),
|
|
52759
|
+
country: nullableType(stringType()).optional(),
|
|
52760
|
+
sales: nullableType(numberType()).optional(),
|
|
52761
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
52762
|
+
createdAt: stringType()
|
|
52763
|
+
});
|
|
52764
|
+
((UpdateCommissionCustomer$) => {
|
|
52765
|
+
UpdateCommissionCustomer$.inboundSchema = UpdateCommissionCustomer$inboundSchema;
|
|
52766
|
+
UpdateCommissionCustomer$.outboundSchema = UpdateCommissionCustomer$outboundSchema;
|
|
52767
|
+
})(UpdateCommissionCustomer$ ||= {});
|
|
52179
52768
|
UpdateCommissionResponseBody$inboundSchema = objectType({
|
|
52180
52769
|
id: stringType(),
|
|
52181
52770
|
type: UpdateCommissionType$inboundSchema.optional(),
|
|
@@ -52183,10 +52772,14 @@ var init_updatecommission = __esm(() => {
|
|
|
52183
52772
|
earnings: numberType(),
|
|
52184
52773
|
currency: stringType(),
|
|
52185
52774
|
status: UpdateCommissionStatus$inboundSchema,
|
|
52186
|
-
invoiceId: nullableType(stringType())
|
|
52187
|
-
description: nullableType(stringType())
|
|
52775
|
+
invoiceId: nullableType(stringType()),
|
|
52776
|
+
description: nullableType(stringType()),
|
|
52777
|
+
quantity: numberType(),
|
|
52778
|
+
userId: nullableType(stringType()).optional(),
|
|
52188
52779
|
createdAt: stringType(),
|
|
52189
|
-
updatedAt: stringType()
|
|
52780
|
+
updatedAt: stringType(),
|
|
52781
|
+
partner: lazyType(() => UpdateCommissionPartner$inboundSchema),
|
|
52782
|
+
customer: nullableType(lazyType(() => UpdateCommissionCustomer$inboundSchema)).optional()
|
|
52190
52783
|
});
|
|
52191
52784
|
UpdateCommissionResponseBody$outboundSchema = objectType({
|
|
52192
52785
|
id: stringType(),
|
|
@@ -52195,10 +52788,14 @@ var init_updatecommission = __esm(() => {
|
|
|
52195
52788
|
earnings: numberType(),
|
|
52196
52789
|
currency: stringType(),
|
|
52197
52790
|
status: UpdateCommissionStatus$outboundSchema,
|
|
52198
|
-
invoiceId: nullableType(stringType())
|
|
52199
|
-
description: nullableType(stringType())
|
|
52791
|
+
invoiceId: nullableType(stringType()),
|
|
52792
|
+
description: nullableType(stringType()),
|
|
52793
|
+
quantity: numberType(),
|
|
52794
|
+
userId: nullableType(stringType()).optional(),
|
|
52200
52795
|
createdAt: stringType(),
|
|
52201
|
-
updatedAt: stringType()
|
|
52796
|
+
updatedAt: stringType(),
|
|
52797
|
+
partner: lazyType(() => UpdateCommissionPartner$outboundSchema),
|
|
52798
|
+
customer: nullableType(lazyType(() => UpdateCommissionCustomer$outboundSchema)).optional()
|
|
52202
52799
|
});
|
|
52203
52800
|
((UpdateCommissionResponseBody$) => {
|
|
52204
52801
|
UpdateCommissionResponseBody$.inboundSchema = UpdateCommissionResponseBody$inboundSchema;
|
|
@@ -53012,6 +53609,7 @@ var init_operations = __esm(() => {
|
|
|
53012
53609
|
init_listdomains();
|
|
53013
53610
|
init_listevents();
|
|
53014
53611
|
init_listfolders();
|
|
53612
|
+
init_listpartners();
|
|
53015
53613
|
init_registerdomain();
|
|
53016
53614
|
init_retrieveanalytics();
|
|
53017
53615
|
init_retrievelinks();
|
|
@@ -53091,6 +53689,7 @@ async function $do(client, request, options) {
|
|
|
53091
53689
|
refererUrl: payload?.refererUrl,
|
|
53092
53690
|
region: payload?.region,
|
|
53093
53691
|
root: payload?.root,
|
|
53692
|
+
saleType: payload?.saleType,
|
|
53094
53693
|
start: payload?.start,
|
|
53095
53694
|
tagId: payload?.tagId,
|
|
53096
53695
|
tagIds: payload?.tagIds,
|
|
@@ -55013,6 +55612,7 @@ async function $do16(client, request, options) {
|
|
|
55013
55612
|
refererUrl: payload?.refererUrl,
|
|
55014
55613
|
region: payload?.region,
|
|
55015
55614
|
root: payload?.root,
|
|
55615
|
+
saleType: payload?.saleType,
|
|
55016
55616
|
sortBy: payload?.sortBy,
|
|
55017
55617
|
sortOrder: payload?.sortOrder,
|
|
55018
55618
|
start: payload?.start,
|
|
@@ -57226,11 +57826,138 @@ Create a link for a partner that is enrolled in your program.`,
|
|
|
57226
57826
|
};
|
|
57227
57827
|
});
|
|
57228
57828
|
|
|
57229
|
-
// src/funcs/
|
|
57230
|
-
function
|
|
57829
|
+
// src/funcs/partnersList.ts
|
|
57830
|
+
function partnersList(client, request, options) {
|
|
57231
57831
|
return new APIPromise($do34(client, request, options));
|
|
57232
57832
|
}
|
|
57233
57833
|
async function $do34(client, request, options) {
|
|
57834
|
+
const parsed = safeParse(request, (value) => ListPartnersRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57835
|
+
if (!parsed.ok) {
|
|
57836
|
+
return [parsed, { status: "invalid" }];
|
|
57837
|
+
}
|
|
57838
|
+
const payload = parsed.value;
|
|
57839
|
+
const body = null;
|
|
57840
|
+
const path = pathToFunc("/partners")();
|
|
57841
|
+
const query = encodeFormQuery({
|
|
57842
|
+
country: payload?.country,
|
|
57843
|
+
includeExpandedFields: payload?.includeExpandedFields,
|
|
57844
|
+
page: payload?.page,
|
|
57845
|
+
pageSize: payload?.pageSize,
|
|
57846
|
+
search: payload?.search,
|
|
57847
|
+
sortBy: payload?.sortBy,
|
|
57848
|
+
sortOrder: payload?.sortOrder,
|
|
57849
|
+
status: payload?.status,
|
|
57850
|
+
tenantId: payload?.tenantId
|
|
57851
|
+
});
|
|
57852
|
+
const headers = new Headers(compactMap({
|
|
57853
|
+
Accept: "application/json"
|
|
57854
|
+
}));
|
|
57855
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
57856
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
57857
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57858
|
+
const context = {
|
|
57859
|
+
options: client._options,
|
|
57860
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
57861
|
+
operationID: "listPartners",
|
|
57862
|
+
oAuth2Scopes: [],
|
|
57863
|
+
resolvedSecurity: requestSecurity,
|
|
57864
|
+
securitySource: client._options.token,
|
|
57865
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
57866
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
57867
|
+
};
|
|
57868
|
+
const requestRes = client._createRequest(context, {
|
|
57869
|
+
security: requestSecurity,
|
|
57870
|
+
method: "GET",
|
|
57871
|
+
baseURL: options?.serverURL,
|
|
57872
|
+
path,
|
|
57873
|
+
headers,
|
|
57874
|
+
query,
|
|
57875
|
+
body,
|
|
57876
|
+
userAgent: client._options.userAgent,
|
|
57877
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
57878
|
+
}, options);
|
|
57879
|
+
if (!requestRes.ok) {
|
|
57880
|
+
return [requestRes, { status: "invalid" }];
|
|
57881
|
+
}
|
|
57882
|
+
const req = requestRes.value;
|
|
57883
|
+
const doResult = await client._do(req, {
|
|
57884
|
+
context,
|
|
57885
|
+
errorCodes: [
|
|
57886
|
+
"400",
|
|
57887
|
+
"401",
|
|
57888
|
+
"403",
|
|
57889
|
+
"404",
|
|
57890
|
+
"409",
|
|
57891
|
+
"410",
|
|
57892
|
+
"422",
|
|
57893
|
+
"429",
|
|
57894
|
+
"4XX",
|
|
57895
|
+
"500",
|
|
57896
|
+
"5XX"
|
|
57897
|
+
],
|
|
57898
|
+
retryConfig: context.retryConfig,
|
|
57899
|
+
retryCodes: context.retryCodes
|
|
57900
|
+
});
|
|
57901
|
+
if (!doResult.ok) {
|
|
57902
|
+
return [doResult, { status: "request-error", request: req }];
|
|
57903
|
+
}
|
|
57904
|
+
const response = doResult.value;
|
|
57905
|
+
const responseFields = {
|
|
57906
|
+
HttpMeta: { Response: response, Request: req }
|
|
57907
|
+
};
|
|
57908
|
+
const [result] = await match(json(200, arrayType(ListPartnersResponseBody$inboundSchema)), jsonErr(400, BadRequest$inboundSchema), jsonErr(401, Unauthorized$inboundSchema), jsonErr(403, Forbidden$inboundSchema), jsonErr(404, NotFound$inboundSchema), jsonErr(409, Conflict$inboundSchema), jsonErr(410, InviteExpired$inboundSchema), jsonErr(422, UnprocessableEntity$inboundSchema), jsonErr(429, RateLimitExceeded$inboundSchema), jsonErr(500, InternalServerError$inboundSchema), fail("4XX"), fail("5XX"))(response, req, { extraFields: responseFields });
|
|
57909
|
+
if (!result.ok) {
|
|
57910
|
+
return [result, { status: "complete", request: req, response }];
|
|
57911
|
+
}
|
|
57912
|
+
return [result, { status: "complete", request: req, response }];
|
|
57913
|
+
}
|
|
57914
|
+
var init_partnersList = __esm(() => {
|
|
57915
|
+
init_esm();
|
|
57916
|
+
init_encodings();
|
|
57917
|
+
init_matchers();
|
|
57918
|
+
init_primitives();
|
|
57919
|
+
init_schemas();
|
|
57920
|
+
init_security();
|
|
57921
|
+
init_url();
|
|
57922
|
+
init_errors2();
|
|
57923
|
+
init_operations();
|
|
57924
|
+
init_async();
|
|
57925
|
+
});
|
|
57926
|
+
|
|
57927
|
+
// src/mcp-server/tools/partnersList.ts
|
|
57928
|
+
var args34, tool$partnersList;
|
|
57929
|
+
var init_partnersList2 = __esm(() => {
|
|
57930
|
+
init_partnersList();
|
|
57931
|
+
init_operations();
|
|
57932
|
+
init_tools();
|
|
57933
|
+
args34 = {
|
|
57934
|
+
request: ListPartnersRequest$inboundSchema.optional()
|
|
57935
|
+
};
|
|
57936
|
+
tool$partnersList = {
|
|
57937
|
+
name: "partners-list",
|
|
57938
|
+
description: `List all partners
|
|
57939
|
+
|
|
57940
|
+
List all partners for a partner program.`,
|
|
57941
|
+
args: args34,
|
|
57942
|
+
tool: async (client, args35, ctx) => {
|
|
57943
|
+
const [result, apiCall] = await partnersList(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57944
|
+
if (!result.ok) {
|
|
57945
|
+
return {
|
|
57946
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57947
|
+
isError: true
|
|
57948
|
+
};
|
|
57949
|
+
}
|
|
57950
|
+
const value = result.value;
|
|
57951
|
+
return formatResult(value, apiCall);
|
|
57952
|
+
}
|
|
57953
|
+
};
|
|
57954
|
+
});
|
|
57955
|
+
|
|
57956
|
+
// src/funcs/partnersRetrieveLinks.ts
|
|
57957
|
+
function partnersRetrieveLinks(client, request, options) {
|
|
57958
|
+
return new APIPromise($do35(client, request, options));
|
|
57959
|
+
}
|
|
57960
|
+
async function $do35(client, request, options) {
|
|
57234
57961
|
const parsed = safeParse(request, (value) => RetrieveLinksRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57235
57962
|
if (!parsed.ok) {
|
|
57236
57963
|
return [parsed, { status: "invalid" }];
|
|
@@ -57318,12 +58045,12 @@ var init_partnersRetrieveLinks = __esm(() => {
|
|
|
57318
58045
|
});
|
|
57319
58046
|
|
|
57320
58047
|
// src/mcp-server/tools/partnersRetrieveLinks.ts
|
|
57321
|
-
var
|
|
58048
|
+
var args35, tool$partnersRetrieveLinks;
|
|
57322
58049
|
var init_partnersRetrieveLinks2 = __esm(() => {
|
|
57323
58050
|
init_partnersRetrieveLinks();
|
|
57324
58051
|
init_operations();
|
|
57325
58052
|
init_tools();
|
|
57326
|
-
|
|
58053
|
+
args35 = {
|
|
57327
58054
|
request: RetrieveLinksRequest$inboundSchema.optional()
|
|
57328
58055
|
};
|
|
57329
58056
|
tool$partnersRetrieveLinks = {
|
|
@@ -57331,9 +58058,9 @@ var init_partnersRetrieveLinks2 = __esm(() => {
|
|
|
57331
58058
|
description: `Retrieve a partner's links.
|
|
57332
58059
|
|
|
57333
58060
|
Retrieve a partner's links by their partner ID or tenant ID.`,
|
|
57334
|
-
args:
|
|
57335
|
-
tool: async (client,
|
|
57336
|
-
const [result, apiCall] = await partnersRetrieveLinks(client,
|
|
58061
|
+
args: args35,
|
|
58062
|
+
tool: async (client, args36, ctx) => {
|
|
58063
|
+
const [result, apiCall] = await partnersRetrieveLinks(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57337
58064
|
if (!result.ok) {
|
|
57338
58065
|
return {
|
|
57339
58066
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57348,9 +58075,9 @@ Retrieve a partner's links by their partner ID or tenant ID.`,
|
|
|
57348
58075
|
|
|
57349
58076
|
// src/funcs/partnersUpsertLink.ts
|
|
57350
58077
|
function partnersUpsertLink(client, request, options) {
|
|
57351
|
-
return new APIPromise($
|
|
58078
|
+
return new APIPromise($do36(client, request, options));
|
|
57352
58079
|
}
|
|
57353
|
-
async function $
|
|
58080
|
+
async function $do36(client, request, options) {
|
|
57354
58081
|
const parsed = safeParse(request, (value) => UpsertPartnerLinkRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57355
58082
|
if (!parsed.ok) {
|
|
57356
58083
|
return [parsed, { status: "invalid" }];
|
|
@@ -57434,12 +58161,12 @@ var init_partnersUpsertLink = __esm(() => {
|
|
|
57434
58161
|
});
|
|
57435
58162
|
|
|
57436
58163
|
// src/mcp-server/tools/partnersUpsertLink.ts
|
|
57437
|
-
var
|
|
58164
|
+
var args36, tool$partnersUpsertLink;
|
|
57438
58165
|
var init_partnersUpsertLink2 = __esm(() => {
|
|
57439
58166
|
init_partnersUpsertLink();
|
|
57440
58167
|
init_operations();
|
|
57441
58168
|
init_tools();
|
|
57442
|
-
|
|
58169
|
+
args36 = {
|
|
57443
58170
|
request: UpsertPartnerLinkRequestBody$inboundSchema.optional()
|
|
57444
58171
|
};
|
|
57445
58172
|
tool$partnersUpsertLink = {
|
|
@@ -57447,9 +58174,9 @@ var init_partnersUpsertLink2 = __esm(() => {
|
|
|
57447
58174
|
description: `Upsert a link for a partner
|
|
57448
58175
|
|
|
57449
58176
|
Upsert a link for a partner that is enrolled in your program. If a link with the same URL already exists, return it (or update it if there are any changes). Otherwise, a new link will be created.`,
|
|
57450
|
-
args:
|
|
57451
|
-
tool: async (client,
|
|
57452
|
-
const [result, apiCall] = await partnersUpsertLink(client,
|
|
58177
|
+
args: args36,
|
|
58178
|
+
tool: async (client, args37, ctx) => {
|
|
58179
|
+
const [result, apiCall] = await partnersUpsertLink(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57453
58180
|
if (!result.ok) {
|
|
57454
58181
|
return {
|
|
57455
58182
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57464,9 +58191,9 @@ Upsert a link for a partner that is enrolled in your program. If a link with the
|
|
|
57464
58191
|
|
|
57465
58192
|
// src/funcs/qrCodesGet.ts
|
|
57466
58193
|
function qrCodesGet(client, request, options) {
|
|
57467
|
-
return new APIPromise($
|
|
58194
|
+
return new APIPromise($do37(client, request, options));
|
|
57468
58195
|
}
|
|
57469
|
-
async function $
|
|
58196
|
+
async function $do37(client, request, options) {
|
|
57470
58197
|
const parsed = safeParse(request, (value) => GetQRCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
57471
58198
|
if (!parsed.ok) {
|
|
57472
58199
|
return [parsed, { status: "invalid" }];
|
|
@@ -57561,12 +58288,12 @@ var init_qrCodesGet = __esm(() => {
|
|
|
57561
58288
|
});
|
|
57562
58289
|
|
|
57563
58290
|
// src/mcp-server/tools/qrCodesGet.ts
|
|
57564
|
-
var
|
|
58291
|
+
var args37, tool$qrCodesGet;
|
|
57565
58292
|
var init_qrCodesGet2 = __esm(() => {
|
|
57566
58293
|
init_qrCodesGet();
|
|
57567
58294
|
init_operations();
|
|
57568
58295
|
init_tools();
|
|
57569
|
-
|
|
58296
|
+
args37 = {
|
|
57570
58297
|
request: GetQRCodeRequest$inboundSchema
|
|
57571
58298
|
};
|
|
57572
58299
|
tool$qrCodesGet = {
|
|
@@ -57574,9 +58301,9 @@ var init_qrCodesGet2 = __esm(() => {
|
|
|
57574
58301
|
description: `Retrieve a QR code
|
|
57575
58302
|
|
|
57576
58303
|
Retrieve a QR code for a link.`,
|
|
57577
|
-
args:
|
|
57578
|
-
tool: async (client,
|
|
57579
|
-
const [result, apiCall] = await qrCodesGet(client,
|
|
58304
|
+
args: args37,
|
|
58305
|
+
tool: async (client, args38, ctx) => {
|
|
58306
|
+
const [result, apiCall] = await qrCodesGet(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57580
58307
|
if (!result.ok) {
|
|
57581
58308
|
return {
|
|
57582
58309
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57591,9 +58318,9 @@ Retrieve a QR code for a link.`,
|
|
|
57591
58318
|
|
|
57592
58319
|
// src/funcs/tagsCreate.ts
|
|
57593
58320
|
function tagsCreate(client, request, options) {
|
|
57594
|
-
return new APIPromise($
|
|
58321
|
+
return new APIPromise($do38(client, request, options));
|
|
57595
58322
|
}
|
|
57596
|
-
async function $
|
|
58323
|
+
async function $do38(client, request, options) {
|
|
57597
58324
|
const parsed = safeParse(request, (value) => CreateTagRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57598
58325
|
if (!parsed.ok) {
|
|
57599
58326
|
return [parsed, { status: "invalid" }];
|
|
@@ -57677,12 +58404,12 @@ var init_tagsCreate = __esm(() => {
|
|
|
57677
58404
|
});
|
|
57678
58405
|
|
|
57679
58406
|
// src/mcp-server/tools/tagsCreate.ts
|
|
57680
|
-
var
|
|
58407
|
+
var args38, tool$tagsCreate;
|
|
57681
58408
|
var init_tagsCreate2 = __esm(() => {
|
|
57682
58409
|
init_tagsCreate();
|
|
57683
58410
|
init_operations();
|
|
57684
58411
|
init_tools();
|
|
57685
|
-
|
|
58412
|
+
args38 = {
|
|
57686
58413
|
request: CreateTagRequestBody$inboundSchema.optional()
|
|
57687
58414
|
};
|
|
57688
58415
|
tool$tagsCreate = {
|
|
@@ -57690,9 +58417,9 @@ var init_tagsCreate2 = __esm(() => {
|
|
|
57690
58417
|
description: `Create a tag
|
|
57691
58418
|
|
|
57692
58419
|
Create a tag for the authenticated workspace.`,
|
|
57693
|
-
args:
|
|
57694
|
-
tool: async (client,
|
|
57695
|
-
const [result, apiCall] = await tagsCreate(client,
|
|
58420
|
+
args: args38,
|
|
58421
|
+
tool: async (client, args39, ctx) => {
|
|
58422
|
+
const [result, apiCall] = await tagsCreate(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57696
58423
|
if (!result.ok) {
|
|
57697
58424
|
return {
|
|
57698
58425
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57707,9 +58434,9 @@ Create a tag for the authenticated workspace.`,
|
|
|
57707
58434
|
|
|
57708
58435
|
// src/funcs/tagsDelete.ts
|
|
57709
58436
|
function tagsDelete(client, id, options) {
|
|
57710
|
-
return new APIPromise($
|
|
58437
|
+
return new APIPromise($do39(client, id, options));
|
|
57711
58438
|
}
|
|
57712
|
-
async function $
|
|
58439
|
+
async function $do39(client, id, options) {
|
|
57713
58440
|
const input = {
|
|
57714
58441
|
id
|
|
57715
58442
|
};
|
|
@@ -57800,12 +58527,12 @@ var init_tagsDelete = __esm(() => {
|
|
|
57800
58527
|
});
|
|
57801
58528
|
|
|
57802
58529
|
// src/mcp-server/tools/tagsDelete.ts
|
|
57803
|
-
var
|
|
58530
|
+
var args39, tool$tagsDelete;
|
|
57804
58531
|
var init_tagsDelete2 = __esm(() => {
|
|
57805
58532
|
init_esm();
|
|
57806
58533
|
init_tagsDelete();
|
|
57807
58534
|
init_tools();
|
|
57808
|
-
|
|
58535
|
+
args39 = {
|
|
57809
58536
|
id: stringType()
|
|
57810
58537
|
};
|
|
57811
58538
|
tool$tagsDelete = {
|
|
@@ -57813,9 +58540,9 @@ var init_tagsDelete2 = __esm(() => {
|
|
|
57813
58540
|
description: `Delete a tag
|
|
57814
58541
|
|
|
57815
58542
|
Delete a tag from the workspace. All existing links will still work, but they will no longer be associated with this tag.`,
|
|
57816
|
-
args:
|
|
57817
|
-
tool: async (client,
|
|
57818
|
-
const [result, apiCall] = await tagsDelete(client,
|
|
58543
|
+
args: args39,
|
|
58544
|
+
tool: async (client, args40, ctx) => {
|
|
58545
|
+
const [result, apiCall] = await tagsDelete(client, args40.id, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57819
58546
|
if (!result.ok) {
|
|
57820
58547
|
return {
|
|
57821
58548
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57830,9 +58557,9 @@ Delete a tag from the workspace. All existing links will still work, but they wi
|
|
|
57830
58557
|
|
|
57831
58558
|
// src/funcs/tagsList.ts
|
|
57832
58559
|
function tagsList(client, request, options) {
|
|
57833
|
-
return new APIPromise($
|
|
58560
|
+
return new APIPromise($do40(client, request, options));
|
|
57834
58561
|
}
|
|
57835
|
-
async function $
|
|
58562
|
+
async function $do40(client, request, options) {
|
|
57836
58563
|
const parsed = safeParse(request, (value) => GetTagsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57837
58564
|
if (!parsed.ok) {
|
|
57838
58565
|
return [parsed, { status: "invalid" }];
|
|
@@ -57925,12 +58652,12 @@ var init_tagsList = __esm(() => {
|
|
|
57925
58652
|
});
|
|
57926
58653
|
|
|
57927
58654
|
// src/mcp-server/tools/tagsList.ts
|
|
57928
|
-
var
|
|
58655
|
+
var args40, tool$tagsList;
|
|
57929
58656
|
var init_tagsList2 = __esm(() => {
|
|
57930
58657
|
init_tagsList();
|
|
57931
58658
|
init_operations();
|
|
57932
58659
|
init_tools();
|
|
57933
|
-
|
|
58660
|
+
args40 = {
|
|
57934
58661
|
request: GetTagsRequest$inboundSchema.optional()
|
|
57935
58662
|
};
|
|
57936
58663
|
tool$tagsList = {
|
|
@@ -57938,9 +58665,9 @@ var init_tagsList2 = __esm(() => {
|
|
|
57938
58665
|
description: `Retrieve a list of tags
|
|
57939
58666
|
|
|
57940
58667
|
Retrieve a list of tags for the authenticated workspace.`,
|
|
57941
|
-
args:
|
|
57942
|
-
tool: async (client,
|
|
57943
|
-
const [result, apiCall] = await tagsList(client,
|
|
58668
|
+
args: args40,
|
|
58669
|
+
tool: async (client, args41, ctx) => {
|
|
58670
|
+
const [result, apiCall] = await tagsList(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57944
58671
|
if (!result.ok) {
|
|
57945
58672
|
return {
|
|
57946
58673
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57955,9 +58682,9 @@ Retrieve a list of tags for the authenticated workspace.`,
|
|
|
57955
58682
|
|
|
57956
58683
|
// src/funcs/tagsUpdate.ts
|
|
57957
58684
|
function tagsUpdate(client, id, requestBody, options) {
|
|
57958
|
-
return new APIPromise($
|
|
58685
|
+
return new APIPromise($do41(client, id, requestBody, options));
|
|
57959
58686
|
}
|
|
57960
|
-
async function $
|
|
58687
|
+
async function $do41(client, id, requestBody, options) {
|
|
57961
58688
|
const input = {
|
|
57962
58689
|
id,
|
|
57963
58690
|
requestBody
|
|
@@ -58051,13 +58778,13 @@ var init_tagsUpdate = __esm(() => {
|
|
|
58051
58778
|
});
|
|
58052
58779
|
|
|
58053
58780
|
// src/mcp-server/tools/tagsUpdate.ts
|
|
58054
|
-
var
|
|
58781
|
+
var args41, tool$tagsUpdate;
|
|
58055
58782
|
var init_tagsUpdate2 = __esm(() => {
|
|
58056
58783
|
init_esm();
|
|
58057
58784
|
init_tagsUpdate();
|
|
58058
58785
|
init_operations();
|
|
58059
58786
|
init_tools();
|
|
58060
|
-
|
|
58787
|
+
args41 = {
|
|
58061
58788
|
id: stringType(),
|
|
58062
58789
|
requestBody: UpdateTagRequestBody$inboundSchema.optional()
|
|
58063
58790
|
};
|
|
@@ -58066,9 +58793,9 @@ var init_tagsUpdate2 = __esm(() => {
|
|
|
58066
58793
|
description: `Update a tag
|
|
58067
58794
|
|
|
58068
58795
|
Update a tag in the workspace.`,
|
|
58069
|
-
args:
|
|
58070
|
-
tool: async (client,
|
|
58071
|
-
const [result, apiCall] = await tagsUpdate(client,
|
|
58796
|
+
args: args41,
|
|
58797
|
+
tool: async (client, args42, ctx) => {
|
|
58798
|
+
const [result, apiCall] = await tagsUpdate(client, args42.id, args42.requestBody, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58072
58799
|
if (!result.ok) {
|
|
58073
58800
|
return {
|
|
58074
58801
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58083,9 +58810,9 @@ Update a tag in the workspace.`,
|
|
|
58083
58810
|
|
|
58084
58811
|
// src/funcs/trackLead.ts
|
|
58085
58812
|
function trackLead(client, request, options) {
|
|
58086
|
-
return new APIPromise($
|
|
58813
|
+
return new APIPromise($do42(client, request, options));
|
|
58087
58814
|
}
|
|
58088
|
-
async function $
|
|
58815
|
+
async function $do42(client, request, options) {
|
|
58089
58816
|
const parsed = safeParse(request, (value) => TrackLeadRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
58090
58817
|
if (!parsed.ok) {
|
|
58091
58818
|
return [parsed, { status: "invalid" }];
|
|
@@ -58168,12 +58895,12 @@ var init_trackLead = __esm(() => {
|
|
|
58168
58895
|
});
|
|
58169
58896
|
|
|
58170
58897
|
// src/mcp-server/tools/trackLead.ts
|
|
58171
|
-
var
|
|
58898
|
+
var args42, tool$trackLead;
|
|
58172
58899
|
var init_trackLead2 = __esm(() => {
|
|
58173
58900
|
init_trackLead();
|
|
58174
58901
|
init_operations();
|
|
58175
58902
|
init_tools();
|
|
58176
|
-
|
|
58903
|
+
args42 = {
|
|
58177
58904
|
request: TrackLeadRequestBody$inboundSchema.optional()
|
|
58178
58905
|
};
|
|
58179
58906
|
tool$trackLead = {
|
|
@@ -58181,9 +58908,9 @@ var init_trackLead2 = __esm(() => {
|
|
|
58181
58908
|
description: `Track a lead
|
|
58182
58909
|
|
|
58183
58910
|
Track a lead for a short link.`,
|
|
58184
|
-
args:
|
|
58185
|
-
tool: async (client,
|
|
58186
|
-
const [result, apiCall] = await trackLead(client,
|
|
58911
|
+
args: args42,
|
|
58912
|
+
tool: async (client, args43, ctx) => {
|
|
58913
|
+
const [result, apiCall] = await trackLead(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58187
58914
|
if (!result.ok) {
|
|
58188
58915
|
return {
|
|
58189
58916
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58198,9 +58925,9 @@ Track a lead for a short link.`,
|
|
|
58198
58925
|
|
|
58199
58926
|
// src/funcs/trackSale.ts
|
|
58200
58927
|
function trackSale(client, request, options) {
|
|
58201
|
-
return new APIPromise($
|
|
58928
|
+
return new APIPromise($do43(client, request, options));
|
|
58202
58929
|
}
|
|
58203
|
-
async function $
|
|
58930
|
+
async function $do43(client, request, options) {
|
|
58204
58931
|
const parsed = safeParse(request, (value) => TrackSaleRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
58205
58932
|
if (!parsed.ok) {
|
|
58206
58933
|
return [parsed, { status: "invalid" }];
|
|
@@ -58283,12 +59010,12 @@ var init_trackSale = __esm(() => {
|
|
|
58283
59010
|
});
|
|
58284
59011
|
|
|
58285
59012
|
// src/mcp-server/tools/trackSale.ts
|
|
58286
|
-
var
|
|
59013
|
+
var args43, tool$trackSale;
|
|
58287
59014
|
var init_trackSale2 = __esm(() => {
|
|
58288
59015
|
init_trackSale();
|
|
58289
59016
|
init_operations();
|
|
58290
59017
|
init_tools();
|
|
58291
|
-
|
|
59018
|
+
args43 = {
|
|
58292
59019
|
request: TrackSaleRequestBody$inboundSchema.optional()
|
|
58293
59020
|
};
|
|
58294
59021
|
tool$trackSale = {
|
|
@@ -58296,9 +59023,9 @@ var init_trackSale2 = __esm(() => {
|
|
|
58296
59023
|
description: `Track a sale
|
|
58297
59024
|
|
|
58298
59025
|
Track a sale for a short link.`,
|
|
58299
|
-
args:
|
|
58300
|
-
tool: async (client,
|
|
58301
|
-
const [result, apiCall] = await trackSale(client,
|
|
59026
|
+
args: args43,
|
|
59027
|
+
tool: async (client, args44, ctx) => {
|
|
59028
|
+
const [result, apiCall] = await trackSale(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58302
59029
|
if (!result.ok) {
|
|
58303
59030
|
return {
|
|
58304
59031
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58313,9 +59040,9 @@ Track a sale for a short link.`,
|
|
|
58313
59040
|
|
|
58314
59041
|
// src/funcs/workspacesGet.ts
|
|
58315
59042
|
function workspacesGet(client, request, options) {
|
|
58316
|
-
return new APIPromise($
|
|
59043
|
+
return new APIPromise($do44(client, request, options));
|
|
58317
59044
|
}
|
|
58318
|
-
async function $
|
|
59045
|
+
async function $do44(client, request, options) {
|
|
58319
59046
|
const parsed = safeParse(request, (value) => GetWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
58320
59047
|
if (!parsed.ok) {
|
|
58321
59048
|
return [parsed, { status: "invalid" }];
|
|
@@ -58404,12 +59131,12 @@ var init_workspacesGet = __esm(() => {
|
|
|
58404
59131
|
});
|
|
58405
59132
|
|
|
58406
59133
|
// src/mcp-server/tools/workspacesGet.ts
|
|
58407
|
-
var
|
|
59134
|
+
var args44, tool$workspacesGet;
|
|
58408
59135
|
var init_workspacesGet2 = __esm(() => {
|
|
58409
59136
|
init_workspacesGet();
|
|
58410
59137
|
init_operations();
|
|
58411
59138
|
init_tools();
|
|
58412
|
-
|
|
59139
|
+
args44 = {
|
|
58413
59140
|
request: GetWorkspaceRequest$inboundSchema
|
|
58414
59141
|
};
|
|
58415
59142
|
tool$workspacesGet = {
|
|
@@ -58417,9 +59144,9 @@ var init_workspacesGet2 = __esm(() => {
|
|
|
58417
59144
|
description: `Retrieve a workspace
|
|
58418
59145
|
|
|
58419
59146
|
Retrieve a workspace for the authenticated user.`,
|
|
58420
|
-
args:
|
|
58421
|
-
tool: async (client,
|
|
58422
|
-
const [result, apiCall] = await workspacesGet(client,
|
|
59147
|
+
args: args44,
|
|
59148
|
+
tool: async (client, args45, ctx) => {
|
|
59149
|
+
const [result, apiCall] = await workspacesGet(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58423
59150
|
if (!result.ok) {
|
|
58424
59151
|
return {
|
|
58425
59152
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58434,9 +59161,9 @@ Retrieve a workspace for the authenticated user.`,
|
|
|
58434
59161
|
|
|
58435
59162
|
// src/funcs/workspacesUpdate.ts
|
|
58436
59163
|
function workspacesUpdate(client, idOrSlug, requestBody, options) {
|
|
58437
|
-
return new APIPromise($
|
|
59164
|
+
return new APIPromise($do45(client, idOrSlug, requestBody, options));
|
|
58438
59165
|
}
|
|
58439
|
-
async function $
|
|
59166
|
+
async function $do45(client, idOrSlug, requestBody, options) {
|
|
58440
59167
|
const input = {
|
|
58441
59168
|
idOrSlug,
|
|
58442
59169
|
requestBody
|
|
@@ -58530,13 +59257,13 @@ var init_workspacesUpdate = __esm(() => {
|
|
|
58530
59257
|
});
|
|
58531
59258
|
|
|
58532
59259
|
// src/mcp-server/tools/workspacesUpdate.ts
|
|
58533
|
-
var
|
|
59260
|
+
var args45, tool$workspacesUpdate;
|
|
58534
59261
|
var init_workspacesUpdate2 = __esm(() => {
|
|
58535
59262
|
init_esm();
|
|
58536
59263
|
init_workspacesUpdate();
|
|
58537
59264
|
init_operations();
|
|
58538
59265
|
init_tools();
|
|
58539
|
-
|
|
59266
|
+
args45 = {
|
|
58540
59267
|
idOrSlug: stringType(),
|
|
58541
59268
|
requestBody: UpdateWorkspaceRequestBody$inboundSchema.optional()
|
|
58542
59269
|
};
|
|
@@ -58545,9 +59272,9 @@ var init_workspacesUpdate2 = __esm(() => {
|
|
|
58545
59272
|
description: `Update a workspace
|
|
58546
59273
|
|
|
58547
59274
|
Update a workspace by ID or slug.`,
|
|
58548
|
-
args:
|
|
58549
|
-
tool: async (client,
|
|
58550
|
-
const [result, apiCall] = await workspacesUpdate(client,
|
|
59275
|
+
args: args45,
|
|
59276
|
+
tool: async (client, args46, ctx) => {
|
|
59277
|
+
const [result, apiCall] = await workspacesUpdate(client, args46.idOrSlug, args46.requestBody, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58551
59278
|
if (!result.ok) {
|
|
58552
59279
|
return {
|
|
58553
59280
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58564,7 +59291,7 @@ Update a workspace by ID or slug.`,
|
|
|
58564
59291
|
function createMCPServer(deps) {
|
|
58565
59292
|
const server = new McpServer({
|
|
58566
59293
|
name: "Dub",
|
|
58567
|
-
version: "0.64.
|
|
59294
|
+
version: "0.64.2"
|
|
58568
59295
|
});
|
|
58569
59296
|
const client = new DubCore({
|
|
58570
59297
|
token: deps.token,
|
|
@@ -58612,6 +59339,7 @@ function createMCPServer(deps) {
|
|
|
58612
59339
|
tool(tool$customersUpdate);
|
|
58613
59340
|
tool(tool$customersDelete);
|
|
58614
59341
|
tool(tool$partnersCreate);
|
|
59342
|
+
tool(tool$partnersList);
|
|
58615
59343
|
tool(tool$partnersCreateLink);
|
|
58616
59344
|
tool(tool$partnersRetrieveLinks);
|
|
58617
59345
|
tool(tool$partnersUpsertLink);
|
|
@@ -58662,6 +59390,7 @@ var init_server2 = __esm(() => {
|
|
|
58662
59390
|
init_partnersAnalytics2();
|
|
58663
59391
|
init_partnersCreate2();
|
|
58664
59392
|
init_partnersCreateLink2();
|
|
59393
|
+
init_partnersList2();
|
|
58665
59394
|
init_partnersRetrieveLinks2();
|
|
58666
59395
|
init_partnersUpsertLink2();
|
|
58667
59396
|
init_qrCodesGet2();
|
|
@@ -59850,7 +60579,7 @@ var routes = rn({
|
|
|
59850
60579
|
var app = Ve(routes, {
|
|
59851
60580
|
name: "mcp",
|
|
59852
60581
|
versionInfo: {
|
|
59853
|
-
currentVersion: "0.64.
|
|
60582
|
+
currentVersion: "0.64.2"
|
|
59854
60583
|
}
|
|
59855
60584
|
});
|
|
59856
60585
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -59858,5 +60587,5 @@ export {
|
|
|
59858
60587
|
app
|
|
59859
60588
|
};
|
|
59860
60589
|
|
|
59861
|
-
//# debugId=
|
|
60590
|
+
//# debugId=42F47247A1406BE164756E2164756E21
|
|
59862
60591
|
//# sourceMappingURL=mcp-server.js.map
|