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
|
@@ -49,18 +49,6 @@ export type Data = {
|
|
|
49
49
|
* Whether the short link is archived. Defaults to `false` if not provided.
|
|
50
50
|
*/
|
|
51
51
|
archived?: boolean | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* Deprecated: Use `dashboard` instead. Whether the short link's stats are publicly accessible. Defaults to `false` if not provided.
|
|
54
|
-
*
|
|
55
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
56
|
-
*/
|
|
57
|
-
publicStats?: boolean | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* The unique ID of the tag assigned to the short link. This field is deprecated – use `tagIds` instead.
|
|
60
|
-
*
|
|
61
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
62
|
-
*/
|
|
63
|
-
tagId?: string | null | undefined;
|
|
64
52
|
/**
|
|
65
53
|
* The unique IDs of the tags assigned to the short link.
|
|
66
54
|
*/
|
|
@@ -169,6 +157,18 @@ export type Data = {
|
|
|
169
157
|
* The date and time when the tests were or will be completed.
|
|
170
158
|
*/
|
|
171
159
|
testCompletedAt?: string | null | undefined;
|
|
160
|
+
/**
|
|
161
|
+
* Deprecated: Use `dashboard` instead. Whether the short link's stats are publicly accessible. Defaults to `false` if not provided.
|
|
162
|
+
*
|
|
163
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
164
|
+
*/
|
|
165
|
+
publicStats?: boolean | undefined;
|
|
166
|
+
/**
|
|
167
|
+
* Deprecated: Use `tagIds` instead. The unique ID of the tag assigned to the short link.
|
|
168
|
+
*
|
|
169
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
170
|
+
*/
|
|
171
|
+
tagId?: string | null | undefined;
|
|
172
172
|
};
|
|
173
173
|
|
|
174
174
|
export type BulkUpdateLinksRequestBody = {
|
|
@@ -347,8 +347,6 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
347
347
|
partnerId: z.nullable(z.string()).optional(),
|
|
348
348
|
trackConversion: z.boolean().optional(),
|
|
349
349
|
archived: z.boolean().optional(),
|
|
350
|
-
publicStats: z.boolean().optional(),
|
|
351
|
-
tagId: z.nullable(z.string()).optional(),
|
|
352
350
|
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
|
353
351
|
tagNames: z.union([z.string(), z.array(z.string())]).optional(),
|
|
354
352
|
folderId: z.nullable(z.string()).optional(),
|
|
@@ -378,6 +376,8 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
378
376
|
).optional(),
|
|
379
377
|
testStartedAt: z.nullable(z.string()).optional(),
|
|
380
378
|
testCompletedAt: z.nullable(z.string()).optional(),
|
|
379
|
+
publicStats: z.boolean().optional(),
|
|
380
|
+
tagId: z.nullable(z.string()).optional(),
|
|
381
381
|
}).transform((v) => {
|
|
382
382
|
return remap$(v, {
|
|
383
383
|
"utm_source": "utmSource",
|
|
@@ -396,8 +396,6 @@ export type Data$Outbound = {
|
|
|
396
396
|
partnerId?: string | null | undefined;
|
|
397
397
|
trackConversion?: boolean | undefined;
|
|
398
398
|
archived?: boolean | undefined;
|
|
399
|
-
publicStats?: boolean | undefined;
|
|
400
|
-
tagId?: string | null | undefined;
|
|
401
399
|
tagIds?: string | Array<string> | undefined;
|
|
402
400
|
tagNames?: string | Array<string> | undefined;
|
|
403
401
|
folderId?: string | null | undefined;
|
|
@@ -425,6 +423,8 @@ export type Data$Outbound = {
|
|
|
425
423
|
testVariants?: Array<BulkUpdateLinksTestVariants$Outbound> | null | undefined;
|
|
426
424
|
testStartedAt?: string | null | undefined;
|
|
427
425
|
testCompletedAt?: string | null | undefined;
|
|
426
|
+
publicStats?: boolean | undefined;
|
|
427
|
+
tagId?: string | null | undefined;
|
|
428
428
|
};
|
|
429
429
|
|
|
430
430
|
/** @internal */
|
|
@@ -436,8 +436,6 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
436
436
|
partnerId: z.nullable(z.string()).optional(),
|
|
437
437
|
trackConversion: z.boolean().optional(),
|
|
438
438
|
archived: z.boolean().optional(),
|
|
439
|
-
publicStats: z.boolean().optional(),
|
|
440
|
-
tagId: z.nullable(z.string()).optional(),
|
|
441
439
|
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
|
442
440
|
tagNames: z.union([z.string(), z.array(z.string())]).optional(),
|
|
443
441
|
folderId: z.nullable(z.string()).optional(),
|
|
@@ -467,6 +465,8 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
467
465
|
).optional(),
|
|
468
466
|
testStartedAt: z.nullable(z.string()).optional(),
|
|
469
467
|
testCompletedAt: z.nullable(z.string()).optional(),
|
|
468
|
+
publicStats: z.boolean().optional(),
|
|
469
|
+
tagId: z.nullable(z.string()).optional(),
|
|
470
470
|
}).transform((v) => {
|
|
471
471
|
return remap$(v, {
|
|
472
472
|
utmSource: "utm_source",
|
|
@@ -69,18 +69,6 @@ export type CreateLinkRequestBody = {
|
|
|
69
69
|
* Whether the short link is archived. Defaults to `false` if not provided.
|
|
70
70
|
*/
|
|
71
71
|
archived?: boolean | undefined;
|
|
72
|
-
/**
|
|
73
|
-
* Deprecated: Use `dashboard` instead. Whether the short link's stats are publicly accessible. Defaults to `false` if not provided.
|
|
74
|
-
*
|
|
75
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
76
|
-
*/
|
|
77
|
-
publicStats?: boolean | undefined;
|
|
78
|
-
/**
|
|
79
|
-
* The unique ID of the tag assigned to the short link. This field is deprecated – use `tagIds` instead.
|
|
80
|
-
*
|
|
81
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
82
|
-
*/
|
|
83
|
-
tagId?: string | null | undefined;
|
|
84
72
|
/**
|
|
85
73
|
* The unique IDs of the tags assigned to the short link.
|
|
86
74
|
*/
|
|
@@ -189,6 +177,18 @@ export type CreateLinkRequestBody = {
|
|
|
189
177
|
* The date and time when the tests were or will be completed.
|
|
190
178
|
*/
|
|
191
179
|
testCompletedAt?: string | null | undefined;
|
|
180
|
+
/**
|
|
181
|
+
* Deprecated: Use `dashboard` instead. Whether the short link's stats are publicly accessible. Defaults to `false` if not provided.
|
|
182
|
+
*
|
|
183
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
184
|
+
*/
|
|
185
|
+
publicStats?: boolean | undefined;
|
|
186
|
+
/**
|
|
187
|
+
* Deprecated: Use `tagIds` instead. The unique ID of the tag assigned to the short link.
|
|
188
|
+
*
|
|
189
|
+
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
190
|
+
*/
|
|
191
|
+
tagId?: string | null | undefined;
|
|
192
192
|
};
|
|
193
193
|
|
|
194
194
|
/** @internal */
|
|
@@ -346,8 +346,6 @@ export const CreateLinkRequestBody$inboundSchema: z.ZodType<
|
|
|
346
346
|
prefix: z.string().optional(),
|
|
347
347
|
trackConversion: z.boolean().optional(),
|
|
348
348
|
archived: z.boolean().optional(),
|
|
349
|
-
publicStats: z.boolean().optional(),
|
|
350
|
-
tagId: z.nullable(z.string()).optional(),
|
|
351
349
|
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
|
352
350
|
tagNames: z.union([z.string(), z.array(z.string())]).optional(),
|
|
353
351
|
folderId: z.nullable(z.string()).optional(),
|
|
@@ -376,6 +374,8 @@ export const CreateLinkRequestBody$inboundSchema: z.ZodType<
|
|
|
376
374
|
.optional(),
|
|
377
375
|
testStartedAt: z.nullable(z.string()).optional(),
|
|
378
376
|
testCompletedAt: z.nullable(z.string()).optional(),
|
|
377
|
+
publicStats: z.boolean().optional(),
|
|
378
|
+
tagId: z.nullable(z.string()).optional(),
|
|
379
379
|
}).transform((v) => {
|
|
380
380
|
return remap$(v, {
|
|
381
381
|
"utm_source": "utmSource",
|
|
@@ -399,8 +399,6 @@ export type CreateLinkRequestBody$Outbound = {
|
|
|
399
399
|
prefix?: string | undefined;
|
|
400
400
|
trackConversion?: boolean | undefined;
|
|
401
401
|
archived?: boolean | undefined;
|
|
402
|
-
publicStats?: boolean | undefined;
|
|
403
|
-
tagId?: string | null | undefined;
|
|
404
402
|
tagIds?: string | Array<string> | undefined;
|
|
405
403
|
tagNames?: string | Array<string> | undefined;
|
|
406
404
|
folderId?: string | null | undefined;
|
|
@@ -428,6 +426,8 @@ export type CreateLinkRequestBody$Outbound = {
|
|
|
428
426
|
testVariants?: Array<TestVariants$Outbound> | null | undefined;
|
|
429
427
|
testStartedAt?: string | null | undefined;
|
|
430
428
|
testCompletedAt?: string | null | undefined;
|
|
429
|
+
publicStats?: boolean | undefined;
|
|
430
|
+
tagId?: string | null | undefined;
|
|
431
431
|
};
|
|
432
432
|
|
|
433
433
|
/** @internal */
|
|
@@ -447,8 +447,6 @@ export const CreateLinkRequestBody$outboundSchema: z.ZodType<
|
|
|
447
447
|
prefix: z.string().optional(),
|
|
448
448
|
trackConversion: z.boolean().optional(),
|
|
449
449
|
archived: z.boolean().optional(),
|
|
450
|
-
publicStats: z.boolean().optional(),
|
|
451
|
-
tagId: z.nullable(z.string()).optional(),
|
|
452
450
|
tagIds: z.union([z.string(), z.array(z.string())]).optional(),
|
|
453
451
|
tagNames: z.union([z.string(), z.array(z.string())]).optional(),
|
|
454
452
|
folderId: z.nullable(z.string()).optional(),
|
|
@@ -477,6 +475,8 @@ export const CreateLinkRequestBody$outboundSchema: z.ZodType<
|
|
|
477
475
|
.optional(),
|
|
478
476
|
testStartedAt: z.nullable(z.string()).optional(),
|
|
479
477
|
testCompletedAt: z.nullable(z.string()).optional(),
|
|
478
|
+
publicStats: z.boolean().optional(),
|
|
479
|
+
tagId: z.nullable(z.string()).optional(),
|
|
480
480
|
}).transform((v) => {
|
|
481
481
|
return remap$(v, {
|
|
482
482
|
utmSource: "utm_source",
|
|
@@ -488,19 +488,35 @@ export type CreatePartnerLink = {
|
|
|
488
488
|
*/
|
|
489
489
|
clicks?: number | undefined;
|
|
490
490
|
/**
|
|
491
|
-
* The number of leads the short
|
|
491
|
+
* The number of leads the short link has generated.
|
|
492
492
|
*/
|
|
493
493
|
leads?: number | undefined;
|
|
494
494
|
/**
|
|
495
|
-
* The number of sales the short
|
|
495
|
+
* The total number of sales (includes recurring sales) generated by the short link.
|
|
496
496
|
*/
|
|
497
497
|
sales?: number | undefined;
|
|
498
498
|
/**
|
|
499
|
-
* The total dollar
|
|
499
|
+
* The total dollar value of sales (in cents) generated by the short link.
|
|
500
500
|
*/
|
|
501
501
|
saleAmount?: number | undefined;
|
|
502
502
|
};
|
|
503
503
|
|
|
504
|
+
/**
|
|
505
|
+
* If the partner was banned from the program, this is the reason for the ban.
|
|
506
|
+
*/
|
|
507
|
+
export const BannedReason = {
|
|
508
|
+
TosViolation: "tos_violation",
|
|
509
|
+
InappropriateContent: "inappropriate_content",
|
|
510
|
+
FakeTraffic: "fake_traffic",
|
|
511
|
+
Fraud: "fraud",
|
|
512
|
+
Spam: "spam",
|
|
513
|
+
BrandAbuse: "brand_abuse",
|
|
514
|
+
} as const;
|
|
515
|
+
/**
|
|
516
|
+
* If the partner was banned from the program, this is the reason for the ban.
|
|
517
|
+
*/
|
|
518
|
+
export type BannedReason = ClosedEnum<typeof BannedReason>;
|
|
519
|
+
|
|
504
520
|
/**
|
|
505
521
|
* The created partner
|
|
506
522
|
*/
|
|
@@ -529,30 +545,6 @@ export type CreatePartnerResponseBody = {
|
|
|
529
545
|
* The partner's country (required for tax purposes).
|
|
530
546
|
*/
|
|
531
547
|
country: string | null;
|
|
532
|
-
/**
|
|
533
|
-
* The partner's website URL (including the https protocol).
|
|
534
|
-
*/
|
|
535
|
-
website: string | null;
|
|
536
|
-
/**
|
|
537
|
-
* The partner's YouTube channel username (e.g. `johndoe`).
|
|
538
|
-
*/
|
|
539
|
-
youtube: string | null;
|
|
540
|
-
/**
|
|
541
|
-
* The partner's Twitter username (e.g. `johndoe`).
|
|
542
|
-
*/
|
|
543
|
-
twitter: string | null;
|
|
544
|
-
/**
|
|
545
|
-
* The partner's LinkedIn username (e.g. `johndoe`).
|
|
546
|
-
*/
|
|
547
|
-
linkedin: string | null;
|
|
548
|
-
/**
|
|
549
|
-
* The partner's Instagram username (e.g. `johndoe`).
|
|
550
|
-
*/
|
|
551
|
-
instagram: string | null;
|
|
552
|
-
/**
|
|
553
|
-
* The partner's TikTok username (e.g. `johndoe`).
|
|
554
|
-
*/
|
|
555
|
-
tiktok: string | null;
|
|
556
548
|
/**
|
|
557
549
|
* The partner's PayPal email (for receiving payouts via PayPal).
|
|
558
550
|
*/
|
|
@@ -566,55 +558,99 @@ export type CreatePartnerResponseBody = {
|
|
|
566
558
|
*/
|
|
567
559
|
payoutsEnabledAt: string | null;
|
|
568
560
|
/**
|
|
569
|
-
* The
|
|
561
|
+
* The partner's unique ID on Dub.
|
|
570
562
|
*/
|
|
571
|
-
|
|
563
|
+
partnerId: string;
|
|
572
564
|
/**
|
|
573
|
-
* The
|
|
565
|
+
* The partner's unique ID within your database. Can be useful for associating the partner with a user in your database and retrieving/update their data in the future.
|
|
574
566
|
*/
|
|
575
|
-
|
|
567
|
+
tenantId: string | null;
|
|
576
568
|
/**
|
|
577
569
|
* The program's unique ID on Dub.
|
|
578
570
|
*/
|
|
579
571
|
programId: string;
|
|
572
|
+
createdAt: string;
|
|
580
573
|
/**
|
|
581
|
-
* The
|
|
574
|
+
* The status of the partner's enrollment in the program.
|
|
582
575
|
*/
|
|
583
|
-
|
|
576
|
+
status: CreatePartnerStatus;
|
|
584
577
|
/**
|
|
585
578
|
* The partner's referral links in this program.
|
|
586
579
|
*/
|
|
587
580
|
links: Array<CreatePartnerLink> | null;
|
|
588
581
|
/**
|
|
589
|
-
* The total
|
|
582
|
+
* The total commissions paid to the partner for their referrals. Defaults to 0 if `includeExpandedFields` is false.
|
|
583
|
+
*/
|
|
584
|
+
totalCommissions?: number | undefined;
|
|
585
|
+
clickRewardId?: string | null | undefined;
|
|
586
|
+
leadRewardId?: string | null | undefined;
|
|
587
|
+
saleRewardId?: string | null | undefined;
|
|
588
|
+
discountId?: string | null | undefined;
|
|
589
|
+
/**
|
|
590
|
+
* If the partner submitted an application to join the program, this is the ID of the application.
|
|
591
|
+
*/
|
|
592
|
+
applicationId?: string | null | undefined;
|
|
593
|
+
/**
|
|
594
|
+
* If the partner was banned from the program, this is the date of the ban.
|
|
595
|
+
*/
|
|
596
|
+
bannedAt?: string | null | undefined;
|
|
597
|
+
/**
|
|
598
|
+
* If the partner was banned from the program, this is the reason for the ban.
|
|
599
|
+
*/
|
|
600
|
+
bannedReason?: BannedReason | null | undefined;
|
|
601
|
+
/**
|
|
602
|
+
* The total number of clicks on the partner's links. Defaults to 0 if `includeExpandedFields` is false.
|
|
590
603
|
*/
|
|
591
604
|
clicks?: number | undefined;
|
|
592
605
|
/**
|
|
593
|
-
* The total number of leads generated by the partner's links.
|
|
606
|
+
* The total number of leads generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false.
|
|
594
607
|
*/
|
|
595
608
|
leads?: number | undefined;
|
|
596
609
|
/**
|
|
597
|
-
* The total number of sales generated by the partner's links.
|
|
610
|
+
* The total number of sales generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false.
|
|
598
611
|
*/
|
|
599
612
|
sales?: number | undefined;
|
|
600
613
|
/**
|
|
601
|
-
* The total amount of sales (in cents) generated by the partner's links.
|
|
614
|
+
* The total amount of sales (in cents) generated by the partner's links. Defaults to 0 if `includeExpandedFields` is false.
|
|
602
615
|
*/
|
|
603
616
|
saleAmount?: number | undefined;
|
|
604
617
|
/**
|
|
605
|
-
* The total
|
|
618
|
+
* The total net revenue generated by the partner. Defaults to 0 if `includeExpandedFields` is false.
|
|
606
619
|
*/
|
|
607
|
-
|
|
620
|
+
netRevenue?: number | undefined;
|
|
608
621
|
/**
|
|
609
|
-
* The
|
|
622
|
+
* The partner's website URL (including the https protocol).
|
|
610
623
|
*/
|
|
611
|
-
|
|
624
|
+
website?: string | null | undefined;
|
|
625
|
+
websiteTxtRecord?: string | null | undefined;
|
|
626
|
+
websiteVerifiedAt?: string | null | undefined;
|
|
627
|
+
/**
|
|
628
|
+
* The partner's YouTube channel username (e.g. `johndoe`).
|
|
629
|
+
*/
|
|
630
|
+
youtube?: string | null | undefined;
|
|
631
|
+
youtubeVerifiedAt?: string | null | undefined;
|
|
632
|
+
youtubeSubscriberCount?: number | null | undefined;
|
|
633
|
+
youtubeViewCount?: number | null | undefined;
|
|
634
|
+
/**
|
|
635
|
+
* The partner's Twitter username (e.g. `johndoe`).
|
|
636
|
+
*/
|
|
637
|
+
twitter?: string | null | undefined;
|
|
638
|
+
twitterVerifiedAt?: string | null | undefined;
|
|
639
|
+
/**
|
|
640
|
+
* The partner's LinkedIn username (e.g. `johndoe`).
|
|
641
|
+
*/
|
|
642
|
+
linkedin?: string | null | undefined;
|
|
643
|
+
linkedinVerifiedAt?: string | null | undefined;
|
|
644
|
+
/**
|
|
645
|
+
* The partner's Instagram username (e.g. `johndoe`).
|
|
646
|
+
*/
|
|
647
|
+
instagram?: string | null | undefined;
|
|
648
|
+
instagramVerifiedAt?: string | null | undefined;
|
|
612
649
|
/**
|
|
613
|
-
*
|
|
614
|
-
*
|
|
615
|
-
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
650
|
+
* The partner's TikTok username (e.g. `johndoe`).
|
|
616
651
|
*/
|
|
617
|
-
|
|
652
|
+
tiktok?: string | null | undefined;
|
|
653
|
+
tiktokVerifiedAt?: string | null | undefined;
|
|
618
654
|
};
|
|
619
655
|
|
|
620
656
|
/** @internal */
|
|
@@ -1120,6 +1156,25 @@ export function createPartnerLinkFromJSON(
|
|
|
1120
1156
|
);
|
|
1121
1157
|
}
|
|
1122
1158
|
|
|
1159
|
+
/** @internal */
|
|
1160
|
+
export const BannedReason$inboundSchema: z.ZodNativeEnum<typeof BannedReason> =
|
|
1161
|
+
z.nativeEnum(BannedReason);
|
|
1162
|
+
|
|
1163
|
+
/** @internal */
|
|
1164
|
+
export const BannedReason$outboundSchema: z.ZodNativeEnum<typeof BannedReason> =
|
|
1165
|
+
BannedReason$inboundSchema;
|
|
1166
|
+
|
|
1167
|
+
/**
|
|
1168
|
+
* @internal
|
|
1169
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1170
|
+
*/
|
|
1171
|
+
export namespace BannedReason$ {
|
|
1172
|
+
/** @deprecated use `BannedReason$inboundSchema` instead. */
|
|
1173
|
+
export const inboundSchema = BannedReason$inboundSchema;
|
|
1174
|
+
/** @deprecated use `BannedReason$outboundSchema` instead. */
|
|
1175
|
+
export const outboundSchema = BannedReason$outboundSchema;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1123
1178
|
/** @internal */
|
|
1124
1179
|
export const CreatePartnerResponseBody$inboundSchema: z.ZodType<
|
|
1125
1180
|
CreatePartnerResponseBody,
|
|
@@ -1132,27 +1187,43 @@ export const CreatePartnerResponseBody$inboundSchema: z.ZodType<
|
|
|
1132
1187
|
image: z.nullable(z.string()),
|
|
1133
1188
|
description: z.nullable(z.string()).optional(),
|
|
1134
1189
|
country: z.nullable(z.string()),
|
|
1135
|
-
website: z.nullable(z.string()),
|
|
1136
|
-
youtube: z.nullable(z.string()),
|
|
1137
|
-
twitter: z.nullable(z.string()),
|
|
1138
|
-
linkedin: z.nullable(z.string()),
|
|
1139
|
-
instagram: z.nullable(z.string()),
|
|
1140
|
-
tiktok: z.nullable(z.string()),
|
|
1141
1190
|
paypalEmail: z.nullable(z.string()),
|
|
1142
1191
|
stripeConnectId: z.nullable(z.string()),
|
|
1143
1192
|
payoutsEnabledAt: z.nullable(z.string()),
|
|
1193
|
+
partnerId: z.string(),
|
|
1194
|
+
tenantId: z.nullable(z.string()),
|
|
1195
|
+
programId: z.string(),
|
|
1144
1196
|
createdAt: z.string(),
|
|
1145
1197
|
status: CreatePartnerStatus$inboundSchema,
|
|
1146
|
-
programId: z.string(),
|
|
1147
|
-
tenantId: z.nullable(z.string()),
|
|
1148
1198
|
links: z.nullable(z.array(z.lazy(() => CreatePartnerLink$inboundSchema))),
|
|
1199
|
+
totalCommissions: z.number().default(0),
|
|
1200
|
+
clickRewardId: z.nullable(z.string()).optional(),
|
|
1201
|
+
leadRewardId: z.nullable(z.string()).optional(),
|
|
1202
|
+
saleRewardId: z.nullable(z.string()).optional(),
|
|
1203
|
+
discountId: z.nullable(z.string()).optional(),
|
|
1204
|
+
applicationId: z.nullable(z.string()).optional(),
|
|
1205
|
+
bannedAt: z.nullable(z.string()).optional(),
|
|
1206
|
+
bannedReason: z.nullable(BannedReason$inboundSchema).optional(),
|
|
1149
1207
|
clicks: z.number().default(0),
|
|
1150
1208
|
leads: z.number().default(0),
|
|
1151
1209
|
sales: z.number().default(0),
|
|
1152
1210
|
saleAmount: z.number().default(0),
|
|
1153
|
-
totalCommissions: z.number().default(0),
|
|
1154
1211
|
netRevenue: z.number().default(0),
|
|
1155
|
-
|
|
1212
|
+
website: z.nullable(z.string()).optional(),
|
|
1213
|
+
websiteTxtRecord: z.nullable(z.string()).optional(),
|
|
1214
|
+
websiteVerifiedAt: z.nullable(z.string()).optional(),
|
|
1215
|
+
youtube: z.nullable(z.string()).optional(),
|
|
1216
|
+
youtubeVerifiedAt: z.nullable(z.string()).optional(),
|
|
1217
|
+
youtubeSubscriberCount: z.nullable(z.number()).optional(),
|
|
1218
|
+
youtubeViewCount: z.nullable(z.number()).optional(),
|
|
1219
|
+
twitter: z.nullable(z.string()).optional(),
|
|
1220
|
+
twitterVerifiedAt: z.nullable(z.string()).optional(),
|
|
1221
|
+
linkedin: z.nullable(z.string()).optional(),
|
|
1222
|
+
linkedinVerifiedAt: z.nullable(z.string()).optional(),
|
|
1223
|
+
instagram: z.nullable(z.string()).optional(),
|
|
1224
|
+
instagramVerifiedAt: z.nullable(z.string()).optional(),
|
|
1225
|
+
tiktok: z.nullable(z.string()).optional(),
|
|
1226
|
+
tiktokVerifiedAt: z.nullable(z.string()).optional(),
|
|
1156
1227
|
});
|
|
1157
1228
|
|
|
1158
1229
|
/** @internal */
|
|
@@ -1163,27 +1234,43 @@ export type CreatePartnerResponseBody$Outbound = {
|
|
|
1163
1234
|
image: string | null;
|
|
1164
1235
|
description?: string | null | undefined;
|
|
1165
1236
|
country: string | null;
|
|
1166
|
-
website: string | null;
|
|
1167
|
-
youtube: string | null;
|
|
1168
|
-
twitter: string | null;
|
|
1169
|
-
linkedin: string | null;
|
|
1170
|
-
instagram: string | null;
|
|
1171
|
-
tiktok: string | null;
|
|
1172
1237
|
paypalEmail: string | null;
|
|
1173
1238
|
stripeConnectId: string | null;
|
|
1174
1239
|
payoutsEnabledAt: string | null;
|
|
1240
|
+
partnerId: string;
|
|
1241
|
+
tenantId: string | null;
|
|
1242
|
+
programId: string;
|
|
1175
1243
|
createdAt: string;
|
|
1176
1244
|
status: string;
|
|
1177
|
-
programId: string;
|
|
1178
|
-
tenantId: string | null;
|
|
1179
1245
|
links: Array<CreatePartnerLink$Outbound> | null;
|
|
1246
|
+
totalCommissions: number;
|
|
1247
|
+
clickRewardId?: string | null | undefined;
|
|
1248
|
+
leadRewardId?: string | null | undefined;
|
|
1249
|
+
saleRewardId?: string | null | undefined;
|
|
1250
|
+
discountId?: string | null | undefined;
|
|
1251
|
+
applicationId?: string | null | undefined;
|
|
1252
|
+
bannedAt?: string | null | undefined;
|
|
1253
|
+
bannedReason?: string | null | undefined;
|
|
1180
1254
|
clicks: number;
|
|
1181
1255
|
leads: number;
|
|
1182
1256
|
sales: number;
|
|
1183
1257
|
saleAmount: number;
|
|
1184
|
-
totalCommissions: number;
|
|
1185
1258
|
netRevenue: number;
|
|
1186
|
-
|
|
1259
|
+
website?: string | null | undefined;
|
|
1260
|
+
websiteTxtRecord?: string | null | undefined;
|
|
1261
|
+
websiteVerifiedAt?: string | null | undefined;
|
|
1262
|
+
youtube?: string | null | undefined;
|
|
1263
|
+
youtubeVerifiedAt?: string | null | undefined;
|
|
1264
|
+
youtubeSubscriberCount?: number | null | undefined;
|
|
1265
|
+
youtubeViewCount?: number | null | undefined;
|
|
1266
|
+
twitter?: string | null | undefined;
|
|
1267
|
+
twitterVerifiedAt?: string | null | undefined;
|
|
1268
|
+
linkedin?: string | null | undefined;
|
|
1269
|
+
linkedinVerifiedAt?: string | null | undefined;
|
|
1270
|
+
instagram?: string | null | undefined;
|
|
1271
|
+
instagramVerifiedAt?: string | null | undefined;
|
|
1272
|
+
tiktok?: string | null | undefined;
|
|
1273
|
+
tiktokVerifiedAt?: string | null | undefined;
|
|
1187
1274
|
};
|
|
1188
1275
|
|
|
1189
1276
|
/** @internal */
|
|
@@ -1198,27 +1285,43 @@ export const CreatePartnerResponseBody$outboundSchema: z.ZodType<
|
|
|
1198
1285
|
image: z.nullable(z.string()),
|
|
1199
1286
|
description: z.nullable(z.string()).optional(),
|
|
1200
1287
|
country: z.nullable(z.string()),
|
|
1201
|
-
website: z.nullable(z.string()),
|
|
1202
|
-
youtube: z.nullable(z.string()),
|
|
1203
|
-
twitter: z.nullable(z.string()),
|
|
1204
|
-
linkedin: z.nullable(z.string()),
|
|
1205
|
-
instagram: z.nullable(z.string()),
|
|
1206
|
-
tiktok: z.nullable(z.string()),
|
|
1207
1288
|
paypalEmail: z.nullable(z.string()),
|
|
1208
1289
|
stripeConnectId: z.nullable(z.string()),
|
|
1209
1290
|
payoutsEnabledAt: z.nullable(z.string()),
|
|
1291
|
+
partnerId: z.string(),
|
|
1292
|
+
tenantId: z.nullable(z.string()),
|
|
1293
|
+
programId: z.string(),
|
|
1210
1294
|
createdAt: z.string(),
|
|
1211
1295
|
status: CreatePartnerStatus$outboundSchema,
|
|
1212
|
-
programId: z.string(),
|
|
1213
|
-
tenantId: z.nullable(z.string()),
|
|
1214
1296
|
links: z.nullable(z.array(z.lazy(() => CreatePartnerLink$outboundSchema))),
|
|
1297
|
+
totalCommissions: z.number().default(0),
|
|
1298
|
+
clickRewardId: z.nullable(z.string()).optional(),
|
|
1299
|
+
leadRewardId: z.nullable(z.string()).optional(),
|
|
1300
|
+
saleRewardId: z.nullable(z.string()).optional(),
|
|
1301
|
+
discountId: z.nullable(z.string()).optional(),
|
|
1302
|
+
applicationId: z.nullable(z.string()).optional(),
|
|
1303
|
+
bannedAt: z.nullable(z.string()).optional(),
|
|
1304
|
+
bannedReason: z.nullable(BannedReason$outboundSchema).optional(),
|
|
1215
1305
|
clicks: z.number().default(0),
|
|
1216
1306
|
leads: z.number().default(0),
|
|
1217
1307
|
sales: z.number().default(0),
|
|
1218
1308
|
saleAmount: z.number().default(0),
|
|
1219
|
-
totalCommissions: z.number().default(0),
|
|
1220
1309
|
netRevenue: z.number().default(0),
|
|
1221
|
-
|
|
1310
|
+
website: z.nullable(z.string()).optional(),
|
|
1311
|
+
websiteTxtRecord: z.nullable(z.string()).optional(),
|
|
1312
|
+
websiteVerifiedAt: z.nullable(z.string()).optional(),
|
|
1313
|
+
youtube: z.nullable(z.string()).optional(),
|
|
1314
|
+
youtubeVerifiedAt: z.nullable(z.string()).optional(),
|
|
1315
|
+
youtubeSubscriberCount: z.nullable(z.number()).optional(),
|
|
1316
|
+
youtubeViewCount: z.nullable(z.number()).optional(),
|
|
1317
|
+
twitter: z.nullable(z.string()).optional(),
|
|
1318
|
+
twitterVerifiedAt: z.nullable(z.string()).optional(),
|
|
1319
|
+
linkedin: z.nullable(z.string()).optional(),
|
|
1320
|
+
linkedinVerifiedAt: z.nullable(z.string()).optional(),
|
|
1321
|
+
instagram: z.nullable(z.string()).optional(),
|
|
1322
|
+
instagramVerifiedAt: z.nullable(z.string()).optional(),
|
|
1323
|
+
tiktok: z.nullable(z.string()).optional(),
|
|
1324
|
+
tiktokVerifiedAt: z.nullable(z.string()).optional(),
|
|
1222
1325
|
});
|
|
1223
1326
|
|
|
1224
1327
|
/**
|
|
@@ -70,7 +70,7 @@ export type GetLinksRequest = {
|
|
|
70
70
|
*/
|
|
71
71
|
domain?: string | undefined;
|
|
72
72
|
/**
|
|
73
|
-
* Deprecated
|
|
73
|
+
* Deprecated: Use `tagIds` instead. The tag ID to filter the links by.
|
|
74
74
|
*/
|
|
75
75
|
tagId?: string | undefined;
|
|
76
76
|
/**
|
|
@@ -49,7 +49,7 @@ export type GetLinksCountRequest = {
|
|
|
49
49
|
*/
|
|
50
50
|
domain?: string | undefined;
|
|
51
51
|
/**
|
|
52
|
-
* Deprecated
|
|
52
|
+
* Deprecated: Use `tagIds` instead. The tag ID to filter the links by.
|
|
53
53
|
*/
|
|
54
54
|
tagId?: string | undefined;
|
|
55
55
|
/**
|
|
@@ -31,6 +31,7 @@ export * from "./listcommissions.js";
|
|
|
31
31
|
export * from "./listdomains.js";
|
|
32
32
|
export * from "./listevents.js";
|
|
33
33
|
export * from "./listfolders.js";
|
|
34
|
+
export * from "./listpartners.js";
|
|
34
35
|
export * from "./registerdomain.js";
|
|
35
36
|
export * from "./retrieveanalytics.js";
|
|
36
37
|
export * from "./retrievelinks.js";
|