dub 0.28.1 → 0.29.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +49 -12
- package/docs/sdks/analytics/README.md +59 -93
- package/docs/sdks/clicks/README.md +579 -0
- package/docs/sdks/domains/README.md +5 -15
- package/docs/sdks/links/README.md +58 -9
- package/docs/sdks/qrcodes/README.md +3 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/domainschema.d.ts +14 -16
- package/models/components/domainschema.d.ts.map +1 -1
- package/models/components/domainschema.js +7 -3
- package/models/components/domainschema.js.map +1 -1
- package/models/components/linkschema.d.ts +7 -291
- package/models/components/linkschema.d.ts.map +1 -1
- package/models/components/linkschema.js +4 -0
- package/models/components/linkschema.js.map +1 -1
- package/models/components/security.d.ts +1 -4
- package/models/components/security.d.ts.map +1 -1
- package/models/components/security.js.map +1 -1
- package/models/components/tagschema.d.ts +24 -9
- package/models/components/tagschema.d.ts.map +1 -1
- package/models/components/tagschema.js +7 -3
- package/models/components/tagschema.js.map +1 -1
- package/models/components/workspaceschema.d.ts +38 -36
- package/models/components/workspaceschema.d.ts.map +1 -1
- package/models/components/workspaceschema.js +14 -6
- package/models/components/workspaceschema.js.map +1 -1
- package/models/errors/badrequest.d.ts +13 -13
- package/models/errors/badrequest.d.ts.map +1 -1
- package/models/errors/badrequest.js +7 -3
- package/models/errors/badrequest.js.map +1 -1
- package/models/errors/conflict.d.ts +13 -13
- package/models/errors/conflict.d.ts.map +1 -1
- package/models/errors/conflict.js +7 -3
- package/models/errors/conflict.js.map +1 -1
- package/models/errors/forbidden.d.ts +13 -13
- package/models/errors/forbidden.d.ts.map +1 -1
- package/models/errors/forbidden.js +7 -3
- package/models/errors/forbidden.js.map +1 -1
- package/models/errors/internalservererror.d.ts +13 -13
- package/models/errors/internalservererror.d.ts.map +1 -1
- package/models/errors/internalservererror.js +7 -3
- package/models/errors/internalservererror.js.map +1 -1
- package/models/errors/inviteexpired.d.ts +13 -13
- package/models/errors/inviteexpired.d.ts.map +1 -1
- package/models/errors/inviteexpired.js +7 -3
- package/models/errors/inviteexpired.js.map +1 -1
- package/models/errors/notfound.d.ts +13 -13
- package/models/errors/notfound.d.ts.map +1 -1
- package/models/errors/notfound.js +7 -3
- package/models/errors/notfound.js.map +1 -1
- package/models/errors/ratelimitexceeded.d.ts +13 -13
- package/models/errors/ratelimitexceeded.d.ts.map +1 -1
- package/models/errors/ratelimitexceeded.js +7 -3
- package/models/errors/ratelimitexceeded.js.map +1 -1
- package/models/errors/unauthorized.d.ts +13 -13
- package/models/errors/unauthorized.d.ts.map +1 -1
- package/models/errors/unauthorized.js +7 -3
- package/models/errors/unauthorized.js.map +1 -1
- package/models/errors/unprocessableentity.d.ts +13 -13
- package/models/errors/unprocessableentity.d.ts.map +1 -1
- package/models/errors/unprocessableentity.js +7 -3
- package/models/errors/unprocessableentity.js.map +1 -1
- package/models/operations/adddomain.d.ts +14 -12
- package/models/operations/adddomain.d.ts.map +1 -1
- package/models/operations/adddomain.js +7 -3
- package/models/operations/adddomain.js.map +1 -1
- package/models/operations/bulkcreatelinks.d.ts +4 -282
- package/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/models/operations/bulkcreatelinks.js.map +1 -1
- package/models/operations/createlink.d.ts +4 -282
- package/models/operations/createlink.d.ts.map +1 -1
- package/models/operations/createlink.js.map +1 -1
- package/models/operations/createtag.d.ts +24 -8
- package/models/operations/createtag.d.ts.map +1 -1
- package/models/operations/createtag.js +7 -3
- package/models/operations/createtag.js.map +1 -1
- package/models/operations/createworkspace.d.ts +1 -6
- package/models/operations/createworkspace.d.ts.map +1 -1
- package/models/operations/createworkspace.js.map +1 -1
- package/models/operations/deletedomain.d.ts +2 -8
- package/models/operations/deletedomain.d.ts.map +1 -1
- package/models/operations/deletedomain.js.map +1 -1
- package/models/operations/deletelink.d.ts +2 -8
- package/models/operations/deletelink.d.ts.map +1 -1
- package/models/operations/deletelink.js.map +1 -1
- package/models/operations/getbrowsersbyclicks.d.ts +922 -0
- package/models/operations/getbrowsersbyclicks.d.ts.map +1 -0
- package/models/operations/{getbrowseranalytics.js → getbrowsersbyclicks.js} +41 -23
- package/models/operations/getbrowsersbyclicks.js.map +1 -0
- package/models/operations/getbrowsersbyclicksdeprecated.d.ts +922 -0
- package/models/operations/getbrowsersbyclicksdeprecated.d.ts.map +1 -0
- package/models/operations/getbrowsersbyclicksdeprecated.js +423 -0
- package/models/operations/getbrowsersbyclicksdeprecated.js.map +1 -0
- package/models/operations/getcitiesbyclicks.d.ts +1693 -0
- package/models/operations/getcitiesbyclicks.d.ts.map +1 -0
- package/models/operations/{getcityanalytics.js → getcitiesbyclicks.js} +49 -27
- package/models/operations/getcitiesbyclicks.js.map +1 -0
- package/models/operations/getcitiesbyclicksdeprecated.d.ts +1693 -0
- package/models/operations/getcitiesbyclicksdeprecated.d.ts.map +1 -0
- package/models/operations/getcitiesbyclicksdeprecated.js +688 -0
- package/models/operations/{getcountryanalytics.js.map → getcitiesbyclicksdeprecated.js.map} +1 -1
- package/models/operations/getclickscount.d.ts +903 -0
- package/models/operations/getclickscount.d.ts.map +1 -0
- package/models/operations/{getclicksanalytics.js → getclickscount.js} +34 -16
- package/models/operations/getclickscount.js.map +1 -0
- package/models/operations/getclickscountdeprecated.d.ts +903 -0
- package/models/operations/getclickscountdeprecated.d.ts.map +1 -0
- package/models/operations/getclickscountdeprecated.js +397 -0
- package/models/operations/{getdeviceanalytics.js.map → getclickscountdeprecated.js.map} +1 -1
- package/models/operations/getcountriesbyclicks.d.ts +1688 -0
- package/models/operations/getcountriesbyclicks.d.ts.map +1 -0
- package/models/operations/{getcountryanalytics.js → getcountriesbyclicks.js} +49 -27
- package/models/operations/getcountriesbyclicks.js.map +1 -0
- package/models/operations/getcountriesbyclicksdeprecated.d.ts +1688 -0
- package/models/operations/getcountriesbyclicksdeprecated.d.ts.map +1 -0
- package/models/operations/getcountriesbyclicksdeprecated.js +684 -0
- package/models/operations/{getcityanalytics.js.map → getcountriesbyclicksdeprecated.js.map} +1 -1
- package/models/operations/getdevicesbyclicks.d.ts +922 -0
- package/models/operations/getdevicesbyclicks.d.ts.map +1 -0
- package/models/operations/{getdeviceanalytics.js → getdevicesbyclicks.js} +41 -23
- package/models/operations/getdevicesbyclicks.js.map +1 -0
- package/models/operations/getdevicesbyclicksdeprecated.d.ts +922 -0
- package/models/operations/getdevicesbyclicksdeprecated.d.ts.map +1 -0
- package/models/operations/getdevicesbyclicksdeprecated.js +423 -0
- package/models/operations/getdevicesbyclicksdeprecated.js.map +1 -0
- package/models/operations/getlinkinfo.d.ts +1 -7
- package/models/operations/getlinkinfo.d.ts.map +1 -1
- package/models/operations/getlinkinfo.js.map +1 -1
- package/models/operations/getlinks.d.ts +18 -20
- package/models/operations/getlinks.d.ts.map +1 -1
- package/models/operations/getlinks.js +7 -3
- package/models/operations/getlinks.js.map +1 -1
- package/models/operations/getlinkscount.d.ts +25 -24
- package/models/operations/getlinkscount.d.ts.map +1 -1
- package/models/operations/getlinkscount.js +20 -6
- package/models/operations/getlinkscount.js.map +1 -1
- package/models/operations/getmetatags.d.ts +2 -10
- package/models/operations/getmetatags.d.ts.map +1 -1
- package/models/operations/getmetatags.js.map +1 -1
- package/models/operations/getosbyclicks.d.ts +922 -0
- package/models/operations/getosbyclicks.d.ts.map +1 -0
- package/models/operations/{getosanalytics.js → getosbyclicks.js} +41 -23
- package/models/operations/getosbyclicks.js.map +1 -0
- package/models/operations/getosbyclicksdeprecated.d.ts +922 -0
- package/models/operations/getosbyclicksdeprecated.d.ts.map +1 -0
- package/models/operations/getosbyclicksdeprecated.js +423 -0
- package/models/operations/getosbyclicksdeprecated.js.map +1 -0
- package/models/operations/getqrcode.d.ts +20 -14
- package/models/operations/getqrcode.d.ts.map +1 -1
- package/models/operations/getqrcode.js +9 -5
- package/models/operations/getqrcode.js.map +1 -1
- package/models/operations/getreferersbyclicks.d.ts +922 -0
- package/models/operations/getreferersbyclicks.d.ts.map +1 -0
- package/models/operations/{getrefereranalytics.js → getreferersbyclicks.js} +41 -23
- package/models/operations/getreferersbyclicks.js.map +1 -0
- package/models/operations/getreferersbyclicksdeprecated.d.ts +922 -0
- package/models/operations/getreferersbyclicksdeprecated.d.ts.map +1 -0
- package/models/operations/getreferersbyclicksdeprecated.js +423 -0
- package/models/operations/getreferersbyclicksdeprecated.js.map +1 -0
- package/models/operations/gettags.d.ts +1 -2
- package/models/operations/gettags.d.ts.map +1 -1
- package/models/operations/gettags.js.map +1 -1
- package/models/operations/gettimeseriesbyclicks.d.ts +922 -0
- package/models/operations/gettimeseriesbyclicks.d.ts.map +1 -0
- package/models/operations/{gettimeseriesanalytics.js → gettimeseriesbyclicks.js} +34 -16
- package/models/operations/gettimeseriesbyclicks.js.map +1 -0
- package/models/operations/gettimeseriesbyclicksdeprecated.d.ts +922 -0
- package/models/operations/gettimeseriesbyclicksdeprecated.d.ts.map +1 -0
- package/models/operations/gettimeseriesbyclicksdeprecated.js +423 -0
- package/models/operations/gettimeseriesbyclicksdeprecated.js.map +1 -0
- package/models/operations/gettoplinksbyclicks.d.ts +922 -0
- package/models/operations/gettoplinksbyclicks.d.ts.map +1 -0
- package/models/operations/{gettoplinks.js → gettoplinksbyclicks.js} +41 -23
- package/models/operations/gettoplinksbyclicks.js.map +1 -0
- package/models/operations/gettoplinksbyclicksdeprecated.d.ts +922 -0
- package/models/operations/gettoplinksbyclicksdeprecated.d.ts.map +1 -0
- package/models/operations/gettoplinksbyclicksdeprecated.js +423 -0
- package/models/operations/gettoplinksbyclicksdeprecated.js.map +1 -0
- package/models/operations/gettopurlsbyclicks.d.ts +922 -0
- package/models/operations/gettopurlsbyclicks.d.ts.map +1 -0
- package/models/operations/{gettopurls.js → gettopurlsbyclicks.js} +41 -23
- package/models/operations/gettopurlsbyclicks.js.map +1 -0
- package/models/operations/gettopurlsbyclicksdeprecated.d.ts +922 -0
- package/models/operations/gettopurlsbyclicksdeprecated.d.ts.map +1 -0
- package/models/operations/gettopurlsbyclicksdeprecated.js +423 -0
- package/models/operations/{getclicksanalytics.js.map → gettopurlsbyclicksdeprecated.js.map} +1 -1
- package/models/operations/getworkspace.d.ts +1 -4
- package/models/operations/getworkspace.d.ts.map +1 -1
- package/models/operations/getworkspace.js.map +1 -1
- package/models/operations/index.d.ts +21 -10
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +21 -10
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdomains.d.ts +1 -2
- package/models/operations/listdomains.d.ts.map +1 -1
- package/models/operations/listdomains.js.map +1 -1
- package/models/operations/setprimarydomain.d.ts +1 -4
- package/models/operations/setprimarydomain.d.ts.map +1 -1
- package/models/operations/setprimarydomain.js.map +1 -1
- package/models/operations/transferdomain.d.ts +2 -9
- package/models/operations/transferdomain.d.ts.map +1 -1
- package/models/operations/transferdomain.js.map +1 -1
- package/models/operations/updatedomain.d.ts +15 -17
- package/models/operations/updatedomain.d.ts.map +1 -1
- package/models/operations/updatedomain.js +7 -3
- package/models/operations/updatedomain.js.map +1 -1
- package/models/operations/updatelink.d.ts +5 -287
- package/models/operations/updatelink.d.ts.map +1 -1
- package/models/operations/updatelink.js.map +1 -1
- package/models/operations/upsertlink.d.ts +655 -0
- package/models/operations/upsertlink.d.ts.map +1 -0
- package/models/operations/upsertlink.js +1179 -0
- package/models/operations/upsertlink.js.map +1 -0
- package/package.json +1 -1
- package/sdk/analytics.d.ts +39 -25
- package/sdk/analytics.d.ts.map +1 -1
- package/sdk/analytics.js +128 -276
- package/sdk/analytics.js.map +1 -1
- package/sdk/clicks.d.ts +87 -0
- package/sdk/clicks.d.ts.map +1 -0
- package/sdk/clicks.js +2355 -0
- package/sdk/clicks.js.map +1 -0
- package/sdk/domains.d.ts +2 -2
- package/sdk/domains.d.ts.map +1 -1
- package/sdk/domains.js +24 -21
- package/sdk/domains.js.map +1 -1
- package/sdk/links.d.ts +13 -6
- package/sdk/links.d.ts.map +1 -1
- package/sdk/links.js +213 -32
- package/sdk/links.js.map +1 -1
- package/sdk/metatags.d.ts +1 -1
- package/sdk/metatags.d.ts.map +1 -1
- package/sdk/metatags.js +5 -4
- package/sdk/metatags.js.map +1 -1
- package/sdk/qrcodes.d.ts +1 -1
- package/sdk/qrcodes.d.ts.map +1 -1
- package/sdk/qrcodes.js +6 -5
- package/sdk/qrcodes.js.map +1 -1
- package/sdk/tags.d.ts +2 -2
- package/sdk/tags.d.ts.map +1 -1
- package/sdk/tags.js +12 -9
- package/sdk/tags.js.map +1 -1
- package/sdk/workspaces.d.ts +2 -2
- package/sdk/workspaces.d.ts.map +1 -1
- package/sdk/workspaces.js +15 -13
- package/sdk/workspaces.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/domainschema.ts +10 -19
- package/src/models/components/linkschema.ts +11 -293
- package/src/models/components/security.ts +1 -5
- package/src/models/components/tagschema.ts +10 -12
- package/src/models/components/workspaceschema.ts +20 -43
- package/src/models/errors/badrequest.ts +11 -17
- package/src/models/errors/conflict.ts +11 -17
- package/src/models/errors/forbidden.ts +11 -17
- package/src/models/errors/internalservererror.ts +11 -19
- package/src/models/errors/inviteexpired.ts +11 -18
- package/src/models/errors/notfound.ts +11 -17
- package/src/models/errors/ratelimitexceeded.ts +11 -19
- package/src/models/errors/unauthorized.ts +11 -18
- package/src/models/errors/unprocessableentity.ts +11 -19
- package/src/models/operations/adddomain.ts +10 -15
- package/src/models/operations/bulkcreatelinks.ts +8 -288
- package/src/models/operations/createlink.ts +8 -288
- package/src/models/operations/createtag.ts +10 -11
- package/src/models/operations/createworkspace.ts +1 -7
- package/src/models/operations/deletedomain.ts +2 -10
- package/src/models/operations/deletelink.ts +2 -10
- package/src/models/operations/{getbrowseranalytics.ts → getbrowsersbyclicks.ts} +59 -57
- package/src/models/operations/getbrowsersbyclicksdeprecated.ts +538 -0
- package/src/models/operations/{getcityanalytics.ts → getcitiesbyclicks.ts} +81 -78
- package/src/models/operations/getcitiesbyclicksdeprecated.ts +814 -0
- package/src/models/operations/{getclicksanalytics.ts → getclickscount.ts} +47 -38
- package/src/models/operations/{gettimeseriesanalytics.ts → getclickscountdeprecated.ts} +95 -128
- package/src/models/operations/{getcountryanalytics.ts → getcountriesbyclicks.ts} +69 -66
- package/src/models/operations/getcountriesbyclicksdeprecated.ts +807 -0
- package/src/models/operations/{getdeviceanalytics.ts → getdevicesbyclicks.ts} +59 -57
- package/src/models/operations/getdevicesbyclicksdeprecated.ts +537 -0
- package/src/models/operations/getlinkinfo.ts +1 -8
- package/src/models/operations/getlinks.ts +16 -27
- package/src/models/operations/getlinkscount.ts +29 -31
- package/src/models/operations/getmetatags.ts +2 -12
- package/src/models/operations/{getosanalytics.ts → getosbyclicks.ts} +55 -57
- package/src/models/operations/getosbyclicksdeprecated.ts +530 -0
- package/src/models/operations/getqrcode.ts +14 -19
- package/src/models/operations/{getrefereranalytics.ts → getreferersbyclicks.ts} +59 -57
- package/src/models/operations/getreferersbyclicksdeprecated.ts +538 -0
- package/src/models/operations/gettags.ts +1 -3
- package/src/models/operations/{gettopurls.ts → gettimeseriesbyclicks.ts} +63 -63
- package/src/models/operations/gettimeseriesbyclicksdeprecated.ts +539 -0
- package/src/models/operations/{gettoplinks.ts → gettoplinksbyclicks.ts} +74 -65
- package/src/models/operations/gettoplinksbyclicksdeprecated.ts +538 -0
- package/src/models/operations/gettopurlsbyclicks.ts +522 -0
- package/src/models/operations/gettopurlsbyclicksdeprecated.ts +537 -0
- package/src/models/operations/getworkspace.ts +1 -5
- package/src/models/operations/index.ts +21 -10
- package/src/models/operations/listdomains.ts +1 -3
- package/src/models/operations/setprimarydomain.ts +1 -5
- package/src/models/operations/transferdomain.ts +2 -11
- package/src/models/operations/updatedomain.ts +11 -22
- package/src/models/operations/updatelink.ts +9 -294
- package/src/models/operations/upsertlink.ts +1796 -0
- package/src/sdk/analytics.ts +160 -350
- package/src/sdk/clicks.ts +2906 -0
- package/src/sdk/domains.ts +24 -21
- package/src/sdk/links.ts +269 -32
- package/src/sdk/metatags.ts +5 -4
- package/src/sdk/qrcodes.ts +6 -5
- package/src/sdk/tags.ts +12 -9
- package/src/sdk/workspaces.ts +15 -13
- package/src/types/enums.ts +16 -0
- package/src/types/index.ts +2 -0
- package/types/enums.d.ts +12 -0
- package/types/enums.d.ts.map +1 -0
- package/types/enums.js +11 -0
- package/types/enums.js.map +1 -0
- package/types/index.d.ts +2 -0
- package/types/index.d.ts.map +1 -1
- package/types/index.js +3 -1
- package/types/index.js.map +1 -1
- package/models/operations/getbrowseranalytics.d.ts +0 -404
- package/models/operations/getbrowseranalytics.d.ts.map +0 -1
- package/models/operations/getbrowseranalytics.js.map +0 -1
- package/models/operations/getcityanalytics.d.ts +0 -671
- package/models/operations/getcityanalytics.d.ts.map +0 -1
- package/models/operations/getclicksanalytics.d.ts +0 -381
- package/models/operations/getclicksanalytics.d.ts.map +0 -1
- package/models/operations/getcountryanalytics.d.ts +0 -665
- package/models/operations/getcountryanalytics.d.ts.map +0 -1
- package/models/operations/getdeviceanalytics.d.ts +0 -404
- package/models/operations/getdeviceanalytics.d.ts.map +0 -1
- package/models/operations/getosanalytics.d.ts +0 -404
- package/models/operations/getosanalytics.d.ts.map +0 -1
- package/models/operations/getosanalytics.js.map +0 -1
- package/models/operations/getrefereranalytics.d.ts +0 -404
- package/models/operations/getrefereranalytics.d.ts.map +0 -1
- package/models/operations/getrefereranalytics.js.map +0 -1
- package/models/operations/gettimeseriesanalytics.d.ts +0 -404
- package/models/operations/gettimeseriesanalytics.d.ts.map +0 -1
- package/models/operations/gettimeseriesanalytics.js.map +0 -1
- package/models/operations/gettoplinks.d.ts +0 -404
- package/models/operations/gettoplinks.d.ts.map +0 -1
- package/models/operations/gettoplinks.js.map +0 -1
- package/models/operations/gettopurls.d.ts +0 -404
- package/models/operations/gettopurls.d.ts.map +0 -1
- package/models/operations/gettopurls.js.map +0 -1
package/src/sdk/analytics.ts
CHANGED
|
@@ -10,6 +10,7 @@ import * as schemas$ from "../lib/schemas";
|
|
|
10
10
|
import { ClientSDK, RequestOptions } from "../lib/sdks";
|
|
11
11
|
import * as errors from "../models/errors";
|
|
12
12
|
import * as operations from "../models/operations";
|
|
13
|
+
import { Clicks } from "./clicks";
|
|
13
14
|
import * as z from "zod";
|
|
14
15
|
|
|
15
16
|
export class Analytics extends ClientSDK {
|
|
@@ -39,279 +40,32 @@ export class Analytics extends ClientSDK {
|
|
|
39
40
|
void this.options$;
|
|
40
41
|
}
|
|
41
42
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
* @remarks
|
|
46
|
-
* Retrieve the number of clicks for a link, a domain, or the authenticated workspace.
|
|
47
|
-
*/
|
|
48
|
-
async clicks(
|
|
49
|
-
input: operations.GetClicksAnalyticsRequest,
|
|
50
|
-
options?: RequestOptions
|
|
51
|
-
): Promise<number> {
|
|
52
|
-
const headers$ = new Headers();
|
|
53
|
-
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
54
|
-
headers$.set("Accept", "application/json");
|
|
55
|
-
|
|
56
|
-
const payload$ = schemas$.parse(
|
|
57
|
-
input,
|
|
58
|
-
(value$) => operations.GetClicksAnalyticsRequest$.outboundSchema.parse(value$),
|
|
59
|
-
"Input validation failed"
|
|
60
|
-
);
|
|
61
|
-
const body$ = null;
|
|
62
|
-
|
|
63
|
-
const path$ = this.templateURLComponent("/analytics/clicks")();
|
|
64
|
-
|
|
65
|
-
const query$ = [
|
|
66
|
-
enc$.encodeForm("browser", payload$.browser, {
|
|
67
|
-
explode: true,
|
|
68
|
-
charEncoding: "percent",
|
|
69
|
-
}),
|
|
70
|
-
enc$.encodeForm("city", payload$.city, { explode: true, charEncoding: "percent" }),
|
|
71
|
-
enc$.encodeForm("country", payload$.country, {
|
|
72
|
-
explode: true,
|
|
73
|
-
charEncoding: "percent",
|
|
74
|
-
}),
|
|
75
|
-
enc$.encodeForm("device", payload$.device, { explode: true, charEncoding: "percent" }),
|
|
76
|
-
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
|
|
77
|
-
enc$.encodeForm("externalId", payload$.externalId, {
|
|
78
|
-
explode: true,
|
|
79
|
-
charEncoding: "percent",
|
|
80
|
-
}),
|
|
81
|
-
enc$.encodeForm("interval", payload$.interval, {
|
|
82
|
-
explode: true,
|
|
83
|
-
charEncoding: "percent",
|
|
84
|
-
}),
|
|
85
|
-
enc$.encodeForm("key", payload$.key, { explode: true, charEncoding: "percent" }),
|
|
86
|
-
enc$.encodeForm("linkId", payload$.linkId, { explode: true, charEncoding: "percent" }),
|
|
87
|
-
enc$.encodeForm("os", payload$.os, { explode: true, charEncoding: "percent" }),
|
|
88
|
-
enc$.encodeForm("projectSlug", this.options$.projectSlug, {
|
|
89
|
-
explode: true,
|
|
90
|
-
charEncoding: "percent",
|
|
91
|
-
}),
|
|
92
|
-
enc$.encodeForm("qr", payload$.qr, { explode: true, charEncoding: "percent" }),
|
|
93
|
-
enc$.encodeForm("referer", payload$.referer, {
|
|
94
|
-
explode: true,
|
|
95
|
-
charEncoding: "percent",
|
|
96
|
-
}),
|
|
97
|
-
enc$.encodeForm("root", payload$.root, { explode: true, charEncoding: "percent" }),
|
|
98
|
-
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
|
|
99
|
-
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
|
|
100
|
-
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
|
|
101
|
-
explode: true,
|
|
102
|
-
charEncoding: "percent",
|
|
103
|
-
}),
|
|
104
|
-
]
|
|
105
|
-
.filter(Boolean)
|
|
106
|
-
.join("&");
|
|
107
|
-
|
|
108
|
-
let security$;
|
|
109
|
-
if (typeof this.options$.token === "function") {
|
|
110
|
-
security$ = { token: await this.options$.token() };
|
|
111
|
-
} else if (this.options$.token) {
|
|
112
|
-
security$ = { token: this.options$.token };
|
|
113
|
-
} else {
|
|
114
|
-
security$ = {};
|
|
115
|
-
}
|
|
116
|
-
const context = {
|
|
117
|
-
operationID: "getClicksAnalytics",
|
|
118
|
-
oAuth2Scopes: [],
|
|
119
|
-
securitySource: this.options$.token,
|
|
120
|
-
};
|
|
121
|
-
const securitySettings$ = this.resolveGlobalSecurity(security$);
|
|
122
|
-
|
|
123
|
-
const doOptions = {
|
|
124
|
-
context,
|
|
125
|
-
errorCodes: [
|
|
126
|
-
"400",
|
|
127
|
-
"401",
|
|
128
|
-
"403",
|
|
129
|
-
"404",
|
|
130
|
-
"409",
|
|
131
|
-
"410",
|
|
132
|
-
"422",
|
|
133
|
-
"429",
|
|
134
|
-
"4XX",
|
|
135
|
-
"500",
|
|
136
|
-
"5XX",
|
|
137
|
-
],
|
|
138
|
-
};
|
|
139
|
-
const request = this.createRequest$(
|
|
140
|
-
context,
|
|
141
|
-
{
|
|
142
|
-
security: securitySettings$,
|
|
143
|
-
method: "GET",
|
|
144
|
-
path: path$,
|
|
145
|
-
headers: headers$,
|
|
146
|
-
query: query$,
|
|
147
|
-
body: body$,
|
|
148
|
-
},
|
|
149
|
-
options
|
|
150
|
-
);
|
|
151
|
-
|
|
152
|
-
const response = await this.do$(request, doOptions);
|
|
153
|
-
|
|
154
|
-
const responseFields$ = {
|
|
155
|
-
HttpMeta: {
|
|
156
|
-
Response: response,
|
|
157
|
-
Request: request,
|
|
158
|
-
},
|
|
159
|
-
};
|
|
160
|
-
|
|
161
|
-
if (this.matchResponse(response, 200, "application/json")) {
|
|
162
|
-
const responseBody = await response.json();
|
|
163
|
-
const result = schemas$.parse(
|
|
164
|
-
responseBody,
|
|
165
|
-
(val$) => {
|
|
166
|
-
return z.number().parse(val$);
|
|
167
|
-
},
|
|
168
|
-
"Response validation failed"
|
|
169
|
-
);
|
|
170
|
-
return result;
|
|
171
|
-
} else if (this.matchResponse(response, 400, "application/json")) {
|
|
172
|
-
const responseBody = await response.json();
|
|
173
|
-
const result = schemas$.parse(
|
|
174
|
-
responseBody,
|
|
175
|
-
(val$) => {
|
|
176
|
-
return errors.BadRequest$.inboundSchema.parse({
|
|
177
|
-
...responseFields$,
|
|
178
|
-
...val$,
|
|
179
|
-
});
|
|
180
|
-
},
|
|
181
|
-
"Response validation failed"
|
|
182
|
-
);
|
|
183
|
-
throw result;
|
|
184
|
-
} else if (this.matchResponse(response, 401, "application/json")) {
|
|
185
|
-
const responseBody = await response.json();
|
|
186
|
-
const result = schemas$.parse(
|
|
187
|
-
responseBody,
|
|
188
|
-
(val$) => {
|
|
189
|
-
return errors.Unauthorized$.inboundSchema.parse({
|
|
190
|
-
...responseFields$,
|
|
191
|
-
...val$,
|
|
192
|
-
});
|
|
193
|
-
},
|
|
194
|
-
"Response validation failed"
|
|
195
|
-
);
|
|
196
|
-
throw result;
|
|
197
|
-
} else if (this.matchResponse(response, 403, "application/json")) {
|
|
198
|
-
const responseBody = await response.json();
|
|
199
|
-
const result = schemas$.parse(
|
|
200
|
-
responseBody,
|
|
201
|
-
(val$) => {
|
|
202
|
-
return errors.Forbidden$.inboundSchema.parse({
|
|
203
|
-
...responseFields$,
|
|
204
|
-
...val$,
|
|
205
|
-
});
|
|
206
|
-
},
|
|
207
|
-
"Response validation failed"
|
|
208
|
-
);
|
|
209
|
-
throw result;
|
|
210
|
-
} else if (this.matchResponse(response, 404, "application/json")) {
|
|
211
|
-
const responseBody = await response.json();
|
|
212
|
-
const result = schemas$.parse(
|
|
213
|
-
responseBody,
|
|
214
|
-
(val$) => {
|
|
215
|
-
return errors.NotFound$.inboundSchema.parse({
|
|
216
|
-
...responseFields$,
|
|
217
|
-
...val$,
|
|
218
|
-
});
|
|
219
|
-
},
|
|
220
|
-
"Response validation failed"
|
|
221
|
-
);
|
|
222
|
-
throw result;
|
|
223
|
-
} else if (this.matchResponse(response, 409, "application/json")) {
|
|
224
|
-
const responseBody = await response.json();
|
|
225
|
-
const result = schemas$.parse(
|
|
226
|
-
responseBody,
|
|
227
|
-
(val$) => {
|
|
228
|
-
return errors.Conflict$.inboundSchema.parse({
|
|
229
|
-
...responseFields$,
|
|
230
|
-
...val$,
|
|
231
|
-
});
|
|
232
|
-
},
|
|
233
|
-
"Response validation failed"
|
|
234
|
-
);
|
|
235
|
-
throw result;
|
|
236
|
-
} else if (this.matchResponse(response, 410, "application/json")) {
|
|
237
|
-
const responseBody = await response.json();
|
|
238
|
-
const result = schemas$.parse(
|
|
239
|
-
responseBody,
|
|
240
|
-
(val$) => {
|
|
241
|
-
return errors.InviteExpired$.inboundSchema.parse({
|
|
242
|
-
...responseFields$,
|
|
243
|
-
...val$,
|
|
244
|
-
});
|
|
245
|
-
},
|
|
246
|
-
"Response validation failed"
|
|
247
|
-
);
|
|
248
|
-
throw result;
|
|
249
|
-
} else if (this.matchResponse(response, 422, "application/json")) {
|
|
250
|
-
const responseBody = await response.json();
|
|
251
|
-
const result = schemas$.parse(
|
|
252
|
-
responseBody,
|
|
253
|
-
(val$) => {
|
|
254
|
-
return errors.UnprocessableEntity$.inboundSchema.parse({
|
|
255
|
-
...responseFields$,
|
|
256
|
-
...val$,
|
|
257
|
-
});
|
|
258
|
-
},
|
|
259
|
-
"Response validation failed"
|
|
260
|
-
);
|
|
261
|
-
throw result;
|
|
262
|
-
} else if (this.matchResponse(response, 429, "application/json")) {
|
|
263
|
-
const responseBody = await response.json();
|
|
264
|
-
const result = schemas$.parse(
|
|
265
|
-
responseBody,
|
|
266
|
-
(val$) => {
|
|
267
|
-
return errors.RateLimitExceeded$.inboundSchema.parse({
|
|
268
|
-
...responseFields$,
|
|
269
|
-
...val$,
|
|
270
|
-
});
|
|
271
|
-
},
|
|
272
|
-
"Response validation failed"
|
|
273
|
-
);
|
|
274
|
-
throw result;
|
|
275
|
-
} else if (this.matchResponse(response, 500, "application/json")) {
|
|
276
|
-
const responseBody = await response.json();
|
|
277
|
-
const result = schemas$.parse(
|
|
278
|
-
responseBody,
|
|
279
|
-
(val$) => {
|
|
280
|
-
return errors.InternalServerError$.inboundSchema.parse({
|
|
281
|
-
...responseFields$,
|
|
282
|
-
...val$,
|
|
283
|
-
});
|
|
284
|
-
},
|
|
285
|
-
"Response validation failed"
|
|
286
|
-
);
|
|
287
|
-
throw result;
|
|
288
|
-
} else {
|
|
289
|
-
const responseBody = await response.text();
|
|
290
|
-
throw new errors.SDKError(
|
|
291
|
-
"Unexpected API response status or content-type",
|
|
292
|
-
response,
|
|
293
|
-
responseBody
|
|
294
|
-
);
|
|
295
|
-
}
|
|
43
|
+
private _clicks?: Clicks;
|
|
44
|
+
get clicks(): Clicks {
|
|
45
|
+
return (this._clicks ??= new Clicks(this.options$));
|
|
296
46
|
}
|
|
297
47
|
|
|
298
48
|
/**
|
|
299
|
-
* Retrieve timeseries analytics
|
|
49
|
+
* Retrieve timeseries click analytics
|
|
300
50
|
*
|
|
301
51
|
* @remarks
|
|
302
|
-
* Retrieve
|
|
52
|
+
* Retrieve timeseries click analytics for a link, a domain, or the authenticated workspace over a period of time.
|
|
53
|
+
*
|
|
54
|
+
* @deprecated method: This method is deprecated. Use dub.analytics.clicks.timeseries instead.. Use timeseries instead.
|
|
303
55
|
*/
|
|
304
56
|
async timeseries(
|
|
305
|
-
|
|
57
|
+
request?: operations.GetTimeseriesByClicksDeprecatedRequest | undefined,
|
|
306
58
|
options?: RequestOptions
|
|
307
|
-
): Promise<Array<operations.
|
|
59
|
+
): Promise<Array<operations.GetTimeseriesByClicksDeprecatedResponseBody>> {
|
|
60
|
+
const input$ = typeof request === "undefined" ? {} : request;
|
|
308
61
|
const headers$ = new Headers();
|
|
309
62
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
310
63
|
headers$.set("Accept", "application/json");
|
|
311
64
|
|
|
312
65
|
const payload$ = schemas$.parse(
|
|
313
|
-
input
|
|
314
|
-
(value$) =>
|
|
66
|
+
input$,
|
|
67
|
+
(value$) =>
|
|
68
|
+
operations.GetTimeseriesByClicksDeprecatedRequest$.outboundSchema.parse(value$),
|
|
315
69
|
"Input validation failed"
|
|
316
70
|
);
|
|
317
71
|
const body$ = null;
|
|
@@ -330,6 +84,7 @@ export class Analytics extends ClientSDK {
|
|
|
330
84
|
}),
|
|
331
85
|
enc$.encodeForm("device", payload$.device, { explode: true, charEncoding: "percent" }),
|
|
332
86
|
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
|
|
87
|
+
enc$.encodeForm("end", payload$.end, { explode: true, charEncoding: "percent" }),
|
|
333
88
|
enc$.encodeForm("externalId", payload$.externalId, {
|
|
334
89
|
explode: true,
|
|
335
90
|
charEncoding: "percent",
|
|
@@ -351,6 +106,7 @@ export class Analytics extends ClientSDK {
|
|
|
351
106
|
charEncoding: "percent",
|
|
352
107
|
}),
|
|
353
108
|
enc$.encodeForm("root", payload$.root, { explode: true, charEncoding: "percent" }),
|
|
109
|
+
enc$.encodeForm("start", payload$.start, { explode: true, charEncoding: "percent" }),
|
|
354
110
|
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
|
|
355
111
|
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
|
|
356
112
|
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
|
|
@@ -370,7 +126,7 @@ export class Analytics extends ClientSDK {
|
|
|
370
126
|
security$ = {};
|
|
371
127
|
}
|
|
372
128
|
const context = {
|
|
373
|
-
operationID: "
|
|
129
|
+
operationID: "getTimeseriesByClicksDeprecated",
|
|
374
130
|
oAuth2Scopes: [],
|
|
375
131
|
securitySource: this.options$.token,
|
|
376
132
|
};
|
|
@@ -392,7 +148,7 @@ export class Analytics extends ClientSDK {
|
|
|
392
148
|
"5XX",
|
|
393
149
|
],
|
|
394
150
|
};
|
|
395
|
-
const request = this.createRequest$(
|
|
151
|
+
const request$ = this.createRequest$(
|
|
396
152
|
context,
|
|
397
153
|
{
|
|
398
154
|
security: securitySettings$,
|
|
@@ -405,12 +161,12 @@ export class Analytics extends ClientSDK {
|
|
|
405
161
|
options
|
|
406
162
|
);
|
|
407
163
|
|
|
408
|
-
const response = await this.do$(request
|
|
164
|
+
const response = await this.do$(request$, doOptions);
|
|
409
165
|
|
|
410
166
|
const responseFields$ = {
|
|
411
167
|
HttpMeta: {
|
|
412
168
|
Response: response,
|
|
413
|
-
Request: request
|
|
169
|
+
Request: request$,
|
|
414
170
|
},
|
|
415
171
|
};
|
|
416
172
|
|
|
@@ -419,7 +175,11 @@ export class Analytics extends ClientSDK {
|
|
|
419
175
|
const result = schemas$.parse(
|
|
420
176
|
responseBody,
|
|
421
177
|
(val$) => {
|
|
422
|
-
return z
|
|
178
|
+
return z
|
|
179
|
+
.array(
|
|
180
|
+
operations.GetTimeseriesByClicksDeprecatedResponseBody$.inboundSchema
|
|
181
|
+
)
|
|
182
|
+
.parse(val$);
|
|
423
183
|
},
|
|
424
184
|
"Response validation failed"
|
|
425
185
|
);
|
|
@@ -552,22 +312,26 @@ export class Analytics extends ClientSDK {
|
|
|
552
312
|
}
|
|
553
313
|
|
|
554
314
|
/**
|
|
555
|
-
* Retrieve
|
|
315
|
+
* Retrieve top countries by clicks
|
|
556
316
|
*
|
|
557
317
|
* @remarks
|
|
558
318
|
* Retrieve the top countries by number of clicks for a link, a domain, or the authenticated workspace.
|
|
319
|
+
*
|
|
320
|
+
* @deprecated method: This method is deprecated. Use dub.analytics.clicks.countries instead.. Use countries instead.
|
|
559
321
|
*/
|
|
560
|
-
async
|
|
561
|
-
|
|
322
|
+
async country(
|
|
323
|
+
request?: operations.GetCountriesByClicksDeprecatedRequest | undefined,
|
|
562
324
|
options?: RequestOptions
|
|
563
|
-
): Promise<Array<operations.
|
|
325
|
+
): Promise<Array<operations.GetCountriesByClicksDeprecatedResponseBody>> {
|
|
326
|
+
const input$ = typeof request === "undefined" ? {} : request;
|
|
564
327
|
const headers$ = new Headers();
|
|
565
328
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
566
329
|
headers$.set("Accept", "application/json");
|
|
567
330
|
|
|
568
331
|
const payload$ = schemas$.parse(
|
|
569
|
-
input
|
|
570
|
-
(value$) =>
|
|
332
|
+
input$,
|
|
333
|
+
(value$) =>
|
|
334
|
+
operations.GetCountriesByClicksDeprecatedRequest$.outboundSchema.parse(value$),
|
|
571
335
|
"Input validation failed"
|
|
572
336
|
);
|
|
573
337
|
const body$ = null;
|
|
@@ -586,6 +350,7 @@ export class Analytics extends ClientSDK {
|
|
|
586
350
|
}),
|
|
587
351
|
enc$.encodeForm("device", payload$.device, { explode: true, charEncoding: "percent" }),
|
|
588
352
|
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
|
|
353
|
+
enc$.encodeForm("end", payload$.end, { explode: true, charEncoding: "percent" }),
|
|
589
354
|
enc$.encodeForm("externalId", payload$.externalId, {
|
|
590
355
|
explode: true,
|
|
591
356
|
charEncoding: "percent",
|
|
@@ -607,6 +372,7 @@ export class Analytics extends ClientSDK {
|
|
|
607
372
|
charEncoding: "percent",
|
|
608
373
|
}),
|
|
609
374
|
enc$.encodeForm("root", payload$.root, { explode: true, charEncoding: "percent" }),
|
|
375
|
+
enc$.encodeForm("start", payload$.start, { explode: true, charEncoding: "percent" }),
|
|
610
376
|
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
|
|
611
377
|
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
|
|
612
378
|
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
|
|
@@ -626,7 +392,7 @@ export class Analytics extends ClientSDK {
|
|
|
626
392
|
security$ = {};
|
|
627
393
|
}
|
|
628
394
|
const context = {
|
|
629
|
-
operationID: "
|
|
395
|
+
operationID: "getCountriesByClicksDeprecated",
|
|
630
396
|
oAuth2Scopes: [],
|
|
631
397
|
securitySource: this.options$.token,
|
|
632
398
|
};
|
|
@@ -648,7 +414,7 @@ export class Analytics extends ClientSDK {
|
|
|
648
414
|
"5XX",
|
|
649
415
|
],
|
|
650
416
|
};
|
|
651
|
-
const request = this.createRequest$(
|
|
417
|
+
const request$ = this.createRequest$(
|
|
652
418
|
context,
|
|
653
419
|
{
|
|
654
420
|
security: securitySettings$,
|
|
@@ -661,12 +427,12 @@ export class Analytics extends ClientSDK {
|
|
|
661
427
|
options
|
|
662
428
|
);
|
|
663
429
|
|
|
664
|
-
const response = await this.do$(request
|
|
430
|
+
const response = await this.do$(request$, doOptions);
|
|
665
431
|
|
|
666
432
|
const responseFields$ = {
|
|
667
433
|
HttpMeta: {
|
|
668
434
|
Response: response,
|
|
669
|
-
Request: request
|
|
435
|
+
Request: request$,
|
|
670
436
|
},
|
|
671
437
|
};
|
|
672
438
|
|
|
@@ -676,7 +442,7 @@ export class Analytics extends ClientSDK {
|
|
|
676
442
|
responseBody,
|
|
677
443
|
(val$) => {
|
|
678
444
|
return z
|
|
679
|
-
.array(operations.
|
|
445
|
+
.array(operations.GetCountriesByClicksDeprecatedResponseBody$.inboundSchema)
|
|
680
446
|
.parse(val$);
|
|
681
447
|
},
|
|
682
448
|
"Response validation failed"
|
|
@@ -810,22 +576,25 @@ export class Analytics extends ClientSDK {
|
|
|
810
576
|
}
|
|
811
577
|
|
|
812
578
|
/**
|
|
813
|
-
* Retrieve
|
|
579
|
+
* Retrieve top cities by clicks
|
|
814
580
|
*
|
|
815
581
|
* @remarks
|
|
816
582
|
* Retrieve the top countries by number of clicks for a link, a domain, or the authenticated workspace.
|
|
583
|
+
*
|
|
584
|
+
* @deprecated method: This method is deprecated. Use dub.analytics.clicks.cities instead.. Use cities instead.
|
|
817
585
|
*/
|
|
818
|
-
async
|
|
819
|
-
|
|
586
|
+
async city(
|
|
587
|
+
request?: operations.GetCitiesByClicksDeprecatedRequest | undefined,
|
|
820
588
|
options?: RequestOptions
|
|
821
|
-
): Promise<Array<operations.
|
|
589
|
+
): Promise<Array<operations.GetCitiesByClicksDeprecatedResponseBody>> {
|
|
590
|
+
const input$ = typeof request === "undefined" ? {} : request;
|
|
822
591
|
const headers$ = new Headers();
|
|
823
592
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
824
593
|
headers$.set("Accept", "application/json");
|
|
825
594
|
|
|
826
595
|
const payload$ = schemas$.parse(
|
|
827
|
-
input
|
|
828
|
-
(value$) => operations.
|
|
596
|
+
input$,
|
|
597
|
+
(value$) => operations.GetCitiesByClicksDeprecatedRequest$.outboundSchema.parse(value$),
|
|
829
598
|
"Input validation failed"
|
|
830
599
|
);
|
|
831
600
|
const body$ = null;
|
|
@@ -844,6 +613,7 @@ export class Analytics extends ClientSDK {
|
|
|
844
613
|
}),
|
|
845
614
|
enc$.encodeForm("device", payload$.device, { explode: true, charEncoding: "percent" }),
|
|
846
615
|
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
|
|
616
|
+
enc$.encodeForm("end", payload$.end, { explode: true, charEncoding: "percent" }),
|
|
847
617
|
enc$.encodeForm("externalId", payload$.externalId, {
|
|
848
618
|
explode: true,
|
|
849
619
|
charEncoding: "percent",
|
|
@@ -865,6 +635,7 @@ export class Analytics extends ClientSDK {
|
|
|
865
635
|
charEncoding: "percent",
|
|
866
636
|
}),
|
|
867
637
|
enc$.encodeForm("root", payload$.root, { explode: true, charEncoding: "percent" }),
|
|
638
|
+
enc$.encodeForm("start", payload$.start, { explode: true, charEncoding: "percent" }),
|
|
868
639
|
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
|
|
869
640
|
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
|
|
870
641
|
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
|
|
@@ -884,7 +655,7 @@ export class Analytics extends ClientSDK {
|
|
|
884
655
|
security$ = {};
|
|
885
656
|
}
|
|
886
657
|
const context = {
|
|
887
|
-
operationID: "
|
|
658
|
+
operationID: "getCitiesByClicksDeprecated",
|
|
888
659
|
oAuth2Scopes: [],
|
|
889
660
|
securitySource: this.options$.token,
|
|
890
661
|
};
|
|
@@ -906,7 +677,7 @@ export class Analytics extends ClientSDK {
|
|
|
906
677
|
"5XX",
|
|
907
678
|
],
|
|
908
679
|
};
|
|
909
|
-
const request = this.createRequest$(
|
|
680
|
+
const request$ = this.createRequest$(
|
|
910
681
|
context,
|
|
911
682
|
{
|
|
912
683
|
security: securitySettings$,
|
|
@@ -919,12 +690,12 @@ export class Analytics extends ClientSDK {
|
|
|
919
690
|
options
|
|
920
691
|
);
|
|
921
692
|
|
|
922
|
-
const response = await this.do$(request
|
|
693
|
+
const response = await this.do$(request$, doOptions);
|
|
923
694
|
|
|
924
695
|
const responseFields$ = {
|
|
925
696
|
HttpMeta: {
|
|
926
697
|
Response: response,
|
|
927
|
-
Request: request
|
|
698
|
+
Request: request$,
|
|
928
699
|
},
|
|
929
700
|
};
|
|
930
701
|
|
|
@@ -934,7 +705,7 @@ export class Analytics extends ClientSDK {
|
|
|
934
705
|
responseBody,
|
|
935
706
|
(val$) => {
|
|
936
707
|
return z
|
|
937
|
-
.array(operations.
|
|
708
|
+
.array(operations.GetCitiesByClicksDeprecatedResponseBody$.inboundSchema)
|
|
938
709
|
.parse(val$);
|
|
939
710
|
},
|
|
940
711
|
"Response validation failed"
|
|
@@ -1068,22 +839,26 @@ export class Analytics extends ClientSDK {
|
|
|
1068
839
|
}
|
|
1069
840
|
|
|
1070
841
|
/**
|
|
1071
|
-
* Retrieve
|
|
842
|
+
* Retrieve top devices by clicks
|
|
1072
843
|
*
|
|
1073
844
|
* @remarks
|
|
1074
845
|
* Retrieve the top devices by number of clicks for a link, a domain, or the authenticated workspace.
|
|
846
|
+
*
|
|
847
|
+
* @deprecated method: This method is deprecated. Use dub.analytics.clicks.devices instead.. Use devices instead.
|
|
1075
848
|
*/
|
|
1076
|
-
async
|
|
1077
|
-
|
|
849
|
+
async device(
|
|
850
|
+
request?: operations.GetDevicesByClicksDeprecatedRequest | undefined,
|
|
1078
851
|
options?: RequestOptions
|
|
1079
|
-
): Promise<Array<operations.
|
|
852
|
+
): Promise<Array<operations.GetDevicesByClicksDeprecatedResponseBody>> {
|
|
853
|
+
const input$ = typeof request === "undefined" ? {} : request;
|
|
1080
854
|
const headers$ = new Headers();
|
|
1081
855
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
1082
856
|
headers$.set("Accept", "application/json");
|
|
1083
857
|
|
|
1084
858
|
const payload$ = schemas$.parse(
|
|
1085
|
-
input
|
|
1086
|
-
(value$) =>
|
|
859
|
+
input$,
|
|
860
|
+
(value$) =>
|
|
861
|
+
operations.GetDevicesByClicksDeprecatedRequest$.outboundSchema.parse(value$),
|
|
1087
862
|
"Input validation failed"
|
|
1088
863
|
);
|
|
1089
864
|
const body$ = null;
|
|
@@ -1102,6 +877,7 @@ export class Analytics extends ClientSDK {
|
|
|
1102
877
|
}),
|
|
1103
878
|
enc$.encodeForm("device", payload$.device, { explode: true, charEncoding: "percent" }),
|
|
1104
879
|
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
|
|
880
|
+
enc$.encodeForm("end", payload$.end, { explode: true, charEncoding: "percent" }),
|
|
1105
881
|
enc$.encodeForm("externalId", payload$.externalId, {
|
|
1106
882
|
explode: true,
|
|
1107
883
|
charEncoding: "percent",
|
|
@@ -1123,6 +899,7 @@ export class Analytics extends ClientSDK {
|
|
|
1123
899
|
charEncoding: "percent",
|
|
1124
900
|
}),
|
|
1125
901
|
enc$.encodeForm("root", payload$.root, { explode: true, charEncoding: "percent" }),
|
|
902
|
+
enc$.encodeForm("start", payload$.start, { explode: true, charEncoding: "percent" }),
|
|
1126
903
|
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
|
|
1127
904
|
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
|
|
1128
905
|
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
|
|
@@ -1142,7 +919,7 @@ export class Analytics extends ClientSDK {
|
|
|
1142
919
|
security$ = {};
|
|
1143
920
|
}
|
|
1144
921
|
const context = {
|
|
1145
|
-
operationID: "
|
|
922
|
+
operationID: "getDevicesByClicksDeprecated",
|
|
1146
923
|
oAuth2Scopes: [],
|
|
1147
924
|
securitySource: this.options$.token,
|
|
1148
925
|
};
|
|
@@ -1164,7 +941,7 @@ export class Analytics extends ClientSDK {
|
|
|
1164
941
|
"5XX",
|
|
1165
942
|
],
|
|
1166
943
|
};
|
|
1167
|
-
const request = this.createRequest$(
|
|
944
|
+
const request$ = this.createRequest$(
|
|
1168
945
|
context,
|
|
1169
946
|
{
|
|
1170
947
|
security: securitySettings$,
|
|
@@ -1177,12 +954,12 @@ export class Analytics extends ClientSDK {
|
|
|
1177
954
|
options
|
|
1178
955
|
);
|
|
1179
956
|
|
|
1180
|
-
const response = await this.do$(request
|
|
957
|
+
const response = await this.do$(request$, doOptions);
|
|
1181
958
|
|
|
1182
959
|
const responseFields$ = {
|
|
1183
960
|
HttpMeta: {
|
|
1184
961
|
Response: response,
|
|
1185
|
-
Request: request
|
|
962
|
+
Request: request$,
|
|
1186
963
|
},
|
|
1187
964
|
};
|
|
1188
965
|
|
|
@@ -1192,7 +969,7 @@ export class Analytics extends ClientSDK {
|
|
|
1192
969
|
responseBody,
|
|
1193
970
|
(val$) => {
|
|
1194
971
|
return z
|
|
1195
|
-
.array(operations.
|
|
972
|
+
.array(operations.GetDevicesByClicksDeprecatedResponseBody$.inboundSchema)
|
|
1196
973
|
.parse(val$);
|
|
1197
974
|
},
|
|
1198
975
|
"Response validation failed"
|
|
@@ -1326,22 +1103,26 @@ export class Analytics extends ClientSDK {
|
|
|
1326
1103
|
}
|
|
1327
1104
|
|
|
1328
1105
|
/**
|
|
1329
|
-
* Retrieve
|
|
1106
|
+
* Retrieve top browsers by clicks
|
|
1330
1107
|
*
|
|
1331
1108
|
* @remarks
|
|
1332
1109
|
* Retrieve the top browsers by number of clicks for a link, a domain, or the authenticated workspace.
|
|
1110
|
+
*
|
|
1111
|
+
* @deprecated method: This method is deprecated. Use dub.analytics.clicks.browsers instead.. Use browsers instead.
|
|
1333
1112
|
*/
|
|
1334
|
-
async
|
|
1335
|
-
|
|
1113
|
+
async browser(
|
|
1114
|
+
request?: operations.GetBrowsersByClicksDeprecatedRequest | undefined,
|
|
1336
1115
|
options?: RequestOptions
|
|
1337
|
-
): Promise<Array<operations.
|
|
1116
|
+
): Promise<Array<operations.GetBrowsersByClicksDeprecatedResponseBody>> {
|
|
1117
|
+
const input$ = typeof request === "undefined" ? {} : request;
|
|
1338
1118
|
const headers$ = new Headers();
|
|
1339
1119
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
1340
1120
|
headers$.set("Accept", "application/json");
|
|
1341
1121
|
|
|
1342
1122
|
const payload$ = schemas$.parse(
|
|
1343
|
-
input
|
|
1344
|
-
(value$) =>
|
|
1123
|
+
input$,
|
|
1124
|
+
(value$) =>
|
|
1125
|
+
operations.GetBrowsersByClicksDeprecatedRequest$.outboundSchema.parse(value$),
|
|
1345
1126
|
"Input validation failed"
|
|
1346
1127
|
);
|
|
1347
1128
|
const body$ = null;
|
|
@@ -1360,6 +1141,7 @@ export class Analytics extends ClientSDK {
|
|
|
1360
1141
|
}),
|
|
1361
1142
|
enc$.encodeForm("device", payload$.device, { explode: true, charEncoding: "percent" }),
|
|
1362
1143
|
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
|
|
1144
|
+
enc$.encodeForm("end", payload$.end, { explode: true, charEncoding: "percent" }),
|
|
1363
1145
|
enc$.encodeForm("externalId", payload$.externalId, {
|
|
1364
1146
|
explode: true,
|
|
1365
1147
|
charEncoding: "percent",
|
|
@@ -1381,6 +1163,7 @@ export class Analytics extends ClientSDK {
|
|
|
1381
1163
|
charEncoding: "percent",
|
|
1382
1164
|
}),
|
|
1383
1165
|
enc$.encodeForm("root", payload$.root, { explode: true, charEncoding: "percent" }),
|
|
1166
|
+
enc$.encodeForm("start", payload$.start, { explode: true, charEncoding: "percent" }),
|
|
1384
1167
|
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
|
|
1385
1168
|
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
|
|
1386
1169
|
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
|
|
@@ -1400,7 +1183,7 @@ export class Analytics extends ClientSDK {
|
|
|
1400
1183
|
security$ = {};
|
|
1401
1184
|
}
|
|
1402
1185
|
const context = {
|
|
1403
|
-
operationID: "
|
|
1186
|
+
operationID: "getBrowsersByClicksDeprecated",
|
|
1404
1187
|
oAuth2Scopes: [],
|
|
1405
1188
|
securitySource: this.options$.token,
|
|
1406
1189
|
};
|
|
@@ -1422,7 +1205,7 @@ export class Analytics extends ClientSDK {
|
|
|
1422
1205
|
"5XX",
|
|
1423
1206
|
],
|
|
1424
1207
|
};
|
|
1425
|
-
const request = this.createRequest$(
|
|
1208
|
+
const request$ = this.createRequest$(
|
|
1426
1209
|
context,
|
|
1427
1210
|
{
|
|
1428
1211
|
security: securitySettings$,
|
|
@@ -1435,12 +1218,12 @@ export class Analytics extends ClientSDK {
|
|
|
1435
1218
|
options
|
|
1436
1219
|
);
|
|
1437
1220
|
|
|
1438
|
-
const response = await this.do$(request
|
|
1221
|
+
const response = await this.do$(request$, doOptions);
|
|
1439
1222
|
|
|
1440
1223
|
const responseFields$ = {
|
|
1441
1224
|
HttpMeta: {
|
|
1442
1225
|
Response: response,
|
|
1443
|
-
Request: request
|
|
1226
|
+
Request: request$,
|
|
1444
1227
|
},
|
|
1445
1228
|
};
|
|
1446
1229
|
|
|
@@ -1450,7 +1233,7 @@ export class Analytics extends ClientSDK {
|
|
|
1450
1233
|
responseBody,
|
|
1451
1234
|
(val$) => {
|
|
1452
1235
|
return z
|
|
1453
|
-
.array(operations.
|
|
1236
|
+
.array(operations.GetBrowsersByClicksDeprecatedResponseBody$.inboundSchema)
|
|
1454
1237
|
.parse(val$);
|
|
1455
1238
|
},
|
|
1456
1239
|
"Response validation failed"
|
|
@@ -1584,22 +1367,25 @@ export class Analytics extends ClientSDK {
|
|
|
1584
1367
|
}
|
|
1585
1368
|
|
|
1586
1369
|
/**
|
|
1587
|
-
* Retrieve OS
|
|
1370
|
+
* Retrieve top OS by clicks
|
|
1588
1371
|
*
|
|
1589
1372
|
* @remarks
|
|
1590
1373
|
* Retrieve the top OS by number of clicks for a link, a domain, or the authenticated workspace.
|
|
1374
|
+
*
|
|
1375
|
+
* @deprecated method: This method is deprecated. Use dub.analytics.clicks.os instead.. Use os instead.
|
|
1591
1376
|
*/
|
|
1592
1377
|
async os(
|
|
1593
|
-
|
|
1378
|
+
request?: operations.GetOSByClicksDeprecatedRequest | undefined,
|
|
1594
1379
|
options?: RequestOptions
|
|
1595
|
-
): Promise<Array<operations.
|
|
1380
|
+
): Promise<Array<operations.GetOSByClicksDeprecatedResponseBody>> {
|
|
1381
|
+
const input$ = typeof request === "undefined" ? {} : request;
|
|
1596
1382
|
const headers$ = new Headers();
|
|
1597
1383
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
1598
1384
|
headers$.set("Accept", "application/json");
|
|
1599
1385
|
|
|
1600
1386
|
const payload$ = schemas$.parse(
|
|
1601
|
-
input
|
|
1602
|
-
(value$) => operations.
|
|
1387
|
+
input$,
|
|
1388
|
+
(value$) => operations.GetOSByClicksDeprecatedRequest$.outboundSchema.parse(value$),
|
|
1603
1389
|
"Input validation failed"
|
|
1604
1390
|
);
|
|
1605
1391
|
const body$ = null;
|
|
@@ -1618,6 +1404,7 @@ export class Analytics extends ClientSDK {
|
|
|
1618
1404
|
}),
|
|
1619
1405
|
enc$.encodeForm("device", payload$.device, { explode: true, charEncoding: "percent" }),
|
|
1620
1406
|
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
|
|
1407
|
+
enc$.encodeForm("end", payload$.end, { explode: true, charEncoding: "percent" }),
|
|
1621
1408
|
enc$.encodeForm("externalId", payload$.externalId, {
|
|
1622
1409
|
explode: true,
|
|
1623
1410
|
charEncoding: "percent",
|
|
@@ -1639,6 +1426,7 @@ export class Analytics extends ClientSDK {
|
|
|
1639
1426
|
charEncoding: "percent",
|
|
1640
1427
|
}),
|
|
1641
1428
|
enc$.encodeForm("root", payload$.root, { explode: true, charEncoding: "percent" }),
|
|
1429
|
+
enc$.encodeForm("start", payload$.start, { explode: true, charEncoding: "percent" }),
|
|
1642
1430
|
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
|
|
1643
1431
|
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
|
|
1644
1432
|
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
|
|
@@ -1658,7 +1446,7 @@ export class Analytics extends ClientSDK {
|
|
|
1658
1446
|
security$ = {};
|
|
1659
1447
|
}
|
|
1660
1448
|
const context = {
|
|
1661
|
-
operationID: "
|
|
1449
|
+
operationID: "getOSByClicksDeprecated",
|
|
1662
1450
|
oAuth2Scopes: [],
|
|
1663
1451
|
securitySource: this.options$.token,
|
|
1664
1452
|
};
|
|
@@ -1680,7 +1468,7 @@ export class Analytics extends ClientSDK {
|
|
|
1680
1468
|
"5XX",
|
|
1681
1469
|
],
|
|
1682
1470
|
};
|
|
1683
|
-
const request = this.createRequest$(
|
|
1471
|
+
const request$ = this.createRequest$(
|
|
1684
1472
|
context,
|
|
1685
1473
|
{
|
|
1686
1474
|
security: securitySettings$,
|
|
@@ -1693,12 +1481,12 @@ export class Analytics extends ClientSDK {
|
|
|
1693
1481
|
options
|
|
1694
1482
|
);
|
|
1695
1483
|
|
|
1696
|
-
const response = await this.do$(request
|
|
1484
|
+
const response = await this.do$(request$, doOptions);
|
|
1697
1485
|
|
|
1698
1486
|
const responseFields$ = {
|
|
1699
1487
|
HttpMeta: {
|
|
1700
1488
|
Response: response,
|
|
1701
|
-
Request: request
|
|
1489
|
+
Request: request$,
|
|
1702
1490
|
},
|
|
1703
1491
|
};
|
|
1704
1492
|
|
|
@@ -1708,7 +1496,7 @@ export class Analytics extends ClientSDK {
|
|
|
1708
1496
|
responseBody,
|
|
1709
1497
|
(val$) => {
|
|
1710
1498
|
return z
|
|
1711
|
-
.array(operations.
|
|
1499
|
+
.array(operations.GetOSByClicksDeprecatedResponseBody$.inboundSchema)
|
|
1712
1500
|
.parse(val$);
|
|
1713
1501
|
},
|
|
1714
1502
|
"Response validation failed"
|
|
@@ -1842,22 +1630,26 @@ export class Analytics extends ClientSDK {
|
|
|
1842
1630
|
}
|
|
1843
1631
|
|
|
1844
1632
|
/**
|
|
1845
|
-
* Retrieve
|
|
1633
|
+
* Retrieve top referers by clicks
|
|
1846
1634
|
*
|
|
1847
1635
|
* @remarks
|
|
1848
1636
|
* Retrieve the top referers by number of clicks for a link, a domain, or the authenticated workspace.
|
|
1637
|
+
*
|
|
1638
|
+
* @deprecated method: This method is deprecated. Use dub.analytics.clicks.referers instead.. Use referers instead.
|
|
1849
1639
|
*/
|
|
1850
|
-
async
|
|
1851
|
-
|
|
1640
|
+
async referer(
|
|
1641
|
+
request?: operations.GetReferersByClicksDeprecatedRequest | undefined,
|
|
1852
1642
|
options?: RequestOptions
|
|
1853
|
-
): Promise<Array<operations.
|
|
1643
|
+
): Promise<Array<operations.GetReferersByClicksDeprecatedResponseBody>> {
|
|
1644
|
+
const input$ = typeof request === "undefined" ? {} : request;
|
|
1854
1645
|
const headers$ = new Headers();
|
|
1855
1646
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
1856
1647
|
headers$.set("Accept", "application/json");
|
|
1857
1648
|
|
|
1858
1649
|
const payload$ = schemas$.parse(
|
|
1859
|
-
input
|
|
1860
|
-
(value$) =>
|
|
1650
|
+
input$,
|
|
1651
|
+
(value$) =>
|
|
1652
|
+
operations.GetReferersByClicksDeprecatedRequest$.outboundSchema.parse(value$),
|
|
1861
1653
|
"Input validation failed"
|
|
1862
1654
|
);
|
|
1863
1655
|
const body$ = null;
|
|
@@ -1876,6 +1668,7 @@ export class Analytics extends ClientSDK {
|
|
|
1876
1668
|
}),
|
|
1877
1669
|
enc$.encodeForm("device", payload$.device, { explode: true, charEncoding: "percent" }),
|
|
1878
1670
|
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
|
|
1671
|
+
enc$.encodeForm("end", payload$.end, { explode: true, charEncoding: "percent" }),
|
|
1879
1672
|
enc$.encodeForm("externalId", payload$.externalId, {
|
|
1880
1673
|
explode: true,
|
|
1881
1674
|
charEncoding: "percent",
|
|
@@ -1897,6 +1690,7 @@ export class Analytics extends ClientSDK {
|
|
|
1897
1690
|
charEncoding: "percent",
|
|
1898
1691
|
}),
|
|
1899
1692
|
enc$.encodeForm("root", payload$.root, { explode: true, charEncoding: "percent" }),
|
|
1693
|
+
enc$.encodeForm("start", payload$.start, { explode: true, charEncoding: "percent" }),
|
|
1900
1694
|
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
|
|
1901
1695
|
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
|
|
1902
1696
|
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
|
|
@@ -1916,7 +1710,7 @@ export class Analytics extends ClientSDK {
|
|
|
1916
1710
|
security$ = {};
|
|
1917
1711
|
}
|
|
1918
1712
|
const context = {
|
|
1919
|
-
operationID: "
|
|
1713
|
+
operationID: "getReferersByClicksDeprecated",
|
|
1920
1714
|
oAuth2Scopes: [],
|
|
1921
1715
|
securitySource: this.options$.token,
|
|
1922
1716
|
};
|
|
@@ -1938,7 +1732,7 @@ export class Analytics extends ClientSDK {
|
|
|
1938
1732
|
"5XX",
|
|
1939
1733
|
],
|
|
1940
1734
|
};
|
|
1941
|
-
const request = this.createRequest$(
|
|
1735
|
+
const request$ = this.createRequest$(
|
|
1942
1736
|
context,
|
|
1943
1737
|
{
|
|
1944
1738
|
security: securitySettings$,
|
|
@@ -1951,12 +1745,12 @@ export class Analytics extends ClientSDK {
|
|
|
1951
1745
|
options
|
|
1952
1746
|
);
|
|
1953
1747
|
|
|
1954
|
-
const response = await this.do$(request
|
|
1748
|
+
const response = await this.do$(request$, doOptions);
|
|
1955
1749
|
|
|
1956
1750
|
const responseFields$ = {
|
|
1957
1751
|
HttpMeta: {
|
|
1958
1752
|
Response: response,
|
|
1959
|
-
Request: request
|
|
1753
|
+
Request: request$,
|
|
1960
1754
|
},
|
|
1961
1755
|
};
|
|
1962
1756
|
|
|
@@ -1966,7 +1760,7 @@ export class Analytics extends ClientSDK {
|
|
|
1966
1760
|
responseBody,
|
|
1967
1761
|
(val$) => {
|
|
1968
1762
|
return z
|
|
1969
|
-
.array(operations.
|
|
1763
|
+
.array(operations.GetReferersByClicksDeprecatedResponseBody$.inboundSchema)
|
|
1970
1764
|
.parse(val$);
|
|
1971
1765
|
},
|
|
1972
1766
|
"Response validation failed"
|
|
@@ -2100,22 +1894,26 @@ export class Analytics extends ClientSDK {
|
|
|
2100
1894
|
}
|
|
2101
1895
|
|
|
2102
1896
|
/**
|
|
2103
|
-
* Retrieve top links
|
|
1897
|
+
* Retrieve top links by clicks
|
|
2104
1898
|
*
|
|
2105
1899
|
* @remarks
|
|
2106
1900
|
* Retrieve the top links by number of clicks for a domain or the authenticated workspace.
|
|
1901
|
+
*
|
|
1902
|
+
* @deprecated method: This method is deprecated. Use dub.analytics.clicks.topLinks instead.. Use topLinks instead.
|
|
2107
1903
|
*/
|
|
2108
1904
|
async topLinks(
|
|
2109
|
-
|
|
1905
|
+
request?: operations.GetTopLinksByClicksDeprecatedRequest | undefined,
|
|
2110
1906
|
options?: RequestOptions
|
|
2111
|
-
): Promise<Array<operations.
|
|
1907
|
+
): Promise<Array<operations.GetTopLinksByClicksDeprecatedResponseBody>> {
|
|
1908
|
+
const input$ = typeof request === "undefined" ? {} : request;
|
|
2112
1909
|
const headers$ = new Headers();
|
|
2113
1910
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
2114
1911
|
headers$.set("Accept", "application/json");
|
|
2115
1912
|
|
|
2116
1913
|
const payload$ = schemas$.parse(
|
|
2117
|
-
input
|
|
2118
|
-
(value$) =>
|
|
1914
|
+
input$,
|
|
1915
|
+
(value$) =>
|
|
1916
|
+
operations.GetTopLinksByClicksDeprecatedRequest$.outboundSchema.parse(value$),
|
|
2119
1917
|
"Input validation failed"
|
|
2120
1918
|
);
|
|
2121
1919
|
const body$ = null;
|
|
@@ -2134,6 +1932,7 @@ export class Analytics extends ClientSDK {
|
|
|
2134
1932
|
}),
|
|
2135
1933
|
enc$.encodeForm("device", payload$.device, { explode: true, charEncoding: "percent" }),
|
|
2136
1934
|
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
|
|
1935
|
+
enc$.encodeForm("end", payload$.end, { explode: true, charEncoding: "percent" }),
|
|
2137
1936
|
enc$.encodeForm("externalId", payload$.externalId, {
|
|
2138
1937
|
explode: true,
|
|
2139
1938
|
charEncoding: "percent",
|
|
@@ -2155,6 +1954,7 @@ export class Analytics extends ClientSDK {
|
|
|
2155
1954
|
charEncoding: "percent",
|
|
2156
1955
|
}),
|
|
2157
1956
|
enc$.encodeForm("root", payload$.root, { explode: true, charEncoding: "percent" }),
|
|
1957
|
+
enc$.encodeForm("start", payload$.start, { explode: true, charEncoding: "percent" }),
|
|
2158
1958
|
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
|
|
2159
1959
|
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
|
|
2160
1960
|
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
|
|
@@ -2174,7 +1974,7 @@ export class Analytics extends ClientSDK {
|
|
|
2174
1974
|
security$ = {};
|
|
2175
1975
|
}
|
|
2176
1976
|
const context = {
|
|
2177
|
-
operationID: "
|
|
1977
|
+
operationID: "getTopLinksByClicksDeprecated",
|
|
2178
1978
|
oAuth2Scopes: [],
|
|
2179
1979
|
securitySource: this.options$.token,
|
|
2180
1980
|
};
|
|
@@ -2196,7 +1996,7 @@ export class Analytics extends ClientSDK {
|
|
|
2196
1996
|
"5XX",
|
|
2197
1997
|
],
|
|
2198
1998
|
};
|
|
2199
|
-
const request = this.createRequest$(
|
|
1999
|
+
const request$ = this.createRequest$(
|
|
2200
2000
|
context,
|
|
2201
2001
|
{
|
|
2202
2002
|
security: securitySettings$,
|
|
@@ -2209,12 +2009,12 @@ export class Analytics extends ClientSDK {
|
|
|
2209
2009
|
options
|
|
2210
2010
|
);
|
|
2211
2011
|
|
|
2212
|
-
const response = await this.do$(request
|
|
2012
|
+
const response = await this.do$(request$, doOptions);
|
|
2213
2013
|
|
|
2214
2014
|
const responseFields$ = {
|
|
2215
2015
|
HttpMeta: {
|
|
2216
2016
|
Response: response,
|
|
2217
|
-
Request: request
|
|
2017
|
+
Request: request$,
|
|
2218
2018
|
},
|
|
2219
2019
|
};
|
|
2220
2020
|
|
|
@@ -2223,7 +2023,9 @@ export class Analytics extends ClientSDK {
|
|
|
2223
2023
|
const result = schemas$.parse(
|
|
2224
2024
|
responseBody,
|
|
2225
2025
|
(val$) => {
|
|
2226
|
-
return z
|
|
2026
|
+
return z
|
|
2027
|
+
.array(operations.GetTopLinksByClicksDeprecatedResponseBody$.inboundSchema)
|
|
2028
|
+
.parse(val$);
|
|
2227
2029
|
},
|
|
2228
2030
|
"Response validation failed"
|
|
2229
2031
|
);
|
|
@@ -2356,22 +2158,26 @@ export class Analytics extends ClientSDK {
|
|
|
2356
2158
|
}
|
|
2357
2159
|
|
|
2358
2160
|
/**
|
|
2359
|
-
* Retrieve top URLs
|
|
2161
|
+
* Retrieve top URLs by clicks
|
|
2360
2162
|
*
|
|
2361
2163
|
* @remarks
|
|
2362
2164
|
* Retrieve the top URLs by number of clicks for a given short link.
|
|
2165
|
+
*
|
|
2166
|
+
* @deprecated method: This method is deprecated. Use dub.analytics.clicks.topUrls instead.. Use topUrls instead.
|
|
2363
2167
|
*/
|
|
2364
2168
|
async topUrls(
|
|
2365
|
-
|
|
2169
|
+
request?: operations.GetTopURLsByClicksDeprecatedRequest | undefined,
|
|
2366
2170
|
options?: RequestOptions
|
|
2367
|
-
): Promise<Array<operations.
|
|
2171
|
+
): Promise<Array<operations.GetTopURLsByClicksDeprecatedResponseBody>> {
|
|
2172
|
+
const input$ = typeof request === "undefined" ? {} : request;
|
|
2368
2173
|
const headers$ = new Headers();
|
|
2369
2174
|
headers$.set("user-agent", SDK_METADATA.userAgent);
|
|
2370
2175
|
headers$.set("Accept", "application/json");
|
|
2371
2176
|
|
|
2372
2177
|
const payload$ = schemas$.parse(
|
|
2373
|
-
input
|
|
2374
|
-
(value$) =>
|
|
2178
|
+
input$,
|
|
2179
|
+
(value$) =>
|
|
2180
|
+
operations.GetTopURLsByClicksDeprecatedRequest$.outboundSchema.parse(value$),
|
|
2375
2181
|
"Input validation failed"
|
|
2376
2182
|
);
|
|
2377
2183
|
const body$ = null;
|
|
@@ -2390,6 +2196,7 @@ export class Analytics extends ClientSDK {
|
|
|
2390
2196
|
}),
|
|
2391
2197
|
enc$.encodeForm("device", payload$.device, { explode: true, charEncoding: "percent" }),
|
|
2392
2198
|
enc$.encodeForm("domain", payload$.domain, { explode: true, charEncoding: "percent" }),
|
|
2199
|
+
enc$.encodeForm("end", payload$.end, { explode: true, charEncoding: "percent" }),
|
|
2393
2200
|
enc$.encodeForm("externalId", payload$.externalId, {
|
|
2394
2201
|
explode: true,
|
|
2395
2202
|
charEncoding: "percent",
|
|
@@ -2411,6 +2218,7 @@ export class Analytics extends ClientSDK {
|
|
|
2411
2218
|
charEncoding: "percent",
|
|
2412
2219
|
}),
|
|
2413
2220
|
enc$.encodeForm("root", payload$.root, { explode: true, charEncoding: "percent" }),
|
|
2221
|
+
enc$.encodeForm("start", payload$.start, { explode: true, charEncoding: "percent" }),
|
|
2414
2222
|
enc$.encodeForm("tagId", payload$.tagId, { explode: true, charEncoding: "percent" }),
|
|
2415
2223
|
enc$.encodeForm("url", payload$.url, { explode: true, charEncoding: "percent" }),
|
|
2416
2224
|
enc$.encodeForm("workspaceId", this.options$.workspaceId, {
|
|
@@ -2430,7 +2238,7 @@ export class Analytics extends ClientSDK {
|
|
|
2430
2238
|
security$ = {};
|
|
2431
2239
|
}
|
|
2432
2240
|
const context = {
|
|
2433
|
-
operationID: "
|
|
2241
|
+
operationID: "getTopURLsByClicksDeprecated",
|
|
2434
2242
|
oAuth2Scopes: [],
|
|
2435
2243
|
securitySource: this.options$.token,
|
|
2436
2244
|
};
|
|
@@ -2452,7 +2260,7 @@ export class Analytics extends ClientSDK {
|
|
|
2452
2260
|
"5XX",
|
|
2453
2261
|
],
|
|
2454
2262
|
};
|
|
2455
|
-
const request = this.createRequest$(
|
|
2263
|
+
const request$ = this.createRequest$(
|
|
2456
2264
|
context,
|
|
2457
2265
|
{
|
|
2458
2266
|
security: securitySettings$,
|
|
@@ -2465,12 +2273,12 @@ export class Analytics extends ClientSDK {
|
|
|
2465
2273
|
options
|
|
2466
2274
|
);
|
|
2467
2275
|
|
|
2468
|
-
const response = await this.do$(request
|
|
2276
|
+
const response = await this.do$(request$, doOptions);
|
|
2469
2277
|
|
|
2470
2278
|
const responseFields$ = {
|
|
2471
2279
|
HttpMeta: {
|
|
2472
2280
|
Response: response,
|
|
2473
|
-
Request: request
|
|
2281
|
+
Request: request$,
|
|
2474
2282
|
},
|
|
2475
2283
|
};
|
|
2476
2284
|
|
|
@@ -2479,7 +2287,9 @@ export class Analytics extends ClientSDK {
|
|
|
2479
2287
|
const result = schemas$.parse(
|
|
2480
2288
|
responseBody,
|
|
2481
2289
|
(val$) => {
|
|
2482
|
-
return z
|
|
2290
|
+
return z
|
|
2291
|
+
.array(operations.GetTopURLsByClicksDeprecatedResponseBody$.inboundSchema)
|
|
2292
|
+
.parse(val$);
|
|
2483
2293
|
},
|
|
2484
2294
|
"Response validation failed"
|
|
2485
2295
|
);
|