@codeqr/ts 0.1.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/CHANGELOG.md +33 -0
- package/LICENSE +201 -0
- package/README.md +359 -0
- package/api-promise.d.mts +2 -0
- package/api-promise.d.mts.map +1 -0
- package/api-promise.d.ts +2 -0
- package/api-promise.d.ts.map +1 -0
- package/api-promise.js +6 -0
- package/api-promise.js.map +1 -0
- package/api-promise.mjs +2 -0
- package/api-promise.mjs.map +1 -0
- package/client.d.mts +198 -0
- package/client.d.mts.map +1 -0
- package/client.d.ts +198 -0
- package/client.d.ts.map +1 -0
- package/client.js +469 -0
- package/client.js.map +1 -0
- package/client.mjs +465 -0
- package/client.mjs.map +1 -0
- package/core/api-promise.d.mts +46 -0
- package/core/api-promise.d.mts.map +1 -0
- package/core/api-promise.d.ts +46 -0
- package/core/api-promise.d.ts.map +1 -0
- package/core/api-promise.js +74 -0
- package/core/api-promise.js.map +1 -0
- package/core/api-promise.mjs +70 -0
- package/core/api-promise.mjs.map +1 -0
- package/core/error.d.mts +46 -0
- package/core/error.d.mts.map +1 -0
- package/core/error.d.ts +46 -0
- package/core/error.d.ts.map +1 -0
- package/core/error.js +113 -0
- package/core/error.js.map +1 -0
- package/core/error.mjs +97 -0
- package/core/error.mjs.map +1 -0
- package/core/resource.d.mts +6 -0
- package/core/resource.d.mts.map +1 -0
- package/core/resource.d.ts +6 -0
- package/core/resource.d.ts.map +1 -0
- package/core/resource.js +11 -0
- package/core/resource.js.map +1 -0
- package/core/resource.mjs +7 -0
- package/core/resource.mjs.map +1 -0
- package/core/uploads.d.mts +3 -0
- package/core/uploads.d.mts.map +1 -0
- package/core/uploads.d.ts +3 -0
- package/core/uploads.d.ts.map +1 -0
- package/core/uploads.js +6 -0
- package/core/uploads.js.map +1 -0
- package/core/uploads.mjs +2 -0
- package/core/uploads.mjs.map +1 -0
- package/error.d.mts +2 -0
- package/error.d.mts.map +1 -0
- package/error.d.ts +2 -0
- package/error.d.ts.map +1 -0
- package/error.js +6 -0
- package/error.js.map +1 -0
- package/error.mjs +2 -0
- package/error.mjs.map +1 -0
- package/index.d.mts +6 -0
- package/index.d.mts.map +1 -0
- package/index.d.ts +6 -0
- package/index.d.ts.map +1 -0
- package/index.js +30 -0
- package/index.js.map +1 -0
- package/index.mjs +7 -0
- package/index.mjs.map +1 -0
- package/internal/builtin-types.d.mts +73 -0
- package/internal/builtin-types.d.mts.map +1 -0
- package/internal/builtin-types.d.ts +73 -0
- package/internal/builtin-types.d.ts.map +1 -0
- package/internal/builtin-types.js +4 -0
- package/internal/builtin-types.js.map +1 -0
- package/internal/builtin-types.mjs +3 -0
- package/internal/builtin-types.mjs.map +1 -0
- package/internal/detect-platform.d.mts +15 -0
- package/internal/detect-platform.d.mts.map +1 -0
- package/internal/detect-platform.d.ts +15 -0
- package/internal/detect-platform.d.ts.map +1 -0
- package/internal/detect-platform.js +162 -0
- package/internal/detect-platform.js.map +1 -0
- package/internal/detect-platform.mjs +157 -0
- package/internal/detect-platform.mjs.map +1 -0
- package/internal/errors.d.mts +3 -0
- package/internal/errors.d.mts.map +1 -0
- package/internal/errors.d.ts +3 -0
- package/internal/errors.d.ts.map +1 -0
- package/internal/errors.js +41 -0
- package/internal/errors.js.map +1 -0
- package/internal/errors.mjs +36 -0
- package/internal/errors.mjs.map +1 -0
- package/internal/headers.d.mts +20 -0
- package/internal/headers.d.mts.map +1 -0
- package/internal/headers.d.ts +20 -0
- package/internal/headers.d.ts.map +1 -0
- package/internal/headers.js +79 -0
- package/internal/headers.js.map +1 -0
- package/internal/headers.mjs +74 -0
- package/internal/headers.mjs.map +1 -0
- package/internal/parse.d.mts +12 -0
- package/internal/parse.d.mts.map +1 -0
- package/internal/parse.d.ts +12 -0
- package/internal/parse.d.ts.map +1 -0
- package/internal/parse.js +35 -0
- package/internal/parse.js.map +1 -0
- package/internal/parse.mjs +32 -0
- package/internal/parse.mjs.map +1 -0
- package/internal/qs/formats.d.mts +7 -0
- package/internal/qs/formats.d.mts.map +1 -0
- package/internal/qs/formats.d.ts +7 -0
- package/internal/qs/formats.d.ts.map +1 -0
- package/internal/qs/formats.js +13 -0
- package/internal/qs/formats.js.map +1 -0
- package/internal/qs/formats.mjs +9 -0
- package/internal/qs/formats.mjs.map +1 -0
- package/internal/qs/index.d.mts +10 -0
- package/internal/qs/index.d.mts.map +1 -0
- package/internal/qs/index.d.ts +10 -0
- package/internal/qs/index.d.ts.map +1 -0
- package/internal/qs/index.js +14 -0
- package/internal/qs/index.js.map +1 -0
- package/internal/qs/index.mjs +10 -0
- package/internal/qs/index.mjs.map +1 -0
- package/internal/qs/stringify.d.mts +3 -0
- package/internal/qs/stringify.d.mts.map +1 -0
- package/internal/qs/stringify.d.ts +3 -0
- package/internal/qs/stringify.d.ts.map +1 -0
- package/internal/qs/stringify.js +277 -0
- package/internal/qs/stringify.js.map +1 -0
- package/internal/qs/stringify.mjs +274 -0
- package/internal/qs/stringify.mjs.map +1 -0
- package/internal/qs/types.d.mts +57 -0
- package/internal/qs/types.d.mts.map +1 -0
- package/internal/qs/types.d.ts +57 -0
- package/internal/qs/types.d.ts.map +1 -0
- package/internal/qs/types.js +3 -0
- package/internal/qs/types.js.map +1 -0
- package/internal/qs/types.mjs +2 -0
- package/internal/qs/types.mjs.map +1 -0
- package/internal/qs/utils.d.mts +15 -0
- package/internal/qs/utils.d.mts.map +1 -0
- package/internal/qs/utils.d.ts +15 -0
- package/internal/qs/utils.d.ts.map +1 -0
- package/internal/qs/utils.js +230 -0
- package/internal/qs/utils.js.map +1 -0
- package/internal/qs/utils.mjs +217 -0
- package/internal/qs/utils.mjs.map +1 -0
- package/internal/request-options.d.mts +75 -0
- package/internal/request-options.d.mts.map +1 -0
- package/internal/request-options.d.ts +75 -0
- package/internal/request-options.d.ts.map +1 -0
- package/internal/request-options.js +14 -0
- package/internal/request-options.js.map +1 -0
- package/internal/request-options.mjs +10 -0
- package/internal/request-options.mjs.map +1 -0
- package/internal/shim-types.d.mts +17 -0
- package/internal/shim-types.d.mts.map +1 -0
- package/internal/shim-types.d.ts +17 -0
- package/internal/shim-types.d.ts.map +1 -0
- package/internal/shim-types.js +4 -0
- package/internal/shim-types.js.map +1 -0
- package/internal/shim-types.mjs +3 -0
- package/internal/shim-types.mjs.map +1 -0
- package/internal/shims.d.mts +20 -0
- package/internal/shims.d.mts.map +1 -0
- package/internal/shims.d.ts +20 -0
- package/internal/shims.d.ts.map +1 -0
- package/internal/shims.js +92 -0
- package/internal/shims.js.map +1 -0
- package/internal/shims.mjs +85 -0
- package/internal/shims.mjs.map +1 -0
- package/internal/to-file.d.mts +45 -0
- package/internal/to-file.d.mts.map +1 -0
- package/internal/to-file.d.ts +45 -0
- package/internal/to-file.d.ts.map +1 -0
- package/internal/to-file.js +91 -0
- package/internal/to-file.js.map +1 -0
- package/internal/to-file.mjs +88 -0
- package/internal/to-file.mjs.map +1 -0
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +69 -0
- package/internal/types.d.mts.map +1 -0
- package/internal/types.d.ts +69 -0
- package/internal/types.d.ts.map +1 -0
- package/internal/types.js +4 -0
- package/internal/types.js.map +1 -0
- package/internal/types.mjs +3 -0
- package/internal/types.mjs.map +1 -0
- package/internal/uploads.d.mts +42 -0
- package/internal/uploads.d.mts.map +1 -0
- package/internal/uploads.d.ts +42 -0
- package/internal/uploads.d.ts.map +1 -0
- package/internal/uploads.js +141 -0
- package/internal/uploads.js.map +1 -0
- package/internal/uploads.mjs +131 -0
- package/internal/uploads.mjs.map +1 -0
- package/internal/utils/base64.d.mts +3 -0
- package/internal/utils/base64.d.mts.map +1 -0
- package/internal/utils/base64.d.ts +3 -0
- package/internal/utils/base64.d.ts.map +1 -0
- package/internal/utils/base64.js +38 -0
- package/internal/utils/base64.js.map +1 -0
- package/internal/utils/base64.mjs +33 -0
- package/internal/utils/base64.mjs.map +1 -0
- package/internal/utils/bytes.d.mts +4 -0
- package/internal/utils/bytes.d.mts.map +1 -0
- package/internal/utils/bytes.d.ts +4 -0
- package/internal/utils/bytes.d.ts.map +1 -0
- package/internal/utils/bytes.js +31 -0
- package/internal/utils/bytes.js.map +1 -0
- package/internal/utils/bytes.mjs +26 -0
- package/internal/utils/bytes.mjs.map +1 -0
- package/internal/utils/env.d.mts +9 -0
- package/internal/utils/env.d.mts.map +1 -0
- package/internal/utils/env.d.ts +9 -0
- package/internal/utils/env.d.ts.map +1 -0
- package/internal/utils/env.js +22 -0
- package/internal/utils/env.js.map +1 -0
- package/internal/utils/env.mjs +18 -0
- package/internal/utils/env.mjs.map +1 -0
- package/internal/utils/log.d.mts +37 -0
- package/internal/utils/log.d.mts.map +1 -0
- package/internal/utils/log.d.ts +37 -0
- package/internal/utils/log.d.ts.map +1 -0
- package/internal/utils/log.js +85 -0
- package/internal/utils/log.js.map +1 -0
- package/internal/utils/log.mjs +79 -0
- package/internal/utils/log.mjs.map +1 -0
- package/internal/utils/path.d.mts +15 -0
- package/internal/utils/path.d.mts.map +1 -0
- package/internal/utils/path.d.ts +15 -0
- package/internal/utils/path.d.ts.map +1 -0
- package/internal/utils/path.js +79 -0
- package/internal/utils/path.js.map +1 -0
- package/internal/utils/path.mjs +74 -0
- package/internal/utils/path.mjs.map +1 -0
- package/internal/utils/sleep.d.mts +2 -0
- package/internal/utils/sleep.d.mts.map +1 -0
- package/internal/utils/sleep.d.ts +2 -0
- package/internal/utils/sleep.d.ts.map +1 -0
- package/internal/utils/sleep.js +7 -0
- package/internal/utils/sleep.js.map +1 -0
- package/internal/utils/sleep.mjs +3 -0
- package/internal/utils/sleep.mjs.map +1 -0
- package/internal/utils/uuid.d.mts +5 -0
- package/internal/utils/uuid.d.mts.map +1 -0
- package/internal/utils/uuid.d.ts +5 -0
- package/internal/utils/uuid.d.ts.map +1 -0
- package/internal/utils/uuid.js +19 -0
- package/internal/utils/uuid.js.map +1 -0
- package/internal/utils/uuid.mjs +15 -0
- package/internal/utils/uuid.mjs.map +1 -0
- package/internal/utils/values.d.mts +18 -0
- package/internal/utils/values.d.mts.map +1 -0
- package/internal/utils/values.d.ts +18 -0
- package/internal/utils/values.d.ts.map +1 -0
- package/internal/utils/values.js +112 -0
- package/internal/utils/values.js.map +1 -0
- package/internal/utils/values.mjs +94 -0
- package/internal/utils/values.mjs.map +1 -0
- package/internal/utils.d.mts +7 -0
- package/internal/utils.d.mts.map +1 -0
- package/internal/utils.d.ts +7 -0
- package/internal/utils.d.ts.map +1 -0
- package/internal/utils.js +11 -0
- package/internal/utils.js.map +1 -0
- package/internal/utils.mjs +8 -0
- package/internal/utils.mjs.map +1 -0
- package/package.json +138 -0
- package/resource.d.mts +2 -0
- package/resource.d.mts.map +1 -0
- package/resource.d.ts +2 -0
- package/resource.d.ts.map +1 -0
- package/resource.js +6 -0
- package/resource.js.map +1 -0
- package/resource.mjs +2 -0
- package/resource.mjs.map +1 -0
- package/resources/analytics.d.mts +459 -0
- package/resources/analytics.d.mts.map +1 -0
- package/resources/analytics.d.ts +459 -0
- package/resources/analytics.d.ts.map +1 -0
- package/resources/analytics.js +16 -0
- package/resources/analytics.js.map +1 -0
- package/resources/analytics.mjs +12 -0
- package/resources/analytics.mjs.map +1 -0
- package/resources/domains.d.mts +153 -0
- package/resources/domains.d.mts.map +1 -0
- package/resources/domains.d.ts +153 -0
- package/resources/domains.d.ts.map +1 -0
- package/resources/domains.js +57 -0
- package/resources/domains.js.map +1 -0
- package/resources/domains.mjs +53 -0
- package/resources/domains.mjs.map +1 -0
- package/resources/events.d.mts +781 -0
- package/resources/events.d.mts.map +1 -0
- package/resources/events.d.ts +781 -0
- package/resources/events.d.ts.map +1 -0
- package/resources/events.js +15 -0
- package/resources/events.js.map +1 -0
- package/resources/events.mjs +11 -0
- package/resources/events.mjs.map +1 -0
- package/resources/index.d.mts +9 -0
- package/resources/index.d.mts.map +1 -0
- package/resources/index.d.ts +9 -0
- package/resources/index.d.ts.map +1 -0
- package/resources/index.js +21 -0
- package/resources/index.js.map +1 -0
- package/resources/index.mjs +10 -0
- package/resources/index.mjs.map +1 -0
- package/resources/links/bulk.d.mts +465 -0
- package/resources/links/bulk.d.mts.map +1 -0
- package/resources/links/bulk.d.ts +465 -0
- package/resources/links/bulk.d.ts.map +1 -0
- package/resources/links/bulk.js +35 -0
- package/resources/links/bulk.js.map +1 -0
- package/resources/links/bulk.mjs +31 -0
- package/resources/links/bulk.mjs.map +1 -0
- package/resources/links/index.d.mts +3 -0
- package/resources/links/index.d.mts.map +1 -0
- package/resources/links/index.d.ts +3 -0
- package/resources/links/index.d.ts.map +1 -0
- package/resources/links/index.js +9 -0
- package/resources/links/index.js.map +1 -0
- package/resources/links/index.mjs +4 -0
- package/resources/links/index.mjs.map +1 -0
- package/resources/links/links.d.mts +2325 -0
- package/resources/links/links.d.mts.map +1 -0
- package/resources/links/links.d.ts +2325 -0
- package/resources/links/links.d.ts.map +1 -0
- package/resources/links/links.js +106 -0
- package/resources/links/links.js.map +1 -0
- package/resources/links/links.mjs +101 -0
- package/resources/links/links.mjs.map +1 -0
- package/resources/links.d.mts +2 -0
- package/resources/links.d.mts.map +1 -0
- package/resources/links.d.ts +2 -0
- package/resources/links.d.ts.map +1 -0
- package/resources/links.js +6 -0
- package/resources/links.js.map +1 -0
- package/resources/links.mjs +3 -0
- package/resources/links.mjs.map +1 -0
- package/resources/projects.d.mts +110 -0
- package/resources/projects.d.mts.map +1 -0
- package/resources/projects.d.ts +110 -0
- package/resources/projects.d.ts.map +1 -0
- package/resources/projects.js +22 -0
- package/resources/projects.js.map +1 -0
- package/resources/projects.mjs +18 -0
- package/resources/projects.mjs.map +1 -0
- package/resources/qrcodes/bulk.d.mts +579 -0
- package/resources/qrcodes/bulk.d.mts.map +1 -0
- package/resources/qrcodes/bulk.d.ts +579 -0
- package/resources/qrcodes/bulk.d.ts.map +1 -0
- package/resources/qrcodes/bulk.js +35 -0
- package/resources/qrcodes/bulk.js.map +1 -0
- package/resources/qrcodes/bulk.mjs +31 -0
- package/resources/qrcodes/bulk.mjs.map +1 -0
- package/resources/qrcodes/index.d.mts +3 -0
- package/resources/qrcodes/index.d.mts.map +1 -0
- package/resources/qrcodes/index.d.ts +3 -0
- package/resources/qrcodes/index.d.ts.map +1 -0
- package/resources/qrcodes/index.js +9 -0
- package/resources/qrcodes/index.js.map +1 -0
- package/resources/qrcodes/index.mjs +4 -0
- package/resources/qrcodes/index.mjs.map +1 -0
- package/resources/qrcodes/qrcodes.d.mts +2220 -0
- package/resources/qrcodes/qrcodes.d.mts.map +1 -0
- package/resources/qrcodes/qrcodes.d.ts +2220 -0
- package/resources/qrcodes/qrcodes.d.ts.map +1 -0
- package/resources/qrcodes/qrcodes.js +102 -0
- package/resources/qrcodes/qrcodes.js.map +1 -0
- package/resources/qrcodes/qrcodes.mjs +97 -0
- package/resources/qrcodes/qrcodes.mjs.map +1 -0
- package/resources/qrcodes.d.mts +2 -0
- package/resources/qrcodes.d.mts.map +1 -0
- package/resources/qrcodes.d.ts +2 -0
- package/resources/qrcodes.d.ts.map +1 -0
- package/resources/qrcodes.js +6 -0
- package/resources/qrcodes.js.map +1 -0
- package/resources/qrcodes.mjs +3 -0
- package/resources/qrcodes.mjs.map +1 -0
- package/resources/tags.d.mts +91 -0
- package/resources/tags.d.mts.map +1 -0
- package/resources/tags.d.ts +91 -0
- package/resources/tags.d.ts.map +1 -0
- package/resources/tags.js +35 -0
- package/resources/tags.js.map +1 -0
- package/resources/tags.mjs +31 -0
- package/resources/tags.mjs.map +1 -0
- package/resources/track.d.mts +128 -0
- package/resources/track.d.mts.map +1 -0
- package/resources/track.d.ts +128 -0
- package/resources/track.d.ts.map +1 -0
- package/resources/track.js +39 -0
- package/resources/track.js.map +1 -0
- package/resources/track.mjs +35 -0
- package/resources/track.mjs.map +1 -0
- package/resources.d.mts +2 -0
- package/resources.d.mts.map +1 -0
- package/resources.d.ts +2 -0
- package/resources.d.ts.map +1 -0
- package/resources.js +5 -0
- package/resources.js.map +1 -0
- package/resources.mjs +2 -0
- package/resources.mjs.map +1 -0
- package/src/api-promise.ts +2 -0
- package/src/client.ts +854 -0
- package/src/core/README.md +3 -0
- package/src/core/api-promise.ts +92 -0
- package/src/core/error.ts +130 -0
- package/src/core/resource.ts +11 -0
- package/src/core/uploads.ts +2 -0
- package/src/error.ts +2 -0
- package/src/index.ts +22 -0
- package/src/internal/README.md +3 -0
- package/src/internal/builtin-types.ts +93 -0
- package/src/internal/detect-platform.ts +196 -0
- package/src/internal/errors.ts +33 -0
- package/src/internal/headers.ts +97 -0
- package/src/internal/parse.ts +50 -0
- package/src/internal/qs/LICENSE.md +13 -0
- package/src/internal/qs/README.md +3 -0
- package/src/internal/qs/formats.ts +10 -0
- package/src/internal/qs/index.ts +13 -0
- package/src/internal/qs/stringify.ts +385 -0
- package/src/internal/qs/types.ts +71 -0
- package/src/internal/qs/utils.ts +265 -0
- package/src/internal/request-options.ts +91 -0
- package/src/internal/shim-types.ts +26 -0
- package/src/internal/shims.ts +107 -0
- package/src/internal/to-file.ts +154 -0
- package/src/internal/types.ts +95 -0
- package/src/internal/uploads.ts +187 -0
- package/src/internal/utils/base64.ts +40 -0
- package/src/internal/utils/bytes.ts +32 -0
- package/src/internal/utils/env.ts +18 -0
- package/src/internal/utils/log.ts +126 -0
- package/src/internal/utils/path.ts +88 -0
- package/src/internal/utils/sleep.ts +3 -0
- package/src/internal/utils/uuid.ts +17 -0
- package/src/internal/utils/values.ts +105 -0
- package/src/internal/utils.ts +8 -0
- package/src/lib/.keep +4 -0
- package/src/resource.ts +2 -0
- package/src/resources/analytics.ts +1617 -0
- package/src/resources/domains.ts +205 -0
- package/src/resources/events.ts +1026 -0
- package/src/resources/index.ts +62 -0
- package/src/resources/links/bulk.ts +782 -0
- package/src/resources/links/index.ts +22 -0
- package/src/resources/links/links.ts +3841 -0
- package/src/resources/links.ts +3 -0
- package/src/resources/projects.ts +150 -0
- package/src/resources/qrcodes/bulk.ts +908 -0
- package/src/resources/qrcodes/index.ts +22 -0
- package/src/resources/qrcodes/qrcodes.ts +3307 -0
- package/src/resources/qrcodes.ts +3 -0
- package/src/resources/tags.ts +128 -0
- package/src/resources/track.ts +163 -0
- package/src/resources.ts +1 -0
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +2 -0
- package/src/version.ts +1 -0
- package/uploads.d.mts +2 -0
- package/uploads.d.mts.map +1 -0
- package/uploads.d.ts +2 -0
- package/uploads.d.ts.map +1 -0
- package/uploads.js +6 -0
- package/uploads.js.map +1 -0
- package/uploads.mjs +2 -0
- package/uploads.mjs.map +1 -0
- package/version.d.mts +2 -0
- package/version.d.mts.map +1 -0
- package/version.d.ts +2 -0
- package/version.d.ts.map +1 -0
- package/version.js +5 -0
- package/version.js.map +1 -0
- package/version.mjs +2 -0
- package/version.mjs.map +1 -0
|
@@ -0,0 +1,781 @@
|
|
|
1
|
+
import { APIResource } from "../core/resource.js";
|
|
2
|
+
import * as AnalyticsAPI from "./analytics.js";
|
|
3
|
+
import * as TagsAPI from "./tags.js";
|
|
4
|
+
import { APIPromise } from "../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../internal/request-options.js";
|
|
6
|
+
export declare class Events extends APIResource {
|
|
7
|
+
/**
|
|
8
|
+
* Retrieve a paginated list of events for the authenticated workspace.
|
|
9
|
+
*/
|
|
10
|
+
list(query?: EventListParams | null | undefined, options?: RequestOptions): APIPromise<EventListResponse>;
|
|
11
|
+
}
|
|
12
|
+
export type EventListResponse = Array<EventListResponse.ClickEvent | EventListResponse.LeadEvent | EventListResponse.SaleEvent>;
|
|
13
|
+
export declare namespace EventListResponse {
|
|
14
|
+
interface ClickEvent {
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Deprecated. Use `click.browser` instead.
|
|
17
|
+
*/
|
|
18
|
+
browser: string;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Deprecated. Use `click.city` instead.
|
|
21
|
+
*/
|
|
22
|
+
city: string;
|
|
23
|
+
click: ClickEvent.Click;
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Deprecated. Use `click.id` instead.
|
|
26
|
+
*/
|
|
27
|
+
click_id: string;
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Deprecated. Use `click.continent` instead.
|
|
30
|
+
*/
|
|
31
|
+
continent: string;
|
|
32
|
+
/**
|
|
33
|
+
* @deprecated Deprecated. Use `click.country` instead.
|
|
34
|
+
*/
|
|
35
|
+
country: string;
|
|
36
|
+
/**
|
|
37
|
+
* @deprecated Deprecated. Use `click.device` instead.
|
|
38
|
+
*/
|
|
39
|
+
device: string;
|
|
40
|
+
/**
|
|
41
|
+
* @deprecated Deprecated. Use `link.domain` instead.
|
|
42
|
+
*/
|
|
43
|
+
domain: string;
|
|
44
|
+
event: 'click';
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Deprecated. Use `click.ip` instead.
|
|
47
|
+
*/
|
|
48
|
+
ip: string;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Deprecated. Use `link.key` instead.
|
|
51
|
+
*/
|
|
52
|
+
key: string;
|
|
53
|
+
link: ClickEvent.Link;
|
|
54
|
+
/**
|
|
55
|
+
* @deprecated Deprecated. Use `link.id` instead.
|
|
56
|
+
*/
|
|
57
|
+
link_id: string;
|
|
58
|
+
/**
|
|
59
|
+
* @deprecated Deprecated. Use `click.os` instead.
|
|
60
|
+
*/
|
|
61
|
+
os: string;
|
|
62
|
+
/**
|
|
63
|
+
* @deprecated Deprecated. Use `click.qr` instead.
|
|
64
|
+
*/
|
|
65
|
+
type: string;
|
|
66
|
+
/**
|
|
67
|
+
* @deprecated Deprecated. Use `click.url` instead.
|
|
68
|
+
*/
|
|
69
|
+
url: string;
|
|
70
|
+
timestamp?: string;
|
|
71
|
+
}
|
|
72
|
+
namespace ClickEvent {
|
|
73
|
+
interface Click {
|
|
74
|
+
id: string;
|
|
75
|
+
browser: string;
|
|
76
|
+
city: string;
|
|
77
|
+
continent: string;
|
|
78
|
+
country: string;
|
|
79
|
+
device: string;
|
|
80
|
+
ip: string;
|
|
81
|
+
os: string;
|
|
82
|
+
referer: string;
|
|
83
|
+
refererUrl: string;
|
|
84
|
+
type: string;
|
|
85
|
+
url: string;
|
|
86
|
+
}
|
|
87
|
+
interface Link {
|
|
88
|
+
/**
|
|
89
|
+
* O ID único do link curto.
|
|
90
|
+
*/
|
|
91
|
+
id: string;
|
|
92
|
+
/**
|
|
93
|
+
* A URL de destino do Android para o link curto para segmentação de dispositivos
|
|
94
|
+
* Android.
|
|
95
|
+
*/
|
|
96
|
+
android: string | null;
|
|
97
|
+
/**
|
|
98
|
+
* O número de cliques no link curto.
|
|
99
|
+
*/
|
|
100
|
+
clicks: number;
|
|
101
|
+
/**
|
|
102
|
+
* Os comentários para o link curto.
|
|
103
|
+
*/
|
|
104
|
+
comments: string | null;
|
|
105
|
+
createdAt: string;
|
|
106
|
+
/**
|
|
107
|
+
* A descrição do link curto gerada via `api.codeqr.io/metatags`. Será usada para
|
|
108
|
+
* Visualização de link personalizado se `proxy` for verdadeiro.
|
|
109
|
+
*/
|
|
110
|
+
description: string | null;
|
|
111
|
+
/**
|
|
112
|
+
* O domínio do link curto. Se não for fornecido, o domínio principal do projeto
|
|
113
|
+
* será usado (ou `codeqr.link` se o projeto não tiver domínios).
|
|
114
|
+
*/
|
|
115
|
+
domain: string;
|
|
116
|
+
/**
|
|
117
|
+
* A URL para redirecionar quando o link curto expirar.
|
|
118
|
+
*/
|
|
119
|
+
expiredUrl: string | null;
|
|
120
|
+
/**
|
|
121
|
+
* Este é o ID do link no seu banco de dados.
|
|
122
|
+
*/
|
|
123
|
+
externalId: string | null;
|
|
124
|
+
/**
|
|
125
|
+
* Whether the link is filled or not.
|
|
126
|
+
*/
|
|
127
|
+
filled: boolean;
|
|
128
|
+
/**
|
|
129
|
+
* Se o link curto é flexível.
|
|
130
|
+
*/
|
|
131
|
+
flexible: boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Informações de segmentação geográfica para o link curto no formato JSON
|
|
134
|
+
* `{[PAÍS]: https://exemplo.com }`. Saiba mais: https://codeqr.link/geo
|
|
135
|
+
*/
|
|
136
|
+
geo: {
|
|
137
|
+
[key: string]: string;
|
|
138
|
+
} | null;
|
|
139
|
+
/**
|
|
140
|
+
* A imagem do link curto gerada via `api.codeqr.io/metatags`. Será usada para
|
|
141
|
+
* Visualização de link personalizado se `proxy` for verdadeiro.
|
|
142
|
+
*/
|
|
143
|
+
image: string | null;
|
|
144
|
+
/**
|
|
145
|
+
* A URL de destino do iOS para o link curto para segmentação de dispositivos iOS.
|
|
146
|
+
*/
|
|
147
|
+
ios: string | null;
|
|
148
|
+
/**
|
|
149
|
+
* If the form is mandatory for the page.
|
|
150
|
+
*/
|
|
151
|
+
isFormMandatory: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* O slug do link curto. Se não for fornecido, um slug aleatório de 7 caracteres
|
|
154
|
+
* será gerado.
|
|
155
|
+
*/
|
|
156
|
+
key: string;
|
|
157
|
+
lastClicked: string;
|
|
158
|
+
/**
|
|
159
|
+
* O número de leads gerados pelo link curto.
|
|
160
|
+
*/
|
|
161
|
+
leads: number;
|
|
162
|
+
/**
|
|
163
|
+
* O token de notificação do link curto.
|
|
164
|
+
*/
|
|
165
|
+
notificationToken: string | null;
|
|
166
|
+
/**
|
|
167
|
+
* A senha necessária para acessar a URL de destino do link curto.
|
|
168
|
+
*/
|
|
169
|
+
password: string | null;
|
|
170
|
+
/**
|
|
171
|
+
* Se o link curto tem pré-redirecionamento.
|
|
172
|
+
*/
|
|
173
|
+
preRedirection: boolean;
|
|
174
|
+
/**
|
|
175
|
+
* O ID do projeto do link curto.
|
|
176
|
+
*/
|
|
177
|
+
projectId: string;
|
|
178
|
+
/**
|
|
179
|
+
* The amount of the sale generated by the link.
|
|
180
|
+
*/
|
|
181
|
+
saleAmount: number;
|
|
182
|
+
/**
|
|
183
|
+
* O número de vendas geradas pelo link curto.
|
|
184
|
+
*/
|
|
185
|
+
sales: number;
|
|
186
|
+
/**
|
|
187
|
+
* @deprecated [DESCONTINUADO (use `tags` em vez disso)]: O ID único da tag
|
|
188
|
+
* atribuída ao link curto.
|
|
189
|
+
*/
|
|
190
|
+
tagId: string | null;
|
|
191
|
+
/**
|
|
192
|
+
* As tags atribuídas ao link curto.
|
|
193
|
+
*/
|
|
194
|
+
tags: Array<TagsAPI.Tag> | null;
|
|
195
|
+
/**
|
|
196
|
+
* O título do link curto gerado via `api.codeqr.io/metatags`. Será usado para
|
|
197
|
+
* Visualização de link personalizado se `proxy` for verdadeiro.
|
|
198
|
+
*/
|
|
199
|
+
title: string | null;
|
|
200
|
+
updatedAt: string;
|
|
201
|
+
userId: string | null;
|
|
202
|
+
/**
|
|
203
|
+
* A campanha UTM do link curto.
|
|
204
|
+
*/
|
|
205
|
+
utm_campaign: string | null;
|
|
206
|
+
/**
|
|
207
|
+
* O conteúdo UTM do link curto.
|
|
208
|
+
*/
|
|
209
|
+
utm_content: string | null;
|
|
210
|
+
/**
|
|
211
|
+
* O meio UTM do link curto.
|
|
212
|
+
*/
|
|
213
|
+
utm_medium: string | null;
|
|
214
|
+
/**
|
|
215
|
+
* A fonte UTM do link curto.
|
|
216
|
+
*/
|
|
217
|
+
utm_source: string | null;
|
|
218
|
+
/**
|
|
219
|
+
* O termo UTM do link curto.
|
|
220
|
+
*/
|
|
221
|
+
utm_term: string | null;
|
|
222
|
+
/**
|
|
223
|
+
* O vídeo do link curto.
|
|
224
|
+
*/
|
|
225
|
+
video: string | null;
|
|
226
|
+
archived?: boolean;
|
|
227
|
+
doIndex?: boolean;
|
|
228
|
+
expiresAt?: string;
|
|
229
|
+
/**
|
|
230
|
+
* The ID of the page to redirect to before the link destination.
|
|
231
|
+
*/
|
|
232
|
+
pageId?: string | null;
|
|
233
|
+
/**
|
|
234
|
+
* The URL of the page to redirect to before the link destination.
|
|
235
|
+
*/
|
|
236
|
+
pageUrl?: string | null;
|
|
237
|
+
proxy?: boolean;
|
|
238
|
+
publicStats?: boolean;
|
|
239
|
+
/**
|
|
240
|
+
* A URL completa do código QR para o link curto (por exemplo,
|
|
241
|
+
* `https://api.codeqr.io/qr?url=https://codeqr.link/try`).
|
|
242
|
+
*/
|
|
243
|
+
qrCode?: string;
|
|
244
|
+
rewrite?: boolean;
|
|
245
|
+
/**
|
|
246
|
+
* A URL completa do link curto, incluindo o protocolo https (por exemplo,
|
|
247
|
+
* `https://codeqr.link/try`).
|
|
248
|
+
*/
|
|
249
|
+
shortLink?: string;
|
|
250
|
+
trackConversion?: boolean;
|
|
251
|
+
url?: string;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
interface LeadEvent {
|
|
255
|
+
/**
|
|
256
|
+
* @deprecated Deprecated. Use `click.browser` instead.
|
|
257
|
+
*/
|
|
258
|
+
browser: string;
|
|
259
|
+
/**
|
|
260
|
+
* @deprecated Deprecated. Use `click.city` instead.
|
|
261
|
+
*/
|
|
262
|
+
city: string;
|
|
263
|
+
click: LeadEvent.Click;
|
|
264
|
+
/**
|
|
265
|
+
* @deprecated Deprecated. Use `click.id` instead.
|
|
266
|
+
*/
|
|
267
|
+
click_id: string;
|
|
268
|
+
/**
|
|
269
|
+
* @deprecated Deprecated. Use `click.continent` instead.
|
|
270
|
+
*/
|
|
271
|
+
continent: string;
|
|
272
|
+
/**
|
|
273
|
+
* @deprecated Deprecated. Use `click.country` instead.
|
|
274
|
+
*/
|
|
275
|
+
country: string;
|
|
276
|
+
customer: LeadEvent.Customer;
|
|
277
|
+
/**
|
|
278
|
+
* @deprecated Deprecated. Use `click.device` instead.
|
|
279
|
+
*/
|
|
280
|
+
device: string;
|
|
281
|
+
/**
|
|
282
|
+
* @deprecated Deprecated. Use `link.domain` instead.
|
|
283
|
+
*/
|
|
284
|
+
domain: string;
|
|
285
|
+
event: 'lead';
|
|
286
|
+
eventId: string;
|
|
287
|
+
eventName: string;
|
|
288
|
+
/**
|
|
289
|
+
* @deprecated Deprecated. Use `click.ip` instead.
|
|
290
|
+
*/
|
|
291
|
+
ip: string;
|
|
292
|
+
/**
|
|
293
|
+
* @deprecated Deprecated. Use `link.key` instead.
|
|
294
|
+
*/
|
|
295
|
+
key: string;
|
|
296
|
+
/**
|
|
297
|
+
* @deprecated Deprecated. Use `link.id` instead.
|
|
298
|
+
*/
|
|
299
|
+
link_id: string;
|
|
300
|
+
/**
|
|
301
|
+
* @deprecated Deprecated. Use `click.os` instead.
|
|
302
|
+
*/
|
|
303
|
+
os: string;
|
|
304
|
+
/**
|
|
305
|
+
* @deprecated Deprecated. Use `click.qr` instead.
|
|
306
|
+
*/
|
|
307
|
+
type: string;
|
|
308
|
+
/**
|
|
309
|
+
* @deprecated Deprecated. Use `click.url` instead.
|
|
310
|
+
*/
|
|
311
|
+
url: string;
|
|
312
|
+
link?: unknown;
|
|
313
|
+
timestamp?: string;
|
|
314
|
+
}
|
|
315
|
+
namespace LeadEvent {
|
|
316
|
+
interface Click {
|
|
317
|
+
id: string;
|
|
318
|
+
browser: string;
|
|
319
|
+
city: string;
|
|
320
|
+
continent: string;
|
|
321
|
+
country: string;
|
|
322
|
+
device: string;
|
|
323
|
+
ip: string;
|
|
324
|
+
os: string;
|
|
325
|
+
referer: string;
|
|
326
|
+
refererUrl: string;
|
|
327
|
+
type: string;
|
|
328
|
+
url: string;
|
|
329
|
+
}
|
|
330
|
+
interface Customer {
|
|
331
|
+
id: string;
|
|
332
|
+
avatar: string;
|
|
333
|
+
email: string;
|
|
334
|
+
name: string;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
interface SaleEvent {
|
|
338
|
+
/**
|
|
339
|
+
* @deprecated Deprecated. Use `click.browser` instead.
|
|
340
|
+
*/
|
|
341
|
+
browser: string;
|
|
342
|
+
/**
|
|
343
|
+
* @deprecated Deprecated. Use `click.city` instead.
|
|
344
|
+
*/
|
|
345
|
+
city: string;
|
|
346
|
+
click: SaleEvent.Click;
|
|
347
|
+
/**
|
|
348
|
+
* @deprecated Deprecated. Use `click.id` instead.
|
|
349
|
+
*/
|
|
350
|
+
click_id: string;
|
|
351
|
+
/**
|
|
352
|
+
* @deprecated Deprecated. Use `click.continent` instead.
|
|
353
|
+
*/
|
|
354
|
+
continent: string;
|
|
355
|
+
/**
|
|
356
|
+
* @deprecated Deprecated. Use `click.country` instead.
|
|
357
|
+
*/
|
|
358
|
+
country: string;
|
|
359
|
+
customer: SaleEvent.Customer;
|
|
360
|
+
/**
|
|
361
|
+
* @deprecated Deprecated. Use `click.device` instead.
|
|
362
|
+
*/
|
|
363
|
+
device: string;
|
|
364
|
+
/**
|
|
365
|
+
* @deprecated Deprecated. Use `link.domain` instead.
|
|
366
|
+
*/
|
|
367
|
+
domain: string;
|
|
368
|
+
event: 'sale';
|
|
369
|
+
eventId: string;
|
|
370
|
+
eventName: string;
|
|
371
|
+
/**
|
|
372
|
+
* @deprecated Deprecated. Use `sale.invoiceId` instead.
|
|
373
|
+
*/
|
|
374
|
+
invoice_id: string;
|
|
375
|
+
/**
|
|
376
|
+
* @deprecated Deprecated. Use `click.ip` instead.
|
|
377
|
+
*/
|
|
378
|
+
ip: string;
|
|
379
|
+
/**
|
|
380
|
+
* @deprecated Deprecated. Use `link.key` instead.
|
|
381
|
+
*/
|
|
382
|
+
key: string;
|
|
383
|
+
link: SaleEvent.Link;
|
|
384
|
+
/**
|
|
385
|
+
* @deprecated Deprecated. Use `link.id` instead.
|
|
386
|
+
*/
|
|
387
|
+
link_id: string;
|
|
388
|
+
metadata: string;
|
|
389
|
+
/**
|
|
390
|
+
* @deprecated Deprecated. Use `click.os` instead.
|
|
391
|
+
*/
|
|
392
|
+
os: string;
|
|
393
|
+
/**
|
|
394
|
+
* Deprecated. Use `sale.paymentProcessor` instead.
|
|
395
|
+
*/
|
|
396
|
+
payment_processor: string;
|
|
397
|
+
sale: SaleEvent.Sale;
|
|
398
|
+
/**
|
|
399
|
+
* @deprecated Deprecated. Use `sale.amount` instead.
|
|
400
|
+
*/
|
|
401
|
+
saleAmount: number;
|
|
402
|
+
/**
|
|
403
|
+
* @deprecated Deprecated. Use `click.qr` instead.
|
|
404
|
+
*/
|
|
405
|
+
type: string;
|
|
406
|
+
/**
|
|
407
|
+
* @deprecated Deprecated. Use `click.url` instead.
|
|
408
|
+
*/
|
|
409
|
+
url: string;
|
|
410
|
+
timestamp?: string;
|
|
411
|
+
}
|
|
412
|
+
namespace SaleEvent {
|
|
413
|
+
interface Click {
|
|
414
|
+
id: string;
|
|
415
|
+
browser: string;
|
|
416
|
+
city: string;
|
|
417
|
+
continent: string;
|
|
418
|
+
country: string;
|
|
419
|
+
device: string;
|
|
420
|
+
ip: string;
|
|
421
|
+
os: string;
|
|
422
|
+
referer: string;
|
|
423
|
+
refererUrl: string;
|
|
424
|
+
type: string;
|
|
425
|
+
url: string;
|
|
426
|
+
}
|
|
427
|
+
interface Customer {
|
|
428
|
+
/**
|
|
429
|
+
* The unique ID of the customer. You may use either the customer's `id` on CodeQR
|
|
430
|
+
* (obtained via `/customers` endpoint) or their `externalId` (unique ID within
|
|
431
|
+
* your system, prefixed with `ext_`, e.g. `ext_123`).
|
|
432
|
+
*/
|
|
433
|
+
id: string;
|
|
434
|
+
/**
|
|
435
|
+
* The date the customer was created.
|
|
436
|
+
*/
|
|
437
|
+
createdAt: string;
|
|
438
|
+
/**
|
|
439
|
+
* Unique identifier for the customer in the client's app.
|
|
440
|
+
*/
|
|
441
|
+
externalId: string;
|
|
442
|
+
/**
|
|
443
|
+
* Name of the customer.
|
|
444
|
+
*/
|
|
445
|
+
name: string;
|
|
446
|
+
/**
|
|
447
|
+
* Avatar URL of the customer.
|
|
448
|
+
*/
|
|
449
|
+
avatar?: string | null;
|
|
450
|
+
/**
|
|
451
|
+
* Country of the customer.
|
|
452
|
+
*/
|
|
453
|
+
country?: string | null;
|
|
454
|
+
/**
|
|
455
|
+
* Custom fields of the customer.
|
|
456
|
+
*/
|
|
457
|
+
customFields?: {
|
|
458
|
+
[key: string]: string;
|
|
459
|
+
} | null;
|
|
460
|
+
/**
|
|
461
|
+
* Email of the customer.
|
|
462
|
+
*/
|
|
463
|
+
email?: string | null;
|
|
464
|
+
link?: Customer.Link | null;
|
|
465
|
+
}
|
|
466
|
+
namespace Customer {
|
|
467
|
+
interface Link {
|
|
468
|
+
/**
|
|
469
|
+
* O ID único do link curto.
|
|
470
|
+
*/
|
|
471
|
+
id: string;
|
|
472
|
+
/**
|
|
473
|
+
* O domínio do link curto. Se não for fornecido, o domínio principal do projeto
|
|
474
|
+
* será usado (ou `codeqr.link` se o projeto não tiver domínios).
|
|
475
|
+
*/
|
|
476
|
+
domain: string;
|
|
477
|
+
/**
|
|
478
|
+
* O slug do link curto. Se não for fornecido, um slug aleatório de 7 caracteres
|
|
479
|
+
* será gerado.
|
|
480
|
+
*/
|
|
481
|
+
key: string;
|
|
482
|
+
/**
|
|
483
|
+
* A URL completa do link curto, incluindo o protocolo https (por exemplo,
|
|
484
|
+
* `https://codeqr.link/try`).
|
|
485
|
+
*/
|
|
486
|
+
shortLink?: string;
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
interface Link {
|
|
490
|
+
/**
|
|
491
|
+
* O ID único do link curto.
|
|
492
|
+
*/
|
|
493
|
+
id: string;
|
|
494
|
+
/**
|
|
495
|
+
* A URL de destino do Android para o link curto para segmentação de dispositivos
|
|
496
|
+
* Android.
|
|
497
|
+
*/
|
|
498
|
+
android: string | null;
|
|
499
|
+
/**
|
|
500
|
+
* O número de cliques no link curto.
|
|
501
|
+
*/
|
|
502
|
+
clicks: number;
|
|
503
|
+
/**
|
|
504
|
+
* Os comentários para o link curto.
|
|
505
|
+
*/
|
|
506
|
+
comments: string | null;
|
|
507
|
+
createdAt: string;
|
|
508
|
+
/**
|
|
509
|
+
* A descrição do link curto gerada via `api.codeqr.io/metatags`. Será usada para
|
|
510
|
+
* Visualização de link personalizado se `proxy` for verdadeiro.
|
|
511
|
+
*/
|
|
512
|
+
description: string | null;
|
|
513
|
+
/**
|
|
514
|
+
* O domínio do link curto. Se não for fornecido, o domínio principal do projeto
|
|
515
|
+
* será usado (ou `codeqr.link` se o projeto não tiver domínios).
|
|
516
|
+
*/
|
|
517
|
+
domain: string;
|
|
518
|
+
/**
|
|
519
|
+
* A URL para redirecionar quando o link curto expirar.
|
|
520
|
+
*/
|
|
521
|
+
expiredUrl: string | null;
|
|
522
|
+
/**
|
|
523
|
+
* Este é o ID do link no seu banco de dados.
|
|
524
|
+
*/
|
|
525
|
+
externalId: string | null;
|
|
526
|
+
/**
|
|
527
|
+
* Whether the link is filled or not.
|
|
528
|
+
*/
|
|
529
|
+
filled: boolean;
|
|
530
|
+
/**
|
|
531
|
+
* Se o link curto é flexível.
|
|
532
|
+
*/
|
|
533
|
+
flexible: boolean;
|
|
534
|
+
/**
|
|
535
|
+
* Informações de segmentação geográfica para o link curto no formato JSON
|
|
536
|
+
* `{[PAÍS]: https://exemplo.com }`. Saiba mais: https://codeqr.link/geo
|
|
537
|
+
*/
|
|
538
|
+
geo: {
|
|
539
|
+
[key: string]: string;
|
|
540
|
+
} | null;
|
|
541
|
+
/**
|
|
542
|
+
* A imagem do link curto gerada via `api.codeqr.io/metatags`. Será usada para
|
|
543
|
+
* Visualização de link personalizado se `proxy` for verdadeiro.
|
|
544
|
+
*/
|
|
545
|
+
image: string | null;
|
|
546
|
+
/**
|
|
547
|
+
* A URL de destino do iOS para o link curto para segmentação de dispositivos iOS.
|
|
548
|
+
*/
|
|
549
|
+
ios: string | null;
|
|
550
|
+
/**
|
|
551
|
+
* If the form is mandatory for the page.
|
|
552
|
+
*/
|
|
553
|
+
isFormMandatory: boolean;
|
|
554
|
+
/**
|
|
555
|
+
* O slug do link curto. Se não for fornecido, um slug aleatório de 7 caracteres
|
|
556
|
+
* será gerado.
|
|
557
|
+
*/
|
|
558
|
+
key: string;
|
|
559
|
+
lastClicked: string;
|
|
560
|
+
/**
|
|
561
|
+
* O número de leads gerados pelo link curto.
|
|
562
|
+
*/
|
|
563
|
+
leads: number;
|
|
564
|
+
/**
|
|
565
|
+
* O token de notificação do link curto.
|
|
566
|
+
*/
|
|
567
|
+
notificationToken: string | null;
|
|
568
|
+
/**
|
|
569
|
+
* A senha necessária para acessar a URL de destino do link curto.
|
|
570
|
+
*/
|
|
571
|
+
password: string | null;
|
|
572
|
+
/**
|
|
573
|
+
* Se o link curto tem pré-redirecionamento.
|
|
574
|
+
*/
|
|
575
|
+
preRedirection: boolean;
|
|
576
|
+
/**
|
|
577
|
+
* O ID do projeto do link curto.
|
|
578
|
+
*/
|
|
579
|
+
projectId: string;
|
|
580
|
+
/**
|
|
581
|
+
* The amount of the sale generated by the link.
|
|
582
|
+
*/
|
|
583
|
+
saleAmount: number;
|
|
584
|
+
/**
|
|
585
|
+
* O número de vendas geradas pelo link curto.
|
|
586
|
+
*/
|
|
587
|
+
sales: number;
|
|
588
|
+
/**
|
|
589
|
+
* @deprecated [DESCONTINUADO (use `tags` em vez disso)]: O ID único da tag
|
|
590
|
+
* atribuída ao link curto.
|
|
591
|
+
*/
|
|
592
|
+
tagId: string | null;
|
|
593
|
+
/**
|
|
594
|
+
* As tags atribuídas ao link curto.
|
|
595
|
+
*/
|
|
596
|
+
tags: Array<TagsAPI.Tag> | null;
|
|
597
|
+
/**
|
|
598
|
+
* O título do link curto gerado via `api.codeqr.io/metatags`. Será usado para
|
|
599
|
+
* Visualização de link personalizado se `proxy` for verdadeiro.
|
|
600
|
+
*/
|
|
601
|
+
title: string | null;
|
|
602
|
+
updatedAt: string;
|
|
603
|
+
userId: string | null;
|
|
604
|
+
/**
|
|
605
|
+
* A campanha UTM do link curto.
|
|
606
|
+
*/
|
|
607
|
+
utm_campaign: string | null;
|
|
608
|
+
/**
|
|
609
|
+
* O conteúdo UTM do link curto.
|
|
610
|
+
*/
|
|
611
|
+
utm_content: string | null;
|
|
612
|
+
/**
|
|
613
|
+
* O meio UTM do link curto.
|
|
614
|
+
*/
|
|
615
|
+
utm_medium: string | null;
|
|
616
|
+
/**
|
|
617
|
+
* A fonte UTM do link curto.
|
|
618
|
+
*/
|
|
619
|
+
utm_source: string | null;
|
|
620
|
+
/**
|
|
621
|
+
* O termo UTM do link curto.
|
|
622
|
+
*/
|
|
623
|
+
utm_term: string | null;
|
|
624
|
+
/**
|
|
625
|
+
* O vídeo do link curto.
|
|
626
|
+
*/
|
|
627
|
+
video: string | null;
|
|
628
|
+
archived?: boolean;
|
|
629
|
+
doIndex?: boolean;
|
|
630
|
+
expiresAt?: string;
|
|
631
|
+
/**
|
|
632
|
+
* The ID of the page to redirect to before the link destination.
|
|
633
|
+
*/
|
|
634
|
+
pageId?: string | null;
|
|
635
|
+
/**
|
|
636
|
+
* The URL of the page to redirect to before the link destination.
|
|
637
|
+
*/
|
|
638
|
+
pageUrl?: string | null;
|
|
639
|
+
proxy?: boolean;
|
|
640
|
+
publicStats?: boolean;
|
|
641
|
+
/**
|
|
642
|
+
* A URL completa do código QR para o link curto (por exemplo,
|
|
643
|
+
* `https://api.codeqr.io/qr?url=https://codeqr.link/try`).
|
|
644
|
+
*/
|
|
645
|
+
qrCode?: string;
|
|
646
|
+
rewrite?: boolean;
|
|
647
|
+
/**
|
|
648
|
+
* A URL completa do link curto, incluindo o protocolo https (por exemplo,
|
|
649
|
+
* `https://codeqr.link/try`).
|
|
650
|
+
*/
|
|
651
|
+
shortLink?: string;
|
|
652
|
+
trackConversion?: boolean;
|
|
653
|
+
url?: string;
|
|
654
|
+
}
|
|
655
|
+
interface Sale {
|
|
656
|
+
/**
|
|
657
|
+
* The amount of the sale. Should be passed in cents.
|
|
658
|
+
*/
|
|
659
|
+
amount: number;
|
|
660
|
+
/**
|
|
661
|
+
* The invoice ID of the sale.
|
|
662
|
+
*/
|
|
663
|
+
invoiceId: string | null;
|
|
664
|
+
/**
|
|
665
|
+
* The payment processor via which the sale was made.
|
|
666
|
+
*/
|
|
667
|
+
paymentProcessor: 'stripe' | 'shopify' | 'paddle';
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
}
|
|
671
|
+
export interface EventListParams {
|
|
672
|
+
/**
|
|
673
|
+
* The browser to retrieve analytics for.
|
|
674
|
+
*/
|
|
675
|
+
browser?: string;
|
|
676
|
+
/**
|
|
677
|
+
* The city to retrieve analytics for.
|
|
678
|
+
*/
|
|
679
|
+
city?: string;
|
|
680
|
+
/**
|
|
681
|
+
* The continent to retrieve analytics for.
|
|
682
|
+
*/
|
|
683
|
+
continent?: AnalyticsAPI.ContinentCode;
|
|
684
|
+
/**
|
|
685
|
+
* The country to retrieve analytics for.
|
|
686
|
+
*/
|
|
687
|
+
country?: AnalyticsAPI.CountryCode;
|
|
688
|
+
/**
|
|
689
|
+
* The device to retrieve analytics for.
|
|
690
|
+
*/
|
|
691
|
+
device?: string;
|
|
692
|
+
/**
|
|
693
|
+
* The domain of the short link.
|
|
694
|
+
*/
|
|
695
|
+
domain?: string;
|
|
696
|
+
/**
|
|
697
|
+
* The end date and time when to retrieve analytics from. If not provided, defaults
|
|
698
|
+
* to the current date.
|
|
699
|
+
*/
|
|
700
|
+
end?: string;
|
|
701
|
+
/**
|
|
702
|
+
* The type of event to retrieve analytics for. Defaults to 'clicks'.
|
|
703
|
+
*/
|
|
704
|
+
event?: 'clicks' | 'leads' | 'sales' | 'scans' | 'views';
|
|
705
|
+
/**
|
|
706
|
+
* Whether to exclude the root link from the response.
|
|
707
|
+
*/
|
|
708
|
+
excludeRoot?: boolean;
|
|
709
|
+
/**
|
|
710
|
+
* This is the ID of the link in the your database. Must be prefixed with 'ext\_'
|
|
711
|
+
* when passed as a query parameter.
|
|
712
|
+
*/
|
|
713
|
+
externalId?: string;
|
|
714
|
+
/**
|
|
715
|
+
* The interval to retrieve events for. Takes precedence over start and end. If
|
|
716
|
+
* undefined, defaults to 24h.
|
|
717
|
+
*/
|
|
718
|
+
interval?: '24h' | '7d' | '30d' | '90d' | 'ytd' | '1y' | 'all';
|
|
719
|
+
/**
|
|
720
|
+
* The short link slug.
|
|
721
|
+
*/
|
|
722
|
+
key?: string;
|
|
723
|
+
limit?: number;
|
|
724
|
+
/**
|
|
725
|
+
* The unique ID of the short link on CodeQR.
|
|
726
|
+
*/
|
|
727
|
+
linkId?: string;
|
|
728
|
+
order?: 'asc' | 'desc';
|
|
729
|
+
/**
|
|
730
|
+
* The OS to retrieve analytics for.
|
|
731
|
+
*/
|
|
732
|
+
os?: string;
|
|
733
|
+
page?: number;
|
|
734
|
+
/**
|
|
735
|
+
* The unique ID of the page on CodeQR.
|
|
736
|
+
*/
|
|
737
|
+
pageId?: string;
|
|
738
|
+
/**
|
|
739
|
+
* The unique ID of the QR code on CodeQR.
|
|
740
|
+
*/
|
|
741
|
+
qrcodeId?: string;
|
|
742
|
+
/**
|
|
743
|
+
* The referer to retrieve analytics for.
|
|
744
|
+
*/
|
|
745
|
+
referer?: string;
|
|
746
|
+
/**
|
|
747
|
+
* Filter for root domains. If true, filter for domains only. If false, filter for
|
|
748
|
+
* links only. If undefined, return both.
|
|
749
|
+
*/
|
|
750
|
+
root?: boolean;
|
|
751
|
+
sortBy?: 'timestamp';
|
|
752
|
+
/**
|
|
753
|
+
* The start date and time when to retrieve analytics from.
|
|
754
|
+
*/
|
|
755
|
+
start?: string;
|
|
756
|
+
/**
|
|
757
|
+
* The tag ID to retrieve analytics for.
|
|
758
|
+
*/
|
|
759
|
+
tagId?: string;
|
|
760
|
+
/**
|
|
761
|
+
* The IANA time zone code for aligning timeseries granularity (e.g.
|
|
762
|
+
* America/New_York). Defaults to UTC.
|
|
763
|
+
*/
|
|
764
|
+
timezone?: string;
|
|
765
|
+
/**
|
|
766
|
+
* The type of analytics to retrieve.
|
|
767
|
+
*/
|
|
768
|
+
type?: string;
|
|
769
|
+
/**
|
|
770
|
+
* The types of analytics to retrieve.
|
|
771
|
+
*/
|
|
772
|
+
types?: string;
|
|
773
|
+
/**
|
|
774
|
+
* The URL to retrieve analytics for.
|
|
775
|
+
*/
|
|
776
|
+
url?: string;
|
|
777
|
+
}
|
|
778
|
+
export declare namespace Events {
|
|
779
|
+
export { type EventListResponse as EventListResponse, type EventListParams as EventListParams };
|
|
780
|
+
}
|
|
781
|
+
//# sourceMappingURL=events.d.ts.map
|