@teemill/platform 0.31.0 → 0.33.0
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 +16 -2
- package/api.ts +1407 -273
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +698 -1
- package/dist/api.js +683 -2
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +698 -1
- package/dist/esm/api.js +674 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/CreatePixelRequest.md +24 -0
- package/docs/CreatePixelRequestFilters.md +24 -0
- package/docs/DashboardApi.md +127 -0
- package/docs/DashboardItem.md +30 -0
- package/docs/GetDashboardResponse.md +20 -0
- package/docs/Pixel.md +26 -0
- package/docs/PixelsApi.md +341 -0
- package/docs/PixelsResponse.md +22 -0
- package/docs/SaveDashboardRequest.md +20 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Platform API
|
|
5
5
|
* Manage Your podOS platform
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.33.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -544,6 +544,202 @@ export const ListCustomersGenderEnum = {
|
|
|
544
544
|
Male: 'male',
|
|
545
545
|
Female: 'female'
|
|
546
546
|
};
|
|
547
|
+
/**
|
|
548
|
+
* DashboardApi - axios parameter creator
|
|
549
|
+
* @export
|
|
550
|
+
*/
|
|
551
|
+
export const DashboardApiAxiosParamCreator = function (configuration) {
|
|
552
|
+
return {
|
|
553
|
+
/**
|
|
554
|
+
*
|
|
555
|
+
* @summary Get the platform\'s dashboard
|
|
556
|
+
* @param {string} project Project unique identifier
|
|
557
|
+
* @param {string} platformId The platform identifier
|
|
558
|
+
* @param {*} [options] Override http request option.
|
|
559
|
+
* @throws {RequiredError}
|
|
560
|
+
*/
|
|
561
|
+
getDashboard: (project_1, platformId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, ...args_1], void 0, function* (project, platformId, options = {}) {
|
|
562
|
+
// verify required parameter 'project' is not null or undefined
|
|
563
|
+
assertParamExists('getDashboard', 'project', project);
|
|
564
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
565
|
+
assertParamExists('getDashboard', 'platformId', platformId);
|
|
566
|
+
const localVarPath = `/v1/platform/{platformId}/dashboard`
|
|
567
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
568
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
569
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
570
|
+
let baseOptions;
|
|
571
|
+
if (configuration) {
|
|
572
|
+
baseOptions = configuration.baseOptions;
|
|
573
|
+
}
|
|
574
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
575
|
+
const localVarHeaderParameter = {};
|
|
576
|
+
const localVarQueryParameter = {};
|
|
577
|
+
// authentication session-oauth required
|
|
578
|
+
// oauth required
|
|
579
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
580
|
+
// authentication api-key required
|
|
581
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
582
|
+
if (project !== undefined) {
|
|
583
|
+
localVarQueryParameter['project'] = project;
|
|
584
|
+
}
|
|
585
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
586
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
587
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
588
|
+
return {
|
|
589
|
+
url: toPathString(localVarUrlObj),
|
|
590
|
+
options: localVarRequestOptions,
|
|
591
|
+
};
|
|
592
|
+
}),
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @summary Save the platform\'s dashboard
|
|
596
|
+
* @param {string} project Project unique identifier
|
|
597
|
+
* @param {string} platformId The platform identifier
|
|
598
|
+
* @param {SaveDashboardRequest} saveDashboardRequest Save dashboard
|
|
599
|
+
* @param {*} [options] Override http request option.
|
|
600
|
+
* @throws {RequiredError}
|
|
601
|
+
*/
|
|
602
|
+
saveDashboard: (project_1, platformId_1, saveDashboardRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, saveDashboardRequest_1, ...args_1], void 0, function* (project, platformId, saveDashboardRequest, options = {}) {
|
|
603
|
+
// verify required parameter 'project' is not null or undefined
|
|
604
|
+
assertParamExists('saveDashboard', 'project', project);
|
|
605
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
606
|
+
assertParamExists('saveDashboard', 'platformId', platformId);
|
|
607
|
+
// verify required parameter 'saveDashboardRequest' is not null or undefined
|
|
608
|
+
assertParamExists('saveDashboard', 'saveDashboardRequest', saveDashboardRequest);
|
|
609
|
+
const localVarPath = `/v1/platform/{platformId}/dashboard`
|
|
610
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
611
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
612
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
613
|
+
let baseOptions;
|
|
614
|
+
if (configuration) {
|
|
615
|
+
baseOptions = configuration.baseOptions;
|
|
616
|
+
}
|
|
617
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
618
|
+
const localVarHeaderParameter = {};
|
|
619
|
+
const localVarQueryParameter = {};
|
|
620
|
+
// authentication session-oauth required
|
|
621
|
+
// oauth required
|
|
622
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
623
|
+
// authentication api-key required
|
|
624
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
625
|
+
if (project !== undefined) {
|
|
626
|
+
localVarQueryParameter['project'] = project;
|
|
627
|
+
}
|
|
628
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
629
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
630
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
631
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
632
|
+
localVarRequestOptions.data = serializeDataIfNeeded(saveDashboardRequest, localVarRequestOptions, configuration);
|
|
633
|
+
return {
|
|
634
|
+
url: toPathString(localVarUrlObj),
|
|
635
|
+
options: localVarRequestOptions,
|
|
636
|
+
};
|
|
637
|
+
}),
|
|
638
|
+
};
|
|
639
|
+
};
|
|
640
|
+
/**
|
|
641
|
+
* DashboardApi - functional programming interface
|
|
642
|
+
* @export
|
|
643
|
+
*/
|
|
644
|
+
export const DashboardApiFp = function (configuration) {
|
|
645
|
+
const localVarAxiosParamCreator = DashboardApiAxiosParamCreator(configuration);
|
|
646
|
+
return {
|
|
647
|
+
/**
|
|
648
|
+
*
|
|
649
|
+
* @summary Get the platform\'s dashboard
|
|
650
|
+
* @param {string} project Project unique identifier
|
|
651
|
+
* @param {string} platformId The platform identifier
|
|
652
|
+
* @param {*} [options] Override http request option.
|
|
653
|
+
* @throws {RequiredError}
|
|
654
|
+
*/
|
|
655
|
+
getDashboard(project, platformId, options) {
|
|
656
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
657
|
+
var _a, _b, _c;
|
|
658
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getDashboard(project, platformId, options);
|
|
659
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
660
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DashboardApi.getDashboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
661
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
662
|
+
});
|
|
663
|
+
},
|
|
664
|
+
/**
|
|
665
|
+
*
|
|
666
|
+
* @summary Save the platform\'s dashboard
|
|
667
|
+
* @param {string} project Project unique identifier
|
|
668
|
+
* @param {string} platformId The platform identifier
|
|
669
|
+
* @param {SaveDashboardRequest} saveDashboardRequest Save dashboard
|
|
670
|
+
* @param {*} [options] Override http request option.
|
|
671
|
+
* @throws {RequiredError}
|
|
672
|
+
*/
|
|
673
|
+
saveDashboard(project, platformId, saveDashboardRequest, options) {
|
|
674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
675
|
+
var _a, _b, _c;
|
|
676
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.saveDashboard(project, platformId, saveDashboardRequest, options);
|
|
677
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
678
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['DashboardApi.saveDashboard']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
679
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
680
|
+
});
|
|
681
|
+
},
|
|
682
|
+
};
|
|
683
|
+
};
|
|
684
|
+
/**
|
|
685
|
+
* DashboardApi - factory interface
|
|
686
|
+
* @export
|
|
687
|
+
*/
|
|
688
|
+
export const DashboardApiFactory = function (configuration, basePath, axios) {
|
|
689
|
+
const localVarFp = DashboardApiFp(configuration);
|
|
690
|
+
return {
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @summary Get the platform\'s dashboard
|
|
694
|
+
* @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
|
|
695
|
+
* @param {*} [options] Override http request option.
|
|
696
|
+
* @throws {RequiredError}
|
|
697
|
+
*/
|
|
698
|
+
getDashboard(requestParameters, options) {
|
|
699
|
+
return localVarFp.getDashboard(requestParameters.project, requestParameters.platformId, options).then((request) => request(axios, basePath));
|
|
700
|
+
},
|
|
701
|
+
/**
|
|
702
|
+
*
|
|
703
|
+
* @summary Save the platform\'s dashboard
|
|
704
|
+
* @param {DashboardApiSaveDashboardRequest} requestParameters Request parameters.
|
|
705
|
+
* @param {*} [options] Override http request option.
|
|
706
|
+
* @throws {RequiredError}
|
|
707
|
+
*/
|
|
708
|
+
saveDashboard(requestParameters, options) {
|
|
709
|
+
return localVarFp.saveDashboard(requestParameters.project, requestParameters.platformId, requestParameters.saveDashboardRequest, options).then((request) => request(axios, basePath));
|
|
710
|
+
},
|
|
711
|
+
};
|
|
712
|
+
};
|
|
713
|
+
/**
|
|
714
|
+
* DashboardApi - object-oriented interface
|
|
715
|
+
* @export
|
|
716
|
+
* @class DashboardApi
|
|
717
|
+
* @extends {BaseAPI}
|
|
718
|
+
*/
|
|
719
|
+
export class DashboardApi extends BaseAPI {
|
|
720
|
+
/**
|
|
721
|
+
*
|
|
722
|
+
* @summary Get the platform\'s dashboard
|
|
723
|
+
* @param {DashboardApiGetDashboardRequest} requestParameters Request parameters.
|
|
724
|
+
* @param {*} [options] Override http request option.
|
|
725
|
+
* @throws {RequiredError}
|
|
726
|
+
* @memberof DashboardApi
|
|
727
|
+
*/
|
|
728
|
+
getDashboard(requestParameters, options) {
|
|
729
|
+
return DashboardApiFp(this.configuration).getDashboard(requestParameters.project, requestParameters.platformId, options).then((request) => request(this.axios, this.basePath));
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
*
|
|
733
|
+
* @summary Save the platform\'s dashboard
|
|
734
|
+
* @param {DashboardApiSaveDashboardRequest} requestParameters Request parameters.
|
|
735
|
+
* @param {*} [options] Override http request option.
|
|
736
|
+
* @throws {RequiredError}
|
|
737
|
+
* @memberof DashboardApi
|
|
738
|
+
*/
|
|
739
|
+
saveDashboard(requestParameters, options) {
|
|
740
|
+
return DashboardApiFp(this.configuration).saveDashboard(requestParameters.project, requestParameters.platformId, requestParameters.saveDashboardRequest, options).then((request) => request(this.axios, this.basePath));
|
|
741
|
+
}
|
|
742
|
+
}
|
|
547
743
|
/**
|
|
548
744
|
* EnquiriesApi - axios parameter creator
|
|
549
745
|
* @export
|
|
@@ -2477,6 +2673,483 @@ export class PaymentApi extends BaseAPI {
|
|
|
2477
2673
|
return PaymentApiFp(this.configuration).getStripePaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2478
2674
|
}
|
|
2479
2675
|
}
|
|
2676
|
+
/**
|
|
2677
|
+
* PixelsApi - axios parameter creator
|
|
2678
|
+
* @export
|
|
2679
|
+
*/
|
|
2680
|
+
export const PixelsApiAxiosParamCreator = function (configuration) {
|
|
2681
|
+
return {
|
|
2682
|
+
/**
|
|
2683
|
+
*
|
|
2684
|
+
* @summary Create a pixel
|
|
2685
|
+
* @param {string} project Project unique identifier
|
|
2686
|
+
* @param {string} platformId The platform identifier
|
|
2687
|
+
* @param {number} [pageToken] Page reference token
|
|
2688
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2689
|
+
* @param {string} [search] Search term to filter results
|
|
2690
|
+
* @param {CreatePixelRequest} [createPixelRequest]
|
|
2691
|
+
* @param {*} [options] Override http request option.
|
|
2692
|
+
* @throws {RequiredError}
|
|
2693
|
+
*/
|
|
2694
|
+
createPixel: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, createPixelRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, createPixelRequest_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, createPixelRequest, options = {}) {
|
|
2695
|
+
// verify required parameter 'project' is not null or undefined
|
|
2696
|
+
assertParamExists('createPixel', 'project', project);
|
|
2697
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2698
|
+
assertParamExists('createPixel', 'platformId', platformId);
|
|
2699
|
+
const localVarPath = `/v1/platform/{platformId}/pixels`
|
|
2700
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
2701
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2702
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2703
|
+
let baseOptions;
|
|
2704
|
+
if (configuration) {
|
|
2705
|
+
baseOptions = configuration.baseOptions;
|
|
2706
|
+
}
|
|
2707
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2708
|
+
const localVarHeaderParameter = {};
|
|
2709
|
+
const localVarQueryParameter = {};
|
|
2710
|
+
// authentication session-oauth required
|
|
2711
|
+
// oauth required
|
|
2712
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2713
|
+
// authentication api-key required
|
|
2714
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2715
|
+
if (project !== undefined) {
|
|
2716
|
+
localVarQueryParameter['project'] = project;
|
|
2717
|
+
}
|
|
2718
|
+
if (pageToken !== undefined) {
|
|
2719
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
2720
|
+
}
|
|
2721
|
+
if (pageSize !== undefined) {
|
|
2722
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2723
|
+
}
|
|
2724
|
+
if (search !== undefined) {
|
|
2725
|
+
localVarQueryParameter['search'] = search;
|
|
2726
|
+
}
|
|
2727
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2728
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2729
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2730
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2731
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPixelRequest, localVarRequestOptions, configuration);
|
|
2732
|
+
return {
|
|
2733
|
+
url: toPathString(localVarUrlObj),
|
|
2734
|
+
options: localVarRequestOptions,
|
|
2735
|
+
};
|
|
2736
|
+
}),
|
|
2737
|
+
/**
|
|
2738
|
+
* Delete a pixel
|
|
2739
|
+
* @summary Delete a pixel
|
|
2740
|
+
* @param {string} project Project unique identifier
|
|
2741
|
+
* @param {string} platformId The platform identifier
|
|
2742
|
+
* @param {string} pixelId The pixel identifier
|
|
2743
|
+
* @param {*} [options] Override http request option.
|
|
2744
|
+
* @throws {RequiredError}
|
|
2745
|
+
*/
|
|
2746
|
+
deletePixel: (project_1, platformId_1, pixelId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pixelId_1, ...args_1], void 0, function* (project, platformId, pixelId, options = {}) {
|
|
2747
|
+
// verify required parameter 'project' is not null or undefined
|
|
2748
|
+
assertParamExists('deletePixel', 'project', project);
|
|
2749
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2750
|
+
assertParamExists('deletePixel', 'platformId', platformId);
|
|
2751
|
+
// verify required parameter 'pixelId' is not null or undefined
|
|
2752
|
+
assertParamExists('deletePixel', 'pixelId', pixelId);
|
|
2753
|
+
const localVarPath = `/v1/platform/{platformId}/pixels/{pixelId}`
|
|
2754
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
2755
|
+
.replace(`{${"pixelId"}}`, encodeURIComponent(String(pixelId)));
|
|
2756
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2757
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2758
|
+
let baseOptions;
|
|
2759
|
+
if (configuration) {
|
|
2760
|
+
baseOptions = configuration.baseOptions;
|
|
2761
|
+
}
|
|
2762
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2763
|
+
const localVarHeaderParameter = {};
|
|
2764
|
+
const localVarQueryParameter = {};
|
|
2765
|
+
// authentication session-oauth required
|
|
2766
|
+
// oauth required
|
|
2767
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2768
|
+
// authentication api-key required
|
|
2769
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2770
|
+
if (project !== undefined) {
|
|
2771
|
+
localVarQueryParameter['project'] = project;
|
|
2772
|
+
}
|
|
2773
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2774
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2775
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2776
|
+
return {
|
|
2777
|
+
url: toPathString(localVarUrlObj),
|
|
2778
|
+
options: localVarRequestOptions,
|
|
2779
|
+
};
|
|
2780
|
+
}),
|
|
2781
|
+
/**
|
|
2782
|
+
* Get a pixel for a platform by a given pixel ID.
|
|
2783
|
+
* @summary Get pixel
|
|
2784
|
+
* @param {string} project Project unique identifier
|
|
2785
|
+
* @param {string} platformId The platform identifier
|
|
2786
|
+
* @param {string} pixelId The pixel identifier
|
|
2787
|
+
* @param {*} [options] Override http request option.
|
|
2788
|
+
* @throws {RequiredError}
|
|
2789
|
+
*/
|
|
2790
|
+
getPixel: (project_1, platformId_1, pixelId_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pixelId_1, ...args_1], void 0, function* (project, platformId, pixelId, options = {}) {
|
|
2791
|
+
// verify required parameter 'project' is not null or undefined
|
|
2792
|
+
assertParamExists('getPixel', 'project', project);
|
|
2793
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2794
|
+
assertParamExists('getPixel', 'platformId', platformId);
|
|
2795
|
+
// verify required parameter 'pixelId' is not null or undefined
|
|
2796
|
+
assertParamExists('getPixel', 'pixelId', pixelId);
|
|
2797
|
+
const localVarPath = `/v1/platform/{platformId}/pixels/{pixelId}`
|
|
2798
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
2799
|
+
.replace(`{${"pixelId"}}`, encodeURIComponent(String(pixelId)));
|
|
2800
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2801
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2802
|
+
let baseOptions;
|
|
2803
|
+
if (configuration) {
|
|
2804
|
+
baseOptions = configuration.baseOptions;
|
|
2805
|
+
}
|
|
2806
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2807
|
+
const localVarHeaderParameter = {};
|
|
2808
|
+
const localVarQueryParameter = {};
|
|
2809
|
+
// authentication session-oauth required
|
|
2810
|
+
// oauth required
|
|
2811
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2812
|
+
// authentication api-key required
|
|
2813
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2814
|
+
if (project !== undefined) {
|
|
2815
|
+
localVarQueryParameter['project'] = project;
|
|
2816
|
+
}
|
|
2817
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2818
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2819
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2820
|
+
return {
|
|
2821
|
+
url: toPathString(localVarUrlObj),
|
|
2822
|
+
options: localVarRequestOptions,
|
|
2823
|
+
};
|
|
2824
|
+
}),
|
|
2825
|
+
/**
|
|
2826
|
+
* List pixels for a platform
|
|
2827
|
+
* @summary List pixels
|
|
2828
|
+
* @param {string} project Project unique identifier
|
|
2829
|
+
* @param {string} platformId The platform identifier
|
|
2830
|
+
* @param {number} [pageToken] Page reference token
|
|
2831
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2832
|
+
* @param {string} [search] Search term to filter results
|
|
2833
|
+
* @param {*} [options] Override http request option.
|
|
2834
|
+
* @throws {RequiredError}
|
|
2835
|
+
*/
|
|
2836
|
+
listPixels: (project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pageToken_1, pageSize_1, search_1, ...args_1], void 0, function* (project, platformId, pageToken, pageSize, search, options = {}) {
|
|
2837
|
+
// verify required parameter 'project' is not null or undefined
|
|
2838
|
+
assertParamExists('listPixels', 'project', project);
|
|
2839
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2840
|
+
assertParamExists('listPixels', 'platformId', platformId);
|
|
2841
|
+
const localVarPath = `/v1/platform/{platformId}/pixels`
|
|
2842
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
2843
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2844
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2845
|
+
let baseOptions;
|
|
2846
|
+
if (configuration) {
|
|
2847
|
+
baseOptions = configuration.baseOptions;
|
|
2848
|
+
}
|
|
2849
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2850
|
+
const localVarHeaderParameter = {};
|
|
2851
|
+
const localVarQueryParameter = {};
|
|
2852
|
+
// authentication session-oauth required
|
|
2853
|
+
// oauth required
|
|
2854
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2855
|
+
// authentication api-key required
|
|
2856
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2857
|
+
if (project !== undefined) {
|
|
2858
|
+
localVarQueryParameter['project'] = project;
|
|
2859
|
+
}
|
|
2860
|
+
if (pageToken !== undefined) {
|
|
2861
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
2862
|
+
}
|
|
2863
|
+
if (pageSize !== undefined) {
|
|
2864
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2865
|
+
}
|
|
2866
|
+
if (search !== undefined) {
|
|
2867
|
+
localVarQueryParameter['search'] = search;
|
|
2868
|
+
}
|
|
2869
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2870
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2871
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2872
|
+
return {
|
|
2873
|
+
url: toPathString(localVarUrlObj),
|
|
2874
|
+
options: localVarRequestOptions,
|
|
2875
|
+
};
|
|
2876
|
+
}),
|
|
2877
|
+
/**
|
|
2878
|
+
* Update a pixel
|
|
2879
|
+
* @summary Update a pixel
|
|
2880
|
+
* @param {string} project Project unique identifier
|
|
2881
|
+
* @param {string} platformId The platform identifier
|
|
2882
|
+
* @param {string} pixelId The pixel identifier
|
|
2883
|
+
* @param {CreatePixelRequest} [createPixelRequest]
|
|
2884
|
+
* @param {*} [options] Override http request option.
|
|
2885
|
+
* @throws {RequiredError}
|
|
2886
|
+
*/
|
|
2887
|
+
updatePixel: (project_1, platformId_1, pixelId_1, createPixelRequest_1, ...args_1) => __awaiter(this, [project_1, platformId_1, pixelId_1, createPixelRequest_1, ...args_1], void 0, function* (project, platformId, pixelId, createPixelRequest, options = {}) {
|
|
2888
|
+
// verify required parameter 'project' is not null or undefined
|
|
2889
|
+
assertParamExists('updatePixel', 'project', project);
|
|
2890
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2891
|
+
assertParamExists('updatePixel', 'platformId', platformId);
|
|
2892
|
+
// verify required parameter 'pixelId' is not null or undefined
|
|
2893
|
+
assertParamExists('updatePixel', 'pixelId', pixelId);
|
|
2894
|
+
const localVarPath = `/v1/platform/{platformId}/pixels/{pixelId}`
|
|
2895
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
2896
|
+
.replace(`{${"pixelId"}}`, encodeURIComponent(String(pixelId)));
|
|
2897
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2898
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2899
|
+
let baseOptions;
|
|
2900
|
+
if (configuration) {
|
|
2901
|
+
baseOptions = configuration.baseOptions;
|
|
2902
|
+
}
|
|
2903
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2904
|
+
const localVarHeaderParameter = {};
|
|
2905
|
+
const localVarQueryParameter = {};
|
|
2906
|
+
// authentication session-oauth required
|
|
2907
|
+
// oauth required
|
|
2908
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2909
|
+
// authentication api-key required
|
|
2910
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2911
|
+
if (project !== undefined) {
|
|
2912
|
+
localVarQueryParameter['project'] = project;
|
|
2913
|
+
}
|
|
2914
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2915
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2916
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2917
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2918
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createPixelRequest, localVarRequestOptions, configuration);
|
|
2919
|
+
return {
|
|
2920
|
+
url: toPathString(localVarUrlObj),
|
|
2921
|
+
options: localVarRequestOptions,
|
|
2922
|
+
};
|
|
2923
|
+
}),
|
|
2924
|
+
};
|
|
2925
|
+
};
|
|
2926
|
+
/**
|
|
2927
|
+
* PixelsApi - functional programming interface
|
|
2928
|
+
* @export
|
|
2929
|
+
*/
|
|
2930
|
+
export const PixelsApiFp = function (configuration) {
|
|
2931
|
+
const localVarAxiosParamCreator = PixelsApiAxiosParamCreator(configuration);
|
|
2932
|
+
return {
|
|
2933
|
+
/**
|
|
2934
|
+
*
|
|
2935
|
+
* @summary Create a pixel
|
|
2936
|
+
* @param {string} project Project unique identifier
|
|
2937
|
+
* @param {string} platformId The platform identifier
|
|
2938
|
+
* @param {number} [pageToken] Page reference token
|
|
2939
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2940
|
+
* @param {string} [search] Search term to filter results
|
|
2941
|
+
* @param {CreatePixelRequest} [createPixelRequest]
|
|
2942
|
+
* @param {*} [options] Override http request option.
|
|
2943
|
+
* @throws {RequiredError}
|
|
2944
|
+
*/
|
|
2945
|
+
createPixel(project, platformId, pageToken, pageSize, search, createPixelRequest, options) {
|
|
2946
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2947
|
+
var _a, _b, _c;
|
|
2948
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPixel(project, platformId, pageToken, pageSize, search, createPixelRequest, options);
|
|
2949
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2950
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PixelsApi.createPixel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2951
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2952
|
+
});
|
|
2953
|
+
},
|
|
2954
|
+
/**
|
|
2955
|
+
* Delete a pixel
|
|
2956
|
+
* @summary Delete a pixel
|
|
2957
|
+
* @param {string} project Project unique identifier
|
|
2958
|
+
* @param {string} platformId The platform identifier
|
|
2959
|
+
* @param {string} pixelId The pixel identifier
|
|
2960
|
+
* @param {*} [options] Override http request option.
|
|
2961
|
+
* @throws {RequiredError}
|
|
2962
|
+
*/
|
|
2963
|
+
deletePixel(project, platformId, pixelId, options) {
|
|
2964
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2965
|
+
var _a, _b, _c;
|
|
2966
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePixel(project, platformId, pixelId, options);
|
|
2967
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2968
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PixelsApi.deletePixel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2969
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2970
|
+
});
|
|
2971
|
+
},
|
|
2972
|
+
/**
|
|
2973
|
+
* Get a pixel for a platform by a given pixel ID.
|
|
2974
|
+
* @summary Get pixel
|
|
2975
|
+
* @param {string} project Project unique identifier
|
|
2976
|
+
* @param {string} platformId The platform identifier
|
|
2977
|
+
* @param {string} pixelId The pixel identifier
|
|
2978
|
+
* @param {*} [options] Override http request option.
|
|
2979
|
+
* @throws {RequiredError}
|
|
2980
|
+
*/
|
|
2981
|
+
getPixel(project, platformId, pixelId, options) {
|
|
2982
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2983
|
+
var _a, _b, _c;
|
|
2984
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPixel(project, platformId, pixelId, options);
|
|
2985
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2986
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PixelsApi.getPixel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2987
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2988
|
+
});
|
|
2989
|
+
},
|
|
2990
|
+
/**
|
|
2991
|
+
* List pixels for a platform
|
|
2992
|
+
* @summary List pixels
|
|
2993
|
+
* @param {string} project Project unique identifier
|
|
2994
|
+
* @param {string} platformId The platform identifier
|
|
2995
|
+
* @param {number} [pageToken] Page reference token
|
|
2996
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2997
|
+
* @param {string} [search] Search term to filter results
|
|
2998
|
+
* @param {*} [options] Override http request option.
|
|
2999
|
+
* @throws {RequiredError}
|
|
3000
|
+
*/
|
|
3001
|
+
listPixels(project, platformId, pageToken, pageSize, search, options) {
|
|
3002
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3003
|
+
var _a, _b, _c;
|
|
3004
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPixels(project, platformId, pageToken, pageSize, search, options);
|
|
3005
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3006
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PixelsApi.listPixels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3007
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3008
|
+
});
|
|
3009
|
+
},
|
|
3010
|
+
/**
|
|
3011
|
+
* Update a pixel
|
|
3012
|
+
* @summary Update a pixel
|
|
3013
|
+
* @param {string} project Project unique identifier
|
|
3014
|
+
* @param {string} platformId The platform identifier
|
|
3015
|
+
* @param {string} pixelId The pixel identifier
|
|
3016
|
+
* @param {CreatePixelRequest} [createPixelRequest]
|
|
3017
|
+
* @param {*} [options] Override http request option.
|
|
3018
|
+
* @throws {RequiredError}
|
|
3019
|
+
*/
|
|
3020
|
+
updatePixel(project, platformId, pixelId, createPixelRequest, options) {
|
|
3021
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3022
|
+
var _a, _b, _c;
|
|
3023
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePixel(project, platformId, pixelId, createPixelRequest, options);
|
|
3024
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3025
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PixelsApi.updatePixel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3026
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3027
|
+
});
|
|
3028
|
+
},
|
|
3029
|
+
};
|
|
3030
|
+
};
|
|
3031
|
+
/**
|
|
3032
|
+
* PixelsApi - factory interface
|
|
3033
|
+
* @export
|
|
3034
|
+
*/
|
|
3035
|
+
export const PixelsApiFactory = function (configuration, basePath, axios) {
|
|
3036
|
+
const localVarFp = PixelsApiFp(configuration);
|
|
3037
|
+
return {
|
|
3038
|
+
/**
|
|
3039
|
+
*
|
|
3040
|
+
* @summary Create a pixel
|
|
3041
|
+
* @param {PixelsApiCreatePixelRequest} requestParameters Request parameters.
|
|
3042
|
+
* @param {*} [options] Override http request option.
|
|
3043
|
+
* @throws {RequiredError}
|
|
3044
|
+
*/
|
|
3045
|
+
createPixel(requestParameters, options) {
|
|
3046
|
+
return localVarFp.createPixel(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createPixelRequest, options).then((request) => request(axios, basePath));
|
|
3047
|
+
},
|
|
3048
|
+
/**
|
|
3049
|
+
* Delete a pixel
|
|
3050
|
+
* @summary Delete a pixel
|
|
3051
|
+
* @param {PixelsApiDeletePixelRequest} requestParameters Request parameters.
|
|
3052
|
+
* @param {*} [options] Override http request option.
|
|
3053
|
+
* @throws {RequiredError}
|
|
3054
|
+
*/
|
|
3055
|
+
deletePixel(requestParameters, options) {
|
|
3056
|
+
return localVarFp.deletePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(axios, basePath));
|
|
3057
|
+
},
|
|
3058
|
+
/**
|
|
3059
|
+
* Get a pixel for a platform by a given pixel ID.
|
|
3060
|
+
* @summary Get pixel
|
|
3061
|
+
* @param {PixelsApiGetPixelRequest} requestParameters Request parameters.
|
|
3062
|
+
* @param {*} [options] Override http request option.
|
|
3063
|
+
* @throws {RequiredError}
|
|
3064
|
+
*/
|
|
3065
|
+
getPixel(requestParameters, options) {
|
|
3066
|
+
return localVarFp.getPixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(axios, basePath));
|
|
3067
|
+
},
|
|
3068
|
+
/**
|
|
3069
|
+
* List pixels for a platform
|
|
3070
|
+
* @summary List pixels
|
|
3071
|
+
* @param {PixelsApiListPixelsRequest} requestParameters Request parameters.
|
|
3072
|
+
* @param {*} [options] Override http request option.
|
|
3073
|
+
* @throws {RequiredError}
|
|
3074
|
+
*/
|
|
3075
|
+
listPixels(requestParameters, options) {
|
|
3076
|
+
return localVarFp.listPixels(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
3077
|
+
},
|
|
3078
|
+
/**
|
|
3079
|
+
* Update a pixel
|
|
3080
|
+
* @summary Update a pixel
|
|
3081
|
+
* @param {PixelsApiUpdatePixelRequest} requestParameters Request parameters.
|
|
3082
|
+
* @param {*} [options] Override http request option.
|
|
3083
|
+
* @throws {RequiredError}
|
|
3084
|
+
*/
|
|
3085
|
+
updatePixel(requestParameters, options) {
|
|
3086
|
+
return localVarFp.updatePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, requestParameters.createPixelRequest, options).then((request) => request(axios, basePath));
|
|
3087
|
+
},
|
|
3088
|
+
};
|
|
3089
|
+
};
|
|
3090
|
+
/**
|
|
3091
|
+
* PixelsApi - object-oriented interface
|
|
3092
|
+
* @export
|
|
3093
|
+
* @class PixelsApi
|
|
3094
|
+
* @extends {BaseAPI}
|
|
3095
|
+
*/
|
|
3096
|
+
export class PixelsApi extends BaseAPI {
|
|
3097
|
+
/**
|
|
3098
|
+
*
|
|
3099
|
+
* @summary Create a pixel
|
|
3100
|
+
* @param {PixelsApiCreatePixelRequest} requestParameters Request parameters.
|
|
3101
|
+
* @param {*} [options] Override http request option.
|
|
3102
|
+
* @throws {RequiredError}
|
|
3103
|
+
* @memberof PixelsApi
|
|
3104
|
+
*/
|
|
3105
|
+
createPixel(requestParameters, options) {
|
|
3106
|
+
return PixelsApiFp(this.configuration).createPixel(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createPixelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3107
|
+
}
|
|
3108
|
+
/**
|
|
3109
|
+
* Delete a pixel
|
|
3110
|
+
* @summary Delete a pixel
|
|
3111
|
+
* @param {PixelsApiDeletePixelRequest} requestParameters Request parameters.
|
|
3112
|
+
* @param {*} [options] Override http request option.
|
|
3113
|
+
* @throws {RequiredError}
|
|
3114
|
+
* @memberof PixelsApi
|
|
3115
|
+
*/
|
|
3116
|
+
deletePixel(requestParameters, options) {
|
|
3117
|
+
return PixelsApiFp(this.configuration).deletePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(this.axios, this.basePath));
|
|
3118
|
+
}
|
|
3119
|
+
/**
|
|
3120
|
+
* Get a pixel for a platform by a given pixel ID.
|
|
3121
|
+
* @summary Get pixel
|
|
3122
|
+
* @param {PixelsApiGetPixelRequest} requestParameters Request parameters.
|
|
3123
|
+
* @param {*} [options] Override http request option.
|
|
3124
|
+
* @throws {RequiredError}
|
|
3125
|
+
* @memberof PixelsApi
|
|
3126
|
+
*/
|
|
3127
|
+
getPixel(requestParameters, options) {
|
|
3128
|
+
return PixelsApiFp(this.configuration).getPixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(this.axios, this.basePath));
|
|
3129
|
+
}
|
|
3130
|
+
/**
|
|
3131
|
+
* List pixels for a platform
|
|
3132
|
+
* @summary List pixels
|
|
3133
|
+
* @param {PixelsApiListPixelsRequest} requestParameters Request parameters.
|
|
3134
|
+
* @param {*} [options] Override http request option.
|
|
3135
|
+
* @throws {RequiredError}
|
|
3136
|
+
* @memberof PixelsApi
|
|
3137
|
+
*/
|
|
3138
|
+
listPixels(requestParameters, options) {
|
|
3139
|
+
return PixelsApiFp(this.configuration).listPixels(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
3140
|
+
}
|
|
3141
|
+
/**
|
|
3142
|
+
* Update a pixel
|
|
3143
|
+
* @summary Update a pixel
|
|
3144
|
+
* @param {PixelsApiUpdatePixelRequest} requestParameters Request parameters.
|
|
3145
|
+
* @param {*} [options] Override http request option.
|
|
3146
|
+
* @throws {RequiredError}
|
|
3147
|
+
* @memberof PixelsApi
|
|
3148
|
+
*/
|
|
3149
|
+
updatePixel(requestParameters, options) {
|
|
3150
|
+
return PixelsApiFp(this.configuration).updatePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, requestParameters.createPixelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3151
|
+
}
|
|
3152
|
+
}
|
|
2480
3153
|
/**
|
|
2481
3154
|
* PlatformApi - axios parameter creator
|
|
2482
3155
|
* @export
|