@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/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Website API
|
|
5
5
|
* Manage your PodOS Website
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 0.
|
|
7
|
+
* The version of the OpenAPI document: 0.26.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2532,6 +2532,42 @@ export class PagesApi extends BaseAPI {
|
|
|
2532
2532
|
*/
|
|
2533
2533
|
export const PaymentApiAxiosParamCreator = function (configuration) {
|
|
2534
2534
|
return {
|
|
2535
|
+
/**
|
|
2536
|
+
* Authorize a PayPal payment account
|
|
2537
|
+
* @summary Authorize PayPal
|
|
2538
|
+
* @param {string} project What project it is
|
|
2539
|
+
* @param {*} [options] Override http request option.
|
|
2540
|
+
* @throws {RequiredError}
|
|
2541
|
+
*/
|
|
2542
|
+
authorizePayPal: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
2543
|
+
// verify required parameter 'project' is not null or undefined
|
|
2544
|
+
assertParamExists('authorizePayPal', 'project', project);
|
|
2545
|
+
const localVarPath = `/v1/website/payment/paypal/authorize`;
|
|
2546
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2547
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2548
|
+
let baseOptions;
|
|
2549
|
+
if (configuration) {
|
|
2550
|
+
baseOptions = configuration.baseOptions;
|
|
2551
|
+
}
|
|
2552
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2553
|
+
const localVarHeaderParameter = {};
|
|
2554
|
+
const localVarQueryParameter = {};
|
|
2555
|
+
// authentication session-oauth required
|
|
2556
|
+
// oauth required
|
|
2557
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2558
|
+
// authentication api-key required
|
|
2559
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2560
|
+
if (project !== undefined) {
|
|
2561
|
+
localVarQueryParameter['project'] = project;
|
|
2562
|
+
}
|
|
2563
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2564
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2565
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2566
|
+
return {
|
|
2567
|
+
url: toPathString(localVarUrlObj),
|
|
2568
|
+
options: localVarRequestOptions,
|
|
2569
|
+
};
|
|
2570
|
+
}),
|
|
2535
2571
|
/**
|
|
2536
2572
|
* Authorize a Stripe payment account
|
|
2537
2573
|
* @summary Authorize Stripe
|
|
@@ -2568,6 +2604,42 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
2568
2604
|
options: localVarRequestOptions,
|
|
2569
2605
|
};
|
|
2570
2606
|
}),
|
|
2607
|
+
/**
|
|
2608
|
+
* Deauthorize a PayPal payment account
|
|
2609
|
+
* @summary Deauthorize PayPal
|
|
2610
|
+
* @param {string} project What project it is
|
|
2611
|
+
* @param {*} [options] Override http request option.
|
|
2612
|
+
* @throws {RequiredError}
|
|
2613
|
+
*/
|
|
2614
|
+
deauthorizePayPal: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
2615
|
+
// verify required parameter 'project' is not null or undefined
|
|
2616
|
+
assertParamExists('deauthorizePayPal', 'project', project);
|
|
2617
|
+
const localVarPath = `/v1/website/payment/paypal/deauthorize`;
|
|
2618
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2619
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2620
|
+
let baseOptions;
|
|
2621
|
+
if (configuration) {
|
|
2622
|
+
baseOptions = configuration.baseOptions;
|
|
2623
|
+
}
|
|
2624
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
2625
|
+
const localVarHeaderParameter = {};
|
|
2626
|
+
const localVarQueryParameter = {};
|
|
2627
|
+
// authentication session-oauth required
|
|
2628
|
+
// oauth required
|
|
2629
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2630
|
+
// authentication api-key required
|
|
2631
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2632
|
+
if (project !== undefined) {
|
|
2633
|
+
localVarQueryParameter['project'] = project;
|
|
2634
|
+
}
|
|
2635
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2636
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2637
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2638
|
+
return {
|
|
2639
|
+
url: toPathString(localVarUrlObj),
|
|
2640
|
+
options: localVarRequestOptions,
|
|
2641
|
+
};
|
|
2642
|
+
}),
|
|
2571
2643
|
/**
|
|
2572
2644
|
* Deauthorize a Stripe payment account
|
|
2573
2645
|
* @summary Deauthorize Stripe
|
|
@@ -2604,6 +2676,42 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
2604
2676
|
options: localVarRequestOptions,
|
|
2605
2677
|
};
|
|
2606
2678
|
}),
|
|
2679
|
+
/**
|
|
2680
|
+
* Get the PayPal payment account information for the project
|
|
2681
|
+
* @summary Get PayPal Payment Account
|
|
2682
|
+
* @param {string} project What project it is
|
|
2683
|
+
* @param {*} [options] Override http request option.
|
|
2684
|
+
* @throws {RequiredError}
|
|
2685
|
+
*/
|
|
2686
|
+
getPayPalPaymentAccount: (project_1, ...args_1) => __awaiter(this, [project_1, ...args_1], void 0, function* (project, options = {}) {
|
|
2687
|
+
// verify required parameter 'project' is not null or undefined
|
|
2688
|
+
assertParamExists('getPayPalPaymentAccount', 'project', project);
|
|
2689
|
+
const localVarPath = `/v1/website/payment/paypal`;
|
|
2690
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2691
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2692
|
+
let baseOptions;
|
|
2693
|
+
if (configuration) {
|
|
2694
|
+
baseOptions = configuration.baseOptions;
|
|
2695
|
+
}
|
|
2696
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2697
|
+
const localVarHeaderParameter = {};
|
|
2698
|
+
const localVarQueryParameter = {};
|
|
2699
|
+
// authentication session-oauth required
|
|
2700
|
+
// oauth required
|
|
2701
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
2702
|
+
// authentication api-key required
|
|
2703
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
2704
|
+
if (project !== undefined) {
|
|
2705
|
+
localVarQueryParameter['project'] = project;
|
|
2706
|
+
}
|
|
2707
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2708
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2709
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2710
|
+
return {
|
|
2711
|
+
url: toPathString(localVarUrlObj),
|
|
2712
|
+
options: localVarRequestOptions,
|
|
2713
|
+
};
|
|
2714
|
+
}),
|
|
2607
2715
|
/**
|
|
2608
2716
|
* Get the Stripe payment account for the project
|
|
2609
2717
|
* @summary Get Stripe Payment Account
|
|
@@ -2649,6 +2757,22 @@ export const PaymentApiAxiosParamCreator = function (configuration) {
|
|
|
2649
2757
|
export const PaymentApiFp = function (configuration) {
|
|
2650
2758
|
const localVarAxiosParamCreator = PaymentApiAxiosParamCreator(configuration);
|
|
2651
2759
|
return {
|
|
2760
|
+
/**
|
|
2761
|
+
* Authorize a PayPal payment account
|
|
2762
|
+
* @summary Authorize PayPal
|
|
2763
|
+
* @param {string} project What project it is
|
|
2764
|
+
* @param {*} [options] Override http request option.
|
|
2765
|
+
* @throws {RequiredError}
|
|
2766
|
+
*/
|
|
2767
|
+
authorizePayPal(project, options) {
|
|
2768
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2769
|
+
var _a, _b, _c;
|
|
2770
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.authorizePayPal(project, options);
|
|
2771
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2772
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentApi.authorizePayPal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2773
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2774
|
+
});
|
|
2775
|
+
},
|
|
2652
2776
|
/**
|
|
2653
2777
|
* Authorize a Stripe payment account
|
|
2654
2778
|
* @summary Authorize Stripe
|
|
@@ -2665,6 +2789,22 @@ export const PaymentApiFp = function (configuration) {
|
|
|
2665
2789
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2666
2790
|
});
|
|
2667
2791
|
},
|
|
2792
|
+
/**
|
|
2793
|
+
* Deauthorize a PayPal payment account
|
|
2794
|
+
* @summary Deauthorize PayPal
|
|
2795
|
+
* @param {string} project What project it is
|
|
2796
|
+
* @param {*} [options] Override http request option.
|
|
2797
|
+
* @throws {RequiredError}
|
|
2798
|
+
*/
|
|
2799
|
+
deauthorizePayPal(project, options) {
|
|
2800
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2801
|
+
var _a, _b, _c;
|
|
2802
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deauthorizePayPal(project, options);
|
|
2803
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2804
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentApi.deauthorizePayPal']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2805
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2806
|
+
});
|
|
2807
|
+
},
|
|
2668
2808
|
/**
|
|
2669
2809
|
* Deauthorize a Stripe payment account
|
|
2670
2810
|
* @summary Deauthorize Stripe
|
|
@@ -2681,6 +2821,22 @@ export const PaymentApiFp = function (configuration) {
|
|
|
2681
2821
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2682
2822
|
});
|
|
2683
2823
|
},
|
|
2824
|
+
/**
|
|
2825
|
+
* Get the PayPal payment account information for the project
|
|
2826
|
+
* @summary Get PayPal Payment Account
|
|
2827
|
+
* @param {string} project What project it is
|
|
2828
|
+
* @param {*} [options] Override http request option.
|
|
2829
|
+
* @throws {RequiredError}
|
|
2830
|
+
*/
|
|
2831
|
+
getPayPalPaymentAccount(project, options) {
|
|
2832
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2833
|
+
var _a, _b, _c;
|
|
2834
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getPayPalPaymentAccount(project, options);
|
|
2835
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2836
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PaymentApi.getPayPalPaymentAccount']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2837
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2838
|
+
});
|
|
2839
|
+
},
|
|
2684
2840
|
/**
|
|
2685
2841
|
* Get the Stripe payment account for the project
|
|
2686
2842
|
* @summary Get Stripe Payment Account
|
|
@@ -2706,6 +2862,16 @@ export const PaymentApiFp = function (configuration) {
|
|
|
2706
2862
|
export const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
2707
2863
|
const localVarFp = PaymentApiFp(configuration);
|
|
2708
2864
|
return {
|
|
2865
|
+
/**
|
|
2866
|
+
* Authorize a PayPal payment account
|
|
2867
|
+
* @summary Authorize PayPal
|
|
2868
|
+
* @param {PaymentApiAuthorizePayPalRequest} requestParameters Request parameters.
|
|
2869
|
+
* @param {*} [options] Override http request option.
|
|
2870
|
+
* @throws {RequiredError}
|
|
2871
|
+
*/
|
|
2872
|
+
authorizePayPal(requestParameters, options) {
|
|
2873
|
+
return localVarFp.authorizePayPal(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2874
|
+
},
|
|
2709
2875
|
/**
|
|
2710
2876
|
* Authorize a Stripe payment account
|
|
2711
2877
|
* @summary Authorize Stripe
|
|
@@ -2716,6 +2882,16 @@ export const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
2716
2882
|
authorizeStripe(requestParameters, options) {
|
|
2717
2883
|
return localVarFp.authorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2718
2884
|
},
|
|
2885
|
+
/**
|
|
2886
|
+
* Deauthorize a PayPal payment account
|
|
2887
|
+
* @summary Deauthorize PayPal
|
|
2888
|
+
* @param {PaymentApiDeauthorizePayPalRequest} requestParameters Request parameters.
|
|
2889
|
+
* @param {*} [options] Override http request option.
|
|
2890
|
+
* @throws {RequiredError}
|
|
2891
|
+
*/
|
|
2892
|
+
deauthorizePayPal(requestParameters, options) {
|
|
2893
|
+
return localVarFp.deauthorizePayPal(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2894
|
+
},
|
|
2719
2895
|
/**
|
|
2720
2896
|
* Deauthorize a Stripe payment account
|
|
2721
2897
|
* @summary Deauthorize Stripe
|
|
@@ -2726,6 +2902,16 @@ export const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
2726
2902
|
deauthorizeStripe(requestParameters, options) {
|
|
2727
2903
|
return localVarFp.deauthorizeStripe(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2728
2904
|
},
|
|
2905
|
+
/**
|
|
2906
|
+
* Get the PayPal payment account information for the project
|
|
2907
|
+
* @summary Get PayPal Payment Account
|
|
2908
|
+
* @param {PaymentApiGetPayPalPaymentAccountRequest} requestParameters Request parameters.
|
|
2909
|
+
* @param {*} [options] Override http request option.
|
|
2910
|
+
* @throws {RequiredError}
|
|
2911
|
+
*/
|
|
2912
|
+
getPayPalPaymentAccount(requestParameters, options) {
|
|
2913
|
+
return localVarFp.getPayPalPaymentAccount(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
2914
|
+
},
|
|
2729
2915
|
/**
|
|
2730
2916
|
* Get the Stripe payment account for the project
|
|
2731
2917
|
* @summary Get Stripe Payment Account
|
|
@@ -2745,6 +2931,17 @@ export const PaymentApiFactory = function (configuration, basePath, axios) {
|
|
|
2745
2931
|
* @extends {BaseAPI}
|
|
2746
2932
|
*/
|
|
2747
2933
|
export class PaymentApi extends BaseAPI {
|
|
2934
|
+
/**
|
|
2935
|
+
* Authorize a PayPal payment account
|
|
2936
|
+
* @summary Authorize PayPal
|
|
2937
|
+
* @param {PaymentApiAuthorizePayPalRequest} requestParameters Request parameters.
|
|
2938
|
+
* @param {*} [options] Override http request option.
|
|
2939
|
+
* @throws {RequiredError}
|
|
2940
|
+
* @memberof PaymentApi
|
|
2941
|
+
*/
|
|
2942
|
+
authorizePayPal(requestParameters, options) {
|
|
2943
|
+
return PaymentApiFp(this.configuration).authorizePayPal(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2944
|
+
}
|
|
2748
2945
|
/**
|
|
2749
2946
|
* Authorize a Stripe payment account
|
|
2750
2947
|
* @summary Authorize Stripe
|
|
@@ -2756,6 +2953,17 @@ export class PaymentApi extends BaseAPI {
|
|
|
2756
2953
|
authorizeStripe(requestParameters, options) {
|
|
2757
2954
|
return PaymentApiFp(this.configuration).authorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2758
2955
|
}
|
|
2956
|
+
/**
|
|
2957
|
+
* Deauthorize a PayPal payment account
|
|
2958
|
+
* @summary Deauthorize PayPal
|
|
2959
|
+
* @param {PaymentApiDeauthorizePayPalRequest} requestParameters Request parameters.
|
|
2960
|
+
* @param {*} [options] Override http request option.
|
|
2961
|
+
* @throws {RequiredError}
|
|
2962
|
+
* @memberof PaymentApi
|
|
2963
|
+
*/
|
|
2964
|
+
deauthorizePayPal(requestParameters, options) {
|
|
2965
|
+
return PaymentApiFp(this.configuration).deauthorizePayPal(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2966
|
+
}
|
|
2759
2967
|
/**
|
|
2760
2968
|
* Deauthorize a Stripe payment account
|
|
2761
2969
|
* @summary Deauthorize Stripe
|
|
@@ -2767,6 +2975,17 @@ export class PaymentApi extends BaseAPI {
|
|
|
2767
2975
|
deauthorizeStripe(requestParameters, options) {
|
|
2768
2976
|
return PaymentApiFp(this.configuration).deauthorizeStripe(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2769
2977
|
}
|
|
2978
|
+
/**
|
|
2979
|
+
* Get the PayPal payment account information for the project
|
|
2980
|
+
* @summary Get PayPal Payment Account
|
|
2981
|
+
* @param {PaymentApiGetPayPalPaymentAccountRequest} requestParameters Request parameters.
|
|
2982
|
+
* @param {*} [options] Override http request option.
|
|
2983
|
+
* @throws {RequiredError}
|
|
2984
|
+
* @memberof PaymentApi
|
|
2985
|
+
*/
|
|
2986
|
+
getPayPalPaymentAccount(requestParameters, options) {
|
|
2987
|
+
return PaymentApiFp(this.configuration).getPayPalPaymentAccount(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
2988
|
+
}
|
|
2770
2989
|
/**
|
|
2771
2990
|
* Get the Stripe payment account for the project
|
|
2772
2991
|
* @summary Get Stripe Payment Account
|
|
@@ -3862,6 +4081,45 @@ export const WebsiteApiAxiosParamCreator = function (configuration) {
|
|
|
3862
4081
|
options: localVarRequestOptions,
|
|
3863
4082
|
};
|
|
3864
4083
|
}),
|
|
4084
|
+
/**
|
|
4085
|
+
* Updated a websites base domain
|
|
4086
|
+
* @summary Update base domain
|
|
4087
|
+
* @param {string} project What project it is
|
|
4088
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
4089
|
+
* @param {*} [options] Override http request option.
|
|
4090
|
+
* @throws {RequiredError}
|
|
4091
|
+
*/
|
|
4092
|
+
updateBaseDomain: (project_1, createDomainRequest_1, ...args_1) => __awaiter(this, [project_1, createDomainRequest_1, ...args_1], void 0, function* (project, createDomainRequest, options = {}) {
|
|
4093
|
+
// verify required parameter 'project' is not null or undefined
|
|
4094
|
+
assertParamExists('updateBaseDomain', 'project', project);
|
|
4095
|
+
const localVarPath = `/v1/website/domains/base`;
|
|
4096
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4097
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4098
|
+
let baseOptions;
|
|
4099
|
+
if (configuration) {
|
|
4100
|
+
baseOptions = configuration.baseOptions;
|
|
4101
|
+
}
|
|
4102
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4103
|
+
const localVarHeaderParameter = {};
|
|
4104
|
+
const localVarQueryParameter = {};
|
|
4105
|
+
// authentication session-oauth required
|
|
4106
|
+
// oauth required
|
|
4107
|
+
yield setOAuthToObject(localVarHeaderParameter, "session-oauth", [], configuration);
|
|
4108
|
+
// authentication api-key required
|
|
4109
|
+
yield setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
|
|
4110
|
+
if (project !== undefined) {
|
|
4111
|
+
localVarQueryParameter['project'] = project;
|
|
4112
|
+
}
|
|
4113
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4114
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4115
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4116
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4117
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createDomainRequest, localVarRequestOptions, configuration);
|
|
4118
|
+
return {
|
|
4119
|
+
url: toPathString(localVarUrlObj),
|
|
4120
|
+
options: localVarRequestOptions,
|
|
4121
|
+
};
|
|
4122
|
+
}),
|
|
3865
4123
|
};
|
|
3866
4124
|
};
|
|
3867
4125
|
/**
|
|
@@ -3921,6 +4179,23 @@ export const WebsiteApiFp = function (configuration) {
|
|
|
3921
4179
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3922
4180
|
});
|
|
3923
4181
|
},
|
|
4182
|
+
/**
|
|
4183
|
+
* Updated a websites base domain
|
|
4184
|
+
* @summary Update base domain
|
|
4185
|
+
* @param {string} project What project it is
|
|
4186
|
+
* @param {CreateDomainRequest} [createDomainRequest]
|
|
4187
|
+
* @param {*} [options] Override http request option.
|
|
4188
|
+
* @throws {RequiredError}
|
|
4189
|
+
*/
|
|
4190
|
+
updateBaseDomain(project, createDomainRequest, options) {
|
|
4191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4192
|
+
var _a, _b, _c;
|
|
4193
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateBaseDomain(project, createDomainRequest, options);
|
|
4194
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4195
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WebsiteApi.updateBaseDomain']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4196
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
4197
|
+
});
|
|
4198
|
+
},
|
|
3924
4199
|
};
|
|
3925
4200
|
};
|
|
3926
4201
|
/**
|
|
@@ -3960,6 +4235,16 @@ export const WebsiteApiFactory = function (configuration, basePath, axios) {
|
|
|
3960
4235
|
listDomains(requestParameters, options) {
|
|
3961
4236
|
return localVarFp.listDomains(requestParameters.project, options).then((request) => request(axios, basePath));
|
|
3962
4237
|
},
|
|
4238
|
+
/**
|
|
4239
|
+
* Updated a websites base domain
|
|
4240
|
+
* @summary Update base domain
|
|
4241
|
+
* @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
|
|
4242
|
+
* @param {*} [options] Override http request option.
|
|
4243
|
+
* @throws {RequiredError}
|
|
4244
|
+
*/
|
|
4245
|
+
updateBaseDomain(requestParameters, options) {
|
|
4246
|
+
return localVarFp.updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(axios, basePath));
|
|
4247
|
+
},
|
|
3963
4248
|
};
|
|
3964
4249
|
};
|
|
3965
4250
|
/**
|
|
@@ -4002,4 +4287,15 @@ export class WebsiteApi extends BaseAPI {
|
|
|
4002
4287
|
listDomains(requestParameters, options) {
|
|
4003
4288
|
return WebsiteApiFp(this.configuration).listDomains(requestParameters.project, options).then((request) => request(this.axios, this.basePath));
|
|
4004
4289
|
}
|
|
4290
|
+
/**
|
|
4291
|
+
* Updated a websites base domain
|
|
4292
|
+
* @summary Update base domain
|
|
4293
|
+
* @param {WebsiteApiUpdateBaseDomainRequest} requestParameters Request parameters.
|
|
4294
|
+
* @param {*} [options] Override http request option.
|
|
4295
|
+
* @throws {RequiredError}
|
|
4296
|
+
* @memberof WebsiteApi
|
|
4297
|
+
*/
|
|
4298
|
+
updateBaseDomain(requestParameters, options) {
|
|
4299
|
+
return WebsiteApiFp(this.configuration).updateBaseDomain(requestParameters.project, requestParameters.createDomainRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4300
|
+
}
|
|
4005
4301
|
}
|
package/dist/esm/base.d.ts
CHANGED
package/dist/esm/base.js
CHANGED
package/dist/esm/common.d.ts
CHANGED
package/dist/esm/common.js
CHANGED
package/dist/esm/index.d.ts
CHANGED
package/dist/esm/index.js
CHANGED
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/docs/InlineObject.md
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
|
|
6
6
|
Name | Type | Description | Notes
|
|
7
7
|
------------ | ------------- | ------------- | -------------
|
|
8
|
-
**domains** | [**Array<Domain>**](Domain.md) | | [
|
|
9
|
-
**nextPageToken** | **number** | | [
|
|
8
|
+
**domains** | [**Array<Domain>**](Domain.md) | | [default to undefined]
|
|
9
|
+
**nextPageToken** | **number** | | [default to undefined]
|
|
10
10
|
|
|
11
11
|
## Example
|
|
12
12
|
|