glitch-javascript-sdk 1.8.4 → 1.8.6
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/dist/cjs/index.js +232 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Ads.d.ts +17 -0
- package/dist/esm/api/Fingerprinting.d.ts +132 -0
- package/dist/esm/api/index.d.ts +2 -0
- package/dist/esm/index.d.ts +2 -0
- package/dist/esm/index.js +232 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/routes/FingerprintingRoute.d.ts +7 -0
- package/dist/index.d.ts +148 -0
- package/package.json +1 -1
- package/src/api/Ads.ts +119 -79
- package/src/api/Fingerprinting.ts +215 -0
- package/src/api/index.ts +3 -1
- package/src/index.ts +3 -1
- package/src/routes/AdsRoute.ts +9 -0
- package/src/routes/FingerprintingRoute.ts +49 -0
package/dist/cjs/index.js
CHANGED
|
@@ -19906,6 +19906,14 @@ var AdsRoute = /** @class */ (function () {
|
|
|
19906
19906
|
url: "/ads/reddit/targeting/third_party_audiences",
|
|
19907
19907
|
method: HTTP_METHODS.GET,
|
|
19908
19908
|
},
|
|
19909
|
+
syncCampaign: {
|
|
19910
|
+
url: "/ads/campaigns/{campaign_id}/sync",
|
|
19911
|
+
method: HTTP_METHODS.POST,
|
|
19912
|
+
},
|
|
19913
|
+
syncGroup: {
|
|
19914
|
+
url: "/ads/campaigns/{campaign_id}/groups/{group_id}/sync",
|
|
19915
|
+
method: HTTP_METHODS.POST,
|
|
19916
|
+
},
|
|
19909
19917
|
};
|
|
19910
19918
|
return AdsRoute;
|
|
19911
19919
|
}());
|
|
@@ -20238,6 +20246,27 @@ var Ads = /** @class */ (function () {
|
|
|
20238
20246
|
Ads.listRedditThirdPartyAudiences = function (params) {
|
|
20239
20247
|
return Requests.processRoute(AdsRoute.routes.getRedditThirdPartyAudiences, undefined, undefined, params);
|
|
20240
20248
|
};
|
|
20249
|
+
/**
|
|
20250
|
+
* Sync an Ad Campaign with the remote platform
|
|
20251
|
+
*
|
|
20252
|
+
* @param campaign_id The UUID of the campaign to sync
|
|
20253
|
+
* @param params Optional query parameters
|
|
20254
|
+
* @returns The synced AdCampaign resource
|
|
20255
|
+
*/
|
|
20256
|
+
Ads.syncCampaign = function (campaign_id, params) {
|
|
20257
|
+
return Requests.processRoute(AdsRoute.routes.syncCampaign, undefined, { campaign_id: campaign_id }, params);
|
|
20258
|
+
};
|
|
20259
|
+
/**
|
|
20260
|
+
* Sync an Ad Group with the remote platform
|
|
20261
|
+
*
|
|
20262
|
+
* @param campaign_id The UUID of the parent campaign
|
|
20263
|
+
* @param group_id The UUID of the ad group to sync
|
|
20264
|
+
* @param params Optional query parameters
|
|
20265
|
+
* @returns The synced AdGroup resource
|
|
20266
|
+
*/
|
|
20267
|
+
Ads.syncGroup = function (campaign_id, group_id, params) {
|
|
20268
|
+
return Requests.processRoute(AdsRoute.routes.syncGroup, undefined, { campaign_id: campaign_id, group_id: group_id }, params);
|
|
20269
|
+
};
|
|
20241
20270
|
return Ads;
|
|
20242
20271
|
}());
|
|
20243
20272
|
|
|
@@ -22117,6 +22146,207 @@ var Events = /** @class */ (function () {
|
|
|
22117
22146
|
return Events;
|
|
22118
22147
|
}());
|
|
22119
22148
|
|
|
22149
|
+
var FingerprintingRoute = /** @class */ (function () {
|
|
22150
|
+
function FingerprintingRoute() {
|
|
22151
|
+
}
|
|
22152
|
+
FingerprintingRoute.routes = {
|
|
22153
|
+
listFingerprints: {
|
|
22154
|
+
url: '/reports/fingerprinting/fingerprints',
|
|
22155
|
+
method: HTTP_METHODS.GET
|
|
22156
|
+
},
|
|
22157
|
+
userJourneyReport: {
|
|
22158
|
+
url: '/reports/fingerprinting/user-journeys',
|
|
22159
|
+
method: HTTP_METHODS.GET
|
|
22160
|
+
},
|
|
22161
|
+
attributionReport: {
|
|
22162
|
+
url: '/reports/fingerprinting/attribution',
|
|
22163
|
+
method: HTTP_METHODS.GET
|
|
22164
|
+
},
|
|
22165
|
+
deviceClusterReport: {
|
|
22166
|
+
url: '/reports/fingerprinting/device-clusters',
|
|
22167
|
+
method: HTTP_METHODS.GET
|
|
22168
|
+
},
|
|
22169
|
+
identityClusterReport: {
|
|
22170
|
+
url: '/reports/fingerprinting/identity-clusters',
|
|
22171
|
+
method: HTTP_METHODS.GET
|
|
22172
|
+
},
|
|
22173
|
+
attributionFunnelReport: {
|
|
22174
|
+
url: '/reports/fingerprinting/attribution-funnel',
|
|
22175
|
+
method: HTTP_METHODS.GET
|
|
22176
|
+
},
|
|
22177
|
+
deviceEnvironmentReport: {
|
|
22178
|
+
url: '/reports/fingerprinting/device-environment',
|
|
22179
|
+
method: HTTP_METHODS.GET
|
|
22180
|
+
},
|
|
22181
|
+
uniqueReturningReport: {
|
|
22182
|
+
url: '/reports/fingerprinting/unique-returning',
|
|
22183
|
+
method: HTTP_METHODS.GET
|
|
22184
|
+
},
|
|
22185
|
+
fraudDetectionReport: {
|
|
22186
|
+
url: '/reports/fingerprinting/fraud-detection',
|
|
22187
|
+
method: HTTP_METHODS.GET
|
|
22188
|
+
},
|
|
22189
|
+
geolocationReport: {
|
|
22190
|
+
url: '/reports/fingerprinting/geolocation',
|
|
22191
|
+
method: HTTP_METHODS.GET
|
|
22192
|
+
}
|
|
22193
|
+
};
|
|
22194
|
+
return FingerprintingRoute;
|
|
22195
|
+
}());
|
|
22196
|
+
|
|
22197
|
+
var Fingerprinting = /** @class */ (function () {
|
|
22198
|
+
function Fingerprinting() {
|
|
22199
|
+
}
|
|
22200
|
+
/**
|
|
22201
|
+
* List identified user fingerprints with filtering options
|
|
22202
|
+
*
|
|
22203
|
+
* @param params Filtering options:
|
|
22204
|
+
* - title_id?: string - Filter by title ID
|
|
22205
|
+
* - device_id?: string - Filter by device ID
|
|
22206
|
+
* - user_install_id?: string - Filter by user install ID
|
|
22207
|
+
* - browser_fingerprint?: string - Filter by browser fingerprint hash
|
|
22208
|
+
* - device_fingerprint?: string - Filter by device fingerprint hash
|
|
22209
|
+
* - is_bot?: boolean - Filter by bot status
|
|
22210
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
22211
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
22212
|
+
* - sort?: 'first_seen_at'|'last_seen_at'|'match_confidence' - Sort field
|
|
22213
|
+
* - order?: 'asc'|'desc' - Sort order
|
|
22214
|
+
* - per_page?: number - Items per page (max 100)
|
|
22215
|
+
* @returns Promise with paginated fingerprints data
|
|
22216
|
+
*/
|
|
22217
|
+
Fingerprinting.listFingerprints = function (params) {
|
|
22218
|
+
return Requests.processRoute(FingerprintingRoute.routes.listFingerprints, {}, undefined, params);
|
|
22219
|
+
};
|
|
22220
|
+
/**
|
|
22221
|
+
* Get cross-platform user journey reports
|
|
22222
|
+
*
|
|
22223
|
+
* @param params Report options:
|
|
22224
|
+
* - title_id: string - Required title ID
|
|
22225
|
+
* - fingerprint_id?: string - Specific fingerprint ID to analyze
|
|
22226
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
22227
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
22228
|
+
* - platform?: 'web'|'ios'|'android'|'steam'|'console' - Filter by platform
|
|
22229
|
+
* - event_type?: string - Filter by event type
|
|
22230
|
+
* - group_by?: 'day'|'week'|'month'|'year' - Grouping period
|
|
22231
|
+
* - include_paths?: boolean - Include journey paths in response
|
|
22232
|
+
* @returns Promise with user journey report data
|
|
22233
|
+
*/
|
|
22234
|
+
Fingerprinting.userJourneyReport = function (params) {
|
|
22235
|
+
return Requests.processRoute(FingerprintingRoute.routes.userJourneyReport, {}, undefined, params);
|
|
22236
|
+
};
|
|
22237
|
+
/**
|
|
22238
|
+
* Get cross-platform attribution reports
|
|
22239
|
+
*
|
|
22240
|
+
* @param params Report options:
|
|
22241
|
+
* - title_id: string - Required title ID
|
|
22242
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
22243
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
22244
|
+
* - conversion_event?: 'game_install'|'game_purchase'|'web_event' - Conversion event to analyze
|
|
22245
|
+
* - attribution_model?: 'first_touch'|'last_touch'|'linear'|'time_decay'|'position_based' - Attribution model
|
|
22246
|
+
* @returns Promise with attribution report data
|
|
22247
|
+
*/
|
|
22248
|
+
Fingerprinting.attributionReport = function (params) {
|
|
22249
|
+
return Requests.processRoute(FingerprintingRoute.routes.attributionReport, {}, undefined, params);
|
|
22250
|
+
};
|
|
22251
|
+
/**
|
|
22252
|
+
* Get cross-device identity clusters
|
|
22253
|
+
*
|
|
22254
|
+
* @param params Report options:
|
|
22255
|
+
* - title_id: string - Required title ID
|
|
22256
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
22257
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
22258
|
+
* - min_confidence?: number - Minimum match confidence score (0-100)
|
|
22259
|
+
* @returns Promise with device cluster report data
|
|
22260
|
+
*/
|
|
22261
|
+
Fingerprinting.deviceClusterReport = function (params) {
|
|
22262
|
+
return Requests.processRoute(FingerprintingRoute.routes.deviceClusterReport, {}, undefined, params);
|
|
22263
|
+
};
|
|
22264
|
+
/**
|
|
22265
|
+
* Get combined identity clusters and user journey reports
|
|
22266
|
+
*
|
|
22267
|
+
* @param params Report options:
|
|
22268
|
+
* - title_id: string - Required title ID
|
|
22269
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
22270
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
22271
|
+
* - min_confidence?: number - Minimum confidence score to include (0-100)
|
|
22272
|
+
* - platform?: string - Filter by platform
|
|
22273
|
+
* - include_journeys?: boolean - Include detailed journeys
|
|
22274
|
+
* @returns Promise with identity cluster report data
|
|
22275
|
+
*/
|
|
22276
|
+
Fingerprinting.identityClusterReport = function (params) {
|
|
22277
|
+
return Requests.processRoute(FingerprintingRoute.routes.identityClusterReport, {}, undefined, params);
|
|
22278
|
+
};
|
|
22279
|
+
/**
|
|
22280
|
+
* Get combined attribution paths and conversion funnels
|
|
22281
|
+
*
|
|
22282
|
+
* @param params Report options:
|
|
22283
|
+
* - title_id: string - Required title ID
|
|
22284
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
22285
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
22286
|
+
* - conversion_event?: string - Conversion event type
|
|
22287
|
+
* - attribution_model?: string - Attribution model
|
|
22288
|
+
* - funnel_steps?: string - Comma-separated funnel steps
|
|
22289
|
+
* @returns Promise with attribution and funnel report data
|
|
22290
|
+
*/
|
|
22291
|
+
Fingerprinting.attributionFunnelReport = function (params) {
|
|
22292
|
+
return Requests.processRoute(FingerprintingRoute.routes.attributionFunnelReport, {}, undefined, params);
|
|
22293
|
+
};
|
|
22294
|
+
/**
|
|
22295
|
+
* Get device and environment breakdown reports
|
|
22296
|
+
*
|
|
22297
|
+
* @param params Report options:
|
|
22298
|
+
* - title_id: string - Required title ID
|
|
22299
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
22300
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
22301
|
+
* - platform?: string - Filter by platform
|
|
22302
|
+
* - group_by?: 'device_type'|'os'|'browser'|'country_code' - Grouping field
|
|
22303
|
+
* @returns Promise with device and environment report data
|
|
22304
|
+
*/
|
|
22305
|
+
Fingerprinting.deviceEnvironmentReport = function (params) {
|
|
22306
|
+
return Requests.processRoute(FingerprintingRoute.routes.deviceEnvironmentReport, {}, undefined, params);
|
|
22307
|
+
};
|
|
22308
|
+
/**
|
|
22309
|
+
* Get unique vs returning user metrics
|
|
22310
|
+
*
|
|
22311
|
+
* @param params Report options:
|
|
22312
|
+
* - title_id: string - Required title ID
|
|
22313
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
22314
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
22315
|
+
* - retention_period?: number - Days to consider for retention
|
|
22316
|
+
* @returns Promise with retention metrics data
|
|
22317
|
+
*/
|
|
22318
|
+
Fingerprinting.uniqueReturningReport = function (params) {
|
|
22319
|
+
return Requests.processRoute(FingerprintingRoute.routes.uniqueReturningReport, {}, undefined, params);
|
|
22320
|
+
};
|
|
22321
|
+
/**
|
|
22322
|
+
* Get fraud and bot detection metrics
|
|
22323
|
+
*
|
|
22324
|
+
* @param params Report options:
|
|
22325
|
+
* - title_id: string - Required title ID
|
|
22326
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
22327
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
22328
|
+
* - min_confidence?: number - Minimum confidence score to flag (0-100)
|
|
22329
|
+
* @returns Promise with fraud detection data
|
|
22330
|
+
*/
|
|
22331
|
+
Fingerprinting.fraudDetectionReport = function (params) {
|
|
22332
|
+
return Requests.processRoute(FingerprintingRoute.routes.fraudDetectionReport, {}, undefined, params);
|
|
22333
|
+
};
|
|
22334
|
+
/**
|
|
22335
|
+
* Get geolocation distribution of users
|
|
22336
|
+
*
|
|
22337
|
+
* @param params Report options:
|
|
22338
|
+
* - title_id: string - Required title ID
|
|
22339
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
22340
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
22341
|
+
* - group_by?: 'country'|'region'|'city' - Grouping level
|
|
22342
|
+
* @returns Promise with geolocation report data
|
|
22343
|
+
*/
|
|
22344
|
+
Fingerprinting.geolocationReport = function (params) {
|
|
22345
|
+
return Requests.processRoute(FingerprintingRoute.routes.geolocationReport, {}, undefined, params);
|
|
22346
|
+
};
|
|
22347
|
+
return Fingerprinting;
|
|
22348
|
+
}());
|
|
22349
|
+
|
|
22120
22350
|
var TeamsRoute = /** @class */ (function () {
|
|
22121
22351
|
function TeamsRoute() {
|
|
22122
22352
|
}
|
|
@@ -26993,7 +27223,8 @@ var Glitch = /** @class */ (function () {
|
|
|
26993
27223
|
Scheduler: Scheduler,
|
|
26994
27224
|
Funnel: Funnel,
|
|
26995
27225
|
SocialStats: SocialStats,
|
|
26996
|
-
WebsiteAnalytics: WebsiteAnalytics
|
|
27226
|
+
WebsiteAnalytics: WebsiteAnalytics,
|
|
27227
|
+
Fingerprinting: Fingerprinting
|
|
26997
27228
|
};
|
|
26998
27229
|
Glitch.util = {
|
|
26999
27230
|
Requests: Requests,
|