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