dub 0.64.1 → 0.64.3
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 +3 -1
- package/bin/mcp-server.js +1021 -254
- package/bin/mcp-server.js.map +39 -35
- package/dist/commonjs/funcs/analyticsRetrieve.js +2 -0
- package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +2 -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/clickevent.d.ts +33 -26
- package/dist/commonjs/models/components/clickevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/clickevent.js +8 -4
- package/dist/commonjs/models/components/clickevent.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/leadcreatedevent.d.ts +20 -13
- package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.js +8 -4
- package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/leadevent.d.ts +35 -26
- package/dist/commonjs/models/components/leadevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadevent.js +10 -4
- package/dist/commonjs/models/components/leadevent.js.map +1 -1
- package/dist/commonjs/models/components/linkclickedevent.d.ts +20 -13
- package/dist/commonjs/models/components/linkclickedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/linkclickedevent.js +8 -4
- package/dist/commonjs/models/components/linkclickedevent.js.map +1 -1
- package/dist/commonjs/models/components/linkschema.d.ts +20 -15
- package/dist/commonjs/models/components/linkschema.d.ts.map +1 -1
- package/dist/commonjs/models/components/linkschema.js +6 -4
- package/dist/commonjs/models/components/linkschema.js.map +1 -1
- package/dist/commonjs/models/components/linkwebhookevent.d.ts +18 -13
- package/dist/commonjs/models/components/linkwebhookevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/linkwebhookevent.js +6 -4
- package/dist/commonjs/models/components/linkwebhookevent.js.map +1 -1
- package/dist/commonjs/models/components/partnerenrolledevent.d.ts +134 -55
- 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/salecreatedevent.d.ts +20 -13
- package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.js +8 -4
- package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/saleevent.d.ts +123 -109
- package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/saleevent.js +61 -54
- 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/bulkcreatelinks.d.ts +14 -14
- package/dist/commonjs/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/bulkcreatelinks.js +4 -4
- package/dist/commonjs/models/operations/bulkcreatelinks.js.map +1 -1
- package/dist/commonjs/models/operations/bulkupdatelinks.d.ts +14 -14
- package/dist/commonjs/models/operations/bulkupdatelinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/bulkupdatelinks.js +4 -4
- package/dist/commonjs/models/operations/bulkupdatelinks.js.map +1 -1
- package/dist/commonjs/models/operations/createlink.d.ts +14 -14
- package/dist/commonjs/models/operations/createlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createlink.js +4 -4
- package/dist/commonjs/models/operations/createlink.js.map +1 -1
- package/dist/commonjs/models/operations/createpartner.d.ts +134 -55
- 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/getlinks.d.ts +1 -1
- package/dist/commonjs/models/operations/getlinkscount.d.ts +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 +60 -13
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +34 -6
- 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 +60 -13
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js +35 -6
- package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/commonjs/models/operations/retrievelinks.d.ts +3 -3
- 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/models/operations/updatelink.d.ts +14 -14
- package/dist/commonjs/models/operations/updatelink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatelink.js +4 -4
- package/dist/commonjs/models/operations/updatelink.js.map +1 -1
- package/dist/commonjs/models/operations/upsertlink.d.ts +14 -14
- package/dist/commonjs/models/operations/upsertlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upsertlink.js +4 -4
- package/dist/commonjs/models/operations/upsertlink.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 +2 -0
- package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/esm/funcs/eventsList.js +2 -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/clickevent.d.ts +33 -26
- package/dist/esm/models/components/clickevent.d.ts.map +1 -1
- package/dist/esm/models/components/clickevent.js +8 -4
- package/dist/esm/models/components/clickevent.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/leadcreatedevent.d.ts +20 -13
- package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.js +8 -4
- package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
- package/dist/esm/models/components/leadevent.d.ts +35 -26
- package/dist/esm/models/components/leadevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadevent.js +10 -4
- package/dist/esm/models/components/leadevent.js.map +1 -1
- package/dist/esm/models/components/linkclickedevent.d.ts +20 -13
- package/dist/esm/models/components/linkclickedevent.d.ts.map +1 -1
- package/dist/esm/models/components/linkclickedevent.js +8 -4
- package/dist/esm/models/components/linkclickedevent.js.map +1 -1
- package/dist/esm/models/components/linkschema.d.ts +20 -15
- package/dist/esm/models/components/linkschema.d.ts.map +1 -1
- package/dist/esm/models/components/linkschema.js +6 -4
- package/dist/esm/models/components/linkschema.js.map +1 -1
- package/dist/esm/models/components/linkwebhookevent.d.ts +18 -13
- package/dist/esm/models/components/linkwebhookevent.d.ts.map +1 -1
- package/dist/esm/models/components/linkwebhookevent.js +6 -4
- package/dist/esm/models/components/linkwebhookevent.js.map +1 -1
- package/dist/esm/models/components/partnerenrolledevent.d.ts +134 -55
- 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/salecreatedevent.d.ts +20 -13
- package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/salecreatedevent.js +8 -4
- package/dist/esm/models/components/salecreatedevent.js.map +1 -1
- package/dist/esm/models/components/saleevent.d.ts +123 -109
- package/dist/esm/models/components/saleevent.d.ts.map +1 -1
- package/dist/esm/models/components/saleevent.js +58 -51
- 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/bulkcreatelinks.d.ts +14 -14
- package/dist/esm/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/dist/esm/models/operations/bulkcreatelinks.js +4 -4
- package/dist/esm/models/operations/bulkcreatelinks.js.map +1 -1
- package/dist/esm/models/operations/bulkupdatelinks.d.ts +14 -14
- package/dist/esm/models/operations/bulkupdatelinks.d.ts.map +1 -1
- package/dist/esm/models/operations/bulkupdatelinks.js +4 -4
- package/dist/esm/models/operations/bulkupdatelinks.js.map +1 -1
- package/dist/esm/models/operations/createlink.d.ts +14 -14
- package/dist/esm/models/operations/createlink.d.ts.map +1 -1
- package/dist/esm/models/operations/createlink.js +4 -4
- package/dist/esm/models/operations/createlink.js.map +1 -1
- package/dist/esm/models/operations/createpartner.d.ts +134 -55
- 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/getlinks.d.ts +1 -1
- package/dist/esm/models/operations/getlinkscount.d.ts +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 +60 -13
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +33 -5
- 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 +60 -13
- package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.js +34 -5
- package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/esm/models/operations/retrievelinks.d.ts +3 -3
- 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/models/operations/updatelink.d.ts +14 -14
- package/dist/esm/models/operations/updatelink.d.ts.map +1 -1
- package/dist/esm/models/operations/updatelink.js +4 -4
- package/dist/esm/models/operations/updatelink.js.map +1 -1
- package/dist/esm/models/operations/upsertlink.d.ts +14 -14
- package/dist/esm/models/operations/upsertlink.d.ts.map +1 -1
- package/dist/esm/models/operations/upsertlink.js +4 -4
- package/dist/esm/models/operations/upsertlink.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/analytics/README.md +1 -0
- package/docs/sdks/commissions/README.md +2 -0
- package/docs/sdks/customers/README.md +5 -0
- package/docs/sdks/domains/README.md +6 -0
- package/docs/sdks/dub/README.md +1 -1
- package/docs/sdks/embedtokens/README.md +1 -0
- package/docs/sdks/events/README.md +1 -0
- package/docs/sdks/folders/README.md +4 -0
- package/docs/sdks/links/README.md +10 -0
- package/docs/sdks/partners/README.md +84 -0
- package/docs/sdks/qrcodes/README.md +1 -0
- package/docs/sdks/tags/README.md +4 -0
- package/docs/sdks/track/README.md +2 -0
- package/docs/sdks/workspaces/README.md +2 -0
- package/examples/README.md +5 -0
- package/examples/linksCreate.example.ts +2 -0
- package/examples/package-lock.json +6 -5
- package/jsr.json +1 -1
- package/package.json +6 -6
- package/src/funcs/analyticsRetrieve.ts +2 -0
- package/src/funcs/eventsList.ts +2 -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/clickevent.ts +41 -30
- package/src/models/components/commissioncreatedevent.ts +503 -0
- package/src/models/components/index.ts +1 -0
- package/src/models/components/leadcreatedevent.ts +28 -17
- package/src/models/components/leadevent.ts +45 -30
- package/src/models/components/linkclickedevent.ts +28 -17
- package/src/models/components/linkschema.ts +26 -19
- package/src/models/components/linkwebhookevent.ts +24 -17
- package/src/models/components/partnerenrolledevent.ts +178 -75
- package/src/models/components/salecreatedevent.ts +28 -17
- package/src/models/components/saleevent.ts +156 -138
- package/src/models/components/webhookevent.ts +12 -2
- package/src/models/operations/bulkcreatelinks.ts +18 -18
- package/src/models/operations/bulkupdatelinks.ts +18 -18
- package/src/models/operations/createlink.ts +18 -18
- package/src/models/operations/createpartner.ts +178 -75
- package/src/models/operations/getlinks.ts +1 -1
- package/src/models/operations/getlinkscount.ts +1 -1
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listcommissions.ts +242 -8
- package/src/models/operations/listevents.ts +66 -17
- package/src/models/operations/listpartners.ts +748 -0
- package/src/models/operations/retrieveanalytics.ts +64 -17
- package/src/models/operations/retrievelinks.ts +3 -3
- package/src/models/operations/tracksale.ts +1 -0
- package/src/models/operations/updatecommission.ts +242 -8
- package/src/models/operations/updatelink.ts +18 -18
- package/src/models/operations/upsertlink.ts +18 -18
- 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.3",
|
|
34200
|
+
genVersion: "2.672.0",
|
|
34201
|
+
userAgent: "speakeasy-sdk/typescript 0.64.3 2.672.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;
|
|
@@ -36743,6 +36745,7 @@ var init_clickevent = __esm(() => {
|
|
|
36743
36745
|
device: stringType(),
|
|
36744
36746
|
browser: stringType(),
|
|
36745
36747
|
os: stringType(),
|
|
36748
|
+
trigger: nullableType(stringType()).optional(),
|
|
36746
36749
|
referer: stringType(),
|
|
36747
36750
|
refererUrl: stringType(),
|
|
36748
36751
|
qr: booleanType(),
|
|
@@ -36759,6 +36762,7 @@ var init_clickevent = __esm(() => {
|
|
|
36759
36762
|
device: stringType(),
|
|
36760
36763
|
browser: stringType(),
|
|
36761
36764
|
os: stringType(),
|
|
36765
|
+
trigger: nullableType(stringType()).optional(),
|
|
36762
36766
|
referer: stringType(),
|
|
36763
36767
|
refererUrl: stringType(),
|
|
36764
36768
|
qr: booleanType(),
|
|
@@ -37819,7 +37823,6 @@ var init_clickevent = __esm(() => {
|
|
|
37819
37823
|
android: nullableType(stringType()),
|
|
37820
37824
|
geo: nullableType(lazyType(() => ClickEventGeo$inboundSchema)),
|
|
37821
37825
|
publicStats: booleanType(),
|
|
37822
|
-
tagId: nullableType(stringType()),
|
|
37823
37826
|
tags: nullableType(arrayType(TagSchema$inboundSchema)),
|
|
37824
37827
|
folderId: nullableType(stringType()),
|
|
37825
37828
|
webhookIds: arrayType(stringType()),
|
|
@@ -37837,12 +37840,14 @@ var init_clickevent = __esm(() => {
|
|
|
37837
37840
|
userId: nullableType(stringType()),
|
|
37838
37841
|
workspaceId: stringType(),
|
|
37839
37842
|
clicks: numberType().default(0),
|
|
37840
|
-
lastClicked: stringType(),
|
|
37841
37843
|
leads: numberType().default(0),
|
|
37844
|
+
conversions: numberType().default(0),
|
|
37842
37845
|
sales: numberType().default(0),
|
|
37843
37846
|
saleAmount: numberType().default(0),
|
|
37847
|
+
lastClicked: stringType(),
|
|
37844
37848
|
createdAt: stringType(),
|
|
37845
37849
|
updatedAt: stringType(),
|
|
37850
|
+
tagId: nullableType(stringType()),
|
|
37846
37851
|
projectId: stringType()
|
|
37847
37852
|
}).transform((v2) => {
|
|
37848
37853
|
return remap(v2, {
|
|
@@ -37878,7 +37883,6 @@ var init_clickevent = __esm(() => {
|
|
|
37878
37883
|
android: nullableType(stringType()),
|
|
37879
37884
|
geo: nullableType(lazyType(() => ClickEventGeo$outboundSchema)),
|
|
37880
37885
|
publicStats: booleanType(),
|
|
37881
|
-
tagId: nullableType(stringType()),
|
|
37882
37886
|
tags: nullableType(arrayType(TagSchema$outboundSchema)),
|
|
37883
37887
|
folderId: nullableType(stringType()),
|
|
37884
37888
|
webhookIds: arrayType(stringType()),
|
|
@@ -37896,12 +37900,14 @@ var init_clickevent = __esm(() => {
|
|
|
37896
37900
|
userId: nullableType(stringType()),
|
|
37897
37901
|
workspaceId: stringType(),
|
|
37898
37902
|
clicks: numberType().default(0),
|
|
37899
|
-
lastClicked: stringType(),
|
|
37900
37903
|
leads: numberType().default(0),
|
|
37904
|
+
conversions: numberType().default(0),
|
|
37901
37905
|
sales: numberType().default(0),
|
|
37902
37906
|
saleAmount: numberType().default(0),
|
|
37907
|
+
lastClicked: stringType(),
|
|
37903
37908
|
createdAt: stringType(),
|
|
37904
37909
|
updatedAt: stringType(),
|
|
37910
|
+
tagId: nullableType(stringType()),
|
|
37905
37911
|
projectId: stringType()
|
|
37906
37912
|
}).transform((v2) => {
|
|
37907
37913
|
return remap(v2, {
|
|
@@ -37970,6 +37976,146 @@ var init_clickevent = __esm(() => {
|
|
|
37970
37976
|
})(ClickEvent$ ||= {});
|
|
37971
37977
|
});
|
|
37972
37978
|
|
|
37979
|
+
// src/models/components/commissioncreatedevent.ts
|
|
37980
|
+
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$;
|
|
37981
|
+
var init_commissioncreatedevent = __esm(() => {
|
|
37982
|
+
init_esm();
|
|
37983
|
+
CommissionCreatedEventEvent = {
|
|
37984
|
+
CommissionCreated: "commission.created"
|
|
37985
|
+
};
|
|
37986
|
+
CommissionCreatedEventType = {
|
|
37987
|
+
Click: "click",
|
|
37988
|
+
Lead: "lead",
|
|
37989
|
+
Sale: "sale",
|
|
37990
|
+
Custom: "custom"
|
|
37991
|
+
};
|
|
37992
|
+
CommissionCreatedEventStatus = {
|
|
37993
|
+
Pending: "pending",
|
|
37994
|
+
Processed: "processed",
|
|
37995
|
+
Paid: "paid",
|
|
37996
|
+
Refunded: "refunded",
|
|
37997
|
+
Duplicate: "duplicate",
|
|
37998
|
+
Fraud: "fraud",
|
|
37999
|
+
Canceled: "canceled"
|
|
38000
|
+
};
|
|
38001
|
+
CommissionCreatedEventEvent$inboundSchema = nativeEnumType(CommissionCreatedEventEvent);
|
|
38002
|
+
CommissionCreatedEventEvent$outboundSchema = CommissionCreatedEventEvent$inboundSchema;
|
|
38003
|
+
((CommissionCreatedEventEvent$) => {
|
|
38004
|
+
CommissionCreatedEventEvent$.inboundSchema = CommissionCreatedEventEvent$inboundSchema;
|
|
38005
|
+
CommissionCreatedEventEvent$.outboundSchema = CommissionCreatedEventEvent$outboundSchema;
|
|
38006
|
+
})(CommissionCreatedEventEvent$ ||= {});
|
|
38007
|
+
CommissionCreatedEventType$inboundSchema = nativeEnumType(CommissionCreatedEventType);
|
|
38008
|
+
CommissionCreatedEventType$outboundSchema = CommissionCreatedEventType$inboundSchema;
|
|
38009
|
+
((CommissionCreatedEventType$) => {
|
|
38010
|
+
CommissionCreatedEventType$.inboundSchema = CommissionCreatedEventType$inboundSchema;
|
|
38011
|
+
CommissionCreatedEventType$.outboundSchema = CommissionCreatedEventType$outboundSchema;
|
|
38012
|
+
})(CommissionCreatedEventType$ ||= {});
|
|
38013
|
+
CommissionCreatedEventStatus$inboundSchema = nativeEnumType(CommissionCreatedEventStatus);
|
|
38014
|
+
CommissionCreatedEventStatus$outboundSchema = CommissionCreatedEventStatus$inboundSchema;
|
|
38015
|
+
((CommissionCreatedEventStatus$) => {
|
|
38016
|
+
CommissionCreatedEventStatus$.inboundSchema = CommissionCreatedEventStatus$inboundSchema;
|
|
38017
|
+
CommissionCreatedEventStatus$.outboundSchema = CommissionCreatedEventStatus$outboundSchema;
|
|
38018
|
+
})(CommissionCreatedEventStatus$ ||= {});
|
|
38019
|
+
Partner$inboundSchema = objectType({
|
|
38020
|
+
id: stringType(),
|
|
38021
|
+
name: stringType(),
|
|
38022
|
+
email: nullableType(stringType()),
|
|
38023
|
+
image: nullableType(stringType()),
|
|
38024
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
38025
|
+
country: nullableType(stringType())
|
|
38026
|
+
});
|
|
38027
|
+
Partner$outboundSchema = objectType({
|
|
38028
|
+
id: stringType(),
|
|
38029
|
+
name: stringType(),
|
|
38030
|
+
email: nullableType(stringType()),
|
|
38031
|
+
image: nullableType(stringType()),
|
|
38032
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
38033
|
+
country: nullableType(stringType())
|
|
38034
|
+
});
|
|
38035
|
+
((Partner$) => {
|
|
38036
|
+
Partner$.inboundSchema = Partner$inboundSchema;
|
|
38037
|
+
Partner$.outboundSchema = Partner$outboundSchema;
|
|
38038
|
+
})(Partner$ ||= {});
|
|
38039
|
+
CommissionCreatedEventCustomer$inboundSchema = objectType({
|
|
38040
|
+
id: stringType(),
|
|
38041
|
+
externalId: stringType(),
|
|
38042
|
+
name: stringType(),
|
|
38043
|
+
email: nullableType(stringType()).optional(),
|
|
38044
|
+
avatar: nullableType(stringType()).optional(),
|
|
38045
|
+
country: nullableType(stringType()).optional(),
|
|
38046
|
+
sales: nullableType(numberType()).optional(),
|
|
38047
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
38048
|
+
createdAt: stringType()
|
|
38049
|
+
});
|
|
38050
|
+
CommissionCreatedEventCustomer$outboundSchema = objectType({
|
|
38051
|
+
id: stringType(),
|
|
38052
|
+
externalId: stringType(),
|
|
38053
|
+
name: stringType(),
|
|
38054
|
+
email: nullableType(stringType()).optional(),
|
|
38055
|
+
avatar: nullableType(stringType()).optional(),
|
|
38056
|
+
country: nullableType(stringType()).optional(),
|
|
38057
|
+
sales: nullableType(numberType()).optional(),
|
|
38058
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
38059
|
+
createdAt: stringType()
|
|
38060
|
+
});
|
|
38061
|
+
((CommissionCreatedEventCustomer$) => {
|
|
38062
|
+
CommissionCreatedEventCustomer$.inboundSchema = CommissionCreatedEventCustomer$inboundSchema;
|
|
38063
|
+
CommissionCreatedEventCustomer$.outboundSchema = CommissionCreatedEventCustomer$outboundSchema;
|
|
38064
|
+
})(CommissionCreatedEventCustomer$ ||= {});
|
|
38065
|
+
CommissionCreatedEventData$inboundSchema = objectType({
|
|
38066
|
+
id: stringType(),
|
|
38067
|
+
type: CommissionCreatedEventType$inboundSchema.optional(),
|
|
38068
|
+
amount: numberType(),
|
|
38069
|
+
earnings: numberType(),
|
|
38070
|
+
currency: stringType(),
|
|
38071
|
+
status: CommissionCreatedEventStatus$inboundSchema,
|
|
38072
|
+
invoiceId: nullableType(stringType()),
|
|
38073
|
+
description: nullableType(stringType()),
|
|
38074
|
+
quantity: numberType(),
|
|
38075
|
+
userId: nullableType(stringType()).optional(),
|
|
38076
|
+
createdAt: stringType(),
|
|
38077
|
+
updatedAt: stringType(),
|
|
38078
|
+
partner: lazyType(() => Partner$inboundSchema),
|
|
38079
|
+
customer: nullableType(lazyType(() => CommissionCreatedEventCustomer$inboundSchema)).optional()
|
|
38080
|
+
});
|
|
38081
|
+
CommissionCreatedEventData$outboundSchema = objectType({
|
|
38082
|
+
id: stringType(),
|
|
38083
|
+
type: CommissionCreatedEventType$outboundSchema.optional(),
|
|
38084
|
+
amount: numberType(),
|
|
38085
|
+
earnings: numberType(),
|
|
38086
|
+
currency: stringType(),
|
|
38087
|
+
status: CommissionCreatedEventStatus$outboundSchema,
|
|
38088
|
+
invoiceId: nullableType(stringType()),
|
|
38089
|
+
description: nullableType(stringType()),
|
|
38090
|
+
quantity: numberType(),
|
|
38091
|
+
userId: nullableType(stringType()).optional(),
|
|
38092
|
+
createdAt: stringType(),
|
|
38093
|
+
updatedAt: stringType(),
|
|
38094
|
+
partner: lazyType(() => Partner$outboundSchema),
|
|
38095
|
+
customer: nullableType(lazyType(() => CommissionCreatedEventCustomer$outboundSchema)).optional()
|
|
38096
|
+
});
|
|
38097
|
+
((CommissionCreatedEventData$) => {
|
|
38098
|
+
CommissionCreatedEventData$.inboundSchema = CommissionCreatedEventData$inboundSchema;
|
|
38099
|
+
CommissionCreatedEventData$.outboundSchema = CommissionCreatedEventData$outboundSchema;
|
|
38100
|
+
})(CommissionCreatedEventData$ ||= {});
|
|
38101
|
+
CommissionCreatedEvent$inboundSchema = objectType({
|
|
38102
|
+
id: stringType(),
|
|
38103
|
+
event: CommissionCreatedEventEvent$inboundSchema,
|
|
38104
|
+
createdAt: stringType(),
|
|
38105
|
+
data: lazyType(() => CommissionCreatedEventData$inboundSchema)
|
|
38106
|
+
});
|
|
38107
|
+
CommissionCreatedEvent$outboundSchema = objectType({
|
|
38108
|
+
id: stringType(),
|
|
38109
|
+
event: CommissionCreatedEventEvent$outboundSchema,
|
|
38110
|
+
createdAt: stringType(),
|
|
38111
|
+
data: lazyType(() => CommissionCreatedEventData$outboundSchema)
|
|
38112
|
+
});
|
|
38113
|
+
((CommissionCreatedEvent$) => {
|
|
38114
|
+
CommissionCreatedEvent$.inboundSchema = CommissionCreatedEvent$inboundSchema;
|
|
38115
|
+
CommissionCreatedEvent$.outboundSchema = CommissionCreatedEvent$outboundSchema;
|
|
38116
|
+
})(CommissionCreatedEvent$ ||= {});
|
|
38117
|
+
});
|
|
38118
|
+
|
|
37973
38119
|
// src/models/components/continentcode.ts
|
|
37974
38120
|
var ContinentCode, ContinentCode$inboundSchema, ContinentCode$outboundSchema, ContinentCode$;
|
|
37975
38121
|
var init_continentcode = __esm(() => {
|
|
@@ -38409,6 +38555,7 @@ var init_leadcreatedevent = __esm(() => {
|
|
|
38409
38555
|
device: stringType(),
|
|
38410
38556
|
browser: stringType(),
|
|
38411
38557
|
os: stringType(),
|
|
38558
|
+
trigger: nullableType(stringType()).optional(),
|
|
38412
38559
|
referer: stringType(),
|
|
38413
38560
|
refererUrl: stringType(),
|
|
38414
38561
|
qr: booleanType(),
|
|
@@ -38425,6 +38572,7 @@ var init_leadcreatedevent = __esm(() => {
|
|
|
38425
38572
|
device: stringType(),
|
|
38426
38573
|
browser: stringType(),
|
|
38427
38574
|
os: stringType(),
|
|
38575
|
+
trigger: nullableType(stringType()).optional(),
|
|
38428
38576
|
referer: stringType(),
|
|
38429
38577
|
refererUrl: stringType(),
|
|
38430
38578
|
qr: booleanType(),
|
|
@@ -39485,7 +39633,6 @@ var init_leadcreatedevent = __esm(() => {
|
|
|
39485
39633
|
android: nullableType(stringType()),
|
|
39486
39634
|
geo: nullableType(lazyType(() => LeadCreatedEventGeo$inboundSchema)),
|
|
39487
39635
|
publicStats: booleanType(),
|
|
39488
|
-
tagId: nullableType(stringType()),
|
|
39489
39636
|
tags: nullableType(arrayType(TagSchema$inboundSchema)),
|
|
39490
39637
|
folderId: nullableType(stringType()),
|
|
39491
39638
|
webhookIds: arrayType(stringType()),
|
|
@@ -39503,12 +39650,14 @@ var init_leadcreatedevent = __esm(() => {
|
|
|
39503
39650
|
userId: nullableType(stringType()),
|
|
39504
39651
|
workspaceId: stringType(),
|
|
39505
39652
|
clicks: numberType().default(0),
|
|
39506
|
-
lastClicked: stringType(),
|
|
39507
39653
|
leads: numberType().default(0),
|
|
39654
|
+
conversions: numberType().default(0),
|
|
39508
39655
|
sales: numberType().default(0),
|
|
39509
39656
|
saleAmount: numberType().default(0),
|
|
39657
|
+
lastClicked: stringType(),
|
|
39510
39658
|
createdAt: stringType(),
|
|
39511
39659
|
updatedAt: stringType(),
|
|
39660
|
+
tagId: nullableType(stringType()),
|
|
39512
39661
|
projectId: stringType()
|
|
39513
39662
|
}).transform((v2) => {
|
|
39514
39663
|
return remap(v2, {
|
|
@@ -39544,7 +39693,6 @@ var init_leadcreatedevent = __esm(() => {
|
|
|
39544
39693
|
android: nullableType(stringType()),
|
|
39545
39694
|
geo: nullableType(lazyType(() => LeadCreatedEventGeo$outboundSchema)),
|
|
39546
39695
|
publicStats: booleanType(),
|
|
39547
|
-
tagId: nullableType(stringType()),
|
|
39548
39696
|
tags: nullableType(arrayType(TagSchema$outboundSchema)),
|
|
39549
39697
|
folderId: nullableType(stringType()),
|
|
39550
39698
|
webhookIds: arrayType(stringType()),
|
|
@@ -39562,12 +39710,14 @@ var init_leadcreatedevent = __esm(() => {
|
|
|
39562
39710
|
userId: nullableType(stringType()),
|
|
39563
39711
|
workspaceId: stringType(),
|
|
39564
39712
|
clicks: numberType().default(0),
|
|
39565
|
-
lastClicked: stringType(),
|
|
39566
39713
|
leads: numberType().default(0),
|
|
39714
|
+
conversions: numberType().default(0),
|
|
39567
39715
|
sales: numberType().default(0),
|
|
39568
39716
|
saleAmount: numberType().default(0),
|
|
39717
|
+
lastClicked: stringType(),
|
|
39569
39718
|
createdAt: stringType(),
|
|
39570
39719
|
updatedAt: stringType(),
|
|
39720
|
+
tagId: nullableType(stringType()),
|
|
39571
39721
|
projectId: stringType()
|
|
39572
39722
|
}).transform((v2) => {
|
|
39573
39723
|
return remap(v2, {
|
|
@@ -39642,6 +39792,7 @@ var init_leadevent = __esm(() => {
|
|
|
39642
39792
|
device: stringType(),
|
|
39643
39793
|
browser: stringType(),
|
|
39644
39794
|
os: stringType(),
|
|
39795
|
+
trigger: nullableType(stringType()).optional(),
|
|
39645
39796
|
referer: stringType(),
|
|
39646
39797
|
refererUrl: stringType(),
|
|
39647
39798
|
qr: booleanType(),
|
|
@@ -39658,6 +39809,7 @@ var init_leadevent = __esm(() => {
|
|
|
39658
39809
|
device: stringType(),
|
|
39659
39810
|
browser: stringType(),
|
|
39660
39811
|
os: stringType(),
|
|
39812
|
+
trigger: nullableType(stringType()).optional(),
|
|
39661
39813
|
referer: stringType(),
|
|
39662
39814
|
refererUrl: stringType(),
|
|
39663
39815
|
qr: booleanType(),
|
|
@@ -40718,7 +40870,6 @@ var init_leadevent = __esm(() => {
|
|
|
40718
40870
|
android: nullableType(stringType()),
|
|
40719
40871
|
geo: nullableType(lazyType(() => LeadEventGeo$inboundSchema)),
|
|
40720
40872
|
publicStats: booleanType(),
|
|
40721
|
-
tagId: nullableType(stringType()),
|
|
40722
40873
|
tags: nullableType(arrayType(TagSchema$inboundSchema)),
|
|
40723
40874
|
folderId: nullableType(stringType()),
|
|
40724
40875
|
webhookIds: arrayType(stringType()),
|
|
@@ -40736,12 +40887,14 @@ var init_leadevent = __esm(() => {
|
|
|
40736
40887
|
userId: nullableType(stringType()),
|
|
40737
40888
|
workspaceId: stringType(),
|
|
40738
40889
|
clicks: numberType().default(0),
|
|
40739
|
-
lastClicked: stringType(),
|
|
40740
40890
|
leads: numberType().default(0),
|
|
40891
|
+
conversions: numberType().default(0),
|
|
40741
40892
|
sales: numberType().default(0),
|
|
40742
40893
|
saleAmount: numberType().default(0),
|
|
40894
|
+
lastClicked: stringType(),
|
|
40743
40895
|
createdAt: stringType(),
|
|
40744
40896
|
updatedAt: stringType(),
|
|
40897
|
+
tagId: nullableType(stringType()),
|
|
40745
40898
|
projectId: stringType()
|
|
40746
40899
|
}).transform((v2) => {
|
|
40747
40900
|
return remap(v2, {
|
|
@@ -40777,7 +40930,6 @@ var init_leadevent = __esm(() => {
|
|
|
40777
40930
|
android: nullableType(stringType()),
|
|
40778
40931
|
geo: nullableType(lazyType(() => LeadEventGeo$outboundSchema)),
|
|
40779
40932
|
publicStats: booleanType(),
|
|
40780
|
-
tagId: nullableType(stringType()),
|
|
40781
40933
|
tags: nullableType(arrayType(TagSchema$outboundSchema)),
|
|
40782
40934
|
folderId: nullableType(stringType()),
|
|
40783
40935
|
webhookIds: arrayType(stringType()),
|
|
@@ -40795,12 +40947,14 @@ var init_leadevent = __esm(() => {
|
|
|
40795
40947
|
userId: nullableType(stringType()),
|
|
40796
40948
|
workspaceId: stringType(),
|
|
40797
40949
|
clicks: numberType().default(0),
|
|
40798
|
-
lastClicked: stringType(),
|
|
40799
40950
|
leads: numberType().default(0),
|
|
40951
|
+
conversions: numberType().default(0),
|
|
40800
40952
|
sales: numberType().default(0),
|
|
40801
40953
|
saleAmount: numberType().default(0),
|
|
40954
|
+
lastClicked: stringType(),
|
|
40802
40955
|
createdAt: stringType(),
|
|
40803
40956
|
updatedAt: stringType(),
|
|
40957
|
+
tagId: nullableType(stringType()),
|
|
40804
40958
|
projectId: stringType()
|
|
40805
40959
|
}).transform((v2) => {
|
|
40806
40960
|
return remap(v2, {
|
|
@@ -40846,6 +41000,7 @@ var init_leadevent = __esm(() => {
|
|
|
40846
41000
|
timestamp: stringType(),
|
|
40847
41001
|
eventId: stringType(),
|
|
40848
41002
|
eventName: stringType(),
|
|
41003
|
+
metadata: nullableType(anyType()).optional(),
|
|
40849
41004
|
click: lazyType(() => LeadEventClick$inboundSchema),
|
|
40850
41005
|
link: lazyType(() => LeadEventLink$inboundSchema),
|
|
40851
41006
|
customer: lazyType(() => Customer$inboundSchema),
|
|
@@ -40873,6 +41028,7 @@ var init_leadevent = __esm(() => {
|
|
|
40873
41028
|
timestamp: stringType(),
|
|
40874
41029
|
eventId: stringType(),
|
|
40875
41030
|
eventName: stringType(),
|
|
41031
|
+
metadata: nullableType(anyType()).optional(),
|
|
40876
41032
|
click: lazyType(() => LeadEventClick$outboundSchema),
|
|
40877
41033
|
link: lazyType(() => LeadEventLink$outboundSchema),
|
|
40878
41034
|
customer: lazyType(() => Customer$outboundSchema),
|
|
@@ -40927,6 +41083,7 @@ var init_linkclickedevent = __esm(() => {
|
|
|
40927
41083
|
device: stringType(),
|
|
40928
41084
|
browser: stringType(),
|
|
40929
41085
|
os: stringType(),
|
|
41086
|
+
trigger: nullableType(stringType()).optional(),
|
|
40930
41087
|
referer: stringType(),
|
|
40931
41088
|
refererUrl: stringType(),
|
|
40932
41089
|
qr: booleanType(),
|
|
@@ -40943,6 +41100,7 @@ var init_linkclickedevent = __esm(() => {
|
|
|
40943
41100
|
device: stringType(),
|
|
40944
41101
|
browser: stringType(),
|
|
40945
41102
|
os: stringType(),
|
|
41103
|
+
trigger: nullableType(stringType()).optional(),
|
|
40946
41104
|
referer: stringType(),
|
|
40947
41105
|
refererUrl: stringType(),
|
|
40948
41106
|
qr: booleanType(),
|
|
@@ -42003,7 +42161,6 @@ var init_linkclickedevent = __esm(() => {
|
|
|
42003
42161
|
android: nullableType(stringType()),
|
|
42004
42162
|
geo: nullableType(lazyType(() => LinkClickedEventGeo$inboundSchema)),
|
|
42005
42163
|
publicStats: booleanType(),
|
|
42006
|
-
tagId: nullableType(stringType()),
|
|
42007
42164
|
tags: nullableType(arrayType(TagSchema$inboundSchema)),
|
|
42008
42165
|
folderId: nullableType(stringType()),
|
|
42009
42166
|
webhookIds: arrayType(stringType()),
|
|
@@ -42021,12 +42178,14 @@ var init_linkclickedevent = __esm(() => {
|
|
|
42021
42178
|
userId: nullableType(stringType()),
|
|
42022
42179
|
workspaceId: stringType(),
|
|
42023
42180
|
clicks: numberType().default(0),
|
|
42024
|
-
lastClicked: stringType(),
|
|
42025
42181
|
leads: numberType().default(0),
|
|
42182
|
+
conversions: numberType().default(0),
|
|
42026
42183
|
sales: numberType().default(0),
|
|
42027
42184
|
saleAmount: numberType().default(0),
|
|
42185
|
+
lastClicked: stringType(),
|
|
42028
42186
|
createdAt: stringType(),
|
|
42029
42187
|
updatedAt: stringType(),
|
|
42188
|
+
tagId: nullableType(stringType()),
|
|
42030
42189
|
projectId: stringType()
|
|
42031
42190
|
}).transform((v2) => {
|
|
42032
42191
|
return remap(v2, {
|
|
@@ -42062,7 +42221,6 @@ var init_linkclickedevent = __esm(() => {
|
|
|
42062
42221
|
android: nullableType(stringType()),
|
|
42063
42222
|
geo: nullableType(lazyType(() => LinkClickedEventGeo$outboundSchema)),
|
|
42064
42223
|
publicStats: booleanType(),
|
|
42065
|
-
tagId: nullableType(stringType()),
|
|
42066
42224
|
tags: nullableType(arrayType(TagSchema$outboundSchema)),
|
|
42067
42225
|
folderId: nullableType(stringType()),
|
|
42068
42226
|
webhookIds: arrayType(stringType()),
|
|
@@ -42080,12 +42238,14 @@ var init_linkclickedevent = __esm(() => {
|
|
|
42080
42238
|
userId: nullableType(stringType()),
|
|
42081
42239
|
workspaceId: stringType(),
|
|
42082
42240
|
clicks: numberType().default(0),
|
|
42083
|
-
lastClicked: stringType(),
|
|
42084
42241
|
leads: numberType().default(0),
|
|
42242
|
+
conversions: numberType().default(0),
|
|
42085
42243
|
sales: numberType().default(0),
|
|
42086
42244
|
saleAmount: numberType().default(0),
|
|
42245
|
+
lastClicked: stringType(),
|
|
42087
42246
|
createdAt: stringType(),
|
|
42088
42247
|
updatedAt: stringType(),
|
|
42248
|
+
tagId: nullableType(stringType()),
|
|
42089
42249
|
projectId: stringType()
|
|
42090
42250
|
}).transform((v2) => {
|
|
42091
42251
|
return remap(v2, {
|
|
@@ -44247,7 +44407,6 @@ var init_linkschema = __esm(() => {
|
|
|
44247
44407
|
android: nullableType(stringType()),
|
|
44248
44408
|
geo: nullableType(lazyType(() => Geo$inboundSchema)),
|
|
44249
44409
|
publicStats: booleanType().default(false),
|
|
44250
|
-
tagId: nullableType(stringType()),
|
|
44251
44410
|
tags: nullableType(arrayType(TagSchema$inboundSchema)),
|
|
44252
44411
|
folderId: nullableType(stringType()),
|
|
44253
44412
|
webhookIds: arrayType(stringType()),
|
|
@@ -44265,12 +44424,14 @@ var init_linkschema = __esm(() => {
|
|
|
44265
44424
|
userId: nullableType(stringType()),
|
|
44266
44425
|
workspaceId: stringType(),
|
|
44267
44426
|
clicks: numberType().default(0),
|
|
44268
|
-
lastClicked: nullableType(stringType()),
|
|
44269
44427
|
leads: numberType().default(0),
|
|
44428
|
+
conversions: numberType().default(0),
|
|
44270
44429
|
sales: numberType().default(0),
|
|
44271
44430
|
saleAmount: numberType().default(0),
|
|
44431
|
+
lastClicked: nullableType(stringType()),
|
|
44272
44432
|
createdAt: stringType(),
|
|
44273
44433
|
updatedAt: stringType(),
|
|
44434
|
+
tagId: nullableType(stringType()),
|
|
44274
44435
|
projectId: stringType()
|
|
44275
44436
|
}).transform((v2) => {
|
|
44276
44437
|
return remap(v2, {
|
|
@@ -44306,7 +44467,6 @@ var init_linkschema = __esm(() => {
|
|
|
44306
44467
|
android: nullableType(stringType()),
|
|
44307
44468
|
geo: nullableType(lazyType(() => Geo$outboundSchema)),
|
|
44308
44469
|
publicStats: booleanType().default(false),
|
|
44309
|
-
tagId: nullableType(stringType()),
|
|
44310
44470
|
tags: nullableType(arrayType(TagSchema$outboundSchema)),
|
|
44311
44471
|
folderId: nullableType(stringType()),
|
|
44312
44472
|
webhookIds: arrayType(stringType()),
|
|
@@ -44324,12 +44484,14 @@ var init_linkschema = __esm(() => {
|
|
|
44324
44484
|
userId: nullableType(stringType()),
|
|
44325
44485
|
workspaceId: stringType(),
|
|
44326
44486
|
clicks: numberType().default(0),
|
|
44327
|
-
lastClicked: nullableType(stringType()),
|
|
44328
44487
|
leads: numberType().default(0),
|
|
44488
|
+
conversions: numberType().default(0),
|
|
44329
44489
|
sales: numberType().default(0),
|
|
44330
44490
|
saleAmount: numberType().default(0),
|
|
44491
|
+
lastClicked: nullableType(stringType()),
|
|
44331
44492
|
createdAt: stringType(),
|
|
44332
44493
|
updatedAt: stringType(),
|
|
44494
|
+
tagId: nullableType(stringType()),
|
|
44333
44495
|
projectId: stringType()
|
|
44334
44496
|
}).transform((v2) => {
|
|
44335
44497
|
return remap(v2, {
|
|
@@ -45436,7 +45598,6 @@ var init_linkwebhookevent = __esm(() => {
|
|
|
45436
45598
|
android: nullableType(stringType()),
|
|
45437
45599
|
geo: nullableType(lazyType(() => LinkWebhookEventGeo$inboundSchema)),
|
|
45438
45600
|
publicStats: booleanType(),
|
|
45439
|
-
tagId: nullableType(stringType()),
|
|
45440
45601
|
tags: nullableType(arrayType(TagSchema$inboundSchema)),
|
|
45441
45602
|
folderId: nullableType(stringType()),
|
|
45442
45603
|
webhookIds: arrayType(stringType()),
|
|
@@ -45454,12 +45615,14 @@ var init_linkwebhookevent = __esm(() => {
|
|
|
45454
45615
|
userId: nullableType(stringType()),
|
|
45455
45616
|
workspaceId: stringType(),
|
|
45456
45617
|
clicks: numberType().default(0),
|
|
45457
|
-
lastClicked: stringType(),
|
|
45458
45618
|
leads: numberType().default(0),
|
|
45619
|
+
conversions: numberType().default(0),
|
|
45459
45620
|
sales: numberType().default(0),
|
|
45460
45621
|
saleAmount: numberType().default(0),
|
|
45622
|
+
lastClicked: stringType(),
|
|
45461
45623
|
createdAt: stringType(),
|
|
45462
45624
|
updatedAt: stringType(),
|
|
45625
|
+
tagId: nullableType(stringType()),
|
|
45463
45626
|
projectId: stringType()
|
|
45464
45627
|
}).transform((v2) => {
|
|
45465
45628
|
return remap(v2, {
|
|
@@ -45495,7 +45658,6 @@ var init_linkwebhookevent = __esm(() => {
|
|
|
45495
45658
|
android: nullableType(stringType()),
|
|
45496
45659
|
geo: nullableType(lazyType(() => LinkWebhookEventGeo$outboundSchema)),
|
|
45497
45660
|
publicStats: booleanType(),
|
|
45498
|
-
tagId: nullableType(stringType()),
|
|
45499
45661
|
tags: nullableType(arrayType(TagSchema$outboundSchema)),
|
|
45500
45662
|
folderId: nullableType(stringType()),
|
|
45501
45663
|
webhookIds: arrayType(stringType()),
|
|
@@ -45513,12 +45675,14 @@ var init_linkwebhookevent = __esm(() => {
|
|
|
45513
45675
|
userId: nullableType(stringType()),
|
|
45514
45676
|
workspaceId: stringType(),
|
|
45515
45677
|
clicks: numberType().default(0),
|
|
45516
|
-
lastClicked: stringType(),
|
|
45517
45678
|
leads: numberType().default(0),
|
|
45679
|
+
conversions: numberType().default(0),
|
|
45518
45680
|
sales: numberType().default(0),
|
|
45519
45681
|
saleAmount: numberType().default(0),
|
|
45682
|
+
lastClicked: stringType(),
|
|
45520
45683
|
createdAt: stringType(),
|
|
45521
45684
|
updatedAt: stringType(),
|
|
45685
|
+
tagId: nullableType(stringType()),
|
|
45522
45686
|
projectId: stringType()
|
|
45523
45687
|
}).transform((v2) => {
|
|
45524
45688
|
return remap(v2, {
|
|
@@ -45648,7 +45812,7 @@ var init_partneranalyticstoplinks = __esm(() => {
|
|
|
45648
45812
|
});
|
|
45649
45813
|
|
|
45650
45814
|
// 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$;
|
|
45815
|
+
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
45816
|
var init_partnerenrolledevent = __esm(() => {
|
|
45653
45817
|
init_esm();
|
|
45654
45818
|
PartnerEnrolledEventEvent = {
|
|
@@ -45663,6 +45827,14 @@ var init_partnerenrolledevent = __esm(() => {
|
|
|
45663
45827
|
Banned: "banned",
|
|
45664
45828
|
Archived: "archived"
|
|
45665
45829
|
};
|
|
45830
|
+
BannedReason = {
|
|
45831
|
+
TosViolation: "tos_violation",
|
|
45832
|
+
InappropriateContent: "inappropriate_content",
|
|
45833
|
+
FakeTraffic: "fake_traffic",
|
|
45834
|
+
Fraud: "fraud",
|
|
45835
|
+
Spam: "spam",
|
|
45836
|
+
BrandAbuse: "brand_abuse"
|
|
45837
|
+
};
|
|
45666
45838
|
PartnerEnrolledEventEvent$inboundSchema = nativeEnumType(PartnerEnrolledEventEvent);
|
|
45667
45839
|
PartnerEnrolledEventEvent$outboundSchema = PartnerEnrolledEventEvent$inboundSchema;
|
|
45668
45840
|
((PartnerEnrolledEventEvent$) => {
|
|
@@ -45701,6 +45873,12 @@ var init_partnerenrolledevent = __esm(() => {
|
|
|
45701
45873
|
PartnerEnrolledEventLink$.inboundSchema = PartnerEnrolledEventLink$inboundSchema;
|
|
45702
45874
|
PartnerEnrolledEventLink$.outboundSchema = PartnerEnrolledEventLink$outboundSchema;
|
|
45703
45875
|
})(PartnerEnrolledEventLink$ ||= {});
|
|
45876
|
+
BannedReason$inboundSchema = nativeEnumType(BannedReason);
|
|
45877
|
+
BannedReason$outboundSchema = BannedReason$inboundSchema;
|
|
45878
|
+
((BannedReason$) => {
|
|
45879
|
+
BannedReason$.inboundSchema = BannedReason$inboundSchema;
|
|
45880
|
+
BannedReason$.outboundSchema = BannedReason$outboundSchema;
|
|
45881
|
+
})(BannedReason$ ||= {});
|
|
45704
45882
|
PartnerEnrolledEventData$inboundSchema = objectType({
|
|
45705
45883
|
id: stringType(),
|
|
45706
45884
|
name: stringType(),
|
|
@@ -45708,27 +45886,43 @@ var init_partnerenrolledevent = __esm(() => {
|
|
|
45708
45886
|
image: nullableType(stringType()),
|
|
45709
45887
|
description: nullableType(stringType()).optional(),
|
|
45710
45888
|
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
45889
|
paypalEmail: nullableType(stringType()),
|
|
45718
45890
|
stripeConnectId: nullableType(stringType()),
|
|
45719
45891
|
payoutsEnabledAt: nullableType(stringType()),
|
|
45892
|
+
partnerId: stringType(),
|
|
45893
|
+
tenantId: nullableType(stringType()),
|
|
45894
|
+
programId: stringType(),
|
|
45720
45895
|
createdAt: stringType(),
|
|
45721
45896
|
status: Status$inboundSchema,
|
|
45722
|
-
programId: stringType(),
|
|
45723
|
-
tenantId: nullableType(stringType()),
|
|
45724
45897
|
links: nullableType(arrayType(lazyType(() => PartnerEnrolledEventLink$inboundSchema))),
|
|
45898
|
+
totalCommissions: numberType().default(0),
|
|
45899
|
+
clickRewardId: nullableType(stringType()).optional(),
|
|
45900
|
+
leadRewardId: nullableType(stringType()).optional(),
|
|
45901
|
+
saleRewardId: nullableType(stringType()).optional(),
|
|
45902
|
+
discountId: nullableType(stringType()).optional(),
|
|
45903
|
+
applicationId: nullableType(stringType()).optional(),
|
|
45904
|
+
bannedAt: nullableType(stringType()).optional(),
|
|
45905
|
+
bannedReason: nullableType(BannedReason$inboundSchema).optional(),
|
|
45725
45906
|
clicks: numberType().default(0),
|
|
45726
45907
|
leads: numberType().default(0),
|
|
45727
45908
|
sales: numberType().default(0),
|
|
45728
45909
|
saleAmount: numberType().default(0),
|
|
45729
|
-
totalCommissions: numberType().default(0),
|
|
45730
45910
|
netRevenue: numberType().default(0),
|
|
45731
|
-
|
|
45911
|
+
website: nullableType(stringType()).optional(),
|
|
45912
|
+
websiteTxtRecord: nullableType(stringType()).optional(),
|
|
45913
|
+
websiteVerifiedAt: nullableType(stringType()).optional(),
|
|
45914
|
+
youtube: nullableType(stringType()).optional(),
|
|
45915
|
+
youtubeVerifiedAt: nullableType(stringType()).optional(),
|
|
45916
|
+
youtubeSubscriberCount: nullableType(numberType()).optional(),
|
|
45917
|
+
youtubeViewCount: nullableType(numberType()).optional(),
|
|
45918
|
+
twitter: nullableType(stringType()).optional(),
|
|
45919
|
+
twitterVerifiedAt: nullableType(stringType()).optional(),
|
|
45920
|
+
linkedin: nullableType(stringType()).optional(),
|
|
45921
|
+
linkedinVerifiedAt: nullableType(stringType()).optional(),
|
|
45922
|
+
instagram: nullableType(stringType()).optional(),
|
|
45923
|
+
instagramVerifiedAt: nullableType(stringType()).optional(),
|
|
45924
|
+
tiktok: nullableType(stringType()).optional(),
|
|
45925
|
+
tiktokVerifiedAt: nullableType(stringType()).optional()
|
|
45732
45926
|
});
|
|
45733
45927
|
PartnerEnrolledEventData$outboundSchema = objectType({
|
|
45734
45928
|
id: stringType(),
|
|
@@ -45737,27 +45931,43 @@ var init_partnerenrolledevent = __esm(() => {
|
|
|
45737
45931
|
image: nullableType(stringType()),
|
|
45738
45932
|
description: nullableType(stringType()).optional(),
|
|
45739
45933
|
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
45934
|
paypalEmail: nullableType(stringType()),
|
|
45747
45935
|
stripeConnectId: nullableType(stringType()),
|
|
45748
45936
|
payoutsEnabledAt: nullableType(stringType()),
|
|
45937
|
+
partnerId: stringType(),
|
|
45938
|
+
tenantId: nullableType(stringType()),
|
|
45939
|
+
programId: stringType(),
|
|
45749
45940
|
createdAt: stringType(),
|
|
45750
45941
|
status: Status$outboundSchema,
|
|
45751
|
-
programId: stringType(),
|
|
45752
|
-
tenantId: nullableType(stringType()),
|
|
45753
45942
|
links: nullableType(arrayType(lazyType(() => PartnerEnrolledEventLink$outboundSchema))),
|
|
45943
|
+
totalCommissions: numberType().default(0),
|
|
45944
|
+
clickRewardId: nullableType(stringType()).optional(),
|
|
45945
|
+
leadRewardId: nullableType(stringType()).optional(),
|
|
45946
|
+
saleRewardId: nullableType(stringType()).optional(),
|
|
45947
|
+
discountId: nullableType(stringType()).optional(),
|
|
45948
|
+
applicationId: nullableType(stringType()).optional(),
|
|
45949
|
+
bannedAt: nullableType(stringType()).optional(),
|
|
45950
|
+
bannedReason: nullableType(BannedReason$outboundSchema).optional(),
|
|
45754
45951
|
clicks: numberType().default(0),
|
|
45755
45952
|
leads: numberType().default(0),
|
|
45756
45953
|
sales: numberType().default(0),
|
|
45757
45954
|
saleAmount: numberType().default(0),
|
|
45758
|
-
totalCommissions: numberType().default(0),
|
|
45759
45955
|
netRevenue: numberType().default(0),
|
|
45760
|
-
|
|
45956
|
+
website: nullableType(stringType()).optional(),
|
|
45957
|
+
websiteTxtRecord: nullableType(stringType()).optional(),
|
|
45958
|
+
websiteVerifiedAt: nullableType(stringType()).optional(),
|
|
45959
|
+
youtube: nullableType(stringType()).optional(),
|
|
45960
|
+
youtubeVerifiedAt: nullableType(stringType()).optional(),
|
|
45961
|
+
youtubeSubscriberCount: nullableType(numberType()).optional(),
|
|
45962
|
+
youtubeViewCount: nullableType(numberType()).optional(),
|
|
45963
|
+
twitter: nullableType(stringType()).optional(),
|
|
45964
|
+
twitterVerifiedAt: nullableType(stringType()).optional(),
|
|
45965
|
+
linkedin: nullableType(stringType()).optional(),
|
|
45966
|
+
linkedinVerifiedAt: nullableType(stringType()).optional(),
|
|
45967
|
+
instagram: nullableType(stringType()).optional(),
|
|
45968
|
+
instagramVerifiedAt: nullableType(stringType()).optional(),
|
|
45969
|
+
tiktok: nullableType(stringType()).optional(),
|
|
45970
|
+
tiktokVerifiedAt: nullableType(stringType()).optional()
|
|
45761
45971
|
});
|
|
45762
45972
|
((PartnerEnrolledEventData$) => {
|
|
45763
45973
|
PartnerEnrolledEventData$.inboundSchema = PartnerEnrolledEventData$inboundSchema;
|
|
@@ -45833,6 +46043,7 @@ var init_salecreatedevent = __esm(() => {
|
|
|
45833
46043
|
device: stringType(),
|
|
45834
46044
|
browser: stringType(),
|
|
45835
46045
|
os: stringType(),
|
|
46046
|
+
trigger: nullableType(stringType()).optional(),
|
|
45836
46047
|
referer: stringType(),
|
|
45837
46048
|
refererUrl: stringType(),
|
|
45838
46049
|
qr: booleanType(),
|
|
@@ -45849,6 +46060,7 @@ var init_salecreatedevent = __esm(() => {
|
|
|
45849
46060
|
device: stringType(),
|
|
45850
46061
|
browser: stringType(),
|
|
45851
46062
|
os: stringType(),
|
|
46063
|
+
trigger: nullableType(stringType()).optional(),
|
|
45852
46064
|
referer: stringType(),
|
|
45853
46065
|
refererUrl: stringType(),
|
|
45854
46066
|
qr: booleanType(),
|
|
@@ -46909,7 +47121,6 @@ var init_salecreatedevent = __esm(() => {
|
|
|
46909
47121
|
android: nullableType(stringType()),
|
|
46910
47122
|
geo: nullableType(lazyType(() => SaleCreatedEventGeo$inboundSchema)),
|
|
46911
47123
|
publicStats: booleanType(),
|
|
46912
|
-
tagId: nullableType(stringType()),
|
|
46913
47124
|
tags: nullableType(arrayType(TagSchema$inboundSchema)),
|
|
46914
47125
|
folderId: nullableType(stringType()),
|
|
46915
47126
|
webhookIds: arrayType(stringType()),
|
|
@@ -46927,12 +47138,14 @@ var init_salecreatedevent = __esm(() => {
|
|
|
46927
47138
|
userId: nullableType(stringType()),
|
|
46928
47139
|
workspaceId: stringType(),
|
|
46929
47140
|
clicks: numberType().default(0),
|
|
46930
|
-
lastClicked: stringType(),
|
|
46931
47141
|
leads: numberType().default(0),
|
|
47142
|
+
conversions: numberType().default(0),
|
|
46932
47143
|
sales: numberType().default(0),
|
|
46933
47144
|
saleAmount: numberType().default(0),
|
|
47145
|
+
lastClicked: stringType(),
|
|
46934
47146
|
createdAt: stringType(),
|
|
46935
47147
|
updatedAt: stringType(),
|
|
47148
|
+
tagId: nullableType(stringType()),
|
|
46936
47149
|
projectId: stringType()
|
|
46937
47150
|
}).transform((v2) => {
|
|
46938
47151
|
return remap(v2, {
|
|
@@ -46968,7 +47181,6 @@ var init_salecreatedevent = __esm(() => {
|
|
|
46968
47181
|
android: nullableType(stringType()),
|
|
46969
47182
|
geo: nullableType(lazyType(() => SaleCreatedEventGeo$outboundSchema)),
|
|
46970
47183
|
publicStats: booleanType(),
|
|
46971
|
-
tagId: nullableType(stringType()),
|
|
46972
47184
|
tags: nullableType(arrayType(TagSchema$outboundSchema)),
|
|
46973
47185
|
folderId: nullableType(stringType()),
|
|
46974
47186
|
webhookIds: arrayType(stringType()),
|
|
@@ -46986,12 +47198,14 @@ var init_salecreatedevent = __esm(() => {
|
|
|
46986
47198
|
userId: nullableType(stringType()),
|
|
46987
47199
|
workspaceId: stringType(),
|
|
46988
47200
|
clicks: numberType().default(0),
|
|
46989
|
-
lastClicked: stringType(),
|
|
46990
47201
|
leads: numberType().default(0),
|
|
47202
|
+
conversions: numberType().default(0),
|
|
46991
47203
|
sales: numberType().default(0),
|
|
46992
47204
|
saleAmount: numberType().default(0),
|
|
47205
|
+
lastClicked: stringType(),
|
|
46993
47206
|
createdAt: stringType(),
|
|
46994
47207
|
updatedAt: stringType(),
|
|
47208
|
+
tagId: nullableType(stringType()),
|
|
46995
47209
|
projectId: stringType()
|
|
46996
47210
|
}).transform((v2) => {
|
|
46997
47211
|
return remap(v2, {
|
|
@@ -47059,7 +47273,7 @@ var init_salecreatedevent = __esm(() => {
|
|
|
47059
47273
|
});
|
|
47060
47274
|
|
|
47061
47275
|
// src/models/components/saleevent.ts
|
|
47062
|
-
var SaleEventEvent, PaymentProcessor, SaleEventEvent$inboundSchema, SaleEventEvent$outboundSchema, SaleEventEvent$,
|
|
47276
|
+
var SaleEventEvent, PaymentProcessor, SaleEventEvent$inboundSchema, SaleEventEvent$outboundSchema, SaleEventEvent$, PaymentProcessor$inboundSchema, PaymentProcessor$outboundSchema, PaymentProcessor$, Sale$inboundSchema, Sale$outboundSchema, Sale$, SaleEventGeo$inboundSchema, SaleEventGeo$outboundSchema, SaleEventGeo$, SaleEventTestVariants$inboundSchema, SaleEventTestVariants$outboundSchema, SaleEventTestVariants$, SaleEventLink$inboundSchema, SaleEventLink$outboundSchema, SaleEventLink$, SaleEventClick$inboundSchema, SaleEventClick$outboundSchema, SaleEventClick$, SaleEventCustomer$inboundSchema, SaleEventCustomer$outboundSchema, SaleEventCustomer$, SaleEvent$inboundSchema, SaleEvent$outboundSchema, SaleEvent$;
|
|
47063
47277
|
var init_saleevent = __esm(() => {
|
|
47064
47278
|
init_esm();
|
|
47065
47279
|
init_primitives();
|
|
@@ -47072,6 +47286,7 @@ var init_saleevent = __esm(() => {
|
|
|
47072
47286
|
Shopify: "shopify",
|
|
47073
47287
|
Polar: "polar",
|
|
47074
47288
|
Paddle: "paddle",
|
|
47289
|
+
Revenuecat: "revenuecat",
|
|
47075
47290
|
Custom: "custom"
|
|
47076
47291
|
};
|
|
47077
47292
|
SaleEventEvent$inboundSchema = nativeEnumType(SaleEventEvent);
|
|
@@ -47080,6 +47295,26 @@ var init_saleevent = __esm(() => {
|
|
|
47080
47295
|
SaleEventEvent$.inboundSchema = SaleEventEvent$inboundSchema;
|
|
47081
47296
|
SaleEventEvent$.outboundSchema = SaleEventEvent$outboundSchema;
|
|
47082
47297
|
})(SaleEventEvent$ ||= {});
|
|
47298
|
+
PaymentProcessor$inboundSchema = nativeEnumType(PaymentProcessor);
|
|
47299
|
+
PaymentProcessor$outboundSchema = PaymentProcessor$inboundSchema;
|
|
47300
|
+
((PaymentProcessor$) => {
|
|
47301
|
+
PaymentProcessor$.inboundSchema = PaymentProcessor$inboundSchema;
|
|
47302
|
+
PaymentProcessor$.outboundSchema = PaymentProcessor$outboundSchema;
|
|
47303
|
+
})(PaymentProcessor$ ||= {});
|
|
47304
|
+
Sale$inboundSchema = objectType({
|
|
47305
|
+
amount: numberType().int(),
|
|
47306
|
+
invoiceId: nullableType(stringType()).default(null),
|
|
47307
|
+
paymentProcessor: PaymentProcessor$inboundSchema
|
|
47308
|
+
});
|
|
47309
|
+
Sale$outboundSchema = objectType({
|
|
47310
|
+
amount: numberType().int(),
|
|
47311
|
+
invoiceId: nullableType(stringType()).default(null),
|
|
47312
|
+
paymentProcessor: PaymentProcessor$outboundSchema
|
|
47313
|
+
});
|
|
47314
|
+
((Sale$) => {
|
|
47315
|
+
Sale$.inboundSchema = Sale$inboundSchema;
|
|
47316
|
+
Sale$.outboundSchema = Sale$outboundSchema;
|
|
47317
|
+
})(Sale$ ||= {});
|
|
47083
47318
|
SaleEventGeo$inboundSchema = objectType({
|
|
47084
47319
|
AF: stringType().optional(),
|
|
47085
47320
|
AL: stringType().optional(),
|
|
@@ -48131,7 +48366,6 @@ var init_saleevent = __esm(() => {
|
|
|
48131
48366
|
android: nullableType(stringType()),
|
|
48132
48367
|
geo: nullableType(lazyType(() => SaleEventGeo$inboundSchema)),
|
|
48133
48368
|
publicStats: booleanType(),
|
|
48134
|
-
tagId: nullableType(stringType()),
|
|
48135
48369
|
tags: nullableType(arrayType(TagSchema$inboundSchema)),
|
|
48136
48370
|
folderId: nullableType(stringType()),
|
|
48137
48371
|
webhookIds: arrayType(stringType()),
|
|
@@ -48149,12 +48383,14 @@ var init_saleevent = __esm(() => {
|
|
|
48149
48383
|
userId: nullableType(stringType()),
|
|
48150
48384
|
workspaceId: stringType(),
|
|
48151
48385
|
clicks: numberType().default(0),
|
|
48152
|
-
lastClicked: stringType(),
|
|
48153
48386
|
leads: numberType().default(0),
|
|
48387
|
+
conversions: numberType().default(0),
|
|
48154
48388
|
sales: numberType().default(0),
|
|
48155
48389
|
saleAmount: numberType().default(0),
|
|
48390
|
+
lastClicked: stringType(),
|
|
48156
48391
|
createdAt: stringType(),
|
|
48157
48392
|
updatedAt: stringType(),
|
|
48393
|
+
tagId: nullableType(stringType()),
|
|
48158
48394
|
projectId: stringType()
|
|
48159
48395
|
}).transform((v2) => {
|
|
48160
48396
|
return remap(v2, {
|
|
@@ -48190,7 +48426,6 @@ var init_saleevent = __esm(() => {
|
|
|
48190
48426
|
android: nullableType(stringType()),
|
|
48191
48427
|
geo: nullableType(lazyType(() => SaleEventGeo$outboundSchema)),
|
|
48192
48428
|
publicStats: booleanType(),
|
|
48193
|
-
tagId: nullableType(stringType()),
|
|
48194
48429
|
tags: nullableType(arrayType(TagSchema$outboundSchema)),
|
|
48195
48430
|
folderId: nullableType(stringType()),
|
|
48196
48431
|
webhookIds: arrayType(stringType()),
|
|
@@ -48208,12 +48443,14 @@ var init_saleevent = __esm(() => {
|
|
|
48208
48443
|
userId: nullableType(stringType()),
|
|
48209
48444
|
workspaceId: stringType(),
|
|
48210
48445
|
clicks: numberType().default(0),
|
|
48211
|
-
lastClicked: stringType(),
|
|
48212
48446
|
leads: numberType().default(0),
|
|
48447
|
+
conversions: numberType().default(0),
|
|
48213
48448
|
sales: numberType().default(0),
|
|
48214
48449
|
saleAmount: numberType().default(0),
|
|
48450
|
+
lastClicked: stringType(),
|
|
48215
48451
|
createdAt: stringType(),
|
|
48216
48452
|
updatedAt: stringType(),
|
|
48453
|
+
tagId: nullableType(stringType()),
|
|
48217
48454
|
projectId: stringType()
|
|
48218
48455
|
}).transform((v2) => {
|
|
48219
48456
|
return remap(v2, {
|
|
@@ -48239,6 +48476,7 @@ var init_saleevent = __esm(() => {
|
|
|
48239
48476
|
device: stringType(),
|
|
48240
48477
|
browser: stringType(),
|
|
48241
48478
|
os: stringType(),
|
|
48479
|
+
trigger: nullableType(stringType()).optional(),
|
|
48242
48480
|
referer: stringType(),
|
|
48243
48481
|
refererUrl: stringType(),
|
|
48244
48482
|
qr: booleanType(),
|
|
@@ -48255,6 +48493,7 @@ var init_saleevent = __esm(() => {
|
|
|
48255
48493
|
device: stringType(),
|
|
48256
48494
|
browser: stringType(),
|
|
48257
48495
|
os: stringType(),
|
|
48496
|
+
trigger: nullableType(stringType()).optional(),
|
|
48258
48497
|
referer: stringType(),
|
|
48259
48498
|
refererUrl: stringType(),
|
|
48260
48499
|
qr: booleanType(),
|
|
@@ -48290,35 +48529,16 @@ var init_saleevent = __esm(() => {
|
|
|
48290
48529
|
SaleEventCustomer$.inboundSchema = SaleEventCustomer$inboundSchema;
|
|
48291
48530
|
SaleEventCustomer$.outboundSchema = SaleEventCustomer$outboundSchema;
|
|
48292
48531
|
})(SaleEventCustomer$ ||= {});
|
|
48293
|
-
PaymentProcessor$inboundSchema = nativeEnumType(PaymentProcessor);
|
|
48294
|
-
PaymentProcessor$outboundSchema = PaymentProcessor$inboundSchema;
|
|
48295
|
-
((PaymentProcessor$) => {
|
|
48296
|
-
PaymentProcessor$.inboundSchema = PaymentProcessor$inboundSchema;
|
|
48297
|
-
PaymentProcessor$.outboundSchema = PaymentProcessor$outboundSchema;
|
|
48298
|
-
})(PaymentProcessor$ ||= {});
|
|
48299
|
-
Sale$inboundSchema = objectType({
|
|
48300
|
-
amount: numberType().int(),
|
|
48301
|
-
invoiceId: nullableType(stringType()).default(null),
|
|
48302
|
-
paymentProcessor: PaymentProcessor$inboundSchema
|
|
48303
|
-
});
|
|
48304
|
-
Sale$outboundSchema = objectType({
|
|
48305
|
-
amount: numberType().int(),
|
|
48306
|
-
invoiceId: nullableType(stringType()).default(null),
|
|
48307
|
-
paymentProcessor: PaymentProcessor$outboundSchema
|
|
48308
|
-
});
|
|
48309
|
-
((Sale$) => {
|
|
48310
|
-
Sale$.inboundSchema = Sale$inboundSchema;
|
|
48311
|
-
Sale$.outboundSchema = Sale$outboundSchema;
|
|
48312
|
-
})(Sale$ ||= {});
|
|
48313
48532
|
SaleEvent$inboundSchema = objectType({
|
|
48314
48533
|
event: SaleEventEvent$inboundSchema,
|
|
48315
48534
|
timestamp: stringType(),
|
|
48316
48535
|
eventId: stringType(),
|
|
48317
48536
|
eventName: stringType(),
|
|
48537
|
+
sale: lazyType(() => Sale$inboundSchema),
|
|
48538
|
+
metadata: nullableType(anyType()).optional(),
|
|
48318
48539
|
link: lazyType(() => SaleEventLink$inboundSchema),
|
|
48319
48540
|
click: lazyType(() => SaleEventClick$inboundSchema),
|
|
48320
48541
|
customer: lazyType(() => SaleEventCustomer$inboundSchema),
|
|
48321
|
-
sale: lazyType(() => Sale$inboundSchema),
|
|
48322
48542
|
saleAmount: numberType(),
|
|
48323
48543
|
invoice_id: stringType(),
|
|
48324
48544
|
payment_processor: stringType(),
|
|
@@ -48348,10 +48568,11 @@ var init_saleevent = __esm(() => {
|
|
|
48348
48568
|
timestamp: stringType(),
|
|
48349
48569
|
eventId: stringType(),
|
|
48350
48570
|
eventName: stringType(),
|
|
48571
|
+
sale: lazyType(() => Sale$outboundSchema),
|
|
48572
|
+
metadata: nullableType(anyType()).optional(),
|
|
48351
48573
|
link: lazyType(() => SaleEventLink$outboundSchema),
|
|
48352
48574
|
click: lazyType(() => SaleEventClick$outboundSchema),
|
|
48353
48575
|
customer: lazyType(() => SaleEventCustomer$outboundSchema),
|
|
48354
|
-
sale: lazyType(() => Sale$outboundSchema),
|
|
48355
48576
|
saleAmount: numberType(),
|
|
48356
48577
|
invoiceId: stringType(),
|
|
48357
48578
|
paymentProcessor: stringType(),
|
|
@@ -48402,6 +48623,7 @@ var init_security2 = __esm(() => {
|
|
|
48402
48623
|
var WebhookEvent$inboundSchema, WebhookEvent$outboundSchema, WebhookEvent$;
|
|
48403
48624
|
var init_webhookevent = __esm(() => {
|
|
48404
48625
|
init_esm();
|
|
48626
|
+
init_commissioncreatedevent();
|
|
48405
48627
|
init_leadcreatedevent();
|
|
48406
48628
|
init_linkclickedevent();
|
|
48407
48629
|
init_linkwebhookevent();
|
|
@@ -48412,14 +48634,16 @@ var init_webhookevent = __esm(() => {
|
|
|
48412
48634
|
LinkClickedEvent$inboundSchema,
|
|
48413
48635
|
LeadCreatedEvent$inboundSchema,
|
|
48414
48636
|
SaleCreatedEvent$inboundSchema,
|
|
48415
|
-
PartnerEnrolledEvent$inboundSchema
|
|
48637
|
+
PartnerEnrolledEvent$inboundSchema,
|
|
48638
|
+
CommissionCreatedEvent$inboundSchema
|
|
48416
48639
|
]);
|
|
48417
48640
|
WebhookEvent$outboundSchema = unionType([
|
|
48418
48641
|
LinkWebhookEvent$outboundSchema,
|
|
48419
48642
|
LinkClickedEvent$outboundSchema,
|
|
48420
48643
|
LeadCreatedEvent$outboundSchema,
|
|
48421
48644
|
SaleCreatedEvent$outboundSchema,
|
|
48422
|
-
PartnerEnrolledEvent$outboundSchema
|
|
48645
|
+
PartnerEnrolledEvent$outboundSchema,
|
|
48646
|
+
CommissionCreatedEvent$outboundSchema
|
|
48423
48647
|
]);
|
|
48424
48648
|
((WebhookEvent$) => {
|
|
48425
48649
|
WebhookEvent$.inboundSchema = WebhookEvent$inboundSchema;
|
|
@@ -48578,6 +48802,7 @@ var init_components = __esm(() => {
|
|
|
48578
48802
|
init_analyticstopurls();
|
|
48579
48803
|
init_analyticstriggers();
|
|
48580
48804
|
init_clickevent();
|
|
48805
|
+
init_commissioncreatedevent();
|
|
48581
48806
|
init_continentcode();
|
|
48582
48807
|
init_countrycode();
|
|
48583
48808
|
init_domainschema();
|
|
@@ -48643,8 +48868,6 @@ var init_bulkcreatelinks = __esm(() => {
|
|
|
48643
48868
|
prefix: stringType().optional(),
|
|
48644
48869
|
trackConversion: booleanType().optional(),
|
|
48645
48870
|
archived: booleanType().optional(),
|
|
48646
|
-
publicStats: booleanType().optional(),
|
|
48647
|
-
tagId: nullableType(stringType()).optional(),
|
|
48648
48871
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
48649
48872
|
tagNames: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
48650
48873
|
folderId: nullableType(stringType()).optional(),
|
|
@@ -48671,7 +48894,9 @@ var init_bulkcreatelinks = __esm(() => {
|
|
|
48671
48894
|
webhookIds: nullableType(arrayType(stringType())).optional(),
|
|
48672
48895
|
testVariants: nullableType(arrayType(lazyType(() => BulkCreateLinksTestVariants$inboundSchema))).optional(),
|
|
48673
48896
|
testStartedAt: nullableType(stringType()).optional(),
|
|
48674
|
-
testCompletedAt: nullableType(stringType()).optional()
|
|
48897
|
+
testCompletedAt: nullableType(stringType()).optional(),
|
|
48898
|
+
publicStats: booleanType().optional(),
|
|
48899
|
+
tagId: nullableType(stringType()).optional()
|
|
48675
48900
|
}).transform((v2) => {
|
|
48676
48901
|
return remap(v2, {
|
|
48677
48902
|
utm_source: "utmSource",
|
|
@@ -48693,8 +48918,6 @@ var init_bulkcreatelinks = __esm(() => {
|
|
|
48693
48918
|
prefix: stringType().optional(),
|
|
48694
48919
|
trackConversion: booleanType().optional(),
|
|
48695
48920
|
archived: booleanType().optional(),
|
|
48696
|
-
publicStats: booleanType().optional(),
|
|
48697
|
-
tagId: nullableType(stringType()).optional(),
|
|
48698
48921
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
48699
48922
|
tagNames: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
48700
48923
|
folderId: nullableType(stringType()).optional(),
|
|
@@ -48721,7 +48944,9 @@ var init_bulkcreatelinks = __esm(() => {
|
|
|
48721
48944
|
webhookIds: nullableType(arrayType(stringType())).optional(),
|
|
48722
48945
|
testVariants: nullableType(arrayType(lazyType(() => BulkCreateLinksTestVariants$outboundSchema))).optional(),
|
|
48723
48946
|
testStartedAt: nullableType(stringType()).optional(),
|
|
48724
|
-
testCompletedAt: nullableType(stringType()).optional()
|
|
48947
|
+
testCompletedAt: nullableType(stringType()).optional(),
|
|
48948
|
+
publicStats: booleanType().optional(),
|
|
48949
|
+
tagId: nullableType(stringType()).optional()
|
|
48725
48950
|
}).transform((v2) => {
|
|
48726
48951
|
return remap(v2, {
|
|
48727
48952
|
utmSource: "utm_source",
|
|
@@ -48812,8 +49037,6 @@ var init_bulkupdatelinks = __esm(() => {
|
|
|
48812
49037
|
partnerId: nullableType(stringType()).optional(),
|
|
48813
49038
|
trackConversion: booleanType().optional(),
|
|
48814
49039
|
archived: booleanType().optional(),
|
|
48815
|
-
publicStats: booleanType().optional(),
|
|
48816
|
-
tagId: nullableType(stringType()).optional(),
|
|
48817
49040
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
48818
49041
|
tagNames: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
48819
49042
|
folderId: nullableType(stringType()).optional(),
|
|
@@ -48840,7 +49063,9 @@ var init_bulkupdatelinks = __esm(() => {
|
|
|
48840
49063
|
webhookIds: nullableType(arrayType(stringType())).optional(),
|
|
48841
49064
|
testVariants: nullableType(arrayType(lazyType(() => BulkUpdateLinksTestVariants$inboundSchema))).optional(),
|
|
48842
49065
|
testStartedAt: nullableType(stringType()).optional(),
|
|
48843
|
-
testCompletedAt: nullableType(stringType()).optional()
|
|
49066
|
+
testCompletedAt: nullableType(stringType()).optional(),
|
|
49067
|
+
publicStats: booleanType().optional(),
|
|
49068
|
+
tagId: nullableType(stringType()).optional()
|
|
48844
49069
|
}).transform((v2) => {
|
|
48845
49070
|
return remap(v2, {
|
|
48846
49071
|
utm_source: "utmSource",
|
|
@@ -48857,8 +49082,6 @@ var init_bulkupdatelinks = __esm(() => {
|
|
|
48857
49082
|
partnerId: nullableType(stringType()).optional(),
|
|
48858
49083
|
trackConversion: booleanType().optional(),
|
|
48859
49084
|
archived: booleanType().optional(),
|
|
48860
|
-
publicStats: booleanType().optional(),
|
|
48861
|
-
tagId: nullableType(stringType()).optional(),
|
|
48862
49085
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
48863
49086
|
tagNames: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
48864
49087
|
folderId: nullableType(stringType()).optional(),
|
|
@@ -48885,7 +49108,9 @@ var init_bulkupdatelinks = __esm(() => {
|
|
|
48885
49108
|
webhookIds: nullableType(arrayType(stringType())).optional(),
|
|
48886
49109
|
testVariants: nullableType(arrayType(lazyType(() => BulkUpdateLinksTestVariants$outboundSchema))).optional(),
|
|
48887
49110
|
testStartedAt: nullableType(stringType()).optional(),
|
|
48888
|
-
testCompletedAt: nullableType(stringType()).optional()
|
|
49111
|
+
testCompletedAt: nullableType(stringType()).optional(),
|
|
49112
|
+
publicStats: booleanType().optional(),
|
|
49113
|
+
tagId: nullableType(stringType()).optional()
|
|
48889
49114
|
}).transform((v2) => {
|
|
48890
49115
|
return remap(v2, {
|
|
48891
49116
|
utmSource: "utm_source",
|
|
@@ -49181,8 +49406,6 @@ var init_createlink = __esm(() => {
|
|
|
49181
49406
|
prefix: stringType().optional(),
|
|
49182
49407
|
trackConversion: booleanType().optional(),
|
|
49183
49408
|
archived: booleanType().optional(),
|
|
49184
|
-
publicStats: booleanType().optional(),
|
|
49185
|
-
tagId: nullableType(stringType()).optional(),
|
|
49186
49409
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
49187
49410
|
tagNames: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
49188
49411
|
folderId: nullableType(stringType()).optional(),
|
|
@@ -49209,7 +49432,9 @@ var init_createlink = __esm(() => {
|
|
|
49209
49432
|
webhookIds: nullableType(arrayType(stringType())).optional(),
|
|
49210
49433
|
testVariants: nullableType(arrayType(lazyType(() => TestVariants$inboundSchema2))).optional(),
|
|
49211
49434
|
testStartedAt: nullableType(stringType()).optional(),
|
|
49212
|
-
testCompletedAt: nullableType(stringType()).optional()
|
|
49435
|
+
testCompletedAt: nullableType(stringType()).optional(),
|
|
49436
|
+
publicStats: booleanType().optional(),
|
|
49437
|
+
tagId: nullableType(stringType()).optional()
|
|
49213
49438
|
}).transform((v2) => {
|
|
49214
49439
|
return remap(v2, {
|
|
49215
49440
|
utm_source: "utmSource",
|
|
@@ -49231,8 +49456,6 @@ var init_createlink = __esm(() => {
|
|
|
49231
49456
|
prefix: stringType().optional(),
|
|
49232
49457
|
trackConversion: booleanType().optional(),
|
|
49233
49458
|
archived: booleanType().optional(),
|
|
49234
|
-
publicStats: booleanType().optional(),
|
|
49235
|
-
tagId: nullableType(stringType()).optional(),
|
|
49236
49459
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
49237
49460
|
tagNames: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
49238
49461
|
folderId: nullableType(stringType()).optional(),
|
|
@@ -49259,7 +49482,9 @@ var init_createlink = __esm(() => {
|
|
|
49259
49482
|
webhookIds: nullableType(arrayType(stringType())).optional(),
|
|
49260
49483
|
testVariants: nullableType(arrayType(lazyType(() => TestVariants$outboundSchema2))).optional(),
|
|
49261
49484
|
testStartedAt: nullableType(stringType()).optional(),
|
|
49262
|
-
testCompletedAt: nullableType(stringType()).optional()
|
|
49485
|
+
testCompletedAt: nullableType(stringType()).optional(),
|
|
49486
|
+
publicStats: booleanType().optional(),
|
|
49487
|
+
tagId: nullableType(stringType()).optional()
|
|
49263
49488
|
}).transform((v2) => {
|
|
49264
49489
|
return remap(v2, {
|
|
49265
49490
|
utmSource: "utm_source",
|
|
@@ -49276,7 +49501,7 @@ var init_createlink = __esm(() => {
|
|
|
49276
49501
|
});
|
|
49277
49502
|
|
|
49278
49503
|
// 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$;
|
|
49504
|
+
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
49505
|
var init_createpartner = __esm(() => {
|
|
49281
49506
|
init_esm();
|
|
49282
49507
|
init_primitives();
|
|
@@ -49541,6 +49766,14 @@ var init_createpartner = __esm(() => {
|
|
|
49541
49766
|
Banned: "banned",
|
|
49542
49767
|
Archived: "archived"
|
|
49543
49768
|
};
|
|
49769
|
+
BannedReason2 = {
|
|
49770
|
+
TosViolation: "tos_violation",
|
|
49771
|
+
InappropriateContent: "inappropriate_content",
|
|
49772
|
+
FakeTraffic: "fake_traffic",
|
|
49773
|
+
Fraud: "fraud",
|
|
49774
|
+
Spam: "spam",
|
|
49775
|
+
BrandAbuse: "brand_abuse"
|
|
49776
|
+
};
|
|
49544
49777
|
Country$inboundSchema = nativeEnumType(Country);
|
|
49545
49778
|
Country$outboundSchema = Country$inboundSchema;
|
|
49546
49779
|
((Country$) => {
|
|
@@ -49711,6 +49944,12 @@ var init_createpartner = __esm(() => {
|
|
|
49711
49944
|
CreatePartnerLink$.inboundSchema = CreatePartnerLink$inboundSchema;
|
|
49712
49945
|
CreatePartnerLink$.outboundSchema = CreatePartnerLink$outboundSchema;
|
|
49713
49946
|
})(CreatePartnerLink$ ||= {});
|
|
49947
|
+
BannedReason$inboundSchema2 = nativeEnumType(BannedReason2);
|
|
49948
|
+
BannedReason$outboundSchema2 = BannedReason$inboundSchema2;
|
|
49949
|
+
((BannedReason$) => {
|
|
49950
|
+
BannedReason$.inboundSchema = BannedReason$inboundSchema2;
|
|
49951
|
+
BannedReason$.outboundSchema = BannedReason$outboundSchema2;
|
|
49952
|
+
})(BannedReason$2 ||= {});
|
|
49714
49953
|
CreatePartnerResponseBody$inboundSchema = objectType({
|
|
49715
49954
|
id: stringType(),
|
|
49716
49955
|
name: stringType(),
|
|
@@ -49718,27 +49957,43 @@ var init_createpartner = __esm(() => {
|
|
|
49718
49957
|
image: nullableType(stringType()),
|
|
49719
49958
|
description: nullableType(stringType()).optional(),
|
|
49720
49959
|
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
49960
|
paypalEmail: nullableType(stringType()),
|
|
49728
49961
|
stripeConnectId: nullableType(stringType()),
|
|
49729
49962
|
payoutsEnabledAt: nullableType(stringType()),
|
|
49963
|
+
partnerId: stringType(),
|
|
49964
|
+
tenantId: nullableType(stringType()),
|
|
49965
|
+
programId: stringType(),
|
|
49730
49966
|
createdAt: stringType(),
|
|
49731
49967
|
status: CreatePartnerStatus$inboundSchema,
|
|
49732
|
-
programId: stringType(),
|
|
49733
|
-
tenantId: nullableType(stringType()),
|
|
49734
49968
|
links: nullableType(arrayType(lazyType(() => CreatePartnerLink$inboundSchema))),
|
|
49969
|
+
totalCommissions: numberType().default(0),
|
|
49970
|
+
clickRewardId: nullableType(stringType()).optional(),
|
|
49971
|
+
leadRewardId: nullableType(stringType()).optional(),
|
|
49972
|
+
saleRewardId: nullableType(stringType()).optional(),
|
|
49973
|
+
discountId: nullableType(stringType()).optional(),
|
|
49974
|
+
applicationId: nullableType(stringType()).optional(),
|
|
49975
|
+
bannedAt: nullableType(stringType()).optional(),
|
|
49976
|
+
bannedReason: nullableType(BannedReason$inboundSchema2).optional(),
|
|
49735
49977
|
clicks: numberType().default(0),
|
|
49736
49978
|
leads: numberType().default(0),
|
|
49737
49979
|
sales: numberType().default(0),
|
|
49738
49980
|
saleAmount: numberType().default(0),
|
|
49739
|
-
totalCommissions: numberType().default(0),
|
|
49740
49981
|
netRevenue: numberType().default(0),
|
|
49741
|
-
|
|
49982
|
+
website: nullableType(stringType()).optional(),
|
|
49983
|
+
websiteTxtRecord: nullableType(stringType()).optional(),
|
|
49984
|
+
websiteVerifiedAt: nullableType(stringType()).optional(),
|
|
49985
|
+
youtube: nullableType(stringType()).optional(),
|
|
49986
|
+
youtubeVerifiedAt: nullableType(stringType()).optional(),
|
|
49987
|
+
youtubeSubscriberCount: nullableType(numberType()).optional(),
|
|
49988
|
+
youtubeViewCount: nullableType(numberType()).optional(),
|
|
49989
|
+
twitter: nullableType(stringType()).optional(),
|
|
49990
|
+
twitterVerifiedAt: nullableType(stringType()).optional(),
|
|
49991
|
+
linkedin: nullableType(stringType()).optional(),
|
|
49992
|
+
linkedinVerifiedAt: nullableType(stringType()).optional(),
|
|
49993
|
+
instagram: nullableType(stringType()).optional(),
|
|
49994
|
+
instagramVerifiedAt: nullableType(stringType()).optional(),
|
|
49995
|
+
tiktok: nullableType(stringType()).optional(),
|
|
49996
|
+
tiktokVerifiedAt: nullableType(stringType()).optional()
|
|
49742
49997
|
});
|
|
49743
49998
|
CreatePartnerResponseBody$outboundSchema = objectType({
|
|
49744
49999
|
id: stringType(),
|
|
@@ -49747,27 +50002,43 @@ var init_createpartner = __esm(() => {
|
|
|
49747
50002
|
image: nullableType(stringType()),
|
|
49748
50003
|
description: nullableType(stringType()).optional(),
|
|
49749
50004
|
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
50005
|
paypalEmail: nullableType(stringType()),
|
|
49757
50006
|
stripeConnectId: nullableType(stringType()),
|
|
49758
50007
|
payoutsEnabledAt: nullableType(stringType()),
|
|
50008
|
+
partnerId: stringType(),
|
|
50009
|
+
tenantId: nullableType(stringType()),
|
|
50010
|
+
programId: stringType(),
|
|
49759
50011
|
createdAt: stringType(),
|
|
49760
50012
|
status: CreatePartnerStatus$outboundSchema,
|
|
49761
|
-
programId: stringType(),
|
|
49762
|
-
tenantId: nullableType(stringType()),
|
|
49763
50013
|
links: nullableType(arrayType(lazyType(() => CreatePartnerLink$outboundSchema))),
|
|
50014
|
+
totalCommissions: numberType().default(0),
|
|
50015
|
+
clickRewardId: nullableType(stringType()).optional(),
|
|
50016
|
+
leadRewardId: nullableType(stringType()).optional(),
|
|
50017
|
+
saleRewardId: nullableType(stringType()).optional(),
|
|
50018
|
+
discountId: nullableType(stringType()).optional(),
|
|
50019
|
+
applicationId: nullableType(stringType()).optional(),
|
|
50020
|
+
bannedAt: nullableType(stringType()).optional(),
|
|
50021
|
+
bannedReason: nullableType(BannedReason$outboundSchema2).optional(),
|
|
49764
50022
|
clicks: numberType().default(0),
|
|
49765
50023
|
leads: numberType().default(0),
|
|
49766
50024
|
sales: numberType().default(0),
|
|
49767
50025
|
saleAmount: numberType().default(0),
|
|
49768
|
-
totalCommissions: numberType().default(0),
|
|
49769
50026
|
netRevenue: numberType().default(0),
|
|
49770
|
-
|
|
50027
|
+
website: nullableType(stringType()).optional(),
|
|
50028
|
+
websiteTxtRecord: nullableType(stringType()).optional(),
|
|
50029
|
+
websiteVerifiedAt: nullableType(stringType()).optional(),
|
|
50030
|
+
youtube: nullableType(stringType()).optional(),
|
|
50031
|
+
youtubeVerifiedAt: nullableType(stringType()).optional(),
|
|
50032
|
+
youtubeSubscriberCount: nullableType(numberType()).optional(),
|
|
50033
|
+
youtubeViewCount: nullableType(numberType()).optional(),
|
|
50034
|
+
twitter: nullableType(stringType()).optional(),
|
|
50035
|
+
twitterVerifiedAt: nullableType(stringType()).optional(),
|
|
50036
|
+
linkedin: nullableType(stringType()).optional(),
|
|
50037
|
+
linkedinVerifiedAt: nullableType(stringType()).optional(),
|
|
50038
|
+
instagram: nullableType(stringType()).optional(),
|
|
50039
|
+
instagramVerifiedAt: nullableType(stringType()).optional(),
|
|
50040
|
+
tiktok: nullableType(stringType()).optional(),
|
|
50041
|
+
tiktokVerifiedAt: nullableType(stringType()).optional()
|
|
49771
50042
|
});
|
|
49772
50043
|
((CreatePartnerResponseBody$) => {
|
|
49773
50044
|
CreatePartnerResponseBody$.inboundSchema = CreatePartnerResponseBody$inboundSchema;
|
|
@@ -49911,7 +50182,7 @@ var init_createpartnerlink = __esm(() => {
|
|
|
49911
50182
|
});
|
|
49912
50183
|
|
|
49913
50184
|
// 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$
|
|
50185
|
+
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
50186
|
var init_createreferralsembedtoken = __esm(() => {
|
|
49916
50187
|
init_esm();
|
|
49917
50188
|
init_primitives();
|
|
@@ -50281,7 +50552,7 @@ var init_createreferralsembedtoken = __esm(() => {
|
|
|
50281
50552
|
CreateReferralsEmbedTokenLinkProps$.inboundSchema = CreateReferralsEmbedTokenLinkProps$inboundSchema;
|
|
50282
50553
|
CreateReferralsEmbedTokenLinkProps$.outboundSchema = CreateReferralsEmbedTokenLinkProps$outboundSchema;
|
|
50283
50554
|
})(CreateReferralsEmbedTokenLinkProps$ ||= {});
|
|
50284
|
-
Partner$
|
|
50555
|
+
Partner$inboundSchema2 = objectType({
|
|
50285
50556
|
name: nullableType(stringType()).optional(),
|
|
50286
50557
|
email: stringType(),
|
|
50287
50558
|
username: nullableType(stringType()).optional(),
|
|
@@ -50291,7 +50562,7 @@ var init_createreferralsembedtoken = __esm(() => {
|
|
|
50291
50562
|
description: nullableType(stringType()).optional(),
|
|
50292
50563
|
linkProps: lazyType(() => CreateReferralsEmbedTokenLinkProps$inboundSchema).optional()
|
|
50293
50564
|
});
|
|
50294
|
-
Partner$
|
|
50565
|
+
Partner$outboundSchema2 = objectType({
|
|
50295
50566
|
name: nullableType(stringType()).optional(),
|
|
50296
50567
|
email: stringType(),
|
|
50297
50568
|
username: nullableType(stringType()).optional(),
|
|
@@ -50302,18 +50573,18 @@ var init_createreferralsembedtoken = __esm(() => {
|
|
|
50302
50573
|
linkProps: lazyType(() => CreateReferralsEmbedTokenLinkProps$outboundSchema).optional()
|
|
50303
50574
|
});
|
|
50304
50575
|
((Partner$) => {
|
|
50305
|
-
Partner$.inboundSchema = Partner$
|
|
50306
|
-
Partner$.outboundSchema = Partner$
|
|
50307
|
-
})(Partner$ ||= {});
|
|
50576
|
+
Partner$.inboundSchema = Partner$inboundSchema2;
|
|
50577
|
+
Partner$.outboundSchema = Partner$outboundSchema2;
|
|
50578
|
+
})(Partner$2 ||= {});
|
|
50308
50579
|
CreateReferralsEmbedTokenRequestBody$inboundSchema = objectType({
|
|
50309
50580
|
partnerId: stringType().optional(),
|
|
50310
50581
|
tenantId: stringType().optional(),
|
|
50311
|
-
partner: lazyType(() => Partner$
|
|
50582
|
+
partner: lazyType(() => Partner$inboundSchema2).optional()
|
|
50312
50583
|
});
|
|
50313
50584
|
CreateReferralsEmbedTokenRequestBody$outboundSchema = objectType({
|
|
50314
50585
|
partnerId: stringType().optional(),
|
|
50315
50586
|
tenantId: stringType().optional(),
|
|
50316
|
-
partner: lazyType(() => Partner$
|
|
50587
|
+
partner: lazyType(() => Partner$outboundSchema2).optional()
|
|
50317
50588
|
});
|
|
50318
50589
|
((CreateReferralsEmbedTokenRequestBody$) => {
|
|
50319
50590
|
CreateReferralsEmbedTokenRequestBody$.inboundSchema = CreateReferralsEmbedTokenRequestBody$inboundSchema;
|
|
@@ -51137,7 +51408,7 @@ var init_getworkspace = __esm(() => {
|
|
|
51137
51408
|
});
|
|
51138
51409
|
|
|
51139
51410
|
// 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$;
|
|
51411
|
+
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
51412
|
var init_listcommissions = __esm(() => {
|
|
51142
51413
|
init_esm();
|
|
51143
51414
|
Type2 = {
|
|
@@ -51265,17 +51536,67 @@ var init_listcommissions = __esm(() => {
|
|
|
51265
51536
|
ListCommissionsStatus$.inboundSchema = ListCommissionsStatus$inboundSchema;
|
|
51266
51537
|
ListCommissionsStatus$.outboundSchema = ListCommissionsStatus$outboundSchema;
|
|
51267
51538
|
})(ListCommissionsStatus$ ||= {});
|
|
51268
|
-
|
|
51539
|
+
ListCommissionsPartner$inboundSchema = objectType({
|
|
51269
51540
|
id: stringType(),
|
|
51270
|
-
|
|
51271
|
-
|
|
51272
|
-
|
|
51273
|
-
|
|
51274
|
-
|
|
51275
|
-
|
|
51276
|
-
|
|
51277
|
-
|
|
51278
|
-
|
|
51541
|
+
name: stringType(),
|
|
51542
|
+
email: nullableType(stringType()),
|
|
51543
|
+
image: nullableType(stringType()),
|
|
51544
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
51545
|
+
country: nullableType(stringType())
|
|
51546
|
+
});
|
|
51547
|
+
ListCommissionsPartner$outboundSchema = objectType({
|
|
51548
|
+
id: stringType(),
|
|
51549
|
+
name: stringType(),
|
|
51550
|
+
email: nullableType(stringType()),
|
|
51551
|
+
image: nullableType(stringType()),
|
|
51552
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
51553
|
+
country: nullableType(stringType())
|
|
51554
|
+
});
|
|
51555
|
+
((ListCommissionsPartner$) => {
|
|
51556
|
+
ListCommissionsPartner$.inboundSchema = ListCommissionsPartner$inboundSchema;
|
|
51557
|
+
ListCommissionsPartner$.outboundSchema = ListCommissionsPartner$outboundSchema;
|
|
51558
|
+
})(ListCommissionsPartner$ ||= {});
|
|
51559
|
+
ListCommissionsCustomer$inboundSchema = objectType({
|
|
51560
|
+
id: stringType(),
|
|
51561
|
+
externalId: stringType(),
|
|
51562
|
+
name: stringType(),
|
|
51563
|
+
email: nullableType(stringType()).optional(),
|
|
51564
|
+
avatar: nullableType(stringType()).optional(),
|
|
51565
|
+
country: nullableType(stringType()).optional(),
|
|
51566
|
+
sales: nullableType(numberType()).optional(),
|
|
51567
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
51568
|
+
createdAt: stringType()
|
|
51569
|
+
});
|
|
51570
|
+
ListCommissionsCustomer$outboundSchema = objectType({
|
|
51571
|
+
id: stringType(),
|
|
51572
|
+
externalId: stringType(),
|
|
51573
|
+
name: stringType(),
|
|
51574
|
+
email: nullableType(stringType()).optional(),
|
|
51575
|
+
avatar: nullableType(stringType()).optional(),
|
|
51576
|
+
country: nullableType(stringType()).optional(),
|
|
51577
|
+
sales: nullableType(numberType()).optional(),
|
|
51578
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
51579
|
+
createdAt: stringType()
|
|
51580
|
+
});
|
|
51581
|
+
((ListCommissionsCustomer$) => {
|
|
51582
|
+
ListCommissionsCustomer$.inboundSchema = ListCommissionsCustomer$inboundSchema;
|
|
51583
|
+
ListCommissionsCustomer$.outboundSchema = ListCommissionsCustomer$outboundSchema;
|
|
51584
|
+
})(ListCommissionsCustomer$ ||= {});
|
|
51585
|
+
ListCommissionsResponseBody$inboundSchema = objectType({
|
|
51586
|
+
id: stringType(),
|
|
51587
|
+
type: ListCommissionsType$inboundSchema.optional(),
|
|
51588
|
+
amount: numberType(),
|
|
51589
|
+
earnings: numberType(),
|
|
51590
|
+
currency: stringType(),
|
|
51591
|
+
status: ListCommissionsStatus$inboundSchema,
|
|
51592
|
+
invoiceId: nullableType(stringType()),
|
|
51593
|
+
description: nullableType(stringType()),
|
|
51594
|
+
quantity: numberType(),
|
|
51595
|
+
userId: nullableType(stringType()).optional(),
|
|
51596
|
+
createdAt: stringType(),
|
|
51597
|
+
updatedAt: stringType(),
|
|
51598
|
+
partner: lazyType(() => ListCommissionsPartner$inboundSchema),
|
|
51599
|
+
customer: nullableType(lazyType(() => ListCommissionsCustomer$inboundSchema)).optional()
|
|
51279
51600
|
});
|
|
51280
51601
|
ListCommissionsResponseBody$outboundSchema = objectType({
|
|
51281
51602
|
id: stringType(),
|
|
@@ -51284,10 +51605,14 @@ var init_listcommissions = __esm(() => {
|
|
|
51284
51605
|
earnings: numberType(),
|
|
51285
51606
|
currency: stringType(),
|
|
51286
51607
|
status: ListCommissionsStatus$outboundSchema,
|
|
51287
|
-
invoiceId: nullableType(stringType())
|
|
51288
|
-
description: nullableType(stringType())
|
|
51608
|
+
invoiceId: nullableType(stringType()),
|
|
51609
|
+
description: nullableType(stringType()),
|
|
51610
|
+
quantity: numberType(),
|
|
51611
|
+
userId: nullableType(stringType()).optional(),
|
|
51289
51612
|
createdAt: stringType(),
|
|
51290
|
-
updatedAt: stringType()
|
|
51613
|
+
updatedAt: stringType(),
|
|
51614
|
+
partner: lazyType(() => ListCommissionsPartner$outboundSchema),
|
|
51615
|
+
customer: nullableType(lazyType(() => ListCommissionsCustomer$outboundSchema)).optional()
|
|
51291
51616
|
});
|
|
51292
51617
|
((ListCommissionsResponseBody$) => {
|
|
51293
51618
|
ListCommissionsResponseBody$.inboundSchema = ListCommissionsResponseBody$inboundSchema;
|
|
@@ -51338,7 +51663,7 @@ var init_listdomains = __esm(() => {
|
|
|
51338
51663
|
});
|
|
51339
51664
|
|
|
51340
51665
|
// 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$;
|
|
51666
|
+
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
51667
|
var init_listevents = __esm(() => {
|
|
51343
51668
|
init_esm();
|
|
51344
51669
|
init_primitives();
|
|
@@ -51361,7 +51686,13 @@ var init_listevents = __esm(() => {
|
|
|
51361
51686
|
};
|
|
51362
51687
|
QueryParamTrigger = {
|
|
51363
51688
|
Qr: "qr",
|
|
51364
|
-
Link: "link"
|
|
51689
|
+
Link: "link",
|
|
51690
|
+
Pageview: "pageview",
|
|
51691
|
+
Deeplink: "deeplink"
|
|
51692
|
+
};
|
|
51693
|
+
QueryParamSaleType = {
|
|
51694
|
+
New: "new",
|
|
51695
|
+
Recurring: "recurring"
|
|
51365
51696
|
};
|
|
51366
51697
|
QueryParamSortOrder = {
|
|
51367
51698
|
Asc: "asc",
|
|
@@ -51398,6 +51729,12 @@ var init_listevents = __esm(() => {
|
|
|
51398
51729
|
ListEventsQueryParamTagIds$.inboundSchema = ListEventsQueryParamTagIds$inboundSchema;
|
|
51399
51730
|
ListEventsQueryParamTagIds$.outboundSchema = ListEventsQueryParamTagIds$outboundSchema;
|
|
51400
51731
|
})(ListEventsQueryParamTagIds$ ||= {});
|
|
51732
|
+
QueryParamSaleType$inboundSchema = nativeEnumType(QueryParamSaleType);
|
|
51733
|
+
QueryParamSaleType$outboundSchema = QueryParamSaleType$inboundSchema;
|
|
51734
|
+
((QueryParamSaleType$) => {
|
|
51735
|
+
QueryParamSaleType$.inboundSchema = QueryParamSaleType$inboundSchema;
|
|
51736
|
+
QueryParamSaleType$.outboundSchema = QueryParamSaleType$outboundSchema;
|
|
51737
|
+
})(QueryParamSaleType$ ||= {});
|
|
51401
51738
|
QueryParamSortOrder$inboundSchema = nativeEnumType(QueryParamSortOrder);
|
|
51402
51739
|
QueryParamSortOrder$outboundSchema = QueryParamSortOrder$inboundSchema;
|
|
51403
51740
|
((QueryParamSortOrder$) => {
|
|
@@ -51441,11 +51778,13 @@ var init_listevents = __esm(() => {
|
|
|
51441
51778
|
referer: stringType().optional(),
|
|
51442
51779
|
refererUrl: stringType().optional(),
|
|
51443
51780
|
url: stringType().optional(),
|
|
51444
|
-
tagId: stringType().optional(),
|
|
51445
51781
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
51446
51782
|
folderId: stringType().optional(),
|
|
51447
|
-
qr: booleanType().optional(),
|
|
51448
51783
|
root: booleanType().optional(),
|
|
51784
|
+
saleType: QueryParamSaleType$inboundSchema.optional(),
|
|
51785
|
+
query: stringType().optional(),
|
|
51786
|
+
tagId: stringType().optional(),
|
|
51787
|
+
qr: booleanType().optional(),
|
|
51449
51788
|
utm_source: nullableType(stringType()).optional(),
|
|
51450
51789
|
utm_medium: nullableType(stringType()).optional(),
|
|
51451
51790
|
utm_campaign: nullableType(stringType()).optional(),
|
|
@@ -51490,11 +51829,13 @@ var init_listevents = __esm(() => {
|
|
|
51490
51829
|
referer: stringType().optional(),
|
|
51491
51830
|
refererUrl: stringType().optional(),
|
|
51492
51831
|
url: stringType().optional(),
|
|
51493
|
-
tagId: stringType().optional(),
|
|
51494
51832
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
51495
51833
|
folderId: stringType().optional(),
|
|
51496
|
-
qr: booleanType().optional(),
|
|
51497
51834
|
root: booleanType().optional(),
|
|
51835
|
+
saleType: QueryParamSaleType$outboundSchema.optional(),
|
|
51836
|
+
query: stringType().optional(),
|
|
51837
|
+
tagId: stringType().optional(),
|
|
51838
|
+
qr: booleanType().optional(),
|
|
51498
51839
|
utmSource: nullableType(stringType()).optional(),
|
|
51499
51840
|
utmMedium: nullableType(stringType()).optional(),
|
|
51500
51841
|
utmCampaign: nullableType(stringType()).optional(),
|
|
@@ -51566,6 +51907,227 @@ var init_listfolders = __esm(() => {
|
|
|
51566
51907
|
})(ListFoldersRequest$ ||= {});
|
|
51567
51908
|
});
|
|
51568
51909
|
|
|
51910
|
+
// src/models/operations/listpartners.ts
|
|
51911
|
+
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$;
|
|
51912
|
+
var init_listpartners = __esm(() => {
|
|
51913
|
+
init_esm();
|
|
51914
|
+
ListPartnersQueryParamStatus = {
|
|
51915
|
+
Pending: "pending",
|
|
51916
|
+
Approved: "approved",
|
|
51917
|
+
Rejected: "rejected",
|
|
51918
|
+
Invited: "invited",
|
|
51919
|
+
Declined: "declined",
|
|
51920
|
+
Banned: "banned",
|
|
51921
|
+
Archived: "archived"
|
|
51922
|
+
};
|
|
51923
|
+
ListPartnersQueryParamSortBy = {
|
|
51924
|
+
CreatedAt: "createdAt",
|
|
51925
|
+
Clicks: "clicks",
|
|
51926
|
+
Leads: "leads",
|
|
51927
|
+
Sales: "sales",
|
|
51928
|
+
SaleAmount: "saleAmount",
|
|
51929
|
+
Commissions: "commissions",
|
|
51930
|
+
NetRevenue: "netRevenue"
|
|
51931
|
+
};
|
|
51932
|
+
ListPartnersQueryParamSortOrder = {
|
|
51933
|
+
Asc: "asc",
|
|
51934
|
+
Desc: "desc"
|
|
51935
|
+
};
|
|
51936
|
+
ListPartnersStatus = {
|
|
51937
|
+
Pending: "pending",
|
|
51938
|
+
Approved: "approved",
|
|
51939
|
+
Rejected: "rejected",
|
|
51940
|
+
Invited: "invited",
|
|
51941
|
+
Declined: "declined",
|
|
51942
|
+
Banned: "banned",
|
|
51943
|
+
Archived: "archived"
|
|
51944
|
+
};
|
|
51945
|
+
ListPartnersBannedReason = {
|
|
51946
|
+
TosViolation: "tos_violation",
|
|
51947
|
+
InappropriateContent: "inappropriate_content",
|
|
51948
|
+
FakeTraffic: "fake_traffic",
|
|
51949
|
+
Fraud: "fraud",
|
|
51950
|
+
Spam: "spam",
|
|
51951
|
+
BrandAbuse: "brand_abuse"
|
|
51952
|
+
};
|
|
51953
|
+
ListPartnersQueryParamStatus$inboundSchema = nativeEnumType(ListPartnersQueryParamStatus);
|
|
51954
|
+
ListPartnersQueryParamStatus$outboundSchema = ListPartnersQueryParamStatus$inboundSchema;
|
|
51955
|
+
((ListPartnersQueryParamStatus$) => {
|
|
51956
|
+
ListPartnersQueryParamStatus$.inboundSchema = ListPartnersQueryParamStatus$inboundSchema;
|
|
51957
|
+
ListPartnersQueryParamStatus$.outboundSchema = ListPartnersQueryParamStatus$outboundSchema;
|
|
51958
|
+
})(ListPartnersQueryParamStatus$ ||= {});
|
|
51959
|
+
ListPartnersQueryParamSortBy$inboundSchema = nativeEnumType(ListPartnersQueryParamSortBy);
|
|
51960
|
+
ListPartnersQueryParamSortBy$outboundSchema = ListPartnersQueryParamSortBy$inboundSchema;
|
|
51961
|
+
((ListPartnersQueryParamSortBy$) => {
|
|
51962
|
+
ListPartnersQueryParamSortBy$.inboundSchema = ListPartnersQueryParamSortBy$inboundSchema;
|
|
51963
|
+
ListPartnersQueryParamSortBy$.outboundSchema = ListPartnersQueryParamSortBy$outboundSchema;
|
|
51964
|
+
})(ListPartnersQueryParamSortBy$ ||= {});
|
|
51965
|
+
ListPartnersQueryParamSortOrder$inboundSchema = nativeEnumType(ListPartnersQueryParamSortOrder);
|
|
51966
|
+
ListPartnersQueryParamSortOrder$outboundSchema = ListPartnersQueryParamSortOrder$inboundSchema;
|
|
51967
|
+
((ListPartnersQueryParamSortOrder$) => {
|
|
51968
|
+
ListPartnersQueryParamSortOrder$.inboundSchema = ListPartnersQueryParamSortOrder$inboundSchema;
|
|
51969
|
+
ListPartnersQueryParamSortOrder$.outboundSchema = ListPartnersQueryParamSortOrder$outboundSchema;
|
|
51970
|
+
})(ListPartnersQueryParamSortOrder$ ||= {});
|
|
51971
|
+
ListPartnersRequest$inboundSchema = objectType({
|
|
51972
|
+
status: ListPartnersQueryParamStatus$inboundSchema.optional(),
|
|
51973
|
+
country: stringType().optional(),
|
|
51974
|
+
sortBy: ListPartnersQueryParamSortBy$inboundSchema.default("saleAmount"),
|
|
51975
|
+
sortOrder: ListPartnersQueryParamSortOrder$inboundSchema.default("desc"),
|
|
51976
|
+
tenantId: stringType().optional(),
|
|
51977
|
+
includeExpandedFields: booleanType().optional(),
|
|
51978
|
+
search: stringType().optional(),
|
|
51979
|
+
page: numberType().default(1),
|
|
51980
|
+
pageSize: numberType().default(100)
|
|
51981
|
+
});
|
|
51982
|
+
ListPartnersRequest$outboundSchema = objectType({
|
|
51983
|
+
status: ListPartnersQueryParamStatus$outboundSchema.optional(),
|
|
51984
|
+
country: stringType().optional(),
|
|
51985
|
+
sortBy: ListPartnersQueryParamSortBy$outboundSchema.default("saleAmount"),
|
|
51986
|
+
sortOrder: ListPartnersQueryParamSortOrder$outboundSchema.default("desc"),
|
|
51987
|
+
tenantId: stringType().optional(),
|
|
51988
|
+
includeExpandedFields: booleanType().optional(),
|
|
51989
|
+
search: stringType().optional(),
|
|
51990
|
+
page: numberType().default(1),
|
|
51991
|
+
pageSize: numberType().default(100)
|
|
51992
|
+
});
|
|
51993
|
+
((ListPartnersRequest$) => {
|
|
51994
|
+
ListPartnersRequest$.inboundSchema = ListPartnersRequest$inboundSchema;
|
|
51995
|
+
ListPartnersRequest$.outboundSchema = ListPartnersRequest$outboundSchema;
|
|
51996
|
+
})(ListPartnersRequest$ ||= {});
|
|
51997
|
+
ListPartnersStatus$inboundSchema = nativeEnumType(ListPartnersStatus);
|
|
51998
|
+
ListPartnersStatus$outboundSchema = ListPartnersStatus$inboundSchema;
|
|
51999
|
+
((ListPartnersStatus$) => {
|
|
52000
|
+
ListPartnersStatus$.inboundSchema = ListPartnersStatus$inboundSchema;
|
|
52001
|
+
ListPartnersStatus$.outboundSchema = ListPartnersStatus$outboundSchema;
|
|
52002
|
+
})(ListPartnersStatus$ ||= {});
|
|
52003
|
+
ListPartnersLink$inboundSchema = objectType({
|
|
52004
|
+
id: stringType(),
|
|
52005
|
+
domain: stringType(),
|
|
52006
|
+
key: stringType(),
|
|
52007
|
+
shortLink: stringType(),
|
|
52008
|
+
url: stringType(),
|
|
52009
|
+
clicks: numberType().default(0),
|
|
52010
|
+
leads: numberType().default(0),
|
|
52011
|
+
sales: numberType().default(0),
|
|
52012
|
+
saleAmount: numberType().default(0)
|
|
52013
|
+
});
|
|
52014
|
+
ListPartnersLink$outboundSchema = objectType({
|
|
52015
|
+
id: stringType(),
|
|
52016
|
+
domain: stringType(),
|
|
52017
|
+
key: stringType(),
|
|
52018
|
+
shortLink: stringType(),
|
|
52019
|
+
url: stringType(),
|
|
52020
|
+
clicks: numberType().default(0),
|
|
52021
|
+
leads: numberType().default(0),
|
|
52022
|
+
sales: numberType().default(0),
|
|
52023
|
+
saleAmount: numberType().default(0)
|
|
52024
|
+
});
|
|
52025
|
+
((ListPartnersLink$) => {
|
|
52026
|
+
ListPartnersLink$.inboundSchema = ListPartnersLink$inboundSchema;
|
|
52027
|
+
ListPartnersLink$.outboundSchema = ListPartnersLink$outboundSchema;
|
|
52028
|
+
})(ListPartnersLink$ ||= {});
|
|
52029
|
+
ListPartnersBannedReason$inboundSchema = nativeEnumType(ListPartnersBannedReason);
|
|
52030
|
+
ListPartnersBannedReason$outboundSchema = ListPartnersBannedReason$inboundSchema;
|
|
52031
|
+
((ListPartnersBannedReason$) => {
|
|
52032
|
+
ListPartnersBannedReason$.inboundSchema = ListPartnersBannedReason$inboundSchema;
|
|
52033
|
+
ListPartnersBannedReason$.outboundSchema = ListPartnersBannedReason$outboundSchema;
|
|
52034
|
+
})(ListPartnersBannedReason$ ||= {});
|
|
52035
|
+
ListPartnersResponseBody$inboundSchema = objectType({
|
|
52036
|
+
id: stringType(),
|
|
52037
|
+
name: stringType(),
|
|
52038
|
+
email: nullableType(stringType()),
|
|
52039
|
+
image: nullableType(stringType()),
|
|
52040
|
+
description: nullableType(stringType()).optional(),
|
|
52041
|
+
country: nullableType(stringType()),
|
|
52042
|
+
paypalEmail: nullableType(stringType()),
|
|
52043
|
+
stripeConnectId: nullableType(stringType()),
|
|
52044
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
52045
|
+
partnerId: stringType(),
|
|
52046
|
+
tenantId: nullableType(stringType()),
|
|
52047
|
+
programId: stringType(),
|
|
52048
|
+
createdAt: stringType(),
|
|
52049
|
+
status: ListPartnersStatus$inboundSchema,
|
|
52050
|
+
links: nullableType(arrayType(lazyType(() => ListPartnersLink$inboundSchema))),
|
|
52051
|
+
totalCommissions: numberType().default(0),
|
|
52052
|
+
clickRewardId: nullableType(stringType()).optional(),
|
|
52053
|
+
leadRewardId: nullableType(stringType()).optional(),
|
|
52054
|
+
saleRewardId: nullableType(stringType()).optional(),
|
|
52055
|
+
discountId: nullableType(stringType()).optional(),
|
|
52056
|
+
applicationId: nullableType(stringType()).optional(),
|
|
52057
|
+
bannedAt: nullableType(stringType()).optional(),
|
|
52058
|
+
bannedReason: nullableType(ListPartnersBannedReason$inboundSchema).optional(),
|
|
52059
|
+
clicks: numberType().default(0),
|
|
52060
|
+
leads: numberType().default(0),
|
|
52061
|
+
sales: numberType().default(0),
|
|
52062
|
+
saleAmount: numberType().default(0),
|
|
52063
|
+
netRevenue: numberType().default(0),
|
|
52064
|
+
website: nullableType(stringType()).optional(),
|
|
52065
|
+
websiteTxtRecord: nullableType(stringType()).optional(),
|
|
52066
|
+
websiteVerifiedAt: nullableType(stringType()).optional(),
|
|
52067
|
+
youtube: nullableType(stringType()).optional(),
|
|
52068
|
+
youtubeVerifiedAt: nullableType(stringType()).optional(),
|
|
52069
|
+
youtubeSubscriberCount: nullableType(numberType()).optional(),
|
|
52070
|
+
youtubeViewCount: nullableType(numberType()).optional(),
|
|
52071
|
+
twitter: nullableType(stringType()).optional(),
|
|
52072
|
+
twitterVerifiedAt: nullableType(stringType()).optional(),
|
|
52073
|
+
linkedin: nullableType(stringType()).optional(),
|
|
52074
|
+
linkedinVerifiedAt: nullableType(stringType()).optional(),
|
|
52075
|
+
instagram: nullableType(stringType()).optional(),
|
|
52076
|
+
instagramVerifiedAt: nullableType(stringType()).optional(),
|
|
52077
|
+
tiktok: nullableType(stringType()).optional(),
|
|
52078
|
+
tiktokVerifiedAt: nullableType(stringType()).optional()
|
|
52079
|
+
});
|
|
52080
|
+
ListPartnersResponseBody$outboundSchema = objectType({
|
|
52081
|
+
id: stringType(),
|
|
52082
|
+
name: stringType(),
|
|
52083
|
+
email: nullableType(stringType()),
|
|
52084
|
+
image: nullableType(stringType()),
|
|
52085
|
+
description: nullableType(stringType()).optional(),
|
|
52086
|
+
country: nullableType(stringType()),
|
|
52087
|
+
paypalEmail: nullableType(stringType()),
|
|
52088
|
+
stripeConnectId: nullableType(stringType()),
|
|
52089
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
52090
|
+
partnerId: stringType(),
|
|
52091
|
+
tenantId: nullableType(stringType()),
|
|
52092
|
+
programId: stringType(),
|
|
52093
|
+
createdAt: stringType(),
|
|
52094
|
+
status: ListPartnersStatus$outboundSchema,
|
|
52095
|
+
links: nullableType(arrayType(lazyType(() => ListPartnersLink$outboundSchema))),
|
|
52096
|
+
totalCommissions: numberType().default(0),
|
|
52097
|
+
clickRewardId: nullableType(stringType()).optional(),
|
|
52098
|
+
leadRewardId: nullableType(stringType()).optional(),
|
|
52099
|
+
saleRewardId: nullableType(stringType()).optional(),
|
|
52100
|
+
discountId: nullableType(stringType()).optional(),
|
|
52101
|
+
applicationId: nullableType(stringType()).optional(),
|
|
52102
|
+
bannedAt: nullableType(stringType()).optional(),
|
|
52103
|
+
bannedReason: nullableType(ListPartnersBannedReason$outboundSchema).optional(),
|
|
52104
|
+
clicks: numberType().default(0),
|
|
52105
|
+
leads: numberType().default(0),
|
|
52106
|
+
sales: numberType().default(0),
|
|
52107
|
+
saleAmount: numberType().default(0),
|
|
52108
|
+
netRevenue: numberType().default(0),
|
|
52109
|
+
website: nullableType(stringType()).optional(),
|
|
52110
|
+
websiteTxtRecord: nullableType(stringType()).optional(),
|
|
52111
|
+
websiteVerifiedAt: nullableType(stringType()).optional(),
|
|
52112
|
+
youtube: nullableType(stringType()).optional(),
|
|
52113
|
+
youtubeVerifiedAt: nullableType(stringType()).optional(),
|
|
52114
|
+
youtubeSubscriberCount: nullableType(numberType()).optional(),
|
|
52115
|
+
youtubeViewCount: nullableType(numberType()).optional(),
|
|
52116
|
+
twitter: nullableType(stringType()).optional(),
|
|
52117
|
+
twitterVerifiedAt: nullableType(stringType()).optional(),
|
|
52118
|
+
linkedin: nullableType(stringType()).optional(),
|
|
52119
|
+
linkedinVerifiedAt: nullableType(stringType()).optional(),
|
|
52120
|
+
instagram: nullableType(stringType()).optional(),
|
|
52121
|
+
instagramVerifiedAt: nullableType(stringType()).optional(),
|
|
52122
|
+
tiktok: nullableType(stringType()).optional(),
|
|
52123
|
+
tiktokVerifiedAt: nullableType(stringType()).optional()
|
|
52124
|
+
});
|
|
52125
|
+
((ListPartnersResponseBody$) => {
|
|
52126
|
+
ListPartnersResponseBody$.inboundSchema = ListPartnersResponseBody$inboundSchema;
|
|
52127
|
+
ListPartnersResponseBody$.outboundSchema = ListPartnersResponseBody$outboundSchema;
|
|
52128
|
+
})(ListPartnersResponseBody$ ||= {});
|
|
52129
|
+
});
|
|
52130
|
+
|
|
51569
52131
|
// src/models/operations/registerdomain.ts
|
|
51570
52132
|
var RegisterDomainRequestBody$inboundSchema, RegisterDomainRequestBody$outboundSchema, RegisterDomainRequestBody$, RegisterDomainResponseBody$inboundSchema, RegisterDomainResponseBody$outboundSchema, RegisterDomainResponseBody$;
|
|
51571
52133
|
var init_registerdomain = __esm(() => {
|
|
@@ -51597,7 +52159,7 @@ var init_registerdomain = __esm(() => {
|
|
|
51597
52159
|
});
|
|
51598
52160
|
|
|
51599
52161
|
// 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$;
|
|
52162
|
+
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
52163
|
var init_retrieveanalytics = __esm(() => {
|
|
51602
52164
|
init_esm();
|
|
51603
52165
|
init_primitives();
|
|
@@ -51644,7 +52206,13 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
51644
52206
|
};
|
|
51645
52207
|
Trigger2 = {
|
|
51646
52208
|
Qr: "qr",
|
|
51647
|
-
Link: "link"
|
|
52209
|
+
Link: "link",
|
|
52210
|
+
Pageview: "pageview",
|
|
52211
|
+
Deeplink: "deeplink"
|
|
52212
|
+
};
|
|
52213
|
+
SaleType = {
|
|
52214
|
+
New: "new",
|
|
52215
|
+
Recurring: "recurring"
|
|
51648
52216
|
};
|
|
51649
52217
|
Event$inboundSchema2 = nativeEnumType(Event2);
|
|
51650
52218
|
Event$outboundSchema2 = Event$inboundSchema2;
|
|
@@ -51676,6 +52244,12 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
51676
52244
|
RetrieveAnalyticsQueryParamTagIds$.inboundSchema = RetrieveAnalyticsQueryParamTagIds$inboundSchema;
|
|
51677
52245
|
RetrieveAnalyticsQueryParamTagIds$.outboundSchema = RetrieveAnalyticsQueryParamTagIds$outboundSchema;
|
|
51678
52246
|
})(RetrieveAnalyticsQueryParamTagIds$ ||= {});
|
|
52247
|
+
SaleType$inboundSchema = nativeEnumType(SaleType);
|
|
52248
|
+
SaleType$outboundSchema = SaleType$inboundSchema;
|
|
52249
|
+
((SaleType$) => {
|
|
52250
|
+
SaleType$.inboundSchema = SaleType$inboundSchema;
|
|
52251
|
+
SaleType$.outboundSchema = SaleType$outboundSchema;
|
|
52252
|
+
})(SaleType$ ||= {});
|
|
51679
52253
|
RetrieveAnalyticsRequest$inboundSchema = objectType({
|
|
51680
52254
|
event: Event$inboundSchema2.default("clicks"),
|
|
51681
52255
|
groupBy: QueryParamGroupBy$inboundSchema.default("count"),
|
|
@@ -51702,11 +52276,13 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
51702
52276
|
referer: stringType().optional(),
|
|
51703
52277
|
refererUrl: stringType().optional(),
|
|
51704
52278
|
url: stringType().optional(),
|
|
51705
|
-
tagId: stringType().optional(),
|
|
51706
52279
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
51707
52280
|
folderId: stringType().optional(),
|
|
51708
|
-
qr: booleanType().optional(),
|
|
51709
52281
|
root: booleanType().optional(),
|
|
52282
|
+
saleType: SaleType$inboundSchema.optional(),
|
|
52283
|
+
query: stringType().optional(),
|
|
52284
|
+
tagId: stringType().optional(),
|
|
52285
|
+
qr: booleanType().optional(),
|
|
51710
52286
|
utm_source: nullableType(stringType()).optional(),
|
|
51711
52287
|
utm_medium: nullableType(stringType()).optional(),
|
|
51712
52288
|
utm_campaign: nullableType(stringType()).optional(),
|
|
@@ -51747,11 +52323,13 @@ var init_retrieveanalytics = __esm(() => {
|
|
|
51747
52323
|
referer: stringType().optional(),
|
|
51748
52324
|
refererUrl: stringType().optional(),
|
|
51749
52325
|
url: stringType().optional(),
|
|
51750
|
-
tagId: stringType().optional(),
|
|
51751
52326
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
51752
52327
|
folderId: stringType().optional(),
|
|
51753
|
-
qr: booleanType().optional(),
|
|
51754
52328
|
root: booleanType().optional(),
|
|
52329
|
+
saleType: SaleType$outboundSchema.optional(),
|
|
52330
|
+
query: stringType().optional(),
|
|
52331
|
+
tagId: stringType().optional(),
|
|
52332
|
+
qr: booleanType().optional(),
|
|
51755
52333
|
utmSource: nullableType(stringType()).optional(),
|
|
51756
52334
|
utmMedium: nullableType(stringType()).optional(),
|
|
51757
52335
|
utmCampaign: nullableType(stringType()).optional(),
|
|
@@ -52012,6 +52590,7 @@ var init_tracksale = __esm(() => {
|
|
|
52012
52590
|
Shopify: "shopify",
|
|
52013
52591
|
Polar: "polar",
|
|
52014
52592
|
Paddle: "paddle",
|
|
52593
|
+
Revenuecat: "revenuecat",
|
|
52015
52594
|
Custom: "custom"
|
|
52016
52595
|
};
|
|
52017
52596
|
PaymentProcessor$inboundSchema2 = nativeEnumType(PaymentProcessor2);
|
|
@@ -52097,7 +52676,7 @@ var init_tracksale = __esm(() => {
|
|
|
52097
52676
|
});
|
|
52098
52677
|
|
|
52099
52678
|
// 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$;
|
|
52679
|
+
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
52680
|
var init_updatecommission = __esm(() => {
|
|
52102
52681
|
init_esm();
|
|
52103
52682
|
init_primitives();
|
|
@@ -52176,6 +52755,52 @@ var init_updatecommission = __esm(() => {
|
|
|
52176
52755
|
UpdateCommissionStatus$.inboundSchema = UpdateCommissionStatus$inboundSchema;
|
|
52177
52756
|
UpdateCommissionStatus$.outboundSchema = UpdateCommissionStatus$outboundSchema;
|
|
52178
52757
|
})(UpdateCommissionStatus$ ||= {});
|
|
52758
|
+
UpdateCommissionPartner$inboundSchema = objectType({
|
|
52759
|
+
id: stringType(),
|
|
52760
|
+
name: stringType(),
|
|
52761
|
+
email: nullableType(stringType()),
|
|
52762
|
+
image: nullableType(stringType()),
|
|
52763
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
52764
|
+
country: nullableType(stringType())
|
|
52765
|
+
});
|
|
52766
|
+
UpdateCommissionPartner$outboundSchema = objectType({
|
|
52767
|
+
id: stringType(),
|
|
52768
|
+
name: stringType(),
|
|
52769
|
+
email: nullableType(stringType()),
|
|
52770
|
+
image: nullableType(stringType()),
|
|
52771
|
+
payoutsEnabledAt: nullableType(stringType()),
|
|
52772
|
+
country: nullableType(stringType())
|
|
52773
|
+
});
|
|
52774
|
+
((UpdateCommissionPartner$) => {
|
|
52775
|
+
UpdateCommissionPartner$.inboundSchema = UpdateCommissionPartner$inboundSchema;
|
|
52776
|
+
UpdateCommissionPartner$.outboundSchema = UpdateCommissionPartner$outboundSchema;
|
|
52777
|
+
})(UpdateCommissionPartner$ ||= {});
|
|
52778
|
+
UpdateCommissionCustomer$inboundSchema = objectType({
|
|
52779
|
+
id: stringType(),
|
|
52780
|
+
externalId: stringType(),
|
|
52781
|
+
name: stringType(),
|
|
52782
|
+
email: nullableType(stringType()).optional(),
|
|
52783
|
+
avatar: nullableType(stringType()).optional(),
|
|
52784
|
+
country: nullableType(stringType()).optional(),
|
|
52785
|
+
sales: nullableType(numberType()).optional(),
|
|
52786
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
52787
|
+
createdAt: stringType()
|
|
52788
|
+
});
|
|
52789
|
+
UpdateCommissionCustomer$outboundSchema = objectType({
|
|
52790
|
+
id: stringType(),
|
|
52791
|
+
externalId: stringType(),
|
|
52792
|
+
name: stringType(),
|
|
52793
|
+
email: nullableType(stringType()).optional(),
|
|
52794
|
+
avatar: nullableType(stringType()).optional(),
|
|
52795
|
+
country: nullableType(stringType()).optional(),
|
|
52796
|
+
sales: nullableType(numberType()).optional(),
|
|
52797
|
+
saleAmount: nullableType(numberType()).optional(),
|
|
52798
|
+
createdAt: stringType()
|
|
52799
|
+
});
|
|
52800
|
+
((UpdateCommissionCustomer$) => {
|
|
52801
|
+
UpdateCommissionCustomer$.inboundSchema = UpdateCommissionCustomer$inboundSchema;
|
|
52802
|
+
UpdateCommissionCustomer$.outboundSchema = UpdateCommissionCustomer$outboundSchema;
|
|
52803
|
+
})(UpdateCommissionCustomer$ ||= {});
|
|
52179
52804
|
UpdateCommissionResponseBody$inboundSchema = objectType({
|
|
52180
52805
|
id: stringType(),
|
|
52181
52806
|
type: UpdateCommissionType$inboundSchema.optional(),
|
|
@@ -52183,10 +52808,14 @@ var init_updatecommission = __esm(() => {
|
|
|
52183
52808
|
earnings: numberType(),
|
|
52184
52809
|
currency: stringType(),
|
|
52185
52810
|
status: UpdateCommissionStatus$inboundSchema,
|
|
52186
|
-
invoiceId: nullableType(stringType())
|
|
52187
|
-
description: nullableType(stringType())
|
|
52811
|
+
invoiceId: nullableType(stringType()),
|
|
52812
|
+
description: nullableType(stringType()),
|
|
52813
|
+
quantity: numberType(),
|
|
52814
|
+
userId: nullableType(stringType()).optional(),
|
|
52188
52815
|
createdAt: stringType(),
|
|
52189
|
-
updatedAt: stringType()
|
|
52816
|
+
updatedAt: stringType(),
|
|
52817
|
+
partner: lazyType(() => UpdateCommissionPartner$inboundSchema),
|
|
52818
|
+
customer: nullableType(lazyType(() => UpdateCommissionCustomer$inboundSchema)).optional()
|
|
52190
52819
|
});
|
|
52191
52820
|
UpdateCommissionResponseBody$outboundSchema = objectType({
|
|
52192
52821
|
id: stringType(),
|
|
@@ -52195,10 +52824,14 @@ var init_updatecommission = __esm(() => {
|
|
|
52195
52824
|
earnings: numberType(),
|
|
52196
52825
|
currency: stringType(),
|
|
52197
52826
|
status: UpdateCommissionStatus$outboundSchema,
|
|
52198
|
-
invoiceId: nullableType(stringType())
|
|
52199
|
-
description: nullableType(stringType())
|
|
52827
|
+
invoiceId: nullableType(stringType()),
|
|
52828
|
+
description: nullableType(stringType()),
|
|
52829
|
+
quantity: numberType(),
|
|
52830
|
+
userId: nullableType(stringType()).optional(),
|
|
52200
52831
|
createdAt: stringType(),
|
|
52201
|
-
updatedAt: stringType()
|
|
52832
|
+
updatedAt: stringType(),
|
|
52833
|
+
partner: lazyType(() => UpdateCommissionPartner$outboundSchema),
|
|
52834
|
+
customer: nullableType(lazyType(() => UpdateCommissionCustomer$outboundSchema)).optional()
|
|
52202
52835
|
});
|
|
52203
52836
|
((UpdateCommissionResponseBody$) => {
|
|
52204
52837
|
UpdateCommissionResponseBody$.inboundSchema = UpdateCommissionResponseBody$inboundSchema;
|
|
@@ -52497,8 +53130,6 @@ var init_updatelink = __esm(() => {
|
|
|
52497
53130
|
partnerId: nullableType(stringType()).optional(),
|
|
52498
53131
|
trackConversion: booleanType().optional(),
|
|
52499
53132
|
archived: booleanType().optional(),
|
|
52500
|
-
publicStats: booleanType().optional(),
|
|
52501
|
-
tagId: nullableType(stringType()).optional(),
|
|
52502
53133
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
52503
53134
|
tagNames: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
52504
53135
|
folderId: nullableType(stringType()).optional(),
|
|
@@ -52525,7 +53156,9 @@ var init_updatelink = __esm(() => {
|
|
|
52525
53156
|
webhookIds: nullableType(arrayType(stringType())).optional(),
|
|
52526
53157
|
testVariants: nullableType(arrayType(lazyType(() => UpdateLinkTestVariants$inboundSchema))).optional(),
|
|
52527
53158
|
testStartedAt: nullableType(stringType()).optional(),
|
|
52528
|
-
testCompletedAt: nullableType(stringType()).optional()
|
|
53159
|
+
testCompletedAt: nullableType(stringType()).optional(),
|
|
53160
|
+
publicStats: booleanType().optional(),
|
|
53161
|
+
tagId: nullableType(stringType()).optional()
|
|
52529
53162
|
}).transform((v2) => {
|
|
52530
53163
|
return remap(v2, {
|
|
52531
53164
|
utm_source: "utmSource",
|
|
@@ -52545,8 +53178,6 @@ var init_updatelink = __esm(() => {
|
|
|
52545
53178
|
partnerId: nullableType(stringType()).optional(),
|
|
52546
53179
|
trackConversion: booleanType().optional(),
|
|
52547
53180
|
archived: booleanType().optional(),
|
|
52548
|
-
publicStats: booleanType().optional(),
|
|
52549
|
-
tagId: nullableType(stringType()).optional(),
|
|
52550
53181
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
52551
53182
|
tagNames: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
52552
53183
|
folderId: nullableType(stringType()).optional(),
|
|
@@ -52573,7 +53204,9 @@ var init_updatelink = __esm(() => {
|
|
|
52573
53204
|
webhookIds: nullableType(arrayType(stringType())).optional(),
|
|
52574
53205
|
testVariants: nullableType(arrayType(lazyType(() => UpdateLinkTestVariants$outboundSchema))).optional(),
|
|
52575
53206
|
testStartedAt: nullableType(stringType()).optional(),
|
|
52576
|
-
testCompletedAt: nullableType(stringType()).optional()
|
|
53207
|
+
testCompletedAt: nullableType(stringType()).optional(),
|
|
53208
|
+
publicStats: booleanType().optional(),
|
|
53209
|
+
tagId: nullableType(stringType()).optional()
|
|
52577
53210
|
}).transform((v2) => {
|
|
52578
53211
|
return remap(v2, {
|
|
52579
53212
|
utmSource: "utm_source",
|
|
@@ -52752,8 +53385,6 @@ var init_upsertlink = __esm(() => {
|
|
|
52752
53385
|
prefix: stringType().optional(),
|
|
52753
53386
|
trackConversion: booleanType().optional(),
|
|
52754
53387
|
archived: booleanType().optional(),
|
|
52755
|
-
publicStats: booleanType().optional(),
|
|
52756
|
-
tagId: nullableType(stringType()).optional(),
|
|
52757
53388
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
52758
53389
|
tagNames: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
52759
53390
|
folderId: nullableType(stringType()).optional(),
|
|
@@ -52780,7 +53411,9 @@ var init_upsertlink = __esm(() => {
|
|
|
52780
53411
|
webhookIds: nullableType(arrayType(stringType())).optional(),
|
|
52781
53412
|
testVariants: nullableType(arrayType(lazyType(() => UpsertLinkTestVariants$inboundSchema))).optional(),
|
|
52782
53413
|
testStartedAt: nullableType(stringType()).optional(),
|
|
52783
|
-
testCompletedAt: nullableType(stringType()).optional()
|
|
53414
|
+
testCompletedAt: nullableType(stringType()).optional(),
|
|
53415
|
+
publicStats: booleanType().optional(),
|
|
53416
|
+
tagId: nullableType(stringType()).optional()
|
|
52784
53417
|
}).transform((v2) => {
|
|
52785
53418
|
return remap(v2, {
|
|
52786
53419
|
utm_source: "utmSource",
|
|
@@ -52802,8 +53435,6 @@ var init_upsertlink = __esm(() => {
|
|
|
52802
53435
|
prefix: stringType().optional(),
|
|
52803
53436
|
trackConversion: booleanType().optional(),
|
|
52804
53437
|
archived: booleanType().optional(),
|
|
52805
|
-
publicStats: booleanType().optional(),
|
|
52806
|
-
tagId: nullableType(stringType()).optional(),
|
|
52807
53438
|
tagIds: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
52808
53439
|
tagNames: unionType([stringType(), arrayType(stringType())]).optional(),
|
|
52809
53440
|
folderId: nullableType(stringType()).optional(),
|
|
@@ -52830,7 +53461,9 @@ var init_upsertlink = __esm(() => {
|
|
|
52830
53461
|
webhookIds: nullableType(arrayType(stringType())).optional(),
|
|
52831
53462
|
testVariants: nullableType(arrayType(lazyType(() => UpsertLinkTestVariants$outboundSchema))).optional(),
|
|
52832
53463
|
testStartedAt: nullableType(stringType()).optional(),
|
|
52833
|
-
testCompletedAt: nullableType(stringType()).optional()
|
|
53464
|
+
testCompletedAt: nullableType(stringType()).optional(),
|
|
53465
|
+
publicStats: booleanType().optional(),
|
|
53466
|
+
tagId: nullableType(stringType()).optional()
|
|
52834
53467
|
}).transform((v2) => {
|
|
52835
53468
|
return remap(v2, {
|
|
52836
53469
|
utmSource: "utm_source",
|
|
@@ -53012,6 +53645,7 @@ var init_operations = __esm(() => {
|
|
|
53012
53645
|
init_listdomains();
|
|
53013
53646
|
init_listevents();
|
|
53014
53647
|
init_listfolders();
|
|
53648
|
+
init_listpartners();
|
|
53015
53649
|
init_registerdomain();
|
|
53016
53650
|
init_retrieveanalytics();
|
|
53017
53651
|
init_retrievelinks();
|
|
@@ -53087,10 +53721,12 @@ async function $do(client, request, options) {
|
|
|
53087
53721
|
partnerId: payload?.partnerId,
|
|
53088
53722
|
programId: payload?.programId,
|
|
53089
53723
|
qr: payload?.qr,
|
|
53724
|
+
query: payload?.query,
|
|
53090
53725
|
referer: payload?.referer,
|
|
53091
53726
|
refererUrl: payload?.refererUrl,
|
|
53092
53727
|
region: payload?.region,
|
|
53093
53728
|
root: payload?.root,
|
|
53729
|
+
saleType: payload?.saleType,
|
|
53094
53730
|
start: payload?.start,
|
|
53095
53731
|
tagId: payload?.tagId,
|
|
53096
53732
|
tagIds: payload?.tagIds,
|
|
@@ -55009,10 +55645,12 @@ async function $do16(client, request, options) {
|
|
|
55009
55645
|
partnerId: payload?.partnerId,
|
|
55010
55646
|
programId: payload?.programId,
|
|
55011
55647
|
qr: payload?.qr,
|
|
55648
|
+
query: payload?.query,
|
|
55012
55649
|
referer: payload?.referer,
|
|
55013
55650
|
refererUrl: payload?.refererUrl,
|
|
55014
55651
|
region: payload?.region,
|
|
55015
55652
|
root: payload?.root,
|
|
55653
|
+
saleType: payload?.saleType,
|
|
55016
55654
|
sortBy: payload?.sortBy,
|
|
55017
55655
|
sortOrder: payload?.sortOrder,
|
|
55018
55656
|
start: payload?.start,
|
|
@@ -57226,11 +57864,138 @@ Create a link for a partner that is enrolled in your program.`,
|
|
|
57226
57864
|
};
|
|
57227
57865
|
});
|
|
57228
57866
|
|
|
57229
|
-
// src/funcs/
|
|
57230
|
-
function
|
|
57867
|
+
// src/funcs/partnersList.ts
|
|
57868
|
+
function partnersList(client, request, options) {
|
|
57231
57869
|
return new APIPromise($do34(client, request, options));
|
|
57232
57870
|
}
|
|
57233
57871
|
async function $do34(client, request, options) {
|
|
57872
|
+
const parsed = safeParse(request, (value) => ListPartnersRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57873
|
+
if (!parsed.ok) {
|
|
57874
|
+
return [parsed, { status: "invalid" }];
|
|
57875
|
+
}
|
|
57876
|
+
const payload = parsed.value;
|
|
57877
|
+
const body = null;
|
|
57878
|
+
const path = pathToFunc("/partners")();
|
|
57879
|
+
const query = encodeFormQuery({
|
|
57880
|
+
country: payload?.country,
|
|
57881
|
+
includeExpandedFields: payload?.includeExpandedFields,
|
|
57882
|
+
page: payload?.page,
|
|
57883
|
+
pageSize: payload?.pageSize,
|
|
57884
|
+
search: payload?.search,
|
|
57885
|
+
sortBy: payload?.sortBy,
|
|
57886
|
+
sortOrder: payload?.sortOrder,
|
|
57887
|
+
status: payload?.status,
|
|
57888
|
+
tenantId: payload?.tenantId
|
|
57889
|
+
});
|
|
57890
|
+
const headers = new Headers(compactMap({
|
|
57891
|
+
Accept: "application/json"
|
|
57892
|
+
}));
|
|
57893
|
+
const secConfig = await extractSecurity(client._options.token);
|
|
57894
|
+
const securityInput = secConfig == null ? {} : { token: secConfig };
|
|
57895
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
57896
|
+
const context = {
|
|
57897
|
+
options: client._options,
|
|
57898
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
57899
|
+
operationID: "listPartners",
|
|
57900
|
+
oAuth2Scopes: [],
|
|
57901
|
+
resolvedSecurity: requestSecurity,
|
|
57902
|
+
securitySource: client._options.token,
|
|
57903
|
+
retryConfig: options?.retries || client._options.retryConfig || { strategy: "none" },
|
|
57904
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"]
|
|
57905
|
+
};
|
|
57906
|
+
const requestRes = client._createRequest(context, {
|
|
57907
|
+
security: requestSecurity,
|
|
57908
|
+
method: "GET",
|
|
57909
|
+
baseURL: options?.serverURL,
|
|
57910
|
+
path,
|
|
57911
|
+
headers,
|
|
57912
|
+
query,
|
|
57913
|
+
body,
|
|
57914
|
+
userAgent: client._options.userAgent,
|
|
57915
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1
|
|
57916
|
+
}, options);
|
|
57917
|
+
if (!requestRes.ok) {
|
|
57918
|
+
return [requestRes, { status: "invalid" }];
|
|
57919
|
+
}
|
|
57920
|
+
const req = requestRes.value;
|
|
57921
|
+
const doResult = await client._do(req, {
|
|
57922
|
+
context,
|
|
57923
|
+
errorCodes: [
|
|
57924
|
+
"400",
|
|
57925
|
+
"401",
|
|
57926
|
+
"403",
|
|
57927
|
+
"404",
|
|
57928
|
+
"409",
|
|
57929
|
+
"410",
|
|
57930
|
+
"422",
|
|
57931
|
+
"429",
|
|
57932
|
+
"4XX",
|
|
57933
|
+
"500",
|
|
57934
|
+
"5XX"
|
|
57935
|
+
],
|
|
57936
|
+
retryConfig: context.retryConfig,
|
|
57937
|
+
retryCodes: context.retryCodes
|
|
57938
|
+
});
|
|
57939
|
+
if (!doResult.ok) {
|
|
57940
|
+
return [doResult, { status: "request-error", request: req }];
|
|
57941
|
+
}
|
|
57942
|
+
const response = doResult.value;
|
|
57943
|
+
const responseFields = {
|
|
57944
|
+
HttpMeta: { Response: response, Request: req }
|
|
57945
|
+
};
|
|
57946
|
+
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 });
|
|
57947
|
+
if (!result.ok) {
|
|
57948
|
+
return [result, { status: "complete", request: req, response }];
|
|
57949
|
+
}
|
|
57950
|
+
return [result, { status: "complete", request: req, response }];
|
|
57951
|
+
}
|
|
57952
|
+
var init_partnersList = __esm(() => {
|
|
57953
|
+
init_esm();
|
|
57954
|
+
init_encodings();
|
|
57955
|
+
init_matchers();
|
|
57956
|
+
init_primitives();
|
|
57957
|
+
init_schemas();
|
|
57958
|
+
init_security();
|
|
57959
|
+
init_url();
|
|
57960
|
+
init_errors2();
|
|
57961
|
+
init_operations();
|
|
57962
|
+
init_async();
|
|
57963
|
+
});
|
|
57964
|
+
|
|
57965
|
+
// src/mcp-server/tools/partnersList.ts
|
|
57966
|
+
var args34, tool$partnersList;
|
|
57967
|
+
var init_partnersList2 = __esm(() => {
|
|
57968
|
+
init_partnersList();
|
|
57969
|
+
init_operations();
|
|
57970
|
+
init_tools();
|
|
57971
|
+
args34 = {
|
|
57972
|
+
request: ListPartnersRequest$inboundSchema.optional()
|
|
57973
|
+
};
|
|
57974
|
+
tool$partnersList = {
|
|
57975
|
+
name: "partners-list",
|
|
57976
|
+
description: `List all partners
|
|
57977
|
+
|
|
57978
|
+
List all partners for a partner program.`,
|
|
57979
|
+
args: args34,
|
|
57980
|
+
tool: async (client, args35, ctx) => {
|
|
57981
|
+
const [result, apiCall] = await partnersList(client, args35.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57982
|
+
if (!result.ok) {
|
|
57983
|
+
return {
|
|
57984
|
+
content: [{ type: "text", text: result.error.message }],
|
|
57985
|
+
isError: true
|
|
57986
|
+
};
|
|
57987
|
+
}
|
|
57988
|
+
const value = result.value;
|
|
57989
|
+
return formatResult(value, apiCall);
|
|
57990
|
+
}
|
|
57991
|
+
};
|
|
57992
|
+
});
|
|
57993
|
+
|
|
57994
|
+
// src/funcs/partnersRetrieveLinks.ts
|
|
57995
|
+
function partnersRetrieveLinks(client, request, options) {
|
|
57996
|
+
return new APIPromise($do35(client, request, options));
|
|
57997
|
+
}
|
|
57998
|
+
async function $do35(client, request, options) {
|
|
57234
57999
|
const parsed = safeParse(request, (value) => RetrieveLinksRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57235
58000
|
if (!parsed.ok) {
|
|
57236
58001
|
return [parsed, { status: "invalid" }];
|
|
@@ -57318,12 +58083,12 @@ var init_partnersRetrieveLinks = __esm(() => {
|
|
|
57318
58083
|
});
|
|
57319
58084
|
|
|
57320
58085
|
// src/mcp-server/tools/partnersRetrieveLinks.ts
|
|
57321
|
-
var
|
|
58086
|
+
var args35, tool$partnersRetrieveLinks;
|
|
57322
58087
|
var init_partnersRetrieveLinks2 = __esm(() => {
|
|
57323
58088
|
init_partnersRetrieveLinks();
|
|
57324
58089
|
init_operations();
|
|
57325
58090
|
init_tools();
|
|
57326
|
-
|
|
58091
|
+
args35 = {
|
|
57327
58092
|
request: RetrieveLinksRequest$inboundSchema.optional()
|
|
57328
58093
|
};
|
|
57329
58094
|
tool$partnersRetrieveLinks = {
|
|
@@ -57331,9 +58096,9 @@ var init_partnersRetrieveLinks2 = __esm(() => {
|
|
|
57331
58096
|
description: `Retrieve a partner's links.
|
|
57332
58097
|
|
|
57333
58098
|
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,
|
|
58099
|
+
args: args35,
|
|
58100
|
+
tool: async (client, args36, ctx) => {
|
|
58101
|
+
const [result, apiCall] = await partnersRetrieveLinks(client, args36.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57337
58102
|
if (!result.ok) {
|
|
57338
58103
|
return {
|
|
57339
58104
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57348,9 +58113,9 @@ Retrieve a partner's links by their partner ID or tenant ID.`,
|
|
|
57348
58113
|
|
|
57349
58114
|
// src/funcs/partnersUpsertLink.ts
|
|
57350
58115
|
function partnersUpsertLink(client, request, options) {
|
|
57351
|
-
return new APIPromise($
|
|
58116
|
+
return new APIPromise($do36(client, request, options));
|
|
57352
58117
|
}
|
|
57353
|
-
async function $
|
|
58118
|
+
async function $do36(client, request, options) {
|
|
57354
58119
|
const parsed = safeParse(request, (value) => UpsertPartnerLinkRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57355
58120
|
if (!parsed.ok) {
|
|
57356
58121
|
return [parsed, { status: "invalid" }];
|
|
@@ -57434,12 +58199,12 @@ var init_partnersUpsertLink = __esm(() => {
|
|
|
57434
58199
|
});
|
|
57435
58200
|
|
|
57436
58201
|
// src/mcp-server/tools/partnersUpsertLink.ts
|
|
57437
|
-
var
|
|
58202
|
+
var args36, tool$partnersUpsertLink;
|
|
57438
58203
|
var init_partnersUpsertLink2 = __esm(() => {
|
|
57439
58204
|
init_partnersUpsertLink();
|
|
57440
58205
|
init_operations();
|
|
57441
58206
|
init_tools();
|
|
57442
|
-
|
|
58207
|
+
args36 = {
|
|
57443
58208
|
request: UpsertPartnerLinkRequestBody$inboundSchema.optional()
|
|
57444
58209
|
};
|
|
57445
58210
|
tool$partnersUpsertLink = {
|
|
@@ -57447,9 +58212,9 @@ var init_partnersUpsertLink2 = __esm(() => {
|
|
|
57447
58212
|
description: `Upsert a link for a partner
|
|
57448
58213
|
|
|
57449
58214
|
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,
|
|
58215
|
+
args: args36,
|
|
58216
|
+
tool: async (client, args37, ctx) => {
|
|
58217
|
+
const [result, apiCall] = await partnersUpsertLink(client, args37.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57453
58218
|
if (!result.ok) {
|
|
57454
58219
|
return {
|
|
57455
58220
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57464,9 +58229,9 @@ Upsert a link for a partner that is enrolled in your program. If a link with the
|
|
|
57464
58229
|
|
|
57465
58230
|
// src/funcs/qrCodesGet.ts
|
|
57466
58231
|
function qrCodesGet(client, request, options) {
|
|
57467
|
-
return new APIPromise($
|
|
58232
|
+
return new APIPromise($do37(client, request, options));
|
|
57468
58233
|
}
|
|
57469
|
-
async function $
|
|
58234
|
+
async function $do37(client, request, options) {
|
|
57470
58235
|
const parsed = safeParse(request, (value) => GetQRCodeRequest$outboundSchema.parse(value), "Input validation failed");
|
|
57471
58236
|
if (!parsed.ok) {
|
|
57472
58237
|
return [parsed, { status: "invalid" }];
|
|
@@ -57561,12 +58326,12 @@ var init_qrCodesGet = __esm(() => {
|
|
|
57561
58326
|
});
|
|
57562
58327
|
|
|
57563
58328
|
// src/mcp-server/tools/qrCodesGet.ts
|
|
57564
|
-
var
|
|
58329
|
+
var args37, tool$qrCodesGet;
|
|
57565
58330
|
var init_qrCodesGet2 = __esm(() => {
|
|
57566
58331
|
init_qrCodesGet();
|
|
57567
58332
|
init_operations();
|
|
57568
58333
|
init_tools();
|
|
57569
|
-
|
|
58334
|
+
args37 = {
|
|
57570
58335
|
request: GetQRCodeRequest$inboundSchema
|
|
57571
58336
|
};
|
|
57572
58337
|
tool$qrCodesGet = {
|
|
@@ -57574,9 +58339,9 @@ var init_qrCodesGet2 = __esm(() => {
|
|
|
57574
58339
|
description: `Retrieve a QR code
|
|
57575
58340
|
|
|
57576
58341
|
Retrieve a QR code for a link.`,
|
|
57577
|
-
args:
|
|
57578
|
-
tool: async (client,
|
|
57579
|
-
const [result, apiCall] = await qrCodesGet(client,
|
|
58342
|
+
args: args37,
|
|
58343
|
+
tool: async (client, args38, ctx) => {
|
|
58344
|
+
const [result, apiCall] = await qrCodesGet(client, args38.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57580
58345
|
if (!result.ok) {
|
|
57581
58346
|
return {
|
|
57582
58347
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57591,9 +58356,9 @@ Retrieve a QR code for a link.`,
|
|
|
57591
58356
|
|
|
57592
58357
|
// src/funcs/tagsCreate.ts
|
|
57593
58358
|
function tagsCreate(client, request, options) {
|
|
57594
|
-
return new APIPromise($
|
|
58359
|
+
return new APIPromise($do38(client, request, options));
|
|
57595
58360
|
}
|
|
57596
|
-
async function $
|
|
58361
|
+
async function $do38(client, request, options) {
|
|
57597
58362
|
const parsed = safeParse(request, (value) => CreateTagRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57598
58363
|
if (!parsed.ok) {
|
|
57599
58364
|
return [parsed, { status: "invalid" }];
|
|
@@ -57677,12 +58442,12 @@ var init_tagsCreate = __esm(() => {
|
|
|
57677
58442
|
});
|
|
57678
58443
|
|
|
57679
58444
|
// src/mcp-server/tools/tagsCreate.ts
|
|
57680
|
-
var
|
|
58445
|
+
var args38, tool$tagsCreate;
|
|
57681
58446
|
var init_tagsCreate2 = __esm(() => {
|
|
57682
58447
|
init_tagsCreate();
|
|
57683
58448
|
init_operations();
|
|
57684
58449
|
init_tools();
|
|
57685
|
-
|
|
58450
|
+
args38 = {
|
|
57686
58451
|
request: CreateTagRequestBody$inboundSchema.optional()
|
|
57687
58452
|
};
|
|
57688
58453
|
tool$tagsCreate = {
|
|
@@ -57690,9 +58455,9 @@ var init_tagsCreate2 = __esm(() => {
|
|
|
57690
58455
|
description: `Create a tag
|
|
57691
58456
|
|
|
57692
58457
|
Create a tag for the authenticated workspace.`,
|
|
57693
|
-
args:
|
|
57694
|
-
tool: async (client,
|
|
57695
|
-
const [result, apiCall] = await tagsCreate(client,
|
|
58458
|
+
args: args38,
|
|
58459
|
+
tool: async (client, args39, ctx) => {
|
|
58460
|
+
const [result, apiCall] = await tagsCreate(client, args39.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57696
58461
|
if (!result.ok) {
|
|
57697
58462
|
return {
|
|
57698
58463
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57707,9 +58472,9 @@ Create a tag for the authenticated workspace.`,
|
|
|
57707
58472
|
|
|
57708
58473
|
// src/funcs/tagsDelete.ts
|
|
57709
58474
|
function tagsDelete(client, id, options) {
|
|
57710
|
-
return new APIPromise($
|
|
58475
|
+
return new APIPromise($do39(client, id, options));
|
|
57711
58476
|
}
|
|
57712
|
-
async function $
|
|
58477
|
+
async function $do39(client, id, options) {
|
|
57713
58478
|
const input = {
|
|
57714
58479
|
id
|
|
57715
58480
|
};
|
|
@@ -57800,12 +58565,12 @@ var init_tagsDelete = __esm(() => {
|
|
|
57800
58565
|
});
|
|
57801
58566
|
|
|
57802
58567
|
// src/mcp-server/tools/tagsDelete.ts
|
|
57803
|
-
var
|
|
58568
|
+
var args39, tool$tagsDelete;
|
|
57804
58569
|
var init_tagsDelete2 = __esm(() => {
|
|
57805
58570
|
init_esm();
|
|
57806
58571
|
init_tagsDelete();
|
|
57807
58572
|
init_tools();
|
|
57808
|
-
|
|
58573
|
+
args39 = {
|
|
57809
58574
|
id: stringType()
|
|
57810
58575
|
};
|
|
57811
58576
|
tool$tagsDelete = {
|
|
@@ -57813,9 +58578,9 @@ var init_tagsDelete2 = __esm(() => {
|
|
|
57813
58578
|
description: `Delete a tag
|
|
57814
58579
|
|
|
57815
58580
|
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,
|
|
58581
|
+
args: args39,
|
|
58582
|
+
tool: async (client, args40, ctx) => {
|
|
58583
|
+
const [result, apiCall] = await tagsDelete(client, args40.id, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57819
58584
|
if (!result.ok) {
|
|
57820
58585
|
return {
|
|
57821
58586
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57830,9 +58595,9 @@ Delete a tag from the workspace. All existing links will still work, but they wi
|
|
|
57830
58595
|
|
|
57831
58596
|
// src/funcs/tagsList.ts
|
|
57832
58597
|
function tagsList(client, request, options) {
|
|
57833
|
-
return new APIPromise($
|
|
58598
|
+
return new APIPromise($do40(client, request, options));
|
|
57834
58599
|
}
|
|
57835
|
-
async function $
|
|
58600
|
+
async function $do40(client, request, options) {
|
|
57836
58601
|
const parsed = safeParse(request, (value) => GetTagsRequest$outboundSchema.optional().parse(value), "Input validation failed");
|
|
57837
58602
|
if (!parsed.ok) {
|
|
57838
58603
|
return [parsed, { status: "invalid" }];
|
|
@@ -57925,12 +58690,12 @@ var init_tagsList = __esm(() => {
|
|
|
57925
58690
|
});
|
|
57926
58691
|
|
|
57927
58692
|
// src/mcp-server/tools/tagsList.ts
|
|
57928
|
-
var
|
|
58693
|
+
var args40, tool$tagsList;
|
|
57929
58694
|
var init_tagsList2 = __esm(() => {
|
|
57930
58695
|
init_tagsList();
|
|
57931
58696
|
init_operations();
|
|
57932
58697
|
init_tools();
|
|
57933
|
-
|
|
58698
|
+
args40 = {
|
|
57934
58699
|
request: GetTagsRequest$inboundSchema.optional()
|
|
57935
58700
|
};
|
|
57936
58701
|
tool$tagsList = {
|
|
@@ -57938,9 +58703,9 @@ var init_tagsList2 = __esm(() => {
|
|
|
57938
58703
|
description: `Retrieve a list of tags
|
|
57939
58704
|
|
|
57940
58705
|
Retrieve a list of tags for the authenticated workspace.`,
|
|
57941
|
-
args:
|
|
57942
|
-
tool: async (client,
|
|
57943
|
-
const [result, apiCall] = await tagsList(client,
|
|
58706
|
+
args: args40,
|
|
58707
|
+
tool: async (client, args41, ctx) => {
|
|
58708
|
+
const [result, apiCall] = await tagsList(client, args41.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
57944
58709
|
if (!result.ok) {
|
|
57945
58710
|
return {
|
|
57946
58711
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -57955,9 +58720,9 @@ Retrieve a list of tags for the authenticated workspace.`,
|
|
|
57955
58720
|
|
|
57956
58721
|
// src/funcs/tagsUpdate.ts
|
|
57957
58722
|
function tagsUpdate(client, id, requestBody, options) {
|
|
57958
|
-
return new APIPromise($
|
|
58723
|
+
return new APIPromise($do41(client, id, requestBody, options));
|
|
57959
58724
|
}
|
|
57960
|
-
async function $
|
|
58725
|
+
async function $do41(client, id, requestBody, options) {
|
|
57961
58726
|
const input = {
|
|
57962
58727
|
id,
|
|
57963
58728
|
requestBody
|
|
@@ -58051,13 +58816,13 @@ var init_tagsUpdate = __esm(() => {
|
|
|
58051
58816
|
});
|
|
58052
58817
|
|
|
58053
58818
|
// src/mcp-server/tools/tagsUpdate.ts
|
|
58054
|
-
var
|
|
58819
|
+
var args41, tool$tagsUpdate;
|
|
58055
58820
|
var init_tagsUpdate2 = __esm(() => {
|
|
58056
58821
|
init_esm();
|
|
58057
58822
|
init_tagsUpdate();
|
|
58058
58823
|
init_operations();
|
|
58059
58824
|
init_tools();
|
|
58060
|
-
|
|
58825
|
+
args41 = {
|
|
58061
58826
|
id: stringType(),
|
|
58062
58827
|
requestBody: UpdateTagRequestBody$inboundSchema.optional()
|
|
58063
58828
|
};
|
|
@@ -58066,9 +58831,9 @@ var init_tagsUpdate2 = __esm(() => {
|
|
|
58066
58831
|
description: `Update a tag
|
|
58067
58832
|
|
|
58068
58833
|
Update a tag in the workspace.`,
|
|
58069
|
-
args:
|
|
58070
|
-
tool: async (client,
|
|
58071
|
-
const [result, apiCall] = await tagsUpdate(client,
|
|
58834
|
+
args: args41,
|
|
58835
|
+
tool: async (client, args42, ctx) => {
|
|
58836
|
+
const [result, apiCall] = await tagsUpdate(client, args42.id, args42.requestBody, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58072
58837
|
if (!result.ok) {
|
|
58073
58838
|
return {
|
|
58074
58839
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58083,9 +58848,9 @@ Update a tag in the workspace.`,
|
|
|
58083
58848
|
|
|
58084
58849
|
// src/funcs/trackLead.ts
|
|
58085
58850
|
function trackLead(client, request, options) {
|
|
58086
|
-
return new APIPromise($
|
|
58851
|
+
return new APIPromise($do42(client, request, options));
|
|
58087
58852
|
}
|
|
58088
|
-
async function $
|
|
58853
|
+
async function $do42(client, request, options) {
|
|
58089
58854
|
const parsed = safeParse(request, (value) => TrackLeadRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
58090
58855
|
if (!parsed.ok) {
|
|
58091
58856
|
return [parsed, { status: "invalid" }];
|
|
@@ -58168,12 +58933,12 @@ var init_trackLead = __esm(() => {
|
|
|
58168
58933
|
});
|
|
58169
58934
|
|
|
58170
58935
|
// src/mcp-server/tools/trackLead.ts
|
|
58171
|
-
var
|
|
58936
|
+
var args42, tool$trackLead;
|
|
58172
58937
|
var init_trackLead2 = __esm(() => {
|
|
58173
58938
|
init_trackLead();
|
|
58174
58939
|
init_operations();
|
|
58175
58940
|
init_tools();
|
|
58176
|
-
|
|
58941
|
+
args42 = {
|
|
58177
58942
|
request: TrackLeadRequestBody$inboundSchema.optional()
|
|
58178
58943
|
};
|
|
58179
58944
|
tool$trackLead = {
|
|
@@ -58181,9 +58946,9 @@ var init_trackLead2 = __esm(() => {
|
|
|
58181
58946
|
description: `Track a lead
|
|
58182
58947
|
|
|
58183
58948
|
Track a lead for a short link.`,
|
|
58184
|
-
args:
|
|
58185
|
-
tool: async (client,
|
|
58186
|
-
const [result, apiCall] = await trackLead(client,
|
|
58949
|
+
args: args42,
|
|
58950
|
+
tool: async (client, args43, ctx) => {
|
|
58951
|
+
const [result, apiCall] = await trackLead(client, args43.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58187
58952
|
if (!result.ok) {
|
|
58188
58953
|
return {
|
|
58189
58954
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58198,9 +58963,9 @@ Track a lead for a short link.`,
|
|
|
58198
58963
|
|
|
58199
58964
|
// src/funcs/trackSale.ts
|
|
58200
58965
|
function trackSale(client, request, options) {
|
|
58201
|
-
return new APIPromise($
|
|
58966
|
+
return new APIPromise($do43(client, request, options));
|
|
58202
58967
|
}
|
|
58203
|
-
async function $
|
|
58968
|
+
async function $do43(client, request, options) {
|
|
58204
58969
|
const parsed = safeParse(request, (value) => TrackSaleRequestBody$outboundSchema.optional().parse(value), "Input validation failed");
|
|
58205
58970
|
if (!parsed.ok) {
|
|
58206
58971
|
return [parsed, { status: "invalid" }];
|
|
@@ -58283,12 +59048,12 @@ var init_trackSale = __esm(() => {
|
|
|
58283
59048
|
});
|
|
58284
59049
|
|
|
58285
59050
|
// src/mcp-server/tools/trackSale.ts
|
|
58286
|
-
var
|
|
59051
|
+
var args43, tool$trackSale;
|
|
58287
59052
|
var init_trackSale2 = __esm(() => {
|
|
58288
59053
|
init_trackSale();
|
|
58289
59054
|
init_operations();
|
|
58290
59055
|
init_tools();
|
|
58291
|
-
|
|
59056
|
+
args43 = {
|
|
58292
59057
|
request: TrackSaleRequestBody$inboundSchema.optional()
|
|
58293
59058
|
};
|
|
58294
59059
|
tool$trackSale = {
|
|
@@ -58296,9 +59061,9 @@ var init_trackSale2 = __esm(() => {
|
|
|
58296
59061
|
description: `Track a sale
|
|
58297
59062
|
|
|
58298
59063
|
Track a sale for a short link.`,
|
|
58299
|
-
args:
|
|
58300
|
-
tool: async (client,
|
|
58301
|
-
const [result, apiCall] = await trackSale(client,
|
|
59064
|
+
args: args43,
|
|
59065
|
+
tool: async (client, args44, ctx) => {
|
|
59066
|
+
const [result, apiCall] = await trackSale(client, args44.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58302
59067
|
if (!result.ok) {
|
|
58303
59068
|
return {
|
|
58304
59069
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58313,9 +59078,9 @@ Track a sale for a short link.`,
|
|
|
58313
59078
|
|
|
58314
59079
|
// src/funcs/workspacesGet.ts
|
|
58315
59080
|
function workspacesGet(client, request, options) {
|
|
58316
|
-
return new APIPromise($
|
|
59081
|
+
return new APIPromise($do44(client, request, options));
|
|
58317
59082
|
}
|
|
58318
|
-
async function $
|
|
59083
|
+
async function $do44(client, request, options) {
|
|
58319
59084
|
const parsed = safeParse(request, (value) => GetWorkspaceRequest$outboundSchema.parse(value), "Input validation failed");
|
|
58320
59085
|
if (!parsed.ok) {
|
|
58321
59086
|
return [parsed, { status: "invalid" }];
|
|
@@ -58404,12 +59169,12 @@ var init_workspacesGet = __esm(() => {
|
|
|
58404
59169
|
});
|
|
58405
59170
|
|
|
58406
59171
|
// src/mcp-server/tools/workspacesGet.ts
|
|
58407
|
-
var
|
|
59172
|
+
var args44, tool$workspacesGet;
|
|
58408
59173
|
var init_workspacesGet2 = __esm(() => {
|
|
58409
59174
|
init_workspacesGet();
|
|
58410
59175
|
init_operations();
|
|
58411
59176
|
init_tools();
|
|
58412
|
-
|
|
59177
|
+
args44 = {
|
|
58413
59178
|
request: GetWorkspaceRequest$inboundSchema
|
|
58414
59179
|
};
|
|
58415
59180
|
tool$workspacesGet = {
|
|
@@ -58417,9 +59182,9 @@ var init_workspacesGet2 = __esm(() => {
|
|
|
58417
59182
|
description: `Retrieve a workspace
|
|
58418
59183
|
|
|
58419
59184
|
Retrieve a workspace for the authenticated user.`,
|
|
58420
|
-
args:
|
|
58421
|
-
tool: async (client,
|
|
58422
|
-
const [result, apiCall] = await workspacesGet(client,
|
|
59185
|
+
args: args44,
|
|
59186
|
+
tool: async (client, args45, ctx) => {
|
|
59187
|
+
const [result, apiCall] = await workspacesGet(client, args45.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58423
59188
|
if (!result.ok) {
|
|
58424
59189
|
return {
|
|
58425
59190
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58434,9 +59199,9 @@ Retrieve a workspace for the authenticated user.`,
|
|
|
58434
59199
|
|
|
58435
59200
|
// src/funcs/workspacesUpdate.ts
|
|
58436
59201
|
function workspacesUpdate(client, idOrSlug, requestBody, options) {
|
|
58437
|
-
return new APIPromise($
|
|
59202
|
+
return new APIPromise($do45(client, idOrSlug, requestBody, options));
|
|
58438
59203
|
}
|
|
58439
|
-
async function $
|
|
59204
|
+
async function $do45(client, idOrSlug, requestBody, options) {
|
|
58440
59205
|
const input = {
|
|
58441
59206
|
idOrSlug,
|
|
58442
59207
|
requestBody
|
|
@@ -58530,13 +59295,13 @@ var init_workspacesUpdate = __esm(() => {
|
|
|
58530
59295
|
});
|
|
58531
59296
|
|
|
58532
59297
|
// src/mcp-server/tools/workspacesUpdate.ts
|
|
58533
|
-
var
|
|
59298
|
+
var args45, tool$workspacesUpdate;
|
|
58534
59299
|
var init_workspacesUpdate2 = __esm(() => {
|
|
58535
59300
|
init_esm();
|
|
58536
59301
|
init_workspacesUpdate();
|
|
58537
59302
|
init_operations();
|
|
58538
59303
|
init_tools();
|
|
58539
|
-
|
|
59304
|
+
args45 = {
|
|
58540
59305
|
idOrSlug: stringType(),
|
|
58541
59306
|
requestBody: UpdateWorkspaceRequestBody$inboundSchema.optional()
|
|
58542
59307
|
};
|
|
@@ -58545,9 +59310,9 @@ var init_workspacesUpdate2 = __esm(() => {
|
|
|
58545
59310
|
description: `Update a workspace
|
|
58546
59311
|
|
|
58547
59312
|
Update a workspace by ID or slug.`,
|
|
58548
|
-
args:
|
|
58549
|
-
tool: async (client,
|
|
58550
|
-
const [result, apiCall] = await workspacesUpdate(client,
|
|
59313
|
+
args: args45,
|
|
59314
|
+
tool: async (client, args46, ctx) => {
|
|
59315
|
+
const [result, apiCall] = await workspacesUpdate(client, args46.idOrSlug, args46.requestBody, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
58551
59316
|
if (!result.ok) {
|
|
58552
59317
|
return {
|
|
58553
59318
|
content: [{ type: "text", text: result.error.message }],
|
|
@@ -58564,7 +59329,7 @@ Update a workspace by ID or slug.`,
|
|
|
58564
59329
|
function createMCPServer(deps) {
|
|
58565
59330
|
const server = new McpServer({
|
|
58566
59331
|
name: "Dub",
|
|
58567
|
-
version: "0.64.
|
|
59332
|
+
version: "0.64.3"
|
|
58568
59333
|
});
|
|
58569
59334
|
const client = new DubCore({
|
|
58570
59335
|
token: deps.token,
|
|
@@ -58612,6 +59377,7 @@ function createMCPServer(deps) {
|
|
|
58612
59377
|
tool(tool$customersUpdate);
|
|
58613
59378
|
tool(tool$customersDelete);
|
|
58614
59379
|
tool(tool$partnersCreate);
|
|
59380
|
+
tool(tool$partnersList);
|
|
58615
59381
|
tool(tool$partnersCreateLink);
|
|
58616
59382
|
tool(tool$partnersRetrieveLinks);
|
|
58617
59383
|
tool(tool$partnersUpsertLink);
|
|
@@ -58662,6 +59428,7 @@ var init_server2 = __esm(() => {
|
|
|
58662
59428
|
init_partnersAnalytics2();
|
|
58663
59429
|
init_partnersCreate2();
|
|
58664
59430
|
init_partnersCreateLink2();
|
|
59431
|
+
init_partnersList2();
|
|
58665
59432
|
init_partnersRetrieveLinks2();
|
|
58666
59433
|
init_partnersUpsertLink2();
|
|
58667
59434
|
init_qrCodesGet2();
|
|
@@ -59850,7 +60617,7 @@ var routes = rn({
|
|
|
59850
60617
|
var app = Ve(routes, {
|
|
59851
60618
|
name: "mcp",
|
|
59852
60619
|
versionInfo: {
|
|
59853
|
-
currentVersion: "0.64.
|
|
60620
|
+
currentVersion: "0.64.3"
|
|
59854
60621
|
}
|
|
59855
60622
|
});
|
|
59856
60623
|
_t(app, process3.argv.slice(2), buildContext(process3));
|
|
@@ -59858,5 +60625,5 @@ export {
|
|
|
59858
60625
|
app
|
|
59859
60626
|
};
|
|
59860
60627
|
|
|
59861
|
-
//# debugId=
|
|
60628
|
+
//# debugId=CDFA291F9C8E7CA064756E2164756E21
|
|
59862
60629
|
//# sourceMappingURL=mcp-server.js.map
|