@mediaviz/sdk 1.0.69 → 1.0.70
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/sdk.cjs +22 -0
- package/dist/sdk.d.ts +2 -0
- package/dist/sdk.esm.d.ts +2 -0
- package/dist/sdk.esm.js +22 -0
- package/dist/sdk.umd.js +22 -0
- package/package.json +1 -1
package/dist/sdk.cjs
CHANGED
|
@@ -912,6 +912,17 @@ class Keywords {
|
|
|
912
912
|
return data;
|
|
913
913
|
}
|
|
914
914
|
|
|
915
|
+
async addCompanyToKeywordFilteringList(keywordListId, { companyId } = {}) {
|
|
916
|
+
this._ctx.requireTokens();
|
|
917
|
+
let path = `/api/v1/keyword/${encodeURIComponent(keywordListId)}/company`;
|
|
918
|
+
const query = new URLSearchParams();
|
|
919
|
+
if (companyId !== undefined) (Array.isArray(companyId) ? companyId : [companyId]).forEach(v => query.append('company_id', v));
|
|
920
|
+
const qs = query.toString();
|
|
921
|
+
if (qs) path += '?' + qs;
|
|
922
|
+
const { data } = await this._ctx.client.request(path, 'POST', this._ctx.accessToken, this._ctx.refreshToken);
|
|
923
|
+
return data;
|
|
924
|
+
}
|
|
925
|
+
|
|
915
926
|
async requestKeywordListExport(keywordListId) {
|
|
916
927
|
this._ctx.requireTokens();
|
|
917
928
|
const path = `/api/v1/keyword/export/${encodeURIComponent(keywordListId)}`;
|
|
@@ -944,6 +955,17 @@ class Keywords {
|
|
|
944
955
|
return data;
|
|
945
956
|
}
|
|
946
957
|
|
|
958
|
+
async removeCompanyFromKeywordFilteringList(keywordListId, { companyId } = {}) {
|
|
959
|
+
this._ctx.requireTokens();
|
|
960
|
+
let path = `/api/v1/keyword/${encodeURIComponent(keywordListId)}/company`;
|
|
961
|
+
const query = new URLSearchParams();
|
|
962
|
+
if (companyId !== undefined) (Array.isArray(companyId) ? companyId : [companyId]).forEach(v => query.append('company_id', v));
|
|
963
|
+
const qs = query.toString();
|
|
964
|
+
if (qs) path += '?' + qs;
|
|
965
|
+
const { data } = await this._ctx.client.request(path, 'DELETE', this._ctx.accessToken, this._ctx.refreshToken);
|
|
966
|
+
return data;
|
|
967
|
+
}
|
|
968
|
+
|
|
947
969
|
async deleteKeywordFilteringListById(keywordListId) {
|
|
948
970
|
this._ctx.requireTokens();
|
|
949
971
|
const path = `/api/v1/keyword/${encodeURIComponent(keywordListId)}`;
|
package/dist/sdk.d.ts
CHANGED
|
@@ -377,10 +377,12 @@ export class Keywords {
|
|
|
377
377
|
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude: number[], listKeywordsToExclude: number[]): Promise<KeywordListDisplayWithList>;
|
|
378
378
|
updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?: string[] }): Promise<KeywordListDisplayWithProjects>;
|
|
379
379
|
addProjectsToKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
380
|
+
addCompanyToKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
380
381
|
requestKeywordListExport(keywordListId: number): Promise<Record<string, any>>;
|
|
381
382
|
requestKeywordListExportStatus(keywordListId: number): Promise<AnalysisStatusResponse>;
|
|
382
383
|
getKeywordsAndIds(): Promise<any>;
|
|
383
384
|
removeProjectsFromKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
385
|
+
removeCompanyFromKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
384
386
|
deleteKeywordFilteringListById(keywordListId: number): Promise<Record<string, any>>;
|
|
385
387
|
}
|
|
386
388
|
|
package/dist/sdk.esm.d.ts
CHANGED
|
@@ -377,10 +377,12 @@ export class Keywords {
|
|
|
377
377
|
updateKeywordFilteringListLabels(keywordListId: number, listKeywordsToInclude: number[], listKeywordsToExclude: number[]): Promise<KeywordListDisplayWithList>;
|
|
378
378
|
updateKeywordFilteringListDetails(keywordListId: number, body?: { name?: string, projectList?: string[] }): Promise<KeywordListDisplayWithProjects>;
|
|
379
379
|
addProjectsToKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
380
|
+
addCompanyToKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
380
381
|
requestKeywordListExport(keywordListId: number): Promise<Record<string, any>>;
|
|
381
382
|
requestKeywordListExportStatus(keywordListId: number): Promise<AnalysisStatusResponse>;
|
|
382
383
|
getKeywordsAndIds(): Promise<any>;
|
|
383
384
|
removeProjectsFromKeywordFilteringList(keywordListId: number, options?: { projectIds?: any }): Promise<Record<string, any>>;
|
|
385
|
+
removeCompanyFromKeywordFilteringList(keywordListId: number, options?: { companyId?: number | number[] }): Promise<Record<string, any>>;
|
|
384
386
|
deleteKeywordFilteringListById(keywordListId: number): Promise<Record<string, any>>;
|
|
385
387
|
}
|
|
386
388
|
|
package/dist/sdk.esm.js
CHANGED
|
@@ -910,6 +910,17 @@ class Keywords {
|
|
|
910
910
|
return data;
|
|
911
911
|
}
|
|
912
912
|
|
|
913
|
+
async addCompanyToKeywordFilteringList(keywordListId, { companyId } = {}) {
|
|
914
|
+
this._ctx.requireTokens();
|
|
915
|
+
let path = `/api/v1/keyword/${encodeURIComponent(keywordListId)}/company`;
|
|
916
|
+
const query = new URLSearchParams();
|
|
917
|
+
if (companyId !== undefined) (Array.isArray(companyId) ? companyId : [companyId]).forEach(v => query.append('company_id', v));
|
|
918
|
+
const qs = query.toString();
|
|
919
|
+
if (qs) path += '?' + qs;
|
|
920
|
+
const { data } = await this._ctx.client.request(path, 'POST', this._ctx.accessToken, this._ctx.refreshToken);
|
|
921
|
+
return data;
|
|
922
|
+
}
|
|
923
|
+
|
|
913
924
|
async requestKeywordListExport(keywordListId) {
|
|
914
925
|
this._ctx.requireTokens();
|
|
915
926
|
const path = `/api/v1/keyword/export/${encodeURIComponent(keywordListId)}`;
|
|
@@ -942,6 +953,17 @@ class Keywords {
|
|
|
942
953
|
return data;
|
|
943
954
|
}
|
|
944
955
|
|
|
956
|
+
async removeCompanyFromKeywordFilteringList(keywordListId, { companyId } = {}) {
|
|
957
|
+
this._ctx.requireTokens();
|
|
958
|
+
let path = `/api/v1/keyword/${encodeURIComponent(keywordListId)}/company`;
|
|
959
|
+
const query = new URLSearchParams();
|
|
960
|
+
if (companyId !== undefined) (Array.isArray(companyId) ? companyId : [companyId]).forEach(v => query.append('company_id', v));
|
|
961
|
+
const qs = query.toString();
|
|
962
|
+
if (qs) path += '?' + qs;
|
|
963
|
+
const { data } = await this._ctx.client.request(path, 'DELETE', this._ctx.accessToken, this._ctx.refreshToken);
|
|
964
|
+
return data;
|
|
965
|
+
}
|
|
966
|
+
|
|
945
967
|
async deleteKeywordFilteringListById(keywordListId) {
|
|
946
968
|
this._ctx.requireTokens();
|
|
947
969
|
const path = `/api/v1/keyword/${encodeURIComponent(keywordListId)}`;
|
package/dist/sdk.umd.js
CHANGED
|
@@ -916,6 +916,17 @@
|
|
|
916
916
|
return data;
|
|
917
917
|
}
|
|
918
918
|
|
|
919
|
+
async addCompanyToKeywordFilteringList(keywordListId, { companyId } = {}) {
|
|
920
|
+
this._ctx.requireTokens();
|
|
921
|
+
let path = `/api/v1/keyword/${encodeURIComponent(keywordListId)}/company`;
|
|
922
|
+
const query = new URLSearchParams();
|
|
923
|
+
if (companyId !== undefined) (Array.isArray(companyId) ? companyId : [companyId]).forEach(v => query.append('company_id', v));
|
|
924
|
+
const qs = query.toString();
|
|
925
|
+
if (qs) path += '?' + qs;
|
|
926
|
+
const { data } = await this._ctx.client.request(path, 'POST', this._ctx.accessToken, this._ctx.refreshToken);
|
|
927
|
+
return data;
|
|
928
|
+
}
|
|
929
|
+
|
|
919
930
|
async requestKeywordListExport(keywordListId) {
|
|
920
931
|
this._ctx.requireTokens();
|
|
921
932
|
const path = `/api/v1/keyword/export/${encodeURIComponent(keywordListId)}`;
|
|
@@ -948,6 +959,17 @@
|
|
|
948
959
|
return data;
|
|
949
960
|
}
|
|
950
961
|
|
|
962
|
+
async removeCompanyFromKeywordFilteringList(keywordListId, { companyId } = {}) {
|
|
963
|
+
this._ctx.requireTokens();
|
|
964
|
+
let path = `/api/v1/keyword/${encodeURIComponent(keywordListId)}/company`;
|
|
965
|
+
const query = new URLSearchParams();
|
|
966
|
+
if (companyId !== undefined) (Array.isArray(companyId) ? companyId : [companyId]).forEach(v => query.append('company_id', v));
|
|
967
|
+
const qs = query.toString();
|
|
968
|
+
if (qs) path += '?' + qs;
|
|
969
|
+
const { data } = await this._ctx.client.request(path, 'DELETE', this._ctx.accessToken, this._ctx.refreshToken);
|
|
970
|
+
return data;
|
|
971
|
+
}
|
|
972
|
+
|
|
951
973
|
async deleteKeywordFilteringListById(keywordListId) {
|
|
952
974
|
this._ctx.requireTokens();
|
|
953
975
|
const path = `/api/v1/keyword/${encodeURIComponent(keywordListId)}`;
|