taboola-backstage-sdk 0.6.4 → 0.6.5
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/index.cjs +12 -9
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +83 -54
- package/dist/index.d.ts +83 -54
- package/dist/index.js +12 -9
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -779,8 +779,8 @@ var ItemsAPI = class {
|
|
|
779
779
|
* ]);
|
|
780
780
|
* ```
|
|
781
781
|
*/
|
|
782
|
-
async bulkCreateAcrossCampaigns(accountId,
|
|
783
|
-
return this.http.put(`${accountId}/items/bulk`,
|
|
782
|
+
async bulkCreateAcrossCampaigns(accountId, request) {
|
|
783
|
+
return this.http.put(`${accountId}/items/bulk`, request);
|
|
784
784
|
}
|
|
785
785
|
/**
|
|
786
786
|
* Bulk update items across multiple campaigns
|
|
@@ -798,8 +798,11 @@ var ItemsAPI = class {
|
|
|
798
798
|
* });
|
|
799
799
|
* ```
|
|
800
800
|
*/
|
|
801
|
-
async bulkUpdate(accountId, request) {
|
|
802
|
-
return this.http.post(
|
|
801
|
+
async bulkUpdate(accountId, request, isAtomic = false) {
|
|
802
|
+
return this.http.post(
|
|
803
|
+
`${accountId}/items/bulk?is_atomic=${String(isAtomic)}`,
|
|
804
|
+
request
|
|
805
|
+
);
|
|
803
806
|
}
|
|
804
807
|
/**
|
|
805
808
|
* Bulk delete items across multiple campaigns
|
|
@@ -817,8 +820,8 @@ var ItemsAPI = class {
|
|
|
817
820
|
* });
|
|
818
821
|
* ```
|
|
819
822
|
*/
|
|
820
|
-
async bulkDelete(accountId, request) {
|
|
821
|
-
await this.http.delete(`${accountId}/items/bulk`, {
|
|
823
|
+
async bulkDelete(accountId, request, isAtomic = false) {
|
|
824
|
+
await this.http.delete(`${accountId}/items/bulk?is_atomic=${String(isAtomic)}`, {
|
|
822
825
|
json: request
|
|
823
826
|
});
|
|
824
827
|
}
|
|
@@ -933,7 +936,7 @@ var DictionaryAPI = class {
|
|
|
933
936
|
*/
|
|
934
937
|
async getOperatingSystems() {
|
|
935
938
|
const response = await this.http.get(
|
|
936
|
-
"resources/
|
|
939
|
+
"resources/campaigns_properties/operating_systems"
|
|
937
940
|
);
|
|
938
941
|
return response.results;
|
|
939
942
|
}
|
|
@@ -942,7 +945,7 @@ var DictionaryAPI = class {
|
|
|
942
945
|
*/
|
|
943
946
|
async getIOSVersions() {
|
|
944
947
|
const response = await this.http.get(
|
|
945
|
-
"resources/
|
|
948
|
+
"resources/campaigns_properties/operating_systems/IOS"
|
|
946
949
|
);
|
|
947
950
|
return response.results;
|
|
948
951
|
}
|
|
@@ -951,7 +954,7 @@ var DictionaryAPI = class {
|
|
|
951
954
|
*/
|
|
952
955
|
async getAndroidVersions() {
|
|
953
956
|
const response = await this.http.get(
|
|
954
|
-
"resources/
|
|
957
|
+
"resources/campaigns_properties/operating_systems/ANDROID"
|
|
955
958
|
);
|
|
956
959
|
return response.results;
|
|
957
960
|
}
|