@teemill/website 0.25.1 → 0.26.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 +6 -2
- package/api.ts +387 -3
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +195 -3
- package/dist/api.js +297 -1
- 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 +195 -3
- package/dist/esm/api.js +297 -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/InlineObject.md +2 -2
- package/docs/PaymentApi.md +171 -0
- package/docs/WebsiteApi.md +61 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Website API
|
|
6
6
|
* Manage your PodOS Website
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.
|
|
8
|
+
* The version of the OpenAPI document: 0.26.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2564,6 +2564,42 @@ exports.PagesApi = PagesApi;
|
|
|
2564
2564
|
*/
|
|
2565
2565
|
const PaymentApiAxiosParamCreator = function (configuration) {
|
|
2566
2566
|
return {
|
|
2567
|
+
/**
|
|
2568
|
+
* Authorize a PayPal payment account
|
|
2569
|
+
* @summary Authorize PayPal
|
|
2570
|
+
* @param {string} project What project it is
|
|
2571
|
+
* @param {*} [options] Override http request option.
|
|
2572
|
+
* @throws {RequiredError}
|
|
2573
|
+
*/
|
|
2574
|
+
authorizePayPal: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
2575
|
+
// verify required parameter 'project' is not null or undefined
|
|
2576
|
+
(0, common_1.assertParamExists)('authorizePayPal', 'project', project);
|
|
2577
|
+
const localVarPath = `/v1/website/payment/paypal/authorize`;
|
|
2578
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2579
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2580
|
+
let baseOptions;
|
|
2581
|
+
if (configuration) {
|
|
2582
|
+
baseOptions = configuration.baseOptions;
|
|
2583
|
+
}
|
|
2584
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2585
|
+
const localVarHeaderParameter = {};
|
|
2586
|
+
const localVarQueryParameter = {};
|
|
2587
|
+
// authentication session-oauth required
|
|
2588
|
+
// oauth required
|
|
2589
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2590
|
+
// authentication api-key required
|
|
2591
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2592
|
+
if (project !== undefined) {
|
|
2593
|
+
localVarQueryParameter['project'] = project;
|
|
2594
|
+
}
|
|
2595
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2596
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2597
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2598
|
+
return {
|
|
2599
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2600
|
+
options: localVarRequestOptions,
|
|
2601
|
+
};
|
|
2602
|
+
}),
|
|
2567
2603
|
/**
|
|
2568
2604
|
* Authorize a Stripe payment account
|
|
2569
2605
|
* @summary Authorize Stripe
|
|
@@ -2600,6 +2636,42 @@ const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
2600
2636
|
options: localVarRequestOptions,
|
|
2601
2637
|
};
|
|
2602
2638
|
}),
|
|
2639
|
+
/**
|
|
2640
|
+
* Deauthorize a PayPal payment account
|
|
2641
|
+
* @summary Deauthorize PayPal
|
|
2642
|
+
* @param {string} project What project it is
|
|
2643
|
+
* @param {*} [options] Override http request option.
|
|
2644
|
+
* @throws {RequiredError}
|
|
2645
|
+
*/
|
|
2646
|
+
deauthorizePayPal: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
2647
|
+
// verify required parameter 'project' is not null or undefined
|
|
2648
|
+
(0, common_1.assertParamExists)('deauthorizePayPal', 'project', project);
|
|
2649
|
+
const localVarPath = `/v1/website/payment/paypal/deauthorize`;
|
|
2650
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2651
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2652
|
+
let baseOptions;
|
|
2653
|
+
if (configuration) {
|
|
2654
|
+
baseOptions = configuration.baseOptions;
|
|
2655
|
+
}
|
|
2656
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2657
|
+
const localVarHeaderParameter = {};
|
|
2658
|
+
const localVarQueryParameter = {};
|
|
2659
|
+
// authentication session-oauth required
|
|
2660
|
+
// oauth required
|
|
2661
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2662
|
+
// authentication api-key required
|
|
2663
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2664
|
+
if (project !== undefined) {
|
|
2665
|
+
localVarQueryParameter['project'] = project;
|
|
2666
|
+
}
|
|
2667
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2668
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2669
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2670
|
+
return {
|
|
2671
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2672
|
+
options: localVarRequestOptions,
|
|
2673
|
+
};
|
|
2674
|
+
}),
|
|
2603
2675
|
/**
|
|
2604
2676
|
* Deauthorize a Stripe payment account
|
|
2605
2677
|
* @summary Deauthorize Stripe
|
|
@@ -2636,6 +2708,42 @@ const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
2636
2708
|
options: localVarRequestOptions,
|
|
2637
2709
|
};
|
|
2638
2710
|
}),
|
|
2711
|
+
/**
|
|
2712
|
+
* Get the PayPal payment account information for the project
|
|
2713
|
+
* @summary Get PayPal Payment Account
|
|
2714
|
+
* @param {string} project What project it is
|
|
2715
|
+
* @param {*} [options] Override http request option.
|
|
2716
|
+
* @throws {RequiredError}
|
|
2717
|
+
*/
|
|
2718
|
+
getPayPalPaymentAccount: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
2719
|
+
// verify required parameter 'project' is not null or undefined
|
|
2720
|
+
(0, common_1.assertParamExists)('getPayPalPaymentAccount', 'project', project);
|
|
2721
|
+
const localVarPath = `/v1/website/payment/paypal`;
|
|
2722
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2723
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2724
|
+
let baseOptions;
|
|
2725
|
+
if (configuration) {
|
|
2726
|
+
baseOptions = configuration.baseOptions;
|
|
2727
|
+
}
|
|
2728
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2729
|
+
const localVarHeaderParameter = {};
|
|
2730
|
+
const localVarQueryParameter = {};
|
|
2731
|
+
// authentication session-oauth required
|
|
2732
|
+
// oauth required
|
|
2733
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2734
|
+
// authentication api-key required
|
|
2735
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
2736
|
+
if (project !== undefined) {
|
|
2737
|
+
localVarQueryParameter['project'] = project;
|
|
2738
|
+
}
|
|
2739
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2740
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2741
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2742
|
+
return {
|
|
2743
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2744
|
+
options: localVarRequestOptions,
|
|
2745
|
+
};
|
|
2746
|
+
}),
|
|
2639
2747
|
/**
|
|
2640
2748
|
* Get the Stripe payment account for the project
|
|
2641
2749
|
* @summary Get Stripe Payment Account
|
|
@@ -2682,6 +2790,22 @@ exports.PaymentApiAxiosParamCreator = PaymentApiAxiosParamCreator;
|
|
|
2682
2790
|
const PaymentApiFp = function (configuration) {
|
|
2683
2791
|
const localVarAxiosParamCreator = (0, exports.PaymentApiAxiosParamCreator)(configuration);
|
|
2684
2792
|
return {
|
|
2793
|
+
/**
|
|
2794
|
+
* Authorize a PayPal payment account
|
|
2795
|
+
* @summary Authorize PayPal
|
|
2796
|
+
* @param {string} project What project it is
|
|
2797
|
+
* @param {*} [options] Override http request option.
|
|
2798
|
+
* @throws {RequiredError}
|
|
2799
|
+
*/
|
|
2800
|
+
authorizePayPal(project, options) {
|
|
2801
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2802
|
+
var _a, _b, _c;
|
|
2803
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizePayPal(project, options);
|
|
2804
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2805
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.authorizePayPal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2806
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2807
|
+
});
|
|
2808
|
+
},
|
|
2685
2809
|
/**
|
|
2686
2810
|
* Authorize a Stripe payment account
|
|
2687
2811
|
* @summary Authorize Stripe
|
|
@@ -2698,6 +2822,22 @@ const PaymentApiFp = function (configuration) {
|
|
|
2698
2822
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2699
2823
|
});
|
|
2700
2824
|
},
|
|
2825
|
+
/**
|
|
2826
|
+
* Deauthorize a PayPal payment account
|
|
2827
|
+
* @summary Deauthorize PayPal
|
|
2828
|
+
* @param {string} project What project it is
|
|
2829
|
+
* @param {*} [options] Override http request option.
|
|
2830
|
+
* @throws {RequiredError}
|
|
2831
|
+
*/
|
|
2832
|
+
deauthorizePayPal(project, options) {
|
|
2833
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2834
|
+
var _a, _b, _c;
|
|
2835
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deauthorizePayPal(project, options);
|
|
2836
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2837
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.deauthorizePayPal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2838
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2839
|
+
});
|
|
2840
|
+
},
|
|
2701
2841
|
/**
|
|
2702
2842
|
* Deauthorize a Stripe payment account
|
|
2703
2843
|
* @summary Deauthorize Stripe
|
|
@@ -2714,6 +2854,22 @@ const PaymentApiFp = function (configuration) {
|
|
|
2714
2854
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2715
2855
|
});
|
|
2716
2856
|
},
|
|
2857
|
+
/**
|
|
2858
|
+
* Get the PayPal payment account information for the project
|
|
2859
|
+
* @summary Get PayPal Payment Account
|
|
2860
|
+
* @param {string} project What project it is
|
|
2861
|
+
* @param {*} [options] Override http request option.
|
|
2862
|
+
* @throws {RequiredError}
|
|
2863
|
+
*/
|
|
2864
|
+
getPayPalPaymentAccount(project, options) {
|
|
2865
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2866
|
+
var _a, _b, _c;
|
|
2867
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPayPalPaymentAccount(project, options);
|
|
2868
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2869
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PaymentApi.getPayPalPaymentAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2870
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2871
|
+
});
|
|
2872
|
+
},
|
|
2717
2873
|
/**
|
|
2718
2874
|
* Get the Stripe payment account for the project
|
|
2719
2875
|
* @summary Get Stripe Payment Account
|
|
@@ -2740,6 +2896,16 @@ exports.PaymentApiFp = PaymentApiFp;
|
|
|
2740
2896
|
const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
2741
2897
|
const localVarFp = (0, exports.PaymentApiFp)(configuration);
|
|
2742
2898
|
return {
|
|
2899
|
+
/**
|
|
2900
|
+
* Authorize a PayPal payment account
|
|
2901
|
+
* @summary Authorize PayPal
|
|
2902
|
+
* @param {PaymentApiAuthorizePayPalRequest} requestParameters Request parameters.
|
|
2903
|
+
* @param {*} [options] Override http request option.
|
|
2904
|
+
* @throws {RequiredError}
|
|
2905
|
+
*/
|
|
2906
|
+
authorizePayPal(requestParameters, options) {
|
|
2907
|
+
return localVarFp.authorizePayPal(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2908
|
+
},
|
|
2743
2909
|
/**
|
|
2744
2910
|
* Authorize a Stripe payment account
|
|
2745
2911
|
* @summary Authorize Stripe
|
|
@@ -2750,6 +2916,16 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
2750
2916
|
authorizeStripe(requestParameters, options) {
|
|
2751
2917
|
return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2752
2918
|
},
|
|
2919
|
+
/**
|
|
2920
|
+
* Deauthorize a PayPal payment account
|
|
2921
|
+
* @summary Deauthorize PayPal
|
|
2922
|
+
* @param {PaymentApiDeauthorizePayPalRequest} requestParameters Request parameters.
|
|
2923
|
+
* @param {*} [options] Override http request option.
|
|
2924
|
+
* @throws {RequiredError}
|
|
2925
|
+
*/
|
|
2926
|
+
deauthorizePayPal(requestParameters, options) {
|
|
2927
|
+
return localVarFp.deauthorizePayPal(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2928
|
+
},
|
|
2753
2929
|
/**
|
|
2754
2930
|
* Deauthorize a Stripe payment account
|
|
2755
2931
|
* @summary Deauthorize Stripe
|
|
@@ -2760,6 +2936,16 @@ const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
2760
2936
|
deauthorizeStripe(requestParameters, options) {
|
|
2761
2937
|
return localVarFp.deauthorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2762
2938
|
},
|
|
2939
|
+
/**
|
|
2940
|
+
* Get the PayPal payment account information for the project
|
|
2941
|
+
* @summary Get PayPal Payment Account
|
|
2942
|
+
* @param {PaymentApiGetPayPalPaymentAccountRequest} requestParameters Request parameters.
|
|
2943
|
+
* @param {*} [options] Override http request option.
|
|
2944
|
+
* @throws {RequiredError}
|
|
2945
|
+
*/
|
|
2946
|
+
getPayPalPaymentAccount(requestParameters, options) {
|
|
2947
|
+
return localVarFp.getPayPalPaymentAccount(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2948
|
+
},
|
|
2763
2949
|
/**
|
|
2764
2950
|
* Get the Stripe payment account for the project
|
|
2765
2951
|
* @summary Get Stripe Payment Account
|
|
@@ -2780,6 +2966,17 @@ exports.PaymentApiFactory = PaymentApiFactory;
|
|
|
2780
2966
|
* @extends {BaseAPI}
|
|
2781
2967
|
*/
|
|
2782
2968
|
class PaymentApi extends base_1.BaseAPI {
|
|
2969
|
+
/**
|
|
2970
|
+
* Authorize a PayPal payment account
|
|
2971
|
+
* @summary Authorize PayPal
|
|
2972
|
+
* @param {PaymentApiAuthorizePayPalRequest} requestParameters Request parameters.
|
|
2973
|
+
* @param {*} [options] Override http request option.
|
|
2974
|
+
* @throws {RequiredError}
|
|
2975
|
+
* @memberof PaymentApi
|
|
2976
|
+
*/
|
|
2977
|
+
authorizePayPal(requestParameters, options) {
|
|
2978
|
+
return (0, exports.PaymentApiFp)(this.configuration).authorizePayPal(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2979
|
+
}
|
|
2783
2980
|
/**
|
|
2784
2981
|
* Authorize a Stripe payment account
|
|
2785
2982
|
* @summary Authorize Stripe
|
|
@@ -2791,6 +2988,17 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
2791
2988
|
authorizeStripe(requestParameters, options) {
|
|
2792
2989
|
return (0, exports.PaymentApiFp)(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2793
2990
|
}
|
|
2991
|
+
/**
|
|
2992
|
+
* Deauthorize a PayPal payment account
|
|
2993
|
+
* @summary Deauthorize PayPal
|
|
2994
|
+
* @param {PaymentApiDeauthorizePayPalRequest} requestParameters Request parameters.
|
|
2995
|
+
* @param {*} [options] Override http request option.
|
|
2996
|
+
* @throws {RequiredError}
|
|
2997
|
+
* @memberof PaymentApi
|
|
2998
|
+
*/
|
|
2999
|
+
deauthorizePayPal(requestParameters, options) {
|
|
3000
|
+
return (0, exports.PaymentApiFp)(this.configuration).deauthorizePayPal(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
3001
|
+
}
|
|
2794
3002
|
/**
|
|
2795
3003
|
* Deauthorize a Stripe payment account
|
|
2796
3004
|
* @summary Deauthorize Stripe
|
|
@@ -2802,6 +3010,17 @@ class PaymentApi extends base_1.BaseAPI {
|
|
|
2802
3010
|
deauthorizeStripe(requestParameters, options) {
|
|
2803
3011
|
return (0, exports.PaymentApiFp)(this.configuration).deauthorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2804
3012
|
}
|
|
3013
|
+
/**
|
|
3014
|
+
* Get the PayPal payment account information for the project
|
|
3015
|
+
* @summary Get PayPal Payment Account
|
|
3016
|
+
* @param {PaymentApiGetPayPalPaymentAccountRequest} requestParameters Request parameters.
|
|
3017
|
+
* @param {*} [options] Override http request option.
|
|
3018
|
+
* @throws {RequiredError}
|
|
3019
|
+
* @memberof PaymentApi
|
|
3020
|
+
*/
|
|
3021
|
+
getPayPalPaymentAccount(requestParameters, options) {
|
|
3022
|
+
return (0, exports.PaymentApiFp)(this.configuration).getPayPalPaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
3023
|
+
}
|
|
2805
3024
|
/**
|
|
2806
3025
|
* Get the Stripe payment account for the project
|
|
2807
3026
|
* @summary Get Stripe Payment Account
|
|
@@ -3910,6 +4129,45 @@ const WebsiteApiAxiosParamCreator = function (configuration) {
|
|
|
3910
4129
|
options: localVarRequestOptions,
|
|
3911
4130
|
};
|
|
3912
4131
|
}),
|
|
4132
|
+
/**
|
|
4133
|
+
* Updated a websites base domain
|
|
4134
|
+
* @summary Update base domain
|
|
4135
|
+
* @param {string} project What project it is
|
|
4136
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
4137
|
+
* @param {*} [options] Override http request option.
|
|
4138
|
+
* @throws {RequiredError}
|
|
4139
|
+
*/
|
|
4140
|
+
updateBaseDomain: (project_1, createDomainRequest_1, ...args_1) => __awaiter(this, [project_1, createDomainRequest_1, ...args_1], void 0, function* (project, createDomainRequest, options = {}) {
|
|
4141
|
+
// verify required parameter 'project' is not null or undefined
|
|
4142
|
+
(0, common_1.assertParamExists)('updateBaseDomain', 'project', project);
|
|
4143
|
+
const localVarPath = `/v1/website/domains/base`;
|
|
4144
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4145
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4146
|
+
let baseOptions;
|
|
4147
|
+
if (configuration) {
|
|
4148
|
+
baseOptions = configuration.baseOptions;
|
|
4149
|
+
}
|
|
4150
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4151
|
+
const localVarHeaderParameter = {};
|
|
4152
|
+
const localVarQueryParameter = {};
|
|
4153
|
+
// authentication session-oauth required
|
|
4154
|
+
// oauth required
|
|
4155
|
+
yield (0, common_1.setOAuthToObject)(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
4156
|
+
// authentication api-key required
|
|
4157
|
+
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
|
|
4158
|
+
if (project !== undefined) {
|
|
4159
|
+
localVarQueryParameter['project'] = project;
|
|
4160
|
+
}
|
|
4161
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4162
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4163
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4164
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4165
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDomainRequest, localVarRequestOptions, configuration);
|
|
4166
|
+
return {
|
|
4167
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4168
|
+
options: localVarRequestOptions,
|
|
4169
|
+
};
|
|
4170
|
+
}),
|
|
3913
4171
|
};
|
|
3914
4172
|
};
|
|
3915
4173
|
exports.WebsiteApiAxiosParamCreator = WebsiteApiAxiosParamCreator;
|
|
@@ -3970,6 +4228,23 @@ const WebsiteApiFp = function (configuration) {
|
|
|
3970
4228
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3971
4229
|
});
|
|
3972
4230
|
},
|
|
4231
|
+
/**
|
|
4232
|
+
* Updated a websites base domain
|
|
4233
|
+
* @summary Update base domain
|
|
4234
|
+
* @param {string} project What project it is
|
|
4235
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
4236
|
+
* @param {*} [options] Override http request option.
|
|
4237
|
+
* @throws {RequiredError}
|
|
4238
|
+
*/
|
|
4239
|
+
updateBaseDomain(project, createDomainRequest, options) {
|
|
4240
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4241
|
+
var _a, _b, _c;
|
|
4242
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBaseDomain(project, createDomainRequest, options);
|
|
4243
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4244
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WebsiteApi.updateBaseDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4245
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4246
|
+
});
|
|
4247
|
+
},
|
|
3973
4248
|
};
|
|
3974
4249
|
};
|
|
3975
4250
|
exports.WebsiteApiFp = WebsiteApiFp;
|
|
@@ -4010,6 +4285,16 @@ const WebsiteApiFactory = function (configuration, basePath, axios) {
|
|
|
4010
4285
|
listDomains(requestParameters, options) {
|
|
4011
4286
|
return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
4012
4287
|
},
|
|
4288
|
+
/**
|
|
4289
|
+
* Updated a websites base domain
|
|
4290
|
+
* @summary Update base domain
|
|
4291
|
+
* @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
|
|
4292
|
+
* @param {*} [options] Override http request option.
|
|
4293
|
+
* @throws {RequiredError}
|
|
4294
|
+
*/
|
|
4295
|
+
updateBaseDomain(requestParameters, options) {
|
|
4296
|
+
return localVarFp.updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
4297
|
+
},
|
|
4013
4298
|
};
|
|
4014
4299
|
};
|
|
4015
4300
|
exports.WebsiteApiFactory = WebsiteApiFactory;
|
|
@@ -4053,5 +4338,16 @@ class WebsiteApi extends base_1.BaseAPI {
|
|
|
4053
4338
|
listDomains(requestParameters, options) {
|
|
4054
4339
|
return (0, exports.WebsiteApiFp)(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
4055
4340
|
}
|
|
4341
|
+
/**
|
|
4342
|
+
* Updated a websites base domain
|
|
4343
|
+
* @summary Update base domain
|
|
4344
|
+
* @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
|
|
4345
|
+
* @param {*} [options] Override http request option.
|
|
4346
|
+
* @throws {RequiredError}
|
|
4347
|
+
* @memberof WebsiteApi
|
|
4348
|
+
*/
|
|
4349
|
+
updateBaseDomain(requestParameters, options) {
|
|
4350
|
+
return (0, exports.WebsiteApiFp)(this.configuration).updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4351
|
+
}
|
|
4056
4352
|
}
|
|
4057
4353
|
exports.WebsiteApi = WebsiteApi;
|
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