dub 0.46.21 → 0.46.25
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 +2 -0
- package/dist/commonjs/funcs/analyticsRetrieve.d.ts.map +1 -1
- package/dist/commonjs/funcs/analyticsRetrieve.js +3 -0
- package/dist/commonjs/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/commonjs/funcs/eventsList.d.ts.map +1 -1
- package/dist/commonjs/funcs/eventsList.js +3 -0
- package/dist/commonjs/funcs/eventsList.js.map +1 -1
- package/dist/commonjs/funcs/partnersCreateLink.d.ts +17 -0
- package/dist/commonjs/funcs/partnersCreateLink.d.ts.map +1 -0
- package/dist/commonjs/funcs/partnersCreateLink.js +117 -0
- package/dist/commonjs/funcs/partnersCreateLink.js.map +1 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/components/analyticstoplinks.d.ts +5 -0
- package/dist/commonjs/models/components/analyticstoplinks.d.ts.map +1 -1
- package/dist/commonjs/models/components/analyticstoplinks.js +2 -0
- package/dist/commonjs/models/components/analyticstoplinks.js.map +1 -1
- package/dist/commonjs/models/components/clickevent.d.ts +10 -5
- package/dist/commonjs/models/components/clickevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/clickevent.js +4 -2
- package/dist/commonjs/models/components/clickevent.js.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.d.ts +10 -5
- package/dist/commonjs/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadcreatedevent.js +4 -2
- package/dist/commonjs/models/components/leadcreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/leadevent.d.ts +10 -5
- package/dist/commonjs/models/components/leadevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/leadevent.js +4 -2
- package/dist/commonjs/models/components/leadevent.js.map +1 -1
- package/dist/commonjs/models/components/linkclickedevent.d.ts +10 -5
- package/dist/commonjs/models/components/linkclickedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/linkclickedevent.js +4 -2
- package/dist/commonjs/models/components/linkclickedevent.js.map +1 -1
- package/dist/commonjs/models/components/linkschema.d.ts +10 -5
- package/dist/commonjs/models/components/linkschema.d.ts.map +1 -1
- package/dist/commonjs/models/components/linkschema.js +4 -2
- package/dist/commonjs/models/components/linkschema.js.map +1 -1
- package/dist/commonjs/models/components/linkwebhookevent.d.ts +10 -5
- package/dist/commonjs/models/components/linkwebhookevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/linkwebhookevent.js +4 -2
- package/dist/commonjs/models/components/linkwebhookevent.js.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.d.ts +10 -5
- package/dist/commonjs/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/salecreatedevent.js +4 -2
- package/dist/commonjs/models/components/salecreatedevent.js.map +1 -1
- package/dist/commonjs/models/components/saleevent.d.ts +10 -5
- package/dist/commonjs/models/components/saleevent.d.ts.map +1 -1
- package/dist/commonjs/models/components/saleevent.js +4 -2
- package/dist/commonjs/models/components/saleevent.js.map +1 -1
- package/dist/commonjs/models/operations/bulkcreatelinks.d.ts +10 -5
- package/dist/commonjs/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/bulkcreatelinks.js +4 -2
- package/dist/commonjs/models/operations/bulkcreatelinks.js.map +1 -1
- package/dist/commonjs/models/operations/bulkupdatelinks.d.ts +10 -5
- package/dist/commonjs/models/operations/bulkupdatelinks.d.ts.map +1 -1
- package/dist/commonjs/models/operations/bulkupdatelinks.js +4 -2
- package/dist/commonjs/models/operations/bulkupdatelinks.js.map +1 -1
- package/dist/commonjs/models/operations/createembedtoken.d.ts +6 -2
- package/dist/commonjs/models/operations/createembedtoken.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createembedtoken.js +6 -2
- package/dist/commonjs/models/operations/createembedtoken.js.map +1 -1
- package/dist/commonjs/models/operations/createlink.d.ts +10 -5
- package/dist/commonjs/models/operations/createlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createlink.js +4 -2
- package/dist/commonjs/models/operations/createlink.js.map +1 -1
- package/dist/commonjs/models/operations/createpartner.d.ts +39 -21
- package/dist/commonjs/models/operations/createpartner.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createpartner.js +35 -22
- package/dist/commonjs/models/operations/createpartner.js.map +1 -1
- package/dist/commonjs/models/operations/createpartnerlink.d.ts +261 -0
- package/dist/commonjs/models/operations/createpartnerlink.d.ts.map +1 -0
- package/dist/commonjs/models/operations/createpartnerlink.js +209 -0
- package/dist/commonjs/models/operations/createpartnerlink.js.map +1 -0
- package/dist/commonjs/models/operations/index.d.ts +1 -0
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +1 -0
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/listevents.d.ts +15 -0
- package/dist/commonjs/models/operations/listevents.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listevents.js +6 -0
- package/dist/commonjs/models/operations/listevents.js.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts +15 -0
- package/dist/commonjs/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/commonjs/models/operations/retrieveanalytics.js +6 -0
- package/dist/commonjs/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/commonjs/models/operations/updatelink.d.ts +10 -5
- package/dist/commonjs/models/operations/updatelink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatelink.js +4 -2
- package/dist/commonjs/models/operations/updatelink.js.map +1 -1
- package/dist/commonjs/models/operations/upsertlink.d.ts +10 -5
- package/dist/commonjs/models/operations/upsertlink.d.ts.map +1 -1
- package/dist/commonjs/models/operations/upsertlink.js +4 -2
- package/dist/commonjs/models/operations/upsertlink.js.map +1 -1
- package/dist/commonjs/sdk/partners.d.ts +8 -0
- package/dist/commonjs/sdk/partners.d.ts.map +1 -1
- package/dist/commonjs/sdk/partners.js +10 -0
- package/dist/commonjs/sdk/partners.js.map +1 -1
- package/dist/esm/funcs/analyticsRetrieve.d.ts.map +1 -1
- package/dist/esm/funcs/analyticsRetrieve.js +3 -0
- package/dist/esm/funcs/analyticsRetrieve.js.map +1 -1
- package/dist/esm/funcs/eventsList.d.ts.map +1 -1
- package/dist/esm/funcs/eventsList.js +3 -0
- package/dist/esm/funcs/eventsList.js.map +1 -1
- package/dist/esm/funcs/partnersCreateLink.d.ts +17 -0
- package/dist/esm/funcs/partnersCreateLink.d.ts.map +1 -0
- package/dist/esm/funcs/partnersCreateLink.js +90 -0
- package/dist/esm/funcs/partnersCreateLink.js.map +1 -0
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/components/analyticstoplinks.d.ts +5 -0
- package/dist/esm/models/components/analyticstoplinks.d.ts.map +1 -1
- package/dist/esm/models/components/analyticstoplinks.js +2 -0
- package/dist/esm/models/components/analyticstoplinks.js.map +1 -1
- package/dist/esm/models/components/clickevent.d.ts +10 -5
- package/dist/esm/models/components/clickevent.d.ts.map +1 -1
- package/dist/esm/models/components/clickevent.js +4 -2
- package/dist/esm/models/components/clickevent.js.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.d.ts +10 -5
- package/dist/esm/models/components/leadcreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadcreatedevent.js +4 -2
- package/dist/esm/models/components/leadcreatedevent.js.map +1 -1
- package/dist/esm/models/components/leadevent.d.ts +10 -5
- package/dist/esm/models/components/leadevent.d.ts.map +1 -1
- package/dist/esm/models/components/leadevent.js +4 -2
- package/dist/esm/models/components/leadevent.js.map +1 -1
- package/dist/esm/models/components/linkclickedevent.d.ts +10 -5
- package/dist/esm/models/components/linkclickedevent.d.ts.map +1 -1
- package/dist/esm/models/components/linkclickedevent.js +4 -2
- package/dist/esm/models/components/linkclickedevent.js.map +1 -1
- package/dist/esm/models/components/linkschema.d.ts +10 -5
- package/dist/esm/models/components/linkschema.d.ts.map +1 -1
- package/dist/esm/models/components/linkschema.js +4 -2
- package/dist/esm/models/components/linkschema.js.map +1 -1
- package/dist/esm/models/components/linkwebhookevent.d.ts +10 -5
- package/dist/esm/models/components/linkwebhookevent.d.ts.map +1 -1
- package/dist/esm/models/components/linkwebhookevent.js +4 -2
- package/dist/esm/models/components/linkwebhookevent.js.map +1 -1
- package/dist/esm/models/components/salecreatedevent.d.ts +10 -5
- package/dist/esm/models/components/salecreatedevent.d.ts.map +1 -1
- package/dist/esm/models/components/salecreatedevent.js +4 -2
- package/dist/esm/models/components/salecreatedevent.js.map +1 -1
- package/dist/esm/models/components/saleevent.d.ts +10 -5
- package/dist/esm/models/components/saleevent.d.ts.map +1 -1
- package/dist/esm/models/components/saleevent.js +4 -2
- package/dist/esm/models/components/saleevent.js.map +1 -1
- package/dist/esm/models/operations/bulkcreatelinks.d.ts +10 -5
- package/dist/esm/models/operations/bulkcreatelinks.d.ts.map +1 -1
- package/dist/esm/models/operations/bulkcreatelinks.js +4 -2
- package/dist/esm/models/operations/bulkcreatelinks.js.map +1 -1
- package/dist/esm/models/operations/bulkupdatelinks.d.ts +10 -5
- package/dist/esm/models/operations/bulkupdatelinks.d.ts.map +1 -1
- package/dist/esm/models/operations/bulkupdatelinks.js +4 -2
- package/dist/esm/models/operations/bulkupdatelinks.js.map +1 -1
- package/dist/esm/models/operations/createembedtoken.d.ts +6 -2
- package/dist/esm/models/operations/createembedtoken.d.ts.map +1 -1
- package/dist/esm/models/operations/createembedtoken.js +6 -2
- package/dist/esm/models/operations/createembedtoken.js.map +1 -1
- package/dist/esm/models/operations/createlink.d.ts +10 -5
- package/dist/esm/models/operations/createlink.d.ts.map +1 -1
- package/dist/esm/models/operations/createlink.js +4 -2
- package/dist/esm/models/operations/createlink.js.map +1 -1
- package/dist/esm/models/operations/createpartner.d.ts +39 -21
- package/dist/esm/models/operations/createpartner.d.ts.map +1 -1
- package/dist/esm/models/operations/createpartner.js +32 -19
- package/dist/esm/models/operations/createpartner.js.map +1 -1
- package/dist/esm/models/operations/createpartnerlink.d.ts +261 -0
- package/dist/esm/models/operations/createpartnerlink.d.ts.map +1 -0
- package/dist/esm/models/operations/createpartnerlink.js +175 -0
- package/dist/esm/models/operations/createpartnerlink.js.map +1 -0
- package/dist/esm/models/operations/index.d.ts +1 -0
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +1 -0
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/listevents.d.ts +15 -0
- package/dist/esm/models/operations/listevents.d.ts.map +1 -1
- package/dist/esm/models/operations/listevents.js +6 -0
- package/dist/esm/models/operations/listevents.js.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.d.ts +15 -0
- package/dist/esm/models/operations/retrieveanalytics.d.ts.map +1 -1
- package/dist/esm/models/operations/retrieveanalytics.js +6 -0
- package/dist/esm/models/operations/retrieveanalytics.js.map +1 -1
- package/dist/esm/models/operations/updatelink.d.ts +10 -5
- package/dist/esm/models/operations/updatelink.d.ts.map +1 -1
- package/dist/esm/models/operations/updatelink.js +4 -2
- package/dist/esm/models/operations/updatelink.js.map +1 -1
- package/dist/esm/models/operations/upsertlink.d.ts +10 -5
- package/dist/esm/models/operations/upsertlink.d.ts.map +1 -1
- package/dist/esm/models/operations/upsertlink.js +4 -2
- package/dist/esm/models/operations/upsertlink.js.map +1 -1
- package/dist/esm/sdk/partners.d.ts +8 -0
- package/dist/esm/sdk/partners.d.ts.map +1 -1
- package/dist/esm/sdk/partners.js +10 -0
- package/dist/esm/sdk/partners.js.map +1 -1
- package/docs/sdks/partners/README.md +82 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/analyticsRetrieve.ts +3 -0
- package/src/funcs/eventsList.ts +3 -0
- package/src/funcs/partnersCreateLink.ts +176 -0
- package/src/lib/config.ts +2 -2
- package/src/models/components/analyticstoplinks.ts +7 -0
- package/src/models/components/clickevent.ts +14 -7
- package/src/models/components/leadcreatedevent.ts +14 -7
- package/src/models/components/leadevent.ts +14 -7
- package/src/models/components/linkclickedevent.ts +14 -7
- package/src/models/components/linkschema.ts +14 -7
- package/src/models/components/linkwebhookevent.ts +14 -7
- package/src/models/components/salecreatedevent.ts +14 -7
- package/src/models/components/saleevent.ts +14 -7
- package/src/models/operations/bulkcreatelinks.ts +14 -7
- package/src/models/operations/bulkupdatelinks.ts +14 -7
- package/src/models/operations/createembedtoken.ts +12 -4
- package/src/models/operations/createlink.ts +14 -7
- package/src/models/operations/createpartner.ts +73 -50
- package/src/models/operations/createpartnerlink.ts +468 -0
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listevents.ts +21 -0
- package/src/models/operations/retrieveanalytics.ts +21 -0
- package/src/models/operations/updatelink.ts +14 -7
- package/src/models/operations/upsertlink.ts +14 -7
- package/src/sdk/partners.ts +19 -0
|
@@ -311,6 +311,14 @@ export type Data = {
|
|
|
311
311
|
* The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.
|
|
312
312
|
*/
|
|
313
313
|
tenantId: string | null;
|
|
314
|
+
/**
|
|
315
|
+
* The ID of the program the short link is associated with.
|
|
316
|
+
*/
|
|
317
|
+
programId: string | null;
|
|
318
|
+
/**
|
|
319
|
+
* The ID of the partner the short link is associated with.
|
|
320
|
+
*/
|
|
321
|
+
partnerId: string | null;
|
|
314
322
|
archived?: boolean | undefined;
|
|
315
323
|
expiresAt: string;
|
|
316
324
|
expiredUrl: string | null;
|
|
@@ -426,10 +434,6 @@ export type Data = {
|
|
|
426
434
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
427
435
|
*/
|
|
428
436
|
projectId: string;
|
|
429
|
-
/**
|
|
430
|
-
* The ID of the program the short link is associated with.
|
|
431
|
-
*/
|
|
432
|
-
programId: string | null;
|
|
433
437
|
};
|
|
434
438
|
|
|
435
439
|
/**
|
|
@@ -1863,6 +1867,8 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
1863
1867
|
trackConversion: z.boolean().optional(),
|
|
1864
1868
|
externalId: z.nullable(z.string()),
|
|
1865
1869
|
tenantId: z.nullable(z.string()),
|
|
1870
|
+
programId: z.nullable(z.string()),
|
|
1871
|
+
partnerId: z.nullable(z.string()),
|
|
1866
1872
|
archived: z.boolean().optional(),
|
|
1867
1873
|
expiresAt: z.string(),
|
|
1868
1874
|
expiredUrl: z.nullable(z.string()),
|
|
@@ -1899,7 +1905,6 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
1899
1905
|
createdAt: z.string(),
|
|
1900
1906
|
updatedAt: z.string(),
|
|
1901
1907
|
projectId: z.string(),
|
|
1902
|
-
programId: z.nullable(z.string()),
|
|
1903
1908
|
}).transform((v) => {
|
|
1904
1909
|
return remap$(v, {
|
|
1905
1910
|
"utm_source": "utmSource",
|
|
@@ -1919,6 +1924,8 @@ export type Data$Outbound = {
|
|
|
1919
1924
|
trackConversion?: boolean | undefined;
|
|
1920
1925
|
externalId: string | null;
|
|
1921
1926
|
tenantId: string | null;
|
|
1927
|
+
programId: string | null;
|
|
1928
|
+
partnerId: string | null;
|
|
1922
1929
|
archived?: boolean | undefined;
|
|
1923
1930
|
expiresAt: string;
|
|
1924
1931
|
expiredUrl: string | null;
|
|
@@ -1955,7 +1962,6 @@ export type Data$Outbound = {
|
|
|
1955
1962
|
createdAt: string;
|
|
1956
1963
|
updatedAt: string;
|
|
1957
1964
|
projectId: string;
|
|
1958
|
-
programId: string | null;
|
|
1959
1965
|
};
|
|
1960
1966
|
|
|
1961
1967
|
/** @internal */
|
|
@@ -1968,6 +1974,8 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
1968
1974
|
trackConversion: z.boolean().optional(),
|
|
1969
1975
|
externalId: z.nullable(z.string()),
|
|
1970
1976
|
tenantId: z.nullable(z.string()),
|
|
1977
|
+
programId: z.nullable(z.string()),
|
|
1978
|
+
partnerId: z.nullable(z.string()),
|
|
1971
1979
|
archived: z.boolean().optional(),
|
|
1972
1980
|
expiresAt: z.string(),
|
|
1973
1981
|
expiredUrl: z.nullable(z.string()),
|
|
@@ -2004,7 +2012,6 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
2004
2012
|
createdAt: z.string(),
|
|
2005
2013
|
updatedAt: z.string(),
|
|
2006
2014
|
projectId: z.string(),
|
|
2007
|
-
programId: z.nullable(z.string()),
|
|
2008
2015
|
}).transform((v) => {
|
|
2009
2016
|
return remap$(v, {
|
|
2010
2017
|
utmSource: "utm_source",
|
|
@@ -403,6 +403,14 @@ export type SaleCreatedEventLink = {
|
|
|
403
403
|
* The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.
|
|
404
404
|
*/
|
|
405
405
|
tenantId: string | null;
|
|
406
|
+
/**
|
|
407
|
+
* The ID of the program the short link is associated with.
|
|
408
|
+
*/
|
|
409
|
+
programId: string | null;
|
|
410
|
+
/**
|
|
411
|
+
* The ID of the partner the short link is associated with.
|
|
412
|
+
*/
|
|
413
|
+
partnerId: string | null;
|
|
406
414
|
archived?: boolean | undefined;
|
|
407
415
|
expiresAt: string;
|
|
408
416
|
expiredUrl: string | null;
|
|
@@ -518,10 +526,6 @@ export type SaleCreatedEventLink = {
|
|
|
518
526
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
519
527
|
*/
|
|
520
528
|
projectId: string;
|
|
521
|
-
/**
|
|
522
|
-
* The ID of the program the short link is associated with.
|
|
523
|
-
*/
|
|
524
|
-
programId: string | null;
|
|
525
529
|
};
|
|
526
530
|
|
|
527
531
|
export type SaleCreatedEventSale = {
|
|
@@ -2310,6 +2314,8 @@ export const SaleCreatedEventLink$inboundSchema: z.ZodType<
|
|
|
2310
2314
|
trackConversion: z.boolean().optional(),
|
|
2311
2315
|
externalId: z.nullable(z.string()),
|
|
2312
2316
|
tenantId: z.nullable(z.string()),
|
|
2317
|
+
programId: z.nullable(z.string()),
|
|
2318
|
+
partnerId: z.nullable(z.string()),
|
|
2313
2319
|
archived: z.boolean().optional(),
|
|
2314
2320
|
expiresAt: z.string(),
|
|
2315
2321
|
expiredUrl: z.nullable(z.string()),
|
|
@@ -2346,7 +2352,6 @@ export const SaleCreatedEventLink$inboundSchema: z.ZodType<
|
|
|
2346
2352
|
createdAt: z.string(),
|
|
2347
2353
|
updatedAt: z.string(),
|
|
2348
2354
|
projectId: z.string(),
|
|
2349
|
-
programId: z.nullable(z.string()),
|
|
2350
2355
|
}).transform((v) => {
|
|
2351
2356
|
return remap$(v, {
|
|
2352
2357
|
"utm_source": "utmSource",
|
|
@@ -2366,6 +2371,8 @@ export type SaleCreatedEventLink$Outbound = {
|
|
|
2366
2371
|
trackConversion?: boolean | undefined;
|
|
2367
2372
|
externalId: string | null;
|
|
2368
2373
|
tenantId: string | null;
|
|
2374
|
+
programId: string | null;
|
|
2375
|
+
partnerId: string | null;
|
|
2369
2376
|
archived?: boolean | undefined;
|
|
2370
2377
|
expiresAt: string;
|
|
2371
2378
|
expiredUrl: string | null;
|
|
@@ -2402,7 +2409,6 @@ export type SaleCreatedEventLink$Outbound = {
|
|
|
2402
2409
|
createdAt: string;
|
|
2403
2410
|
updatedAt: string;
|
|
2404
2411
|
projectId: string;
|
|
2405
|
-
programId: string | null;
|
|
2406
2412
|
};
|
|
2407
2413
|
|
|
2408
2414
|
/** @internal */
|
|
@@ -2418,6 +2424,8 @@ export const SaleCreatedEventLink$outboundSchema: z.ZodType<
|
|
|
2418
2424
|
trackConversion: z.boolean().optional(),
|
|
2419
2425
|
externalId: z.nullable(z.string()),
|
|
2420
2426
|
tenantId: z.nullable(z.string()),
|
|
2427
|
+
programId: z.nullable(z.string()),
|
|
2428
|
+
partnerId: z.nullable(z.string()),
|
|
2421
2429
|
archived: z.boolean().optional(),
|
|
2422
2430
|
expiresAt: z.string(),
|
|
2423
2431
|
expiredUrl: z.nullable(z.string()),
|
|
@@ -2454,7 +2462,6 @@ export const SaleCreatedEventLink$outboundSchema: z.ZodType<
|
|
|
2454
2462
|
createdAt: z.string(),
|
|
2455
2463
|
updatedAt: z.string(),
|
|
2456
2464
|
projectId: z.string(),
|
|
2457
|
-
programId: z.nullable(z.string()),
|
|
2458
2465
|
}).transform((v) => {
|
|
2459
2466
|
return remap$(v, {
|
|
2460
2467
|
utmSource: "utm_source",
|
|
@@ -299,6 +299,14 @@ export type SaleEventLink = {
|
|
|
299
299
|
* The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.
|
|
300
300
|
*/
|
|
301
301
|
tenantId: string | null;
|
|
302
|
+
/**
|
|
303
|
+
* The ID of the program the short link is associated with.
|
|
304
|
+
*/
|
|
305
|
+
programId: string | null;
|
|
306
|
+
/**
|
|
307
|
+
* The ID of the partner the short link is associated with.
|
|
308
|
+
*/
|
|
309
|
+
partnerId: string | null;
|
|
302
310
|
archived?: boolean | undefined;
|
|
303
311
|
expiresAt: string;
|
|
304
312
|
expiredUrl: string | null;
|
|
@@ -414,10 +422,6 @@ export type SaleEventLink = {
|
|
|
414
422
|
* @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
|
|
415
423
|
*/
|
|
416
424
|
projectId: string;
|
|
417
|
-
/**
|
|
418
|
-
* The ID of the program the short link is associated with.
|
|
419
|
-
*/
|
|
420
|
-
programId: string | null;
|
|
421
425
|
};
|
|
422
426
|
|
|
423
427
|
export type SaleEventClick = {
|
|
@@ -1992,6 +1996,8 @@ export const SaleEventLink$inboundSchema: z.ZodType<
|
|
|
1992
1996
|
trackConversion: z.boolean().optional(),
|
|
1993
1997
|
externalId: z.nullable(z.string()),
|
|
1994
1998
|
tenantId: z.nullable(z.string()),
|
|
1999
|
+
programId: z.nullable(z.string()),
|
|
2000
|
+
partnerId: z.nullable(z.string()),
|
|
1995
2001
|
archived: z.boolean().optional(),
|
|
1996
2002
|
expiresAt: z.string(),
|
|
1997
2003
|
expiredUrl: z.nullable(z.string()),
|
|
@@ -2028,7 +2034,6 @@ export const SaleEventLink$inboundSchema: z.ZodType<
|
|
|
2028
2034
|
createdAt: z.string(),
|
|
2029
2035
|
updatedAt: z.string(),
|
|
2030
2036
|
projectId: z.string(),
|
|
2031
|
-
programId: z.nullable(z.string()),
|
|
2032
2037
|
}).transform((v) => {
|
|
2033
2038
|
return remap$(v, {
|
|
2034
2039
|
"utm_source": "utmSource",
|
|
@@ -2048,6 +2053,8 @@ export type SaleEventLink$Outbound = {
|
|
|
2048
2053
|
trackConversion?: boolean | undefined;
|
|
2049
2054
|
externalId: string | null;
|
|
2050
2055
|
tenantId: string | null;
|
|
2056
|
+
programId: string | null;
|
|
2057
|
+
partnerId: string | null;
|
|
2051
2058
|
archived?: boolean | undefined;
|
|
2052
2059
|
expiresAt: string;
|
|
2053
2060
|
expiredUrl: string | null;
|
|
@@ -2084,7 +2091,6 @@ export type SaleEventLink$Outbound = {
|
|
|
2084
2091
|
createdAt: string;
|
|
2085
2092
|
updatedAt: string;
|
|
2086
2093
|
projectId: string;
|
|
2087
|
-
programId: string | null;
|
|
2088
2094
|
};
|
|
2089
2095
|
|
|
2090
2096
|
/** @internal */
|
|
@@ -2100,6 +2106,8 @@ export const SaleEventLink$outboundSchema: z.ZodType<
|
|
|
2100
2106
|
trackConversion: z.boolean().optional(),
|
|
2101
2107
|
externalId: z.nullable(z.string()),
|
|
2102
2108
|
tenantId: z.nullable(z.string()),
|
|
2109
|
+
programId: z.nullable(z.string()),
|
|
2110
|
+
partnerId: z.nullable(z.string()),
|
|
2103
2111
|
archived: z.boolean().optional(),
|
|
2104
2112
|
expiresAt: z.string(),
|
|
2105
2113
|
expiredUrl: z.nullable(z.string()),
|
|
@@ -2136,7 +2144,6 @@ export const SaleEventLink$outboundSchema: z.ZodType<
|
|
|
2136
2144
|
createdAt: z.string(),
|
|
2137
2145
|
updatedAt: z.string(),
|
|
2138
2146
|
projectId: z.string(),
|
|
2139
|
-
programId: z.nullable(z.string()),
|
|
2140
2147
|
}).transform((v) => {
|
|
2141
2148
|
return remap$(v, {
|
|
2142
2149
|
utmSource: "utm_source",
|
|
@@ -40,6 +40,14 @@ export type RequestBody = {
|
|
|
40
40
|
* The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.
|
|
41
41
|
*/
|
|
42
42
|
tenantId?: string | null | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The ID of the program the short link is associated with.
|
|
45
|
+
*/
|
|
46
|
+
programId?: string | null | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* The ID of the partner the short link is associated with.
|
|
49
|
+
*/
|
|
50
|
+
partnerId?: string | null | undefined;
|
|
43
51
|
/**
|
|
44
52
|
* The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided.
|
|
45
53
|
*/
|
|
@@ -152,10 +160,6 @@ export type RequestBody = {
|
|
|
152
160
|
* The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
153
161
|
*/
|
|
154
162
|
ref?: string | null | undefined;
|
|
155
|
-
/**
|
|
156
|
-
* The ID of the program the short link is associated with.
|
|
157
|
-
*/
|
|
158
|
-
programId?: string | null | undefined;
|
|
159
163
|
/**
|
|
160
164
|
* An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
161
165
|
*/
|
|
@@ -271,6 +275,8 @@ export const RequestBody$inboundSchema: z.ZodType<
|
|
|
271
275
|
key: z.string().optional(),
|
|
272
276
|
externalId: z.nullable(z.string()).optional(),
|
|
273
277
|
tenantId: z.nullable(z.string()).optional(),
|
|
278
|
+
programId: z.nullable(z.string()).optional(),
|
|
279
|
+
partnerId: z.nullable(z.string()).optional(),
|
|
274
280
|
prefix: z.string().optional(),
|
|
275
281
|
trackConversion: z.boolean().optional(),
|
|
276
282
|
archived: z.boolean().optional(),
|
|
@@ -298,7 +304,6 @@ export const RequestBody$inboundSchema: z.ZodType<
|
|
|
298
304
|
utm_term: z.nullable(z.string()).optional(),
|
|
299
305
|
utm_content: z.nullable(z.string()).optional(),
|
|
300
306
|
ref: z.nullable(z.string()).optional(),
|
|
301
|
-
programId: z.nullable(z.string()).optional(),
|
|
302
307
|
webhookIds: z.nullable(z.array(z.string())).optional(),
|
|
303
308
|
}).transform((v) => {
|
|
304
309
|
return remap$(v, {
|
|
@@ -317,6 +322,8 @@ export type RequestBody$Outbound = {
|
|
|
317
322
|
key?: string | undefined;
|
|
318
323
|
externalId?: string | null | undefined;
|
|
319
324
|
tenantId?: string | null | undefined;
|
|
325
|
+
programId?: string | null | undefined;
|
|
326
|
+
partnerId?: string | null | undefined;
|
|
320
327
|
prefix?: string | undefined;
|
|
321
328
|
trackConversion?: boolean | undefined;
|
|
322
329
|
archived?: boolean | undefined;
|
|
@@ -344,7 +351,6 @@ export type RequestBody$Outbound = {
|
|
|
344
351
|
utm_term?: string | null | undefined;
|
|
345
352
|
utm_content?: string | null | undefined;
|
|
346
353
|
ref?: string | null | undefined;
|
|
347
|
-
programId?: string | null | undefined;
|
|
348
354
|
webhookIds?: Array<string> | null | undefined;
|
|
349
355
|
};
|
|
350
356
|
|
|
@@ -359,6 +365,8 @@ export const RequestBody$outboundSchema: z.ZodType<
|
|
|
359
365
|
key: z.string().optional(),
|
|
360
366
|
externalId: z.nullable(z.string()).optional(),
|
|
361
367
|
tenantId: z.nullable(z.string()).optional(),
|
|
368
|
+
programId: z.nullable(z.string()).optional(),
|
|
369
|
+
partnerId: z.nullable(z.string()).optional(),
|
|
362
370
|
prefix: z.string().optional(),
|
|
363
371
|
trackConversion: z.boolean().optional(),
|
|
364
372
|
archived: z.boolean().optional(),
|
|
@@ -386,7 +394,6 @@ export const RequestBody$outboundSchema: z.ZodType<
|
|
|
386
394
|
utmTerm: z.nullable(z.string()).optional(),
|
|
387
395
|
utmContent: z.nullable(z.string()).optional(),
|
|
388
396
|
ref: z.nullable(z.string()).optional(),
|
|
389
|
-
programId: z.nullable(z.string()).optional(),
|
|
390
397
|
webhookIds: z.nullable(z.array(z.string())).optional(),
|
|
391
398
|
}).transform((v) => {
|
|
392
399
|
return remap$(v, {
|
|
@@ -28,6 +28,14 @@ export type Data = {
|
|
|
28
28
|
* The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.
|
|
29
29
|
*/
|
|
30
30
|
tenantId?: string | null | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* The ID of the program the short link is associated with.
|
|
33
|
+
*/
|
|
34
|
+
programId?: string | null | undefined;
|
|
35
|
+
/**
|
|
36
|
+
* The ID of the partner the short link is associated with.
|
|
37
|
+
*/
|
|
38
|
+
partnerId?: string | null | undefined;
|
|
31
39
|
/**
|
|
32
40
|
* Whether to track conversions for the short link. Defaults to `false` if not provided.
|
|
33
41
|
*/
|
|
@@ -136,10 +144,6 @@ export type Data = {
|
|
|
136
144
|
* The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
137
145
|
*/
|
|
138
146
|
ref?: string | null | undefined;
|
|
139
|
-
/**
|
|
140
|
-
* The ID of the program the short link is associated with.
|
|
141
|
-
*/
|
|
142
|
-
programId?: string | null | undefined;
|
|
143
147
|
/**
|
|
144
148
|
* An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
145
149
|
*/
|
|
@@ -259,6 +263,8 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
259
263
|
.object({
|
|
260
264
|
url: z.string().optional(),
|
|
261
265
|
tenantId: z.nullable(z.string()).optional(),
|
|
266
|
+
programId: z.nullable(z.string()).optional(),
|
|
267
|
+
partnerId: z.nullable(z.string()).optional(),
|
|
262
268
|
trackConversion: z.boolean().optional(),
|
|
263
269
|
archived: z.boolean().optional(),
|
|
264
270
|
publicStats: z.boolean().optional(),
|
|
@@ -285,7 +291,6 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
285
291
|
utm_term: z.nullable(z.string()).optional(),
|
|
286
292
|
utm_content: z.nullable(z.string()).optional(),
|
|
287
293
|
ref: z.nullable(z.string()).optional(),
|
|
288
|
-
programId: z.nullable(z.string()).optional(),
|
|
289
294
|
webhookIds: z.nullable(z.array(z.string())).optional(),
|
|
290
295
|
}).transform((v) => {
|
|
291
296
|
return remap$(v, {
|
|
@@ -301,6 +306,8 @@ export const Data$inboundSchema: z.ZodType<Data, z.ZodTypeDef, unknown> = z
|
|
|
301
306
|
export type Data$Outbound = {
|
|
302
307
|
url?: string | undefined;
|
|
303
308
|
tenantId?: string | null | undefined;
|
|
309
|
+
programId?: string | null | undefined;
|
|
310
|
+
partnerId?: string | null | undefined;
|
|
304
311
|
trackConversion?: boolean | undefined;
|
|
305
312
|
archived?: boolean | undefined;
|
|
306
313
|
publicStats?: boolean | undefined;
|
|
@@ -327,7 +334,6 @@ export type Data$Outbound = {
|
|
|
327
334
|
utm_term?: string | null | undefined;
|
|
328
335
|
utm_content?: string | null | undefined;
|
|
329
336
|
ref?: string | null | undefined;
|
|
330
|
-
programId?: string | null | undefined;
|
|
331
337
|
webhookIds?: Array<string> | null | undefined;
|
|
332
338
|
};
|
|
333
339
|
|
|
@@ -336,6 +342,8 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
336
342
|
z.object({
|
|
337
343
|
url: z.string().optional(),
|
|
338
344
|
tenantId: z.nullable(z.string()).optional(),
|
|
345
|
+
programId: z.nullable(z.string()).optional(),
|
|
346
|
+
partnerId: z.nullable(z.string()).optional(),
|
|
339
347
|
trackConversion: z.boolean().optional(),
|
|
340
348
|
archived: z.boolean().optional(),
|
|
341
349
|
publicStats: z.boolean().optional(),
|
|
@@ -362,7 +370,6 @@ export const Data$outboundSchema: z.ZodType<Data$Outbound, z.ZodTypeDef, Data> =
|
|
|
362
370
|
utmTerm: z.nullable(z.string()).optional(),
|
|
363
371
|
utmContent: z.nullable(z.string()).optional(),
|
|
364
372
|
ref: z.nullable(z.string()).optional(),
|
|
365
|
-
programId: z.nullable(z.string()).optional(),
|
|
366
373
|
webhookIds: z.nullable(z.array(z.string())).optional(),
|
|
367
374
|
}).transform((v) => {
|
|
368
375
|
return remap$(v, {
|
|
@@ -8,7 +8,9 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
9
|
|
|
10
10
|
export type CreateEmbedTokenRequestBody = {
|
|
11
|
-
|
|
11
|
+
programId: string;
|
|
12
|
+
partnerId?: string | null | undefined;
|
|
13
|
+
tenantId?: string | null | undefined;
|
|
12
14
|
};
|
|
13
15
|
|
|
14
16
|
/**
|
|
@@ -25,12 +27,16 @@ export const CreateEmbedTokenRequestBody$inboundSchema: z.ZodType<
|
|
|
25
27
|
z.ZodTypeDef,
|
|
26
28
|
unknown
|
|
27
29
|
> = z.object({
|
|
28
|
-
|
|
30
|
+
programId: z.string(),
|
|
31
|
+
partnerId: z.nullable(z.string()).optional(),
|
|
32
|
+
tenantId: z.nullable(z.string()).optional(),
|
|
29
33
|
});
|
|
30
34
|
|
|
31
35
|
/** @internal */
|
|
32
36
|
export type CreateEmbedTokenRequestBody$Outbound = {
|
|
33
|
-
|
|
37
|
+
programId: string;
|
|
38
|
+
partnerId?: string | null | undefined;
|
|
39
|
+
tenantId?: string | null | undefined;
|
|
34
40
|
};
|
|
35
41
|
|
|
36
42
|
/** @internal */
|
|
@@ -39,7 +45,9 @@ export const CreateEmbedTokenRequestBody$outboundSchema: z.ZodType<
|
|
|
39
45
|
z.ZodTypeDef,
|
|
40
46
|
CreateEmbedTokenRequestBody
|
|
41
47
|
> = z.object({
|
|
42
|
-
|
|
48
|
+
programId: z.string(),
|
|
49
|
+
partnerId: z.nullable(z.string()).optional(),
|
|
50
|
+
tenantId: z.nullable(z.string()).optional(),
|
|
43
51
|
});
|
|
44
52
|
|
|
45
53
|
/**
|
|
@@ -40,6 +40,14 @@ export type CreateLinkRequestBody = {
|
|
|
40
40
|
* The ID of the tenant that created the link inside your system. If set, it can be used to fetch all links for a tenant.
|
|
41
41
|
*/
|
|
42
42
|
tenantId?: string | null | undefined;
|
|
43
|
+
/**
|
|
44
|
+
* The ID of the program the short link is associated with.
|
|
45
|
+
*/
|
|
46
|
+
programId?: string | null | undefined;
|
|
47
|
+
/**
|
|
48
|
+
* The ID of the partner the short link is associated with.
|
|
49
|
+
*/
|
|
50
|
+
partnerId?: string | null | undefined;
|
|
43
51
|
/**
|
|
44
52
|
* The prefix of the short link slug for randomly-generated keys (e.g. if prefix is `/c/`, generated keys will be in the `/c/:key` format). Will be ignored if `key` is provided.
|
|
45
53
|
*/
|
|
@@ -152,10 +160,6 @@ export type CreateLinkRequestBody = {
|
|
|
152
160
|
* The referral tag of the short link. If set, this will populate or override the `ref` query parameter in the destination URL.
|
|
153
161
|
*/
|
|
154
162
|
ref?: string | null | undefined;
|
|
155
|
-
/**
|
|
156
|
-
* The ID of the program the short link is associated with.
|
|
157
|
-
*/
|
|
158
|
-
programId?: string | null | undefined;
|
|
159
163
|
/**
|
|
160
164
|
* An array of webhook IDs to trigger when the link is clicked. These webhooks will receive click event data.
|
|
161
165
|
*/
|
|
@@ -258,6 +262,8 @@ export const CreateLinkRequestBody$inboundSchema: z.ZodType<
|
|
|
258
262
|
key: z.string().optional(),
|
|
259
263
|
externalId: z.nullable(z.string()).optional(),
|
|
260
264
|
tenantId: z.nullable(z.string()).optional(),
|
|
265
|
+
programId: z.nullable(z.string()).optional(),
|
|
266
|
+
partnerId: z.nullable(z.string()).optional(),
|
|
261
267
|
prefix: z.string().optional(),
|
|
262
268
|
trackConversion: z.boolean().optional(),
|
|
263
269
|
archived: z.boolean().optional(),
|
|
@@ -285,7 +291,6 @@ export const CreateLinkRequestBody$inboundSchema: z.ZodType<
|
|
|
285
291
|
utm_term: z.nullable(z.string()).optional(),
|
|
286
292
|
utm_content: z.nullable(z.string()).optional(),
|
|
287
293
|
ref: z.nullable(z.string()).optional(),
|
|
288
|
-
programId: z.nullable(z.string()).optional(),
|
|
289
294
|
webhookIds: z.nullable(z.array(z.string())).optional(),
|
|
290
295
|
}).transform((v) => {
|
|
291
296
|
return remap$(v, {
|
|
@@ -304,6 +309,8 @@ export type CreateLinkRequestBody$Outbound = {
|
|
|
304
309
|
key?: string | undefined;
|
|
305
310
|
externalId?: string | null | undefined;
|
|
306
311
|
tenantId?: string | null | undefined;
|
|
312
|
+
programId?: string | null | undefined;
|
|
313
|
+
partnerId?: string | null | undefined;
|
|
307
314
|
prefix?: string | undefined;
|
|
308
315
|
trackConversion?: boolean | undefined;
|
|
309
316
|
archived?: boolean | undefined;
|
|
@@ -331,7 +338,6 @@ export type CreateLinkRequestBody$Outbound = {
|
|
|
331
338
|
utm_term?: string | null | undefined;
|
|
332
339
|
utm_content?: string | null | undefined;
|
|
333
340
|
ref?: string | null | undefined;
|
|
334
|
-
programId?: string | null | undefined;
|
|
335
341
|
webhookIds?: Array<string> | null | undefined;
|
|
336
342
|
};
|
|
337
343
|
|
|
@@ -346,6 +352,8 @@ export const CreateLinkRequestBody$outboundSchema: z.ZodType<
|
|
|
346
352
|
key: z.string().optional(),
|
|
347
353
|
externalId: z.nullable(z.string()).optional(),
|
|
348
354
|
tenantId: z.nullable(z.string()).optional(),
|
|
355
|
+
programId: z.nullable(z.string()).optional(),
|
|
356
|
+
partnerId: z.nullable(z.string()).optional(),
|
|
349
357
|
prefix: z.string().optional(),
|
|
350
358
|
trackConversion: z.boolean().optional(),
|
|
351
359
|
archived: z.boolean().optional(),
|
|
@@ -373,7 +381,6 @@ export const CreateLinkRequestBody$outboundSchema: z.ZodType<
|
|
|
373
381
|
utmTerm: z.nullable(z.string()).optional(),
|
|
374
382
|
utmContent: z.nullable(z.string()).optional(),
|
|
375
383
|
ref: z.nullable(z.string()).optional(),
|
|
376
|
-
programId: z.nullable(z.string()).optional(),
|
|
377
384
|
webhookIds: z.nullable(z.array(z.string())).optional(),
|
|
378
385
|
}).transform((v) => {
|
|
379
386
|
return remap$(v, {
|