dub 0.71.2 → 0.71.4
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 +43 -29
- package/dist/commonjs/funcs/analyticsRetrieve.js +0 -1
- package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +0 -1
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/models/components/analyticstoplinks.d.ts +6 -2
- package/dist/commonjs/models/components/analyticstoplinks.d.ts.map +1 -1
- package/dist/commonjs/models/components/analyticstoplinks.js +2 -1
- package/dist/commonjs/models/components/analyticstoplinks.js.map +1 -1
- package/dist/commonjs/models/components/partneranalyticstoplinks.d.ts +6 -2
- package/dist/commonjs/models/components/partneranalyticstoplinks.d.ts.map +1 -1
- package/dist/commonjs/models/components/partneranalyticstoplinks.js +2 -1
- package/dist/commonjs/models/components/partneranalyticstoplinks.js.map +1 -1
- package/dist/commonjs/models/operations/createpartner.d.ts +56 -56
- package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpartner.js +87 -93
- package/dist/commonjs/models/operations/createpartner.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +58 -105
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +13 -45
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/commonjs/models/operations/listpartners.d.ts +56 -56
- package/dist/commonjs/models/operations/listpartners.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listpartners.js +93 -88
- package/dist/commonjs/models/operations/listpartners.js.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts +58 -105
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js +13 -47
- package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/commonjs/models/operations/retrievepartneranalytics.d.ts +1 -1
- package/dist/commonjs/sdk/customers.d.ts +6 -6
- package/dist/commonjs/sdk/customers.d.ts.map +1 -1
- package/dist/commonjs/sdk/customers.js +8 -8
- package/dist/commonjs/sdk/customers.js.map +1 -1
- package/dist/commonjs/sdk/domains.d.ts +10 -10
- package/dist/commonjs/sdk/domains.d.ts.map +1 -1
- package/dist/commonjs/sdk/domains.js +13 -13
- package/dist/commonjs/sdk/domains.js.map +1 -1
- package/dist/commonjs/sdk/folders.d.ts +10 -10
- package/dist/commonjs/sdk/folders.d.ts.map +1 -1
- package/dist/commonjs/sdk/folders.js +13 -13
- package/dist/commonjs/sdk/folders.js.map +1 -1
- package/dist/commonjs/sdk/links.d.ts +19 -19
- package/dist/commonjs/sdk/links.d.ts.map +1 -1
- package/dist/commonjs/sdk/links.js +24 -24
- package/dist/commonjs/sdk/links.js.map +1 -1
- package/dist/commonjs/sdk/partners.d.ts +10 -10
- package/dist/commonjs/sdk/partners.d.ts.map +1 -1
- package/dist/commonjs/sdk/partners.js +13 -13
- package/dist/commonjs/sdk/partners.js.map +1 -1
- package/dist/commonjs/sdk/tags.d.ts +10 -10
- package/dist/commonjs/sdk/tags.d.ts.map +1 -1
- package/dist/commonjs/sdk/tags.js +13 -13
- package/dist/commonjs/sdk/tags.js.map +1 -1
- package/dist/esm/funcs/analyticsRetrieve.js +0 -1
- package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/esm/funcs/eventsList.js +0 -1
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/models/components/analyticstoplinks.d.ts +6 -2
- package/dist/esm/models/components/analyticstoplinks.d.ts.map +1 -1
- package/dist/esm/models/components/analyticstoplinks.js +2 -1
- package/dist/esm/models/components/analyticstoplinks.js.map +1 -1
- package/dist/esm/models/components/partneranalyticstoplinks.d.ts +6 -2
- package/dist/esm/models/components/partneranalyticstoplinks.d.ts.map +1 -1
- package/dist/esm/models/components/partneranalyticstoplinks.js +2 -1
- package/dist/esm/models/components/partneranalyticstoplinks.js.map +1 -1
- package/dist/esm/models/operations/createpartner.d.ts +56 -56
- package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
- package/dist/esm/models/operations/createpartner.js +71 -77
- package/dist/esm/models/operations/createpartner.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +58 -105
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +12 -43
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/dist/esm/models/operations/listpartners.d.ts +56 -56
- package/dist/esm/models/operations/listpartners.d.ts.map +1 -1
- package/dist/esm/models/operations/listpartners.js +77 -72
- package/dist/esm/models/operations/listpartners.js.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.d.ts +58 -105
- package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.js +12 -45
- package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/esm/models/operations/retrievepartneranalytics.d.ts +1 -1
- package/dist/esm/sdk/customers.d.ts +6 -6
- package/dist/esm/sdk/customers.d.ts.map +1 -1
- package/dist/esm/sdk/customers.js +8 -8
- package/dist/esm/sdk/customers.js.map +1 -1
- package/dist/esm/sdk/domains.d.ts +10 -10
- package/dist/esm/sdk/domains.d.ts.map +1 -1
- package/dist/esm/sdk/domains.js +13 -13
- package/dist/esm/sdk/domains.js.map +1 -1
- package/dist/esm/sdk/folders.d.ts +10 -10
- package/dist/esm/sdk/folders.d.ts.map +1 -1
- package/dist/esm/sdk/folders.js +13 -13
- package/dist/esm/sdk/folders.js.map +1 -1
- package/dist/esm/sdk/links.d.ts +19 -19
- package/dist/esm/sdk/links.d.ts.map +1 -1
- package/dist/esm/sdk/links.js +24 -24
- package/dist/esm/sdk/links.js.map +1 -1
- package/dist/esm/sdk/partners.d.ts +10 -10
- package/dist/esm/sdk/partners.d.ts.map +1 -1
- package/dist/esm/sdk/partners.js +13 -13
- package/dist/esm/sdk/partners.js.map +1 -1
- package/dist/esm/sdk/tags.d.ts +10 -10
- package/dist/esm/sdk/tags.d.ts.map +1 -1
- package/dist/esm/sdk/tags.js +13 -13
- package/dist/esm/sdk/tags.js.map +1 -1
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/analyticsRetrieve.ts +0 -1
- package/src/funcs/eventsList.ts +0 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/analyticstoplinks.ts +8 -3
- package/src/models/components/partneranalyticstoplinks.ts +8 -3
- package/src/models/operations/createpartner.ts +233 -194
- package/src/models/operations/listevents.ts +70 -140
- package/src/models/operations/listpartners.ts +194 -231
- package/src/models/operations/retrieveanalytics.ts +70 -140
- package/src/models/operations/retrievepartneranalytics.ts +1 -1
- package/src/sdk/customers.ts +14 -14
- package/src/sdk/domains.ts +24 -24
- package/src/sdk/folders.ts +24 -24
- package/src/sdk/links.ts +36 -36
- package/src/sdk/partners.ts +23 -23
- package/src/sdk/tags.ts +24 -24
|
@@ -79,42 +79,6 @@ export const Interval = {
|
|
|
79
79
|
*/
|
|
80
80
|
export type Interval = ClosedEnum<typeof Interval>;
|
|
81
81
|
|
|
82
|
-
/**
|
|
83
|
-
* The continent to retrieve analytics for.
|
|
84
|
-
*/
|
|
85
|
-
export const Continent = {
|
|
86
|
-
Af: "AF",
|
|
87
|
-
An: "AN",
|
|
88
|
-
As: "AS",
|
|
89
|
-
Eu: "EU",
|
|
90
|
-
Na: "NA",
|
|
91
|
-
Oc: "OC",
|
|
92
|
-
Sa: "SA",
|
|
93
|
-
} as const;
|
|
94
|
-
/**
|
|
95
|
-
* The continent to retrieve analytics for.
|
|
96
|
-
*/
|
|
97
|
-
export type Continent = ClosedEnum<typeof Continent>;
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* The trigger to retrieve analytics for. If undefined, returns all trigger types.
|
|
101
|
-
*/
|
|
102
|
-
export const Trigger = {
|
|
103
|
-
Qr: "qr",
|
|
104
|
-
Link: "link",
|
|
105
|
-
Pageview: "pageview",
|
|
106
|
-
Deeplink: "deeplink",
|
|
107
|
-
} as const;
|
|
108
|
-
/**
|
|
109
|
-
* The trigger to retrieve analytics for. If undefined, returns all trigger types.
|
|
110
|
-
*/
|
|
111
|
-
export type Trigger = ClosedEnum<typeof Trigger>;
|
|
112
|
-
|
|
113
|
-
/**
|
|
114
|
-
* The tag IDs to retrieve analytics for.
|
|
115
|
-
*/
|
|
116
|
-
export type RetrieveAnalyticsQueryParamTagIds = string | Array<string>;
|
|
117
|
-
|
|
118
82
|
/**
|
|
119
83
|
* Filter sales by type: 'new' for first-time purchases, 'recurring' for repeat purchases. If undefined, returns both.
|
|
120
84
|
*/
|
|
@@ -137,7 +101,7 @@ export type RetrieveAnalyticsRequest = {
|
|
|
137
101
|
*/
|
|
138
102
|
groupBy?: QueryParamGroupBy | undefined;
|
|
139
103
|
/**
|
|
140
|
-
* The domain to filter analytics for.
|
|
104
|
+
* The domain to filter analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `dub.co`, `dub.co,google.com`, `-spam.com`.
|
|
141
105
|
*/
|
|
142
106
|
domain?: string | undefined;
|
|
143
107
|
/**
|
|
@@ -145,7 +109,7 @@ export type RetrieveAnalyticsRequest = {
|
|
|
145
109
|
*/
|
|
146
110
|
key?: string | undefined;
|
|
147
111
|
/**
|
|
148
|
-
* The unique ID of the
|
|
112
|
+
* The unique ID of the link to retrieve analytics for.Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `link_123`, `link_123,link_456`, `-link_789`.
|
|
149
113
|
*/
|
|
150
114
|
linkId?: string | undefined;
|
|
151
115
|
/**
|
|
@@ -153,15 +117,23 @@ export type RetrieveAnalyticsRequest = {
|
|
|
153
117
|
*/
|
|
154
118
|
externalId?: string | undefined;
|
|
155
119
|
/**
|
|
156
|
-
* The ID of the tenant that created the link inside your system.
|
|
120
|
+
* The ID of the tenant that created the link inside your system. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `tenant_123`, `tenant_123,tenant_456`, `-tenant_789`.
|
|
157
121
|
*/
|
|
158
122
|
tenantId?: string | undefined;
|
|
159
123
|
/**
|
|
160
|
-
* The ID
|
|
124
|
+
* The tag ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `tag_123`, `tag_123,tag_456`, `-tag_789`.
|
|
161
125
|
*/
|
|
162
|
-
|
|
126
|
+
tagId?: string | undefined;
|
|
127
|
+
/**
|
|
128
|
+
* The folder ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `folder_123`, `folder_123,folder_456`, `-folder_789`. If not provided, return analytics for all links.
|
|
129
|
+
*/
|
|
130
|
+
folderId?: string | undefined;
|
|
163
131
|
/**
|
|
164
|
-
* The ID
|
|
132
|
+
* The group ID to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `grp_123`, `grp_123,grp_456`, `-grp_789`.
|
|
133
|
+
*/
|
|
134
|
+
groupId?: string | undefined;
|
|
135
|
+
/**
|
|
136
|
+
* The ID of the partner to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `pn_123`, `pn_123,pn_456`, `-pn_789`.
|
|
165
137
|
*/
|
|
166
138
|
partnerId?: string | undefined;
|
|
167
139
|
/**
|
|
@@ -185,61 +157,69 @@ export type RetrieveAnalyticsRequest = {
|
|
|
185
157
|
*/
|
|
186
158
|
timezone?: string | undefined;
|
|
187
159
|
/**
|
|
188
|
-
* The country to retrieve analytics for. Must be passed as a 2-letter ISO 3166-1 country code
|
|
160
|
+
* The country to retrieve analytics for. Must be passed as a 2-letter ISO 3166-1 country code (see https://d.to/geo). Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `US`, `US,BR,FR`, `-US`.
|
|
189
161
|
*/
|
|
190
162
|
country?: string | undefined;
|
|
191
163
|
/**
|
|
192
|
-
* The city to retrieve analytics for.
|
|
164
|
+
* The city to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `New York`, `New York,London`, `-New York`.
|
|
193
165
|
*/
|
|
194
166
|
city?: string | undefined;
|
|
195
167
|
/**
|
|
196
|
-
* The ISO 3166-2 region code to retrieve analytics for.
|
|
168
|
+
* The ISO 3166-2 region code to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `NY`, `NY,CA`, `-NY`.
|
|
197
169
|
*/
|
|
198
170
|
region?: string | undefined;
|
|
199
171
|
/**
|
|
200
|
-
* The continent to retrieve analytics for.
|
|
172
|
+
* The continent to retrieve analytics for. Valid values: AF, AN, AS, EU, NA, OC, SA. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `NA`, `NA,EU`, `-AS`.
|
|
201
173
|
*/
|
|
202
|
-
continent?:
|
|
174
|
+
continent?: string | undefined;
|
|
203
175
|
/**
|
|
204
|
-
* The device to retrieve analytics for.
|
|
176
|
+
* The device to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `Desktop`, `Mobile,Tablet`, `-Mobile`.
|
|
205
177
|
*/
|
|
206
178
|
device?: string | undefined;
|
|
207
179
|
/**
|
|
208
|
-
* The browser to retrieve analytics for.
|
|
180
|
+
* The browser to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `Chrome`, `Chrome,Firefox,Safari`, `-IE`.
|
|
209
181
|
*/
|
|
210
182
|
browser?: string | undefined;
|
|
211
183
|
/**
|
|
212
|
-
* The OS to retrieve analytics for.
|
|
184
|
+
* The OS to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `Windows`, `Mac,Windows,Linux`, `-Windows`.
|
|
213
185
|
*/
|
|
214
186
|
os?: string | undefined;
|
|
215
187
|
/**
|
|
216
|
-
* The trigger to retrieve analytics for. If undefined, returns all trigger types.
|
|
188
|
+
* The trigger to retrieve analytics for. Valid values: qr, link, pageview. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `qr`, `qr,link`, `-qr`. If undefined, returns all trigger types.
|
|
217
189
|
*/
|
|
218
|
-
trigger?:
|
|
190
|
+
trigger?: string | undefined;
|
|
219
191
|
/**
|
|
220
|
-
* The referer hostname to retrieve analytics for.
|
|
192
|
+
* The referer hostname to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `google.com`, `google.com,twitter.com`, `-facebook.com`.
|
|
221
193
|
*/
|
|
222
194
|
referer?: string | undefined;
|
|
223
195
|
/**
|
|
224
|
-
* The full referer URL to retrieve analytics for.
|
|
196
|
+
* The full referer URL to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `https://google.com`, `https://google.com,https://twitter.com`, `-https://spam.com`.
|
|
225
197
|
*/
|
|
226
198
|
refererUrl?: string | undefined;
|
|
227
199
|
/**
|
|
228
|
-
* The URL to retrieve analytics for.
|
|
200
|
+
* The destination URL to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `https://example.com`, `https://example.com,https://other.com`, `-https://spam.com`.
|
|
229
201
|
*/
|
|
230
202
|
url?: string | undefined;
|
|
231
203
|
/**
|
|
232
|
-
* The
|
|
204
|
+
* The UTM source to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `google`, `google,twitter`, `-spam`.
|
|
233
205
|
*/
|
|
234
|
-
|
|
206
|
+
utmSource?: string | undefined;
|
|
235
207
|
/**
|
|
236
|
-
* The
|
|
208
|
+
* The UTM medium to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `cpc`, `cpc,social`, `-email`.
|
|
237
209
|
*/
|
|
238
|
-
|
|
210
|
+
utmMedium?: string | undefined;
|
|
239
211
|
/**
|
|
240
|
-
* The
|
|
212
|
+
* The UTM campaign to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`). Examples: `summer_sale`, `summer_sale,winter_sale`, `-old_campaign`.
|
|
241
213
|
*/
|
|
242
|
-
|
|
214
|
+
utmCampaign?: string | undefined;
|
|
215
|
+
/**
|
|
216
|
+
* The UTM term to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`).
|
|
217
|
+
*/
|
|
218
|
+
utmTerm?: string | undefined;
|
|
219
|
+
/**
|
|
220
|
+
* The UTM content to retrieve analytics for. Supports advanced filtering: single value, multiple values (comma-separated), or exclusion (prefix with `-`).
|
|
221
|
+
*/
|
|
222
|
+
utmContent?: string | undefined;
|
|
243
223
|
/**
|
|
244
224
|
* Filter for root domains. If true, filter for domains only. If false, filter for links only. If undefined, return both.
|
|
245
225
|
*/
|
|
@@ -249,41 +229,21 @@ export type RetrieveAnalyticsRequest = {
|
|
|
249
229
|
*/
|
|
250
230
|
saleType?: SaleType | undefined;
|
|
251
231
|
/**
|
|
252
|
-
* Search the events by a custom metadata value. Only available for lead and sale events.
|
|
232
|
+
* Search the events by a custom metadata value. Only available for lead and sale events. Examples: `metadata['key']:'value'`
|
|
253
233
|
*/
|
|
254
234
|
query?: string | undefined;
|
|
255
235
|
/**
|
|
256
|
-
* Deprecated:
|
|
257
|
-
*/
|
|
258
|
-
tagId?: string | undefined;
|
|
259
|
-
/**
|
|
260
|
-
* Deprecated: Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
|
|
236
|
+
* Deprecated: This is automatically inferred from your workspace's defaultProgramId. The ID of the program to retrieve analytics for.
|
|
261
237
|
*/
|
|
262
|
-
|
|
263
|
-
/**
|
|
264
|
-
* The UTM source of the short link.
|
|
265
|
-
*/
|
|
266
|
-
utmSource?: string | null | undefined;
|
|
267
|
-
/**
|
|
268
|
-
* The UTM medium of the short link.
|
|
269
|
-
*/
|
|
270
|
-
utmMedium?: string | null | undefined;
|
|
271
|
-
/**
|
|
272
|
-
* The UTM campaign of the short link.
|
|
273
|
-
*/
|
|
274
|
-
utmCampaign?: string | null | undefined;
|
|
275
|
-
/**
|
|
276
|
-
* The UTM term of the short link.
|
|
277
|
-
*/
|
|
278
|
-
utmTerm?: string | null | undefined;
|
|
238
|
+
programId?: string | undefined;
|
|
279
239
|
/**
|
|
280
|
-
* The
|
|
240
|
+
* Deprecated: Use `tagId` instead. The tag IDs to retrieve analytics for.
|
|
281
241
|
*/
|
|
282
|
-
|
|
242
|
+
tagIds?: string | undefined;
|
|
283
243
|
/**
|
|
284
|
-
*
|
|
244
|
+
* Deprecated: Use the `trigger` field instead. Filter for QR code scans. If true, filter for QR codes only. If false, filter for links only. If undefined, return both.
|
|
285
245
|
*/
|
|
286
|
-
|
|
246
|
+
qr?: boolean | undefined;
|
|
287
247
|
};
|
|
288
248
|
|
|
289
249
|
/**
|
|
@@ -319,34 +279,6 @@ export const QueryParamGroupBy$outboundSchema: z.ZodNativeEnum<
|
|
|
319
279
|
export const Interval$outboundSchema: z.ZodNativeEnum<typeof Interval> = z
|
|
320
280
|
.nativeEnum(Interval);
|
|
321
281
|
|
|
322
|
-
/** @internal */
|
|
323
|
-
export const Continent$outboundSchema: z.ZodNativeEnum<typeof Continent> = z
|
|
324
|
-
.nativeEnum(Continent);
|
|
325
|
-
|
|
326
|
-
/** @internal */
|
|
327
|
-
export const Trigger$outboundSchema: z.ZodNativeEnum<typeof Trigger> = z
|
|
328
|
-
.nativeEnum(Trigger);
|
|
329
|
-
|
|
330
|
-
/** @internal */
|
|
331
|
-
export type RetrieveAnalyticsQueryParamTagIds$Outbound = string | Array<string>;
|
|
332
|
-
|
|
333
|
-
/** @internal */
|
|
334
|
-
export const RetrieveAnalyticsQueryParamTagIds$outboundSchema: z.ZodType<
|
|
335
|
-
RetrieveAnalyticsQueryParamTagIds$Outbound,
|
|
336
|
-
z.ZodTypeDef,
|
|
337
|
-
RetrieveAnalyticsQueryParamTagIds
|
|
338
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
339
|
-
|
|
340
|
-
export function retrieveAnalyticsQueryParamTagIdsToJSON(
|
|
341
|
-
retrieveAnalyticsQueryParamTagIds: RetrieveAnalyticsQueryParamTagIds,
|
|
342
|
-
): string {
|
|
343
|
-
return JSON.stringify(
|
|
344
|
-
RetrieveAnalyticsQueryParamTagIds$outboundSchema.parse(
|
|
345
|
-
retrieveAnalyticsQueryParamTagIds,
|
|
346
|
-
),
|
|
347
|
-
);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
282
|
/** @internal */
|
|
351
283
|
export const SaleType$outboundSchema: z.ZodNativeEnum<typeof SaleType> = z
|
|
352
284
|
.nativeEnum(SaleType);
|
|
@@ -360,7 +292,9 @@ export type RetrieveAnalyticsRequest$Outbound = {
|
|
|
360
292
|
linkId?: string | undefined;
|
|
361
293
|
externalId?: string | undefined;
|
|
362
294
|
tenantId?: string | undefined;
|
|
363
|
-
|
|
295
|
+
tagId?: string | undefined;
|
|
296
|
+
folderId?: string | undefined;
|
|
297
|
+
groupId?: string | undefined;
|
|
364
298
|
partnerId?: string | undefined;
|
|
365
299
|
customerId?: string | undefined;
|
|
366
300
|
interval?: string | undefined;
|
|
@@ -378,20 +312,17 @@ export type RetrieveAnalyticsRequest$Outbound = {
|
|
|
378
312
|
referer?: string | undefined;
|
|
379
313
|
refererUrl?: string | undefined;
|
|
380
314
|
url?: string | undefined;
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
315
|
+
utm_source?: string | undefined;
|
|
316
|
+
utm_medium?: string | undefined;
|
|
317
|
+
utm_campaign?: string | undefined;
|
|
318
|
+
utm_term?: string | undefined;
|
|
319
|
+
utm_content?: string | undefined;
|
|
384
320
|
root?: boolean | undefined;
|
|
385
321
|
saleType?: string | undefined;
|
|
386
322
|
query?: string | undefined;
|
|
387
|
-
|
|
323
|
+
programId?: string | undefined;
|
|
324
|
+
tagIds?: string | undefined;
|
|
388
325
|
qr?: boolean | undefined;
|
|
389
|
-
utm_source?: string | null | undefined;
|
|
390
|
-
utm_medium?: string | null | undefined;
|
|
391
|
-
utm_campaign?: string | null | undefined;
|
|
392
|
-
utm_term?: string | null | undefined;
|
|
393
|
-
utm_content?: string | null | undefined;
|
|
394
|
-
ref?: string | null | undefined;
|
|
395
326
|
};
|
|
396
327
|
|
|
397
328
|
/** @internal */
|
|
@@ -407,7 +338,9 @@ export const RetrieveAnalyticsRequest$outboundSchema: z.ZodType<
|
|
|
407
338
|
linkId: z.string().optional(),
|
|
408
339
|
externalId: z.string().optional(),
|
|
409
340
|
tenantId: z.string().optional(),
|
|
410
|
-
|
|
341
|
+
tagId: z.string().optional(),
|
|
342
|
+
folderId: z.string().optional(),
|
|
343
|
+
groupId: z.string().optional(),
|
|
411
344
|
partnerId: z.string().optional(),
|
|
412
345
|
customerId: z.string().optional(),
|
|
413
346
|
interval: Interval$outboundSchema.optional(),
|
|
@@ -417,28 +350,25 @@ export const RetrieveAnalyticsRequest$outboundSchema: z.ZodType<
|
|
|
417
350
|
country: z.string().optional(),
|
|
418
351
|
city: z.string().optional(),
|
|
419
352
|
region: z.string().optional(),
|
|
420
|
-
continent:
|
|
353
|
+
continent: z.string().optional(),
|
|
421
354
|
device: z.string().optional(),
|
|
422
355
|
browser: z.string().optional(),
|
|
423
356
|
os: z.string().optional(),
|
|
424
|
-
trigger:
|
|
357
|
+
trigger: z.string().optional(),
|
|
425
358
|
referer: z.string().optional(),
|
|
426
359
|
refererUrl: z.string().optional(),
|
|
427
360
|
url: z.string().optional(),
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
361
|
+
utmSource: z.string().optional(),
|
|
362
|
+
utmMedium: z.string().optional(),
|
|
363
|
+
utmCampaign: z.string().optional(),
|
|
364
|
+
utmTerm: z.string().optional(),
|
|
365
|
+
utmContent: z.string().optional(),
|
|
431
366
|
root: z.boolean().optional(),
|
|
432
367
|
saleType: SaleType$outboundSchema.optional(),
|
|
433
368
|
query: z.string().optional(),
|
|
434
|
-
|
|
369
|
+
programId: z.string().optional(),
|
|
370
|
+
tagIds: z.string().optional(),
|
|
435
371
|
qr: z.boolean().optional(),
|
|
436
|
-
utmSource: z.nullable(z.string()).optional(),
|
|
437
|
-
utmMedium: z.nullable(z.string()).optional(),
|
|
438
|
-
utmCampaign: z.nullable(z.string()).optional(),
|
|
439
|
-
utmTerm: z.nullable(z.string()).optional(),
|
|
440
|
-
utmContent: z.nullable(z.string()).optional(),
|
|
441
|
-
ref: z.nullable(z.string()).optional(),
|
|
442
372
|
}).transform((v) => {
|
|
443
373
|
return remap$(v, {
|
|
444
374
|
utmSource: "utm_source",
|
|
@@ -71,7 +71,7 @@ export type RetrievePartnerAnalyticsRequest = {
|
|
|
71
71
|
*/
|
|
72
72
|
timezone?: string | undefined;
|
|
73
73
|
/**
|
|
74
|
-
* Search the events by a custom metadata value. Only available for lead and sale events.
|
|
74
|
+
* Search the events by a custom metadata value. Only available for lead and sale events. Examples: `metadata['key']:'value'`
|
|
75
75
|
*/
|
|
76
76
|
query?: string | undefined;
|
|
77
77
|
/**
|
package/src/sdk/customers.ts
CHANGED
|
@@ -46,35 +46,35 @@ export class Customers extends ClientSDK {
|
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
/**
|
|
49
|
-
*
|
|
49
|
+
* Delete a customer
|
|
50
50
|
*
|
|
51
51
|
* @remarks
|
|
52
|
-
*
|
|
52
|
+
* Delete a customer from a workspace.
|
|
53
53
|
*/
|
|
54
|
-
async
|
|
55
|
-
|
|
54
|
+
async delete(
|
|
55
|
+
id: string,
|
|
56
56
|
options?: RequestOptions,
|
|
57
|
-
): Promise<operations.
|
|
58
|
-
return unwrapAsync(
|
|
57
|
+
): Promise<operations.DeleteCustomerResponseBody> {
|
|
58
|
+
return unwrapAsync(customersDelete(
|
|
59
59
|
this,
|
|
60
|
-
|
|
60
|
+
id,
|
|
61
61
|
options,
|
|
62
62
|
));
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
/**
|
|
66
|
-
*
|
|
66
|
+
* Update a customer
|
|
67
67
|
*
|
|
68
68
|
* @remarks
|
|
69
|
-
*
|
|
69
|
+
* Update a customer for the authenticated workspace.
|
|
70
70
|
*/
|
|
71
|
-
async
|
|
72
|
-
|
|
71
|
+
async update(
|
|
72
|
+
request: operations.UpdateCustomerRequest,
|
|
73
73
|
options?: RequestOptions,
|
|
74
|
-
): Promise<operations.
|
|
75
|
-
return unwrapAsync(
|
|
74
|
+
): Promise<operations.UpdateCustomerResponseBody> {
|
|
75
|
+
return unwrapAsync(customersUpdate(
|
|
76
76
|
this,
|
|
77
|
-
|
|
77
|
+
request,
|
|
78
78
|
options,
|
|
79
79
|
));
|
|
80
80
|
}
|
package/src/sdk/domains.ts
CHANGED
|
@@ -16,16 +16,16 @@ import { PageIterator, unwrapResultIterator } from "../types/operations.js";
|
|
|
16
16
|
|
|
17
17
|
export class Domains extends ClientSDK {
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
19
|
+
* Retrieve a list of domains
|
|
20
20
|
*
|
|
21
21
|
* @remarks
|
|
22
|
-
*
|
|
22
|
+
* Retrieve a list of domains associated with the authenticated workspace.
|
|
23
23
|
*/
|
|
24
|
-
async
|
|
25
|
-
request?: operations.
|
|
24
|
+
async list(
|
|
25
|
+
request?: operations.ListDomainsRequest | undefined,
|
|
26
26
|
options?: RequestOptions,
|
|
27
|
-
): Promise<
|
|
28
|
-
return
|
|
27
|
+
): Promise<PageIterator<operations.ListDomainsResponse, { page: number }>> {
|
|
28
|
+
return unwrapResultIterator(domainsList(
|
|
29
29
|
this,
|
|
30
30
|
request,
|
|
31
31
|
options,
|
|
@@ -33,16 +33,16 @@ export class Domains extends ClientSDK {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
|
-
*
|
|
36
|
+
* Create a domain
|
|
37
37
|
*
|
|
38
38
|
* @remarks
|
|
39
|
-
*
|
|
39
|
+
* Create a domain for the authenticated workspace.
|
|
40
40
|
*/
|
|
41
|
-
async
|
|
42
|
-
request?: operations.
|
|
41
|
+
async create(
|
|
42
|
+
request?: operations.CreateDomainRequestBody | undefined,
|
|
43
43
|
options?: RequestOptions,
|
|
44
|
-
): Promise<
|
|
45
|
-
return
|
|
44
|
+
): Promise<components.DomainSchema> {
|
|
45
|
+
return unwrapAsync(domainsCreate(
|
|
46
46
|
this,
|
|
47
47
|
request,
|
|
48
48
|
options,
|
|
@@ -50,37 +50,37 @@ export class Domains extends ClientSDK {
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
*
|
|
53
|
+
* Delete a domain
|
|
54
54
|
*
|
|
55
55
|
* @remarks
|
|
56
|
-
*
|
|
56
|
+
* Delete a domain from a workspace. It cannot be undone. This will also delete all the links associated with the domain.
|
|
57
57
|
*/
|
|
58
|
-
async
|
|
58
|
+
async delete(
|
|
59
59
|
slug: string,
|
|
60
|
-
requestBody?: operations.UpdateDomainRequestBody | undefined,
|
|
61
60
|
options?: RequestOptions,
|
|
62
|
-
): Promise<
|
|
63
|
-
return unwrapAsync(
|
|
61
|
+
): Promise<operations.DeleteDomainResponseBody> {
|
|
62
|
+
return unwrapAsync(domainsDelete(
|
|
64
63
|
this,
|
|
65
64
|
slug,
|
|
66
|
-
requestBody,
|
|
67
65
|
options,
|
|
68
66
|
));
|
|
69
67
|
}
|
|
70
68
|
|
|
71
69
|
/**
|
|
72
|
-
*
|
|
70
|
+
* Update a domain
|
|
73
71
|
*
|
|
74
72
|
* @remarks
|
|
75
|
-
*
|
|
73
|
+
* Update a domain for the authenticated workspace.
|
|
76
74
|
*/
|
|
77
|
-
async
|
|
75
|
+
async update(
|
|
78
76
|
slug: string,
|
|
77
|
+
requestBody?: operations.UpdateDomainRequestBody | undefined,
|
|
79
78
|
options?: RequestOptions,
|
|
80
|
-
): Promise<
|
|
81
|
-
return unwrapAsync(
|
|
79
|
+
): Promise<components.DomainSchema> {
|
|
80
|
+
return unwrapAsync(domainsUpdate(
|
|
82
81
|
this,
|
|
83
82
|
slug,
|
|
83
|
+
requestBody,
|
|
84
84
|
options,
|
|
85
85
|
));
|
|
86
86
|
}
|
package/src/sdk/folders.ts
CHANGED
|
@@ -13,16 +13,16 @@ import { unwrapAsync } from "../types/fp.js";
|
|
|
13
13
|
|
|
14
14
|
export class Folders extends ClientSDK {
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* Retrieve a list of folders
|
|
17
17
|
*
|
|
18
18
|
* @remarks
|
|
19
|
-
*
|
|
19
|
+
* Retrieve a list of folders for the authenticated workspace.
|
|
20
20
|
*/
|
|
21
|
-
async
|
|
22
|
-
request?: operations.
|
|
21
|
+
async list(
|
|
22
|
+
request?: operations.ListFoldersRequest | undefined,
|
|
23
23
|
options?: RequestOptions,
|
|
24
|
-
): Promise<components.FolderSchema
|
|
25
|
-
return unwrapAsync(
|
|
24
|
+
): Promise<Array<components.FolderSchema>> {
|
|
25
|
+
return unwrapAsync(foldersList(
|
|
26
26
|
this,
|
|
27
27
|
request,
|
|
28
28
|
options,
|
|
@@ -30,16 +30,16 @@ export class Folders extends ClientSDK {
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
/**
|
|
33
|
-
*
|
|
33
|
+
* Create a folder
|
|
34
34
|
*
|
|
35
35
|
* @remarks
|
|
36
|
-
*
|
|
36
|
+
* Create a folder for the authenticated workspace.
|
|
37
37
|
*/
|
|
38
|
-
async
|
|
39
|
-
request?: operations.
|
|
38
|
+
async create(
|
|
39
|
+
request?: operations.CreateFolderRequestBody | undefined,
|
|
40
40
|
options?: RequestOptions,
|
|
41
|
-
): Promise<
|
|
42
|
-
return unwrapAsync(
|
|
41
|
+
): Promise<components.FolderSchema> {
|
|
42
|
+
return unwrapAsync(foldersCreate(
|
|
43
43
|
this,
|
|
44
44
|
request,
|
|
45
45
|
options,
|
|
@@ -47,37 +47,37 @@ export class Folders extends ClientSDK {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
|
-
*
|
|
50
|
+
* Delete a folder
|
|
51
51
|
*
|
|
52
52
|
* @remarks
|
|
53
|
-
*
|
|
53
|
+
* Delete a folder from the workspace. All existing links will still work, but they will no longer be associated with this folder.
|
|
54
54
|
*/
|
|
55
|
-
async
|
|
55
|
+
async delete(
|
|
56
56
|
id: string,
|
|
57
|
-
requestBody?: operations.UpdateFolderRequestBody | undefined,
|
|
58
57
|
options?: RequestOptions,
|
|
59
|
-
): Promise<
|
|
60
|
-
return unwrapAsync(
|
|
58
|
+
): Promise<operations.DeleteFolderResponseBody> {
|
|
59
|
+
return unwrapAsync(foldersDelete(
|
|
61
60
|
this,
|
|
62
61
|
id,
|
|
63
|
-
requestBody,
|
|
64
62
|
options,
|
|
65
63
|
));
|
|
66
64
|
}
|
|
67
65
|
|
|
68
66
|
/**
|
|
69
|
-
*
|
|
67
|
+
* Update a folder
|
|
70
68
|
*
|
|
71
69
|
* @remarks
|
|
72
|
-
*
|
|
70
|
+
* Update a folder in the workspace.
|
|
73
71
|
*/
|
|
74
|
-
async
|
|
72
|
+
async update(
|
|
75
73
|
id: string,
|
|
74
|
+
requestBody?: operations.UpdateFolderRequestBody | undefined,
|
|
76
75
|
options?: RequestOptions,
|
|
77
|
-
): Promise<
|
|
78
|
-
return unwrapAsync(
|
|
76
|
+
): Promise<components.FolderSchema> {
|
|
77
|
+
return unwrapAsync(foldersUpdate(
|
|
79
78
|
this,
|
|
80
79
|
id,
|
|
80
|
+
requestBody,
|
|
81
81
|
options,
|
|
82
82
|
));
|
|
83
83
|
}
|