@teemill/platform 0.32.0 → 0.33.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/README.md +14 -2
- package/api.ts +894 -3
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +573 -3
- package/dist/api.js +487 -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 +573 -3
- package/dist/esm/api.js +482 -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/AmendOrderRequestAmendmentsInner.md +2 -0
- package/docs/AmendOrderRequestAmendmentsInnerReason.md +22 -0
- package/docs/CreatePixelRequest.md +24 -0
- package/docs/CreatePixelRequestFilters.md +24 -0
- package/docs/Pixel.md +26 -0
- package/docs/PixelsApi.md +341 -0
- package/docs/PixelsResponse.md +22 -0
- package/docs/ReturnOrderRequest.md +1 -1
- package/docs/ReturnOrderRequestReturnsInner.md +28 -0
- package/docs/ReturnOrderRequestReturnsInnerReason.md +22 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Platform API
|
|
6
6
|
* Manage Your podOS platform
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.33.1
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,7 +22,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.AmendmentLogAmendmentTypeEnum = exports.AmendOrderRequestAmendmentsInnerActionEnum = void 0;
|
|
25
|
+
exports.TermsApi = exports.TermsApiFactory = exports.TermsApiFp = exports.TermsApiAxiosParamCreator = exports.ReviewsApi = exports.ReviewsApiFactory = exports.ReviewsApiFp = exports.ReviewsApiAxiosParamCreator = exports.PlatformApi = exports.PlatformApiFactory = exports.PlatformApiFp = exports.PlatformApiAxiosParamCreator = exports.PixelsApi = exports.PixelsApiFactory = exports.PixelsApiFp = exports.PixelsApiAxiosParamCreator = exports.PaymentApi = exports.PaymentApiFactory = exports.PaymentApiFp = exports.PaymentApiAxiosParamCreator = exports.ListOrdersDateFilterTypeEnum = exports.OrdersApi = exports.OrdersApiFactory = exports.OrdersApiFp = exports.OrdersApiAxiosParamCreator = exports.EnquiriesApi = exports.EnquiriesApiFactory = exports.EnquiriesApiFp = exports.EnquiriesApiAxiosParamCreator = exports.DashboardApi = exports.DashboardApiFactory = exports.DashboardApiFp = exports.DashboardApiAxiosParamCreator = exports.ListCustomersGenderEnum = exports.ListCustomersSortByEnum = exports.ExportCustomersGenderEnum = exports.ExportCustomersSortByEnum = exports.CustomersApi = exports.CustomersApiFactory = exports.CustomersApiFp = exports.CustomersApiAxiosParamCreator = exports.ReturnOrderRequestReturnsInnerActionEnum = exports.PaymentAttemptStatusEnum = exports.PaymentAttemptPaymentProviderEnum = exports.PaymentAccountMethodEnum = exports.OrderStatus = exports.EnquiryStatusEnum = exports.CustomsInformationPreRegistrationTypeEnum = exports.AmendmentLogAmendmentTypeEnum = exports.AmendOrderRequestAmendmentsInnerActionEnum = void 0;
|
|
26
26
|
const axios_1 = require("axios");
|
|
27
27
|
// Some imports not used depending on template conditions
|
|
28
28
|
// @ts-ignore
|
|
@@ -71,6 +71,10 @@ exports.PaymentAttemptStatusEnum = {
|
|
|
71
71
|
Pending: 'pending',
|
|
72
72
|
Cancelled: 'cancelled'
|
|
73
73
|
};
|
|
74
|
+
exports.ReturnOrderRequestReturnsInnerActionEnum = {
|
|
75
|
+
Refund: 'refund',
|
|
76
|
+
Exchange: 'exchange'
|
|
77
|
+
};
|
|
74
78
|
/**
|
|
75
79
|
* CustomersApi - axios parameter creator
|
|
76
80
|
* @export
|
|
@@ -2696,6 +2700,487 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
2696
2700
|
}
|
|
2697
2701
|
}
|
|
2698
2702
|
exports.PaymentApi = PaymentApi;
|
|
2703
|
+
/**
|
|
2704
|
+
* PixelsApi - axios parameter creator
|
|
2705
|
+
* @export
|
|
2706
|
+
*/
|
|
2707
|
+
const PixelsApiAxiosParamCreator = function (configuration) {
|
|
2708
|
+
return {
|
|
2709
|
+
/**
|
|
2710
|
+
*
|
|
2711
|
+
* @summary Create a pixel
|
|
2712
|
+
* @param {string} project Project unique identifier
|
|
2713
|
+
* @param {string} platformId The platform identifier
|
|
2714
|
+
* @param {number} [pageToken] Page reference token
|
|
2715
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2716
|
+
* @param {string} [search] Search term to filter results
|
|
2717
|
+
* @param {CreatePixelRequest} [createPixelRequest]
|
|
2718
|
+
* @param {*} [options] Override http request option.
|
|
2719
|
+
* @throws {RequiredError}
|
|
2720
|
+
*/
|
|
2721
|
+
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 = {}) {
|
|
2722
|
+
// verify required parameter 'project' is not null or undefined
|
|
2723
|
+
(0, common_1.assertParamExists)('createPixel', 'project', project);
|
|
2724
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2725
|
+
(0, common_1.assertParamExists)('createPixel', 'platformId', platformId);
|
|
2726
|
+
const localVarPath = `/v1/platform/{platformId}/pixels`
|
|
2727
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
2728
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2729
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2730
|
+
let baseOptions;
|
|
2731
|
+
if (configuration) {
|
|
2732
|
+
baseOptions = configuration.baseOptions;
|
|
2733
|
+
}
|
|
2734
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
2735
|
+
const localVarHeaderParameter = {};
|
|
2736
|
+
const localVarQueryParameter = {};
|
|
2737
|
+
// authentication session-oauth required
|
|
2738
|
+
// oauth required
|
|
2739
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2740
|
+
// authentication api-key required
|
|
2741
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2742
|
+
if (project !== undefined) {
|
|
2743
|
+
localVarQueryParameter['project'] = project;
|
|
2744
|
+
}
|
|
2745
|
+
if (pageToken !== undefined) {
|
|
2746
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
2747
|
+
}
|
|
2748
|
+
if (pageSize !== undefined) {
|
|
2749
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2750
|
+
}
|
|
2751
|
+
if (search !== undefined) {
|
|
2752
|
+
localVarQueryParameter['search'] = search;
|
|
2753
|
+
}
|
|
2754
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2755
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2756
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2757
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2758
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPixelRequest, localVarRequestOptions, configuration);
|
|
2759
|
+
return {
|
|
2760
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2761
|
+
options: localVarRequestOptions,
|
|
2762
|
+
};
|
|
2763
|
+
}),
|
|
2764
|
+
/**
|
|
2765
|
+
* Delete a pixel
|
|
2766
|
+
* @summary Delete a pixel
|
|
2767
|
+
* @param {string} project Project unique identifier
|
|
2768
|
+
* @param {string} platformId The platform identifier
|
|
2769
|
+
* @param {string} pixelId The pixel identifier
|
|
2770
|
+
* @param {*} [options] Override http request option.
|
|
2771
|
+
* @throws {RequiredError}
|
|
2772
|
+
*/
|
|
2773
|
+
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 = {}) {
|
|
2774
|
+
// verify required parameter 'project' is not null or undefined
|
|
2775
|
+
(0, common_1.assertParamExists)('deletePixel', 'project', project);
|
|
2776
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2777
|
+
(0, common_1.assertParamExists)('deletePixel', 'platformId', platformId);
|
|
2778
|
+
// verify required parameter 'pixelId' is not null or undefined
|
|
2779
|
+
(0, common_1.assertParamExists)('deletePixel', 'pixelId', pixelId);
|
|
2780
|
+
const localVarPath = `/v1/platform/{platformId}/pixels/{pixelId}`
|
|
2781
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
2782
|
+
.replace(`{${"pixelId"}}`, encodeURIComponent(String(pixelId)));
|
|
2783
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2784
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2785
|
+
let baseOptions;
|
|
2786
|
+
if (configuration) {
|
|
2787
|
+
baseOptions = configuration.baseOptions;
|
|
2788
|
+
}
|
|
2789
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2790
|
+
const localVarHeaderParameter = {};
|
|
2791
|
+
const localVarQueryParameter = {};
|
|
2792
|
+
// authentication session-oauth required
|
|
2793
|
+
// oauth required
|
|
2794
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2795
|
+
// authentication api-key required
|
|
2796
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2797
|
+
if (project !== undefined) {
|
|
2798
|
+
localVarQueryParameter['project'] = project;
|
|
2799
|
+
}
|
|
2800
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2801
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2802
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2803
|
+
return {
|
|
2804
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2805
|
+
options: localVarRequestOptions,
|
|
2806
|
+
};
|
|
2807
|
+
}),
|
|
2808
|
+
/**
|
|
2809
|
+
* Get a pixel for a platform by a given pixel ID.
|
|
2810
|
+
* @summary Get pixel
|
|
2811
|
+
* @param {string} project Project unique identifier
|
|
2812
|
+
* @param {string} platformId The platform identifier
|
|
2813
|
+
* @param {string} pixelId The pixel identifier
|
|
2814
|
+
* @param {*} [options] Override http request option.
|
|
2815
|
+
* @throws {RequiredError}
|
|
2816
|
+
*/
|
|
2817
|
+
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 = {}) {
|
|
2818
|
+
// verify required parameter 'project' is not null or undefined
|
|
2819
|
+
(0, common_1.assertParamExists)('getPixel', 'project', project);
|
|
2820
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2821
|
+
(0, common_1.assertParamExists)('getPixel', 'platformId', platformId);
|
|
2822
|
+
// verify required parameter 'pixelId' is not null or undefined
|
|
2823
|
+
(0, common_1.assertParamExists)('getPixel', 'pixelId', pixelId);
|
|
2824
|
+
const localVarPath = `/v1/platform/{platformId}/pixels/{pixelId}`
|
|
2825
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
2826
|
+
.replace(`{${"pixelId"}}`, encodeURIComponent(String(pixelId)));
|
|
2827
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2828
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2829
|
+
let baseOptions;
|
|
2830
|
+
if (configuration) {
|
|
2831
|
+
baseOptions = configuration.baseOptions;
|
|
2832
|
+
}
|
|
2833
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2834
|
+
const localVarHeaderParameter = {};
|
|
2835
|
+
const localVarQueryParameter = {};
|
|
2836
|
+
// authentication session-oauth required
|
|
2837
|
+
// oauth required
|
|
2838
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2839
|
+
// authentication api-key required
|
|
2840
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2841
|
+
if (project !== undefined) {
|
|
2842
|
+
localVarQueryParameter['project'] = project;
|
|
2843
|
+
}
|
|
2844
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2845
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2846
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2847
|
+
return {
|
|
2848
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2849
|
+
options: localVarRequestOptions,
|
|
2850
|
+
};
|
|
2851
|
+
}),
|
|
2852
|
+
/**
|
|
2853
|
+
* List pixels for a platform
|
|
2854
|
+
* @summary List pixels
|
|
2855
|
+
* @param {string} project Project unique identifier
|
|
2856
|
+
* @param {string} platformId The platform identifier
|
|
2857
|
+
* @param {number} [pageToken] Page reference token
|
|
2858
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2859
|
+
* @param {string} [search] Search term to filter results
|
|
2860
|
+
* @param {*} [options] Override http request option.
|
|
2861
|
+
* @throws {RequiredError}
|
|
2862
|
+
*/
|
|
2863
|
+
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 = {}) {
|
|
2864
|
+
// verify required parameter 'project' is not null or undefined
|
|
2865
|
+
(0, common_1.assertParamExists)('listPixels', 'project', project);
|
|
2866
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2867
|
+
(0, common_1.assertParamExists)('listPixels', 'platformId', platformId);
|
|
2868
|
+
const localVarPath = `/v1/platform/{platformId}/pixels`
|
|
2869
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)));
|
|
2870
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2871
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2872
|
+
let baseOptions;
|
|
2873
|
+
if (configuration) {
|
|
2874
|
+
baseOptions = configuration.baseOptions;
|
|
2875
|
+
}
|
|
2876
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2877
|
+
const localVarHeaderParameter = {};
|
|
2878
|
+
const localVarQueryParameter = {};
|
|
2879
|
+
// authentication session-oauth required
|
|
2880
|
+
// oauth required
|
|
2881
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2882
|
+
// authentication api-key required
|
|
2883
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2884
|
+
if (project !== undefined) {
|
|
2885
|
+
localVarQueryParameter['project'] = project;
|
|
2886
|
+
}
|
|
2887
|
+
if (pageToken !== undefined) {
|
|
2888
|
+
localVarQueryParameter['pageToken'] = pageToken;
|
|
2889
|
+
}
|
|
2890
|
+
if (pageSize !== undefined) {
|
|
2891
|
+
localVarQueryParameter['pageSize'] = pageSize;
|
|
2892
|
+
}
|
|
2893
|
+
if (search !== undefined) {
|
|
2894
|
+
localVarQueryParameter['search'] = search;
|
|
2895
|
+
}
|
|
2896
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2897
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2898
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2899
|
+
return {
|
|
2900
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2901
|
+
options: localVarRequestOptions,
|
|
2902
|
+
};
|
|
2903
|
+
}),
|
|
2904
|
+
/**
|
|
2905
|
+
* Update a pixel
|
|
2906
|
+
* @summary Update a pixel
|
|
2907
|
+
* @param {string} project Project unique identifier
|
|
2908
|
+
* @param {string} platformId The platform identifier
|
|
2909
|
+
* @param {string} pixelId The pixel identifier
|
|
2910
|
+
* @param {CreatePixelRequest} [createPixelRequest]
|
|
2911
|
+
* @param {*} [options] Override http request option.
|
|
2912
|
+
* @throws {RequiredError}
|
|
2913
|
+
*/
|
|
2914
|
+
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 = {}) {
|
|
2915
|
+
// verify required parameter 'project' is not null or undefined
|
|
2916
|
+
(0, common_1.assertParamExists)('updatePixel', 'project', project);
|
|
2917
|
+
// verify required parameter 'platformId' is not null or undefined
|
|
2918
|
+
(0, common_1.assertParamExists)('updatePixel', 'platformId', platformId);
|
|
2919
|
+
// verify required parameter 'pixelId' is not null or undefined
|
|
2920
|
+
(0, common_1.assertParamExists)('updatePixel', 'pixelId', pixelId);
|
|
2921
|
+
const localVarPath = `/v1/platform/{platformId}/pixels/{pixelId}`
|
|
2922
|
+
.replace(`{${"platformId"}}`, encodeURIComponent(String(platformId)))
|
|
2923
|
+
.replace(`{${"pixelId"}}`, encodeURIComponent(String(pixelId)));
|
|
2924
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2925
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2926
|
+
let baseOptions;
|
|
2927
|
+
if (configuration) {
|
|
2928
|
+
baseOptions = configuration.baseOptions;
|
|
2929
|
+
}
|
|
2930
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
2931
|
+
const localVarHeaderParameter = {};
|
|
2932
|
+
const localVarQueryParameter = {};
|
|
2933
|
+
// authentication session-oauth required
|
|
2934
|
+
// oauth required
|
|
2935
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2936
|
+
// authentication api-key required
|
|
2937
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2938
|
+
if (project !== undefined) {
|
|
2939
|
+
localVarQueryParameter['project'] = project;
|
|
2940
|
+
}
|
|
2941
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2942
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2943
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2944
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2945
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPixelRequest, localVarRequestOptions, configuration);
|
|
2946
|
+
return {
|
|
2947
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2948
|
+
options: localVarRequestOptions,
|
|
2949
|
+
};
|
|
2950
|
+
}),
|
|
2951
|
+
};
|
|
2952
|
+
};
|
|
2953
|
+
exports.PixelsApiAxiosParamCreator = PixelsApiAxiosParamCreator;
|
|
2954
|
+
/**
|
|
2955
|
+
* PixelsApi - functional programming interface
|
|
2956
|
+
* @export
|
|
2957
|
+
*/
|
|
2958
|
+
const PixelsApiFp = function (configuration) {
|
|
2959
|
+
const localVarAxiosParamCreator = (0, exports.PixelsApiAxiosParamCreator)(configuration);
|
|
2960
|
+
return {
|
|
2961
|
+
/**
|
|
2962
|
+
*
|
|
2963
|
+
* @summary Create a pixel
|
|
2964
|
+
* @param {string} project Project unique identifier
|
|
2965
|
+
* @param {string} platformId The platform identifier
|
|
2966
|
+
* @param {number} [pageToken] Page reference token
|
|
2967
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
2968
|
+
* @param {string} [search] Search term to filter results
|
|
2969
|
+
* @param {CreatePixelRequest} [createPixelRequest]
|
|
2970
|
+
* @param {*} [options] Override http request option.
|
|
2971
|
+
* @throws {RequiredError}
|
|
2972
|
+
*/
|
|
2973
|
+
createPixel(project, platformId, pageToken, pageSize, search, createPixelRequest, options) {
|
|
2974
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2975
|
+
var _a, _b, _c;
|
|
2976
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createPixel(project, platformId, pageToken, pageSize, search, createPixelRequest, options);
|
|
2977
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2978
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PixelsApi.createPixel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2979
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2980
|
+
});
|
|
2981
|
+
},
|
|
2982
|
+
/**
|
|
2983
|
+
* Delete a pixel
|
|
2984
|
+
* @summary Delete a pixel
|
|
2985
|
+
* @param {string} project Project unique identifier
|
|
2986
|
+
* @param {string} platformId The platform identifier
|
|
2987
|
+
* @param {string} pixelId The pixel identifier
|
|
2988
|
+
* @param {*} [options] Override http request option.
|
|
2989
|
+
* @throws {RequiredError}
|
|
2990
|
+
*/
|
|
2991
|
+
deletePixel(project, platformId, pixelId, options) {
|
|
2992
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2993
|
+
var _a, _b, _c;
|
|
2994
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deletePixel(project, platformId, pixelId, options);
|
|
2995
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2996
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PixelsApi.deletePixel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2997
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2998
|
+
});
|
|
2999
|
+
},
|
|
3000
|
+
/**
|
|
3001
|
+
* Get a pixel for a platform by a given pixel ID.
|
|
3002
|
+
* @summary Get pixel
|
|
3003
|
+
* @param {string} project Project unique identifier
|
|
3004
|
+
* @param {string} platformId The platform identifier
|
|
3005
|
+
* @param {string} pixelId The pixel identifier
|
|
3006
|
+
* @param {*} [options] Override http request option.
|
|
3007
|
+
* @throws {RequiredError}
|
|
3008
|
+
*/
|
|
3009
|
+
getPixel(project, platformId, pixelId, options) {
|
|
3010
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3011
|
+
var _a, _b, _c;
|
|
3012
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPixel(project, platformId, pixelId, options);
|
|
3013
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3014
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PixelsApi.getPixel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3015
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3016
|
+
});
|
|
3017
|
+
},
|
|
3018
|
+
/**
|
|
3019
|
+
* List pixels for a platform
|
|
3020
|
+
* @summary List pixels
|
|
3021
|
+
* @param {string} project Project unique identifier
|
|
3022
|
+
* @param {string} platformId The platform identifier
|
|
3023
|
+
* @param {number} [pageToken] Page reference token
|
|
3024
|
+
* @param {number} [pageSize] Max page size. This is the maximum page size that will be returned, but it might be smaller.
|
|
3025
|
+
* @param {string} [search] Search term to filter results
|
|
3026
|
+
* @param {*} [options] Override http request option.
|
|
3027
|
+
* @throws {RequiredError}
|
|
3028
|
+
*/
|
|
3029
|
+
listPixels(project, platformId, pageToken, pageSize, search, options) {
|
|
3030
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3031
|
+
var _a, _b, _c;
|
|
3032
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listPixels(project, platformId, pageToken, pageSize, search, options);
|
|
3033
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3034
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PixelsApi.listPixels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3035
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3036
|
+
});
|
|
3037
|
+
},
|
|
3038
|
+
/**
|
|
3039
|
+
* Update a pixel
|
|
3040
|
+
* @summary Update a pixel
|
|
3041
|
+
* @param {string} project Project unique identifier
|
|
3042
|
+
* @param {string} platformId The platform identifier
|
|
3043
|
+
* @param {string} pixelId The pixel identifier
|
|
3044
|
+
* @param {CreatePixelRequest} [createPixelRequest]
|
|
3045
|
+
* @param {*} [options] Override http request option.
|
|
3046
|
+
* @throws {RequiredError}
|
|
3047
|
+
*/
|
|
3048
|
+
updatePixel(project, platformId, pixelId, createPixelRequest, options) {
|
|
3049
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3050
|
+
var _a, _b, _c;
|
|
3051
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updatePixel(project, platformId, pixelId, createPixelRequest, options);
|
|
3052
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3053
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PixelsApi.updatePixel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3054
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3055
|
+
});
|
|
3056
|
+
},
|
|
3057
|
+
};
|
|
3058
|
+
};
|
|
3059
|
+
exports.PixelsApiFp = PixelsApiFp;
|
|
3060
|
+
/**
|
|
3061
|
+
* PixelsApi - factory interface
|
|
3062
|
+
* @export
|
|
3063
|
+
*/
|
|
3064
|
+
const PixelsApiFactory = function (configuration, basePath, axios) {
|
|
3065
|
+
const localVarFp = (0, exports.PixelsApiFp)(configuration);
|
|
3066
|
+
return {
|
|
3067
|
+
/**
|
|
3068
|
+
*
|
|
3069
|
+
* @summary Create a pixel
|
|
3070
|
+
* @param {PixelsApiCreatePixelRequest} requestParameters Request parameters.
|
|
3071
|
+
* @param {*} [options] Override http request option.
|
|
3072
|
+
* @throws {RequiredError}
|
|
3073
|
+
*/
|
|
3074
|
+
createPixel(requestParameters, options) {
|
|
3075
|
+
return localVarFp.createPixel(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createPixelRequest, options).then((request) => request(axios, basePath));
|
|
3076
|
+
},
|
|
3077
|
+
/**
|
|
3078
|
+
* Delete a pixel
|
|
3079
|
+
* @summary Delete a pixel
|
|
3080
|
+
* @param {PixelsApiDeletePixelRequest} requestParameters Request parameters.
|
|
3081
|
+
* @param {*} [options] Override http request option.
|
|
3082
|
+
* @throws {RequiredError}
|
|
3083
|
+
*/
|
|
3084
|
+
deletePixel(requestParameters, options) {
|
|
3085
|
+
return localVarFp.deletePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(axios, basePath));
|
|
3086
|
+
},
|
|
3087
|
+
/**
|
|
3088
|
+
* Get a pixel for a platform by a given pixel ID.
|
|
3089
|
+
* @summary Get pixel
|
|
3090
|
+
* @param {PixelsApiGetPixelRequest} requestParameters Request parameters.
|
|
3091
|
+
* @param {*} [options] Override http request option.
|
|
3092
|
+
* @throws {RequiredError}
|
|
3093
|
+
*/
|
|
3094
|
+
getPixel(requestParameters, options) {
|
|
3095
|
+
return localVarFp.getPixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(axios, basePath));
|
|
3096
|
+
},
|
|
3097
|
+
/**
|
|
3098
|
+
* List pixels for a platform
|
|
3099
|
+
* @summary List pixels
|
|
3100
|
+
* @param {PixelsApiListPixelsRequest} requestParameters Request parameters.
|
|
3101
|
+
* @param {*} [options] Override http request option.
|
|
3102
|
+
* @throws {RequiredError}
|
|
3103
|
+
*/
|
|
3104
|
+
listPixels(requestParameters, options) {
|
|
3105
|
+
return localVarFp.listPixels(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(axios, basePath));
|
|
3106
|
+
},
|
|
3107
|
+
/**
|
|
3108
|
+
* Update a pixel
|
|
3109
|
+
* @summary Update a pixel
|
|
3110
|
+
* @param {PixelsApiUpdatePixelRequest} requestParameters Request parameters.
|
|
3111
|
+
* @param {*} [options] Override http request option.
|
|
3112
|
+
* @throws {RequiredError}
|
|
3113
|
+
*/
|
|
3114
|
+
updatePixel(requestParameters, options) {
|
|
3115
|
+
return localVarFp.updatePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, requestParameters.createPixelRequest, options).then((request) => request(axios, basePath));
|
|
3116
|
+
},
|
|
3117
|
+
};
|
|
3118
|
+
};
|
|
3119
|
+
exports.PixelsApiFactory = PixelsApiFactory;
|
|
3120
|
+
/**
|
|
3121
|
+
* PixelsApi - object-oriented interface
|
|
3122
|
+
* @export
|
|
3123
|
+
* @class PixelsApi
|
|
3124
|
+
* @extends {BaseAPI}
|
|
3125
|
+
*/
|
|
3126
|
+
class PixelsApi extends base_1.BaseAPI {
|
|
3127
|
+
/**
|
|
3128
|
+
*
|
|
3129
|
+
* @summary Create a pixel
|
|
3130
|
+
* @param {PixelsApiCreatePixelRequest} requestParameters Request parameters.
|
|
3131
|
+
* @param {*} [options] Override http request option.
|
|
3132
|
+
* @throws {RequiredError}
|
|
3133
|
+
* @memberof PixelsApi
|
|
3134
|
+
*/
|
|
3135
|
+
createPixel(requestParameters, options) {
|
|
3136
|
+
return (0, exports.PixelsApiFp)(this.configuration).createPixel(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, requestParameters.createPixelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3137
|
+
}
|
|
3138
|
+
/**
|
|
3139
|
+
* Delete a pixel
|
|
3140
|
+
* @summary Delete a pixel
|
|
3141
|
+
* @param {PixelsApiDeletePixelRequest} requestParameters Request parameters.
|
|
3142
|
+
* @param {*} [options] Override http request option.
|
|
3143
|
+
* @throws {RequiredError}
|
|
3144
|
+
* @memberof PixelsApi
|
|
3145
|
+
*/
|
|
3146
|
+
deletePixel(requestParameters, options) {
|
|
3147
|
+
return (0, exports.PixelsApiFp)(this.configuration).deletePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(this.axios, this.basePath));
|
|
3148
|
+
}
|
|
3149
|
+
/**
|
|
3150
|
+
* Get a pixel for a platform by a given pixel ID.
|
|
3151
|
+
* @summary Get pixel
|
|
3152
|
+
* @param {PixelsApiGetPixelRequest} requestParameters Request parameters.
|
|
3153
|
+
* @param {*} [options] Override http request option.
|
|
3154
|
+
* @throws {RequiredError}
|
|
3155
|
+
* @memberof PixelsApi
|
|
3156
|
+
*/
|
|
3157
|
+
getPixel(requestParameters, options) {
|
|
3158
|
+
return (0, exports.PixelsApiFp)(this.configuration).getPixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, options).then((request) => request(this.axios, this.basePath));
|
|
3159
|
+
}
|
|
3160
|
+
/**
|
|
3161
|
+
* List pixels for a platform
|
|
3162
|
+
* @summary List pixels
|
|
3163
|
+
* @param {PixelsApiListPixelsRequest} requestParameters Request parameters.
|
|
3164
|
+
* @param {*} [options] Override http request option.
|
|
3165
|
+
* @throws {RequiredError}
|
|
3166
|
+
* @memberof PixelsApi
|
|
3167
|
+
*/
|
|
3168
|
+
listPixels(requestParameters, options) {
|
|
3169
|
+
return (0, exports.PixelsApiFp)(this.configuration).listPixels(requestParameters.project, requestParameters.platformId, requestParameters.pageToken, requestParameters.pageSize, requestParameters.search, options).then((request) => request(this.axios, this.basePath));
|
|
3170
|
+
}
|
|
3171
|
+
/**
|
|
3172
|
+
* Update a pixel
|
|
3173
|
+
* @summary Update a pixel
|
|
3174
|
+
* @param {PixelsApiUpdatePixelRequest} requestParameters Request parameters.
|
|
3175
|
+
* @param {*} [options] Override http request option.
|
|
3176
|
+
* @throws {RequiredError}
|
|
3177
|
+
* @memberof PixelsApi
|
|
3178
|
+
*/
|
|
3179
|
+
updatePixel(requestParameters, options) {
|
|
3180
|
+
return (0, exports.PixelsApiFp)(this.configuration).updatePixel(requestParameters.project, requestParameters.platformId, requestParameters.pixelId, requestParameters.createPixelRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
exports.PixelsApi = PixelsApi;
|
|
2699
3184
|
/**
|
|
2700
3185
|
* PlatformApi - axios parameter creator
|
|
2701
3186
|
* @export
|
package/dist/base.d.ts
CHANGED
package/dist/base.js
CHANGED
package/dist/common.d.ts
CHANGED
package/dist/common.js
CHANGED
package/dist/configuration.d.ts
CHANGED
package/dist/configuration.js
CHANGED