glitch-javascript-sdk 2.0.9 → 2.1.1
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 +56 -1
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/api/Campaigns.d.ts +20 -0
- package/dist/esm/api/Fingerprinting.d.ts +22 -0
- package/dist/esm/index.js +56 -1
- package/dist/esm/index.js.map +1 -1
- package/dist/index.d.ts +42 -0
- package/package.json +1 -1
- package/src/api/Campaigns.ts +22 -0
- package/src/api/Fingerprinting.ts +39 -0
- package/src/routes/CampaignsRoute.ts +2 -1
- package/src/routes/FingerprintingRoute.ts +9 -1
|
@@ -654,5 +654,25 @@ declare class Campaigns {
|
|
|
654
654
|
format: 'csv' | 'xlsx';
|
|
655
655
|
[key: string]: any;
|
|
656
656
|
}): AxiosPromise<Response<T>>;
|
|
657
|
+
/**
|
|
658
|
+
* Search IGDB for any game by a query string.
|
|
659
|
+
* @param campaign_id The UUID of the campaign (for permission checking).
|
|
660
|
+
* @param params Query parameters including 'search_query' and optional 'limit'.
|
|
661
|
+
* @returns promise
|
|
662
|
+
*/
|
|
663
|
+
static sourcingSearchAnyIgdbGame<T>(campaign_id: string, params: {
|
|
664
|
+
search_query: string;
|
|
665
|
+
limit?: number;
|
|
666
|
+
}): AxiosPromise<Response<T>>;
|
|
667
|
+
/**
|
|
668
|
+
* Get full game details from a list of IGDB IDs.
|
|
669
|
+
* @param campaign_id The UUID of the campaign.
|
|
670
|
+
* @param data An object containing the array of IGDB IDs.
|
|
671
|
+
* @param data.igdb_ids An array of IGDB game IDs.
|
|
672
|
+
* @returns promise
|
|
673
|
+
*/
|
|
674
|
+
static sourcingGetGamesByIds<T>(campaign_id: string, data: {
|
|
675
|
+
igdb_ids: number[];
|
|
676
|
+
}): AxiosPromise<Response<T>>;
|
|
657
677
|
}
|
|
658
678
|
export default Campaigns;
|
|
@@ -128,5 +128,27 @@ declare class Fingerprinting {
|
|
|
128
128
|
* @returns Promise with geolocation report data
|
|
129
129
|
*/
|
|
130
130
|
static geolocationReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
131
|
+
/**
|
|
132
|
+
* Get pixel and utem reports
|
|
133
|
+
*
|
|
134
|
+
* @param params Report options:
|
|
135
|
+
* - title_id: string - Required title ID
|
|
136
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
137
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
138
|
+
* - group_by?: 'country'|'region'|'city' - Grouping level
|
|
139
|
+
* @returns Promise with geolocation report data
|
|
140
|
+
*/
|
|
141
|
+
static pixelAttributionReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
142
|
+
/**
|
|
143
|
+
* Get an understanding of the path people take to install your game
|
|
144
|
+
*
|
|
145
|
+
* @param params Report options:
|
|
146
|
+
* - title_id: string - Required title ID
|
|
147
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
148
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
149
|
+
* - group_by?: 'country'|'region'|'city' - Grouping level
|
|
150
|
+
* @returns Promise with geolocation report data
|
|
151
|
+
*/
|
|
152
|
+
static installJourneyReport<T>(params: Record<string, any>): AxiosPromise<Response<T>>;
|
|
131
153
|
}
|
|
132
154
|
export default Fingerprinting;
|
package/dist/esm/index.js
CHANGED
|
@@ -9728,7 +9728,15 @@ var FingerprintingRoute = /** @class */ (function () {
|
|
|
9728
9728
|
geolocationReport: {
|
|
9729
9729
|
url: '/reports/fingerprinting/geolocation',
|
|
9730
9730
|
method: HTTP_METHODS.GET
|
|
9731
|
-
}
|
|
9731
|
+
},
|
|
9732
|
+
pixelAttributionReport: {
|
|
9733
|
+
url: '/reports/fingerprinting/pixel-attribution',
|
|
9734
|
+
method: HTTP_METHODS.GET
|
|
9735
|
+
},
|
|
9736
|
+
installJourneyReport: {
|
|
9737
|
+
url: '/reports/fingerprinting/install-journey',
|
|
9738
|
+
method: HTTP_METHODS.GET
|
|
9739
|
+
},
|
|
9732
9740
|
};
|
|
9733
9741
|
return FingerprintingRoute;
|
|
9734
9742
|
}());
|
|
@@ -9883,6 +9891,32 @@ var Fingerprinting = /** @class */ (function () {
|
|
|
9883
9891
|
Fingerprinting.geolocationReport = function (params) {
|
|
9884
9892
|
return Requests.processRoute(FingerprintingRoute.routes.geolocationReport, {}, undefined, params);
|
|
9885
9893
|
};
|
|
9894
|
+
/**
|
|
9895
|
+
* Get pixel and utem reports
|
|
9896
|
+
*
|
|
9897
|
+
* @param params Report options:
|
|
9898
|
+
* - title_id: string - Required title ID
|
|
9899
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
9900
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
9901
|
+
* - group_by?: 'country'|'region'|'city' - Grouping level
|
|
9902
|
+
* @returns Promise with geolocation report data
|
|
9903
|
+
*/
|
|
9904
|
+
Fingerprinting.pixelAttributionReport = function (params) {
|
|
9905
|
+
return Requests.processRoute(FingerprintingRoute.routes.pixelAttributionReport, {}, undefined, params);
|
|
9906
|
+
};
|
|
9907
|
+
/**
|
|
9908
|
+
* Get an understanding of the path people take to install your game
|
|
9909
|
+
*
|
|
9910
|
+
* @param params Report options:
|
|
9911
|
+
* - title_id: string - Required title ID
|
|
9912
|
+
* - start_date?: string - Start date (YYYY-MM-DD)
|
|
9913
|
+
* - end_date?: string - End date (YYYY-MM-DD)
|
|
9914
|
+
* - group_by?: 'country'|'region'|'city' - Grouping level
|
|
9915
|
+
* @returns Promise with geolocation report data
|
|
9916
|
+
*/
|
|
9917
|
+
Fingerprinting.installJourneyReport = function (params) {
|
|
9918
|
+
return Requests.processRoute(FingerprintingRoute.routes.installJourneyReport, {}, undefined, params);
|
|
9919
|
+
};
|
|
9886
9920
|
return Fingerprinting;
|
|
9887
9921
|
}());
|
|
9888
9922
|
|
|
@@ -11721,6 +11755,8 @@ var CampaignsRoute = /** @class */ (function () {
|
|
|
11721
11755
|
sourcingFindAndSaveTwitchCreators: { url: '/campaigns/{campaign_id}/sourcing/find-save-twitch-creators', method: HTTP_METHODS.POST },
|
|
11722
11756
|
sourcingFindAndSaveYouTubeCreators: { url: '/campaigns/{campaign_id}/sourcing/find-save-youtube-creators', method: HTTP_METHODS.POST },
|
|
11723
11757
|
exportSourcedCreators: { url: '/campaigns/{campaign_id}/sourcing/creators/export', method: HTTP_METHODS.GET },
|
|
11758
|
+
sourcingSearchAnyIgdbGame: { url: '/campaigns/{campaign_id}/sourcing/search-any-game', method: HTTP_METHODS.GET },
|
|
11759
|
+
sourcingGetGamesByIds: { url: '/campaigns/{campaign_id}/sourcing/games-by-ids', method: HTTP_METHODS.POST },
|
|
11724
11760
|
};
|
|
11725
11761
|
return CampaignsRoute;
|
|
11726
11762
|
}());
|
|
@@ -12516,6 +12552,25 @@ var Campaigns = /** @class */ (function () {
|
|
|
12516
12552
|
Campaigns.exportSourcedCreators = function (campaign_id, params) {
|
|
12517
12553
|
return Requests.processRoute(CampaignsRoute.routes.exportSourcedCreators, undefined, { campaign_id: campaign_id }, params);
|
|
12518
12554
|
};
|
|
12555
|
+
/**
|
|
12556
|
+
* Search IGDB for any game by a query string.
|
|
12557
|
+
* @param campaign_id The UUID of the campaign (for permission checking).
|
|
12558
|
+
* @param params Query parameters including 'search_query' and optional 'limit'.
|
|
12559
|
+
* @returns promise
|
|
12560
|
+
*/
|
|
12561
|
+
Campaigns.sourcingSearchAnyIgdbGame = function (campaign_id, params) {
|
|
12562
|
+
return Requests.processRoute(CampaignsRoute.routes.sourcingSearchAnyIgdbGame, undefined, { campaign_id: campaign_id }, params);
|
|
12563
|
+
};
|
|
12564
|
+
/**
|
|
12565
|
+
* Get full game details from a list of IGDB IDs.
|
|
12566
|
+
* @param campaign_id The UUID of the campaign.
|
|
12567
|
+
* @param data An object containing the array of IGDB IDs.
|
|
12568
|
+
* @param data.igdb_ids An array of IGDB game IDs.
|
|
12569
|
+
* @returns promise
|
|
12570
|
+
*/
|
|
12571
|
+
Campaigns.sourcingGetGamesByIds = function (campaign_id, data) {
|
|
12572
|
+
return Requests.processRoute(CampaignsRoute.routes.sourcingGetGamesByIds, data, { campaign_id: campaign_id });
|
|
12573
|
+
};
|
|
12519
12574
|
return Campaigns;
|
|
12520
12575
|
}());
|
|
12521
12576
|
|