hostinger-api-sdk 2.1.2 → 2.2.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 +2 -2
- package/api.ts +812 -8
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +459 -5
- package/dist/api.js +636 -18
- 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 +2 -2
- package/dist/esm/api.d.ts +459 -5
- package/dist/esm/api.js +626 -8
- 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 +2 -2
- 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/HostingNodeJSApi.md +70 -0
- package/docs/HostingV1NodeJsGetBuildSettingsFromRepositoryRequest.md +26 -0
- package/docs/ReachFormsApi.md +369 -1
- package/docs/ReachV1FormsAssignTagsRequest.md +21 -0
- package/docs/ReachV1FormsFormTemplateVersionResource.md +29 -0
- package/docs/ReachV1FormsRemoveTagRequest.md +21 -0
- package/docs/ReachV1FormsStoreRequest.md +21 -0
- package/docs/ReachV1FormsUpdateRequest.md +23 -0
- package/docs/ReachV1FormsUpdateTemplateRequest.md +21 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.2.0
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
9
9
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -8937,6 +8937,37 @@ export interface HostingV1NodeJsEnvVarResource {
|
|
|
8937
8937
|
*/
|
|
8938
8938
|
'value': string;
|
|
8939
8939
|
}
|
|
8940
|
+
/**
|
|
8941
|
+
*
|
|
8942
|
+
* @export
|
|
8943
|
+
* @interface HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
|
|
8944
|
+
*/
|
|
8945
|
+
export interface HostingV1NodeJsGetBuildSettingsFromRepositoryRequest {
|
|
8946
|
+
/**
|
|
8947
|
+
* Repository owner login, as returned by `List Git installation repositories`. GitLab group paths use slashes.
|
|
8948
|
+
* @type {string}
|
|
8949
|
+
* @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
|
|
8950
|
+
*/
|
|
8951
|
+
'owner': string;
|
|
8952
|
+
/**
|
|
8953
|
+
* Repository name without the .git suffix
|
|
8954
|
+
* @type {string}
|
|
8955
|
+
* @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
|
|
8956
|
+
*/
|
|
8957
|
+
'repository': string;
|
|
8958
|
+
/**
|
|
8959
|
+
* Branch whose package.json is inspected
|
|
8960
|
+
* @type {string}
|
|
8961
|
+
* @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
|
|
8962
|
+
*/
|
|
8963
|
+
'branch': string;
|
|
8964
|
+
/**
|
|
8965
|
+
* Git installation used to access the repository, taken from `List Git installations`
|
|
8966
|
+
* @type {string}
|
|
8967
|
+
* @memberof HostingV1NodeJsGetBuildSettingsFromRepositoryRequest
|
|
8968
|
+
*/
|
|
8969
|
+
'installation_uuid': string;
|
|
8970
|
+
}
|
|
8940
8971
|
/**
|
|
8941
8972
|
*
|
|
8942
8973
|
* @export
|
|
@@ -14670,6 +14701,19 @@ export interface ReachV1ContactsUpdateRequestFieldsInner {
|
|
|
14670
14701
|
*/
|
|
14671
14702
|
'selected_option_uuids': Array<string>;
|
|
14672
14703
|
}
|
|
14704
|
+
/**
|
|
14705
|
+
* Tags every future submitter of the form receives
|
|
14706
|
+
* @export
|
|
14707
|
+
* @interface ReachV1FormsAssignTagsRequest
|
|
14708
|
+
*/
|
|
14709
|
+
export interface ReachV1FormsAssignTagsRequest {
|
|
14710
|
+
/**
|
|
14711
|
+
*
|
|
14712
|
+
* @type {Array<string>}
|
|
14713
|
+
* @memberof ReachV1FormsAssignTagsRequest
|
|
14714
|
+
*/
|
|
14715
|
+
'tag_uuids': Array<string>;
|
|
14716
|
+
}
|
|
14673
14717
|
/**
|
|
14674
14718
|
*
|
|
14675
14719
|
* @export
|
|
@@ -14881,6 +14925,118 @@ export interface ReachV1FormsFormTemplateResource {
|
|
|
14881
14925
|
*/
|
|
14882
14926
|
'path': string | null;
|
|
14883
14927
|
}
|
|
14928
|
+
/**
|
|
14929
|
+
* The stored version of a saved form design.
|
|
14930
|
+
* @export
|
|
14931
|
+
* @interface ReachV1FormsFormTemplateVersionResource
|
|
14932
|
+
*/
|
|
14933
|
+
export interface ReachV1FormsFormTemplateVersionResource {
|
|
14934
|
+
/**
|
|
14935
|
+
*
|
|
14936
|
+
* @type {string}
|
|
14937
|
+
* @memberof ReachV1FormsFormTemplateVersionResource
|
|
14938
|
+
*/
|
|
14939
|
+
'uuid': string;
|
|
14940
|
+
/**
|
|
14941
|
+
* Storage path of the template HTML, relative to the storage directory of this profile.
|
|
14942
|
+
* @type {string}
|
|
14943
|
+
* @memberof ReachV1FormsFormTemplateVersionResource
|
|
14944
|
+
*/
|
|
14945
|
+
'path': string;
|
|
14946
|
+
/**
|
|
14947
|
+
* Whether the design was saved by hand or by the AI builder.
|
|
14948
|
+
* @type {string}
|
|
14949
|
+
* @memberof ReachV1FormsFormTemplateVersionResource
|
|
14950
|
+
*/
|
|
14951
|
+
'edit_type': ReachV1FormsFormTemplateVersionResourceEditTypeEnum | null;
|
|
14952
|
+
/**
|
|
14953
|
+
*
|
|
14954
|
+
* @type {string}
|
|
14955
|
+
* @memberof ReachV1FormsFormTemplateVersionResource
|
|
14956
|
+
*/
|
|
14957
|
+
'created_at': string;
|
|
14958
|
+
/**
|
|
14959
|
+
*
|
|
14960
|
+
* @type {string}
|
|
14961
|
+
* @memberof ReachV1FormsFormTemplateVersionResource
|
|
14962
|
+
*/
|
|
14963
|
+
'updated_at': string;
|
|
14964
|
+
}
|
|
14965
|
+
|
|
14966
|
+
export const ReachV1FormsFormTemplateVersionResourceEditTypeEnum = {
|
|
14967
|
+
Manual: 'manual',
|
|
14968
|
+
Ai: 'ai'
|
|
14969
|
+
} as const;
|
|
14970
|
+
|
|
14971
|
+
export type ReachV1FormsFormTemplateVersionResourceEditTypeEnum = typeof ReachV1FormsFormTemplateVersionResourceEditTypeEnum[keyof typeof ReachV1FormsFormTemplateVersionResourceEditTypeEnum];
|
|
14972
|
+
|
|
14973
|
+
/**
|
|
14974
|
+
* Tag the form stops applying to future submitters
|
|
14975
|
+
* @export
|
|
14976
|
+
* @interface ReachV1FormsRemoveTagRequest
|
|
14977
|
+
*/
|
|
14978
|
+
export interface ReachV1FormsRemoveTagRequest {
|
|
14979
|
+
/**
|
|
14980
|
+
*
|
|
14981
|
+
* @type {string}
|
|
14982
|
+
* @memberof ReachV1FormsRemoveTagRequest
|
|
14983
|
+
*/
|
|
14984
|
+
'tag_uuid': string;
|
|
14985
|
+
}
|
|
14986
|
+
/**
|
|
14987
|
+
* Create a draft form
|
|
14988
|
+
* @export
|
|
14989
|
+
* @interface ReachV1FormsStoreRequest
|
|
14990
|
+
*/
|
|
14991
|
+
export interface ReachV1FormsStoreRequest {
|
|
14992
|
+
/**
|
|
14993
|
+
* Form name. Letters, digits, spaces and - . \' _ only.
|
|
14994
|
+
* @type {string}
|
|
14995
|
+
* @memberof ReachV1FormsStoreRequest
|
|
14996
|
+
*/
|
|
14997
|
+
'name': string;
|
|
14998
|
+
}
|
|
14999
|
+
/**
|
|
15000
|
+
* Rename a form and/or change its status. Send at least one field.
|
|
15001
|
+
* @export
|
|
15002
|
+
* @interface ReachV1FormsUpdateRequest
|
|
15003
|
+
*/
|
|
15004
|
+
export interface ReachV1FormsUpdateRequest {
|
|
15005
|
+
/**
|
|
15006
|
+
* Form name. Letters, digits, spaces and - . \' _ only.
|
|
15007
|
+
* @type {string}
|
|
15008
|
+
* @memberof ReachV1FormsUpdateRequest
|
|
15009
|
+
*/
|
|
15010
|
+
'name': string;
|
|
15011
|
+
/**
|
|
15012
|
+
* `active` takes the form live, `paused` and `draft` stop it accepting submissions.
|
|
15013
|
+
* @type {string}
|
|
15014
|
+
* @memberof ReachV1FormsUpdateRequest
|
|
15015
|
+
*/
|
|
15016
|
+
'status': ReachV1FormsUpdateRequestStatusEnum;
|
|
15017
|
+
}
|
|
15018
|
+
|
|
15019
|
+
export const ReachV1FormsUpdateRequestStatusEnum = {
|
|
15020
|
+
Active: 'active',
|
|
15021
|
+
Paused: 'paused',
|
|
15022
|
+
Draft: 'draft'
|
|
15023
|
+
} as const;
|
|
15024
|
+
|
|
15025
|
+
export type ReachV1FormsUpdateRequestStatusEnum = typeof ReachV1FormsUpdateRequestStatusEnum[keyof typeof ReachV1FormsUpdateRequestStatusEnum];
|
|
15026
|
+
|
|
15027
|
+
/**
|
|
15028
|
+
* Save the design of a form
|
|
15029
|
+
* @export
|
|
15030
|
+
* @interface ReachV1FormsUpdateTemplateRequest
|
|
15031
|
+
*/
|
|
15032
|
+
export interface ReachV1FormsUpdateTemplateRequest {
|
|
15033
|
+
/**
|
|
15034
|
+
* HTML of the form design. After sanitizing it must still contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`).
|
|
15035
|
+
* @type {string}
|
|
15036
|
+
* @memberof ReachV1FormsUpdateTemplateRequest
|
|
15037
|
+
*/
|
|
15038
|
+
'content': string;
|
|
15039
|
+
}
|
|
14884
15040
|
/**
|
|
14885
15041
|
* Sending domain to connect to the profile
|
|
14886
15042
|
* @export
|
|
@@ -35004,6 +35160,76 @@ export const HostingNodeJSApiAxiosParamCreator = function (configuration?: Confi
|
|
|
35004
35160
|
|
|
35005
35161
|
|
|
35006
35162
|
|
|
35163
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35164
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35165
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
35166
|
+
|
|
35167
|
+
return {
|
|
35168
|
+
url: toPathString(localVarUrlObj),
|
|
35169
|
+
options: localVarRequestOptions,
|
|
35170
|
+
};
|
|
35171
|
+
},
|
|
35172
|
+
/**
|
|
35173
|
+
* Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
35174
|
+
* @summary Get Node.js build settings from repository
|
|
35175
|
+
* @param {string} username
|
|
35176
|
+
* @param {string} domain Domain name
|
|
35177
|
+
* @param {string} owner Repository owner login. GitLab group paths use slashes.
|
|
35178
|
+
* @param {string} repository Repository name without the .git suffix
|
|
35179
|
+
* @param {string} branch Branch whose package.json is inspected
|
|
35180
|
+
* @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
|
|
35181
|
+
* @param {*} [options] Override http request option.
|
|
35182
|
+
* @throws {RequiredError}
|
|
35183
|
+
*/
|
|
35184
|
+
getNodeJsBuildSettingsFromRepositoryV1: async (username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
35185
|
+
// verify required parameter 'username' is not null or undefined
|
|
35186
|
+
assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'username', username)
|
|
35187
|
+
// verify required parameter 'domain' is not null or undefined
|
|
35188
|
+
assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'domain', domain)
|
|
35189
|
+
// verify required parameter 'owner' is not null or undefined
|
|
35190
|
+
assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'owner', owner)
|
|
35191
|
+
// verify required parameter 'repository' is not null or undefined
|
|
35192
|
+
assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'repository', repository)
|
|
35193
|
+
// verify required parameter 'branch' is not null or undefined
|
|
35194
|
+
assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'branch', branch)
|
|
35195
|
+
// verify required parameter 'installationUuid' is not null or undefined
|
|
35196
|
+
assertParamExists('getNodeJsBuildSettingsFromRepositoryV1', 'installationUuid', installationUuid)
|
|
35197
|
+
const localVarPath = `/api/hosting/v1/accounts/{username}/websites/{domain}/nodejs/builds/settings/from-repository`
|
|
35198
|
+
.replace(`{${"username"}}`, encodeURIComponent(String(username)))
|
|
35199
|
+
.replace(`{${"domain"}}`, encodeURIComponent(String(domain)));
|
|
35200
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
35201
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
35202
|
+
let baseOptions;
|
|
35203
|
+
if (configuration) {
|
|
35204
|
+
baseOptions = configuration.baseOptions;
|
|
35205
|
+
}
|
|
35206
|
+
|
|
35207
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
35208
|
+
const localVarHeaderParameter = {} as any;
|
|
35209
|
+
const localVarQueryParameter = {} as any;
|
|
35210
|
+
|
|
35211
|
+
// authentication apiToken required
|
|
35212
|
+
// http bearer authentication required
|
|
35213
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
35214
|
+
|
|
35215
|
+
if (owner !== undefined) {
|
|
35216
|
+
localVarQueryParameter['owner'] = owner;
|
|
35217
|
+
}
|
|
35218
|
+
|
|
35219
|
+
if (repository !== undefined) {
|
|
35220
|
+
localVarQueryParameter['repository'] = repository;
|
|
35221
|
+
}
|
|
35222
|
+
|
|
35223
|
+
if (branch !== undefined) {
|
|
35224
|
+
localVarQueryParameter['branch'] = branch;
|
|
35225
|
+
}
|
|
35226
|
+
|
|
35227
|
+
if (installationUuid !== undefined) {
|
|
35228
|
+
localVarQueryParameter['installation_uuid'] = installationUuid;
|
|
35229
|
+
}
|
|
35230
|
+
|
|
35231
|
+
|
|
35232
|
+
|
|
35007
35233
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
35008
35234
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
35009
35235
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -35577,6 +35803,23 @@ export const HostingNodeJSApiFp = function(configuration?: Configuration) {
|
|
|
35577
35803
|
const localVarOperationServerBasePath = operationServerMap['HostingNodeJSApi.getNodeJsBuildSettingsFromArchiveV1']?.[0]?.url;
|
|
35578
35804
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
35579
35805
|
},
|
|
35806
|
+
/**
|
|
35807
|
+
* Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
35808
|
+
* @summary Get Node.js build settings from repository
|
|
35809
|
+
* @param {string} username
|
|
35810
|
+
* @param {string} domain Domain name
|
|
35811
|
+
* @param {string} owner Repository owner login. GitLab group paths use slashes.
|
|
35812
|
+
* @param {string} repository Repository name without the .git suffix
|
|
35813
|
+
* @param {string} branch Branch whose package.json is inspected
|
|
35814
|
+
* @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
|
|
35815
|
+
* @param {*} [options] Override http request option.
|
|
35816
|
+
* @throws {RequiredError}
|
|
35817
|
+
*/
|
|
35818
|
+
async getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HostingV1NodeJsBuildSettingsResource>> {
|
|
35819
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options);
|
|
35820
|
+
const localVarOperationServerBasePath = operationServerMap['HostingNodeJSApi.getNodeJsBuildSettingsFromRepositoryV1']?.[0]?.url;
|
|
35821
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
35822
|
+
},
|
|
35580
35823
|
/**
|
|
35581
35824
|
* Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
|
|
35582
35825
|
* @summary Get Node.js build settings
|
|
@@ -35789,6 +36032,21 @@ export const HostingNodeJSApiFactory = function (configuration?: Configuration,
|
|
|
35789
36032
|
getNodeJsBuildSettingsFromArchiveV1(username: string, domain: string, archivePath: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildSettingsResource> {
|
|
35790
36033
|
return localVarFp.getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(axios, basePath));
|
|
35791
36034
|
},
|
|
36035
|
+
/**
|
|
36036
|
+
* Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
36037
|
+
* @summary Get Node.js build settings from repository
|
|
36038
|
+
* @param {string} username
|
|
36039
|
+
* @param {string} domain Domain name
|
|
36040
|
+
* @param {string} owner Repository owner login. GitLab group paths use slashes.
|
|
36041
|
+
* @param {string} repository Repository name without the .git suffix
|
|
36042
|
+
* @param {string} branch Branch whose package.json is inspected
|
|
36043
|
+
* @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
|
|
36044
|
+
* @param {*} [options] Override http request option.
|
|
36045
|
+
* @throws {RequiredError}
|
|
36046
|
+
*/
|
|
36047
|
+
getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<HostingV1NodeJsBuildSettingsResource> {
|
|
36048
|
+
return localVarFp.getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options).then((request) => request(axios, basePath));
|
|
36049
|
+
},
|
|
35792
36050
|
/**
|
|
35793
36051
|
* Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
|
|
35794
36052
|
* @summary Get Node.js build settings
|
|
@@ -35991,6 +36249,23 @@ export class HostingNodeJSApi extends BaseAPI {
|
|
|
35991
36249
|
return HostingNodeJSApiFp(this.configuration).getNodeJsBuildSettingsFromArchiveV1(username, domain, archivePath, options).then((request) => request(this.axios, this.basePath));
|
|
35992
36250
|
}
|
|
35993
36251
|
|
|
36252
|
+
/**
|
|
36253
|
+
* Determine the build settings for a Node.js application from the package.json file of a branch in a Git repository. Use before starting a Git-source build to find out the auto-detected settings instead of guessing them. The repository is read through a Git installation: take `installation_uuid` from `List Git installations` and `owner` and `repository` from `List Git installation repositories`. Returns 422 when the installation is not found, the repository or branch is not found, or the branch has no package.json.
|
|
36254
|
+
* @summary Get Node.js build settings from repository
|
|
36255
|
+
* @param {string} username
|
|
36256
|
+
* @param {string} domain Domain name
|
|
36257
|
+
* @param {string} owner Repository owner login. GitLab group paths use slashes.
|
|
36258
|
+
* @param {string} repository Repository name without the .git suffix
|
|
36259
|
+
* @param {string} branch Branch whose package.json is inspected
|
|
36260
|
+
* @param {string} installationUuid Git installation used to access the repository, taken from `List Git installations`
|
|
36261
|
+
* @param {*} [options] Override http request option.
|
|
36262
|
+
* @throws {RequiredError}
|
|
36263
|
+
* @memberof HostingNodeJSApi
|
|
36264
|
+
*/
|
|
36265
|
+
public getNodeJsBuildSettingsFromRepositoryV1(username: string, domain: string, owner: string, repository: string, branch: string, installationUuid: string, options?: RawAxiosRequestConfig) {
|
|
36266
|
+
return HostingNodeJSApiFp(this.configuration).getNodeJsBuildSettingsFromRepositoryV1(username, domain, owner, repository, branch, installationUuid, options).then((request) => request(this.axios, this.basePath));
|
|
36267
|
+
}
|
|
36268
|
+
|
|
35994
36269
|
/**
|
|
35995
36270
|
* Returns the build settings stored for the website: framework (`app_type`), Node.js version, root and output directory, build script, entry file and package manager. Stored settings drive Git auto-deployment builds. A build started through the API uses the values sent in that request and saves them here only when no settings exist yet. Returns 404 until the first build or the first settings update stores them. Use this after a failed build to check whether the framework or the entry file were detected wrong, then fix them with the `Update Node.js build settings` endpoint.
|
|
35996
36271
|
* @summary Get Node.js build settings
|
|
@@ -43952,6 +44227,98 @@ export type ListProfileContactsV1SubscriptionStatusEnum = typeof ListProfileCont
|
|
|
43952
44227
|
*/
|
|
43953
44228
|
export const ReachFormsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
43954
44229
|
return {
|
|
44230
|
+
/**
|
|
44231
|
+
* Add tags to a form so that every contact who submits it from now on receives them. A tag the form already has is skipped; an unknown tag is rejected. Contacts who submitted earlier are not tagged.
|
|
44232
|
+
* @summary Add form submitter tags
|
|
44233
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44234
|
+
* @param {string} formUuid Form uuid parameter
|
|
44235
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
44236
|
+
* @param {*} [options] Override http request option.
|
|
44237
|
+
* @throws {RequiredError}
|
|
44238
|
+
*/
|
|
44239
|
+
addFormSubmitterTagsV1: async (profileUuid: string, formUuid: string, reachV1FormsAssignTagsRequest: ReachV1FormsAssignTagsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44240
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
44241
|
+
assertParamExists('addFormSubmitterTagsV1', 'profileUuid', profileUuid)
|
|
44242
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
44243
|
+
assertParamExists('addFormSubmitterTagsV1', 'formUuid', formUuid)
|
|
44244
|
+
// verify required parameter 'reachV1FormsAssignTagsRequest' is not null or undefined
|
|
44245
|
+
assertParamExists('addFormSubmitterTagsV1', 'reachV1FormsAssignTagsRequest', reachV1FormsAssignTagsRequest)
|
|
44246
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}/tags`
|
|
44247
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
44248
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
44249
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44250
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44251
|
+
let baseOptions;
|
|
44252
|
+
if (configuration) {
|
|
44253
|
+
baseOptions = configuration.baseOptions;
|
|
44254
|
+
}
|
|
44255
|
+
|
|
44256
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
44257
|
+
const localVarHeaderParameter = {} as any;
|
|
44258
|
+
const localVarQueryParameter = {} as any;
|
|
44259
|
+
|
|
44260
|
+
// authentication apiToken required
|
|
44261
|
+
// http bearer authentication required
|
|
44262
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
44263
|
+
|
|
44264
|
+
|
|
44265
|
+
|
|
44266
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
44267
|
+
|
|
44268
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44269
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44270
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44271
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1FormsAssignTagsRequest, localVarRequestOptions, configuration)
|
|
44272
|
+
|
|
44273
|
+
return {
|
|
44274
|
+
url: toPathString(localVarUrlObj),
|
|
44275
|
+
options: localVarRequestOptions,
|
|
44276
|
+
};
|
|
44277
|
+
},
|
|
44278
|
+
/**
|
|
44279
|
+
* Create an empty draft form. Reach also adds an automatic `form:{name}` tag that every submitter receives. A draft has no design and is not reachable by visitors: save a design with the update form template operation, then take the form live by setting its status to `active`. Creating a form does not consume AI credits.
|
|
44280
|
+
* @summary Create form
|
|
44281
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44282
|
+
* @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
|
|
44283
|
+
* @param {*} [options] Override http request option.
|
|
44284
|
+
* @throws {RequiredError}
|
|
44285
|
+
*/
|
|
44286
|
+
createFormV1: async (profileUuid: string, reachV1FormsStoreRequest: ReachV1FormsStoreRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44287
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
44288
|
+
assertParamExists('createFormV1', 'profileUuid', profileUuid)
|
|
44289
|
+
// verify required parameter 'reachV1FormsStoreRequest' is not null or undefined
|
|
44290
|
+
assertParamExists('createFormV1', 'reachV1FormsStoreRequest', reachV1FormsStoreRequest)
|
|
44291
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms`
|
|
44292
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)));
|
|
44293
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44294
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44295
|
+
let baseOptions;
|
|
44296
|
+
if (configuration) {
|
|
44297
|
+
baseOptions = configuration.baseOptions;
|
|
44298
|
+
}
|
|
44299
|
+
|
|
44300
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
44301
|
+
const localVarHeaderParameter = {} as any;
|
|
44302
|
+
const localVarQueryParameter = {} as any;
|
|
44303
|
+
|
|
44304
|
+
// authentication apiToken required
|
|
44305
|
+
// http bearer authentication required
|
|
44306
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
44307
|
+
|
|
44308
|
+
|
|
44309
|
+
|
|
44310
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
44311
|
+
|
|
44312
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44313
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44314
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44315
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1FormsStoreRequest, localVarRequestOptions, configuration)
|
|
44316
|
+
|
|
44317
|
+
return {
|
|
44318
|
+
url: toPathString(localVarUrlObj),
|
|
44319
|
+
options: localVarRequestOptions,
|
|
44320
|
+
};
|
|
44321
|
+
},
|
|
43955
44322
|
/**
|
|
43956
44323
|
* Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
|
|
43957
44324
|
* @summary Delete form
|
|
@@ -43985,6 +44352,48 @@ export const ReachFormsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
43985
44352
|
|
|
43986
44353
|
|
|
43987
44354
|
|
|
44355
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44356
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44357
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44358
|
+
|
|
44359
|
+
return {
|
|
44360
|
+
url: toPathString(localVarUrlObj),
|
|
44361
|
+
options: localVarRequestOptions,
|
|
44362
|
+
};
|
|
44363
|
+
},
|
|
44364
|
+
/**
|
|
44365
|
+
* Copy a form into a new draft form with the same name and design. The copy shares the source\'s automatic `form:{name}` tag; other submitter tags are not copied. The copy is not live until its status is set to `active`.
|
|
44366
|
+
* @summary Duplicate form
|
|
44367
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44368
|
+
* @param {string} formUuid Form uuid parameter
|
|
44369
|
+
* @param {*} [options] Override http request option.
|
|
44370
|
+
* @throws {RequiredError}
|
|
44371
|
+
*/
|
|
44372
|
+
duplicateFormV1: async (profileUuid: string, formUuid: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44373
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
44374
|
+
assertParamExists('duplicateFormV1', 'profileUuid', profileUuid)
|
|
44375
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
44376
|
+
assertParamExists('duplicateFormV1', 'formUuid', formUuid)
|
|
44377
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}/duplicate`
|
|
44378
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
44379
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
44380
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44381
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44382
|
+
let baseOptions;
|
|
44383
|
+
if (configuration) {
|
|
44384
|
+
baseOptions = configuration.baseOptions;
|
|
44385
|
+
}
|
|
44386
|
+
|
|
44387
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
44388
|
+
const localVarHeaderParameter = {} as any;
|
|
44389
|
+
const localVarQueryParameter = {} as any;
|
|
44390
|
+
|
|
44391
|
+
// authentication apiToken required
|
|
44392
|
+
// http bearer authentication required
|
|
44393
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
44394
|
+
|
|
44395
|
+
|
|
44396
|
+
|
|
43988
44397
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
43989
44398
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
43990
44399
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -44042,10 +44451,11 @@ export const ReachFormsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
44042
44451
|
* @param {string} profileUuid Profile uuid parameter
|
|
44043
44452
|
* @param {number} [page] Page number
|
|
44044
44453
|
* @param {number} [perPage] Number of items per page
|
|
44454
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
44045
44455
|
* @param {*} [options] Override http request option.
|
|
44046
44456
|
* @throws {RequiredError}
|
|
44047
44457
|
*/
|
|
44048
|
-
listFormsV1: async (profileUuid: string, page?: number, perPage?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44458
|
+
listFormsV1: async (profileUuid: string, page?: number, perPage?: number, status?: ListFormsV1StatusEnum, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44049
44459
|
// verify required parameter 'profileUuid' is not null or undefined
|
|
44050
44460
|
assertParamExists('listFormsV1', 'profileUuid', profileUuid)
|
|
44051
44461
|
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms`
|
|
@@ -44073,11 +44483,159 @@ export const ReachFormsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
44073
44483
|
localVarQueryParameter['per_page'] = perPage;
|
|
44074
44484
|
}
|
|
44075
44485
|
|
|
44486
|
+
if (status !== undefined) {
|
|
44487
|
+
localVarQueryParameter['status'] = status;
|
|
44488
|
+
}
|
|
44489
|
+
|
|
44490
|
+
|
|
44491
|
+
|
|
44492
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44493
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44494
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44495
|
+
|
|
44496
|
+
return {
|
|
44497
|
+
url: toPathString(localVarUrlObj),
|
|
44498
|
+
options: localVarRequestOptions,
|
|
44499
|
+
};
|
|
44500
|
+
},
|
|
44501
|
+
/**
|
|
44502
|
+
* Stop a form from applying a tag to its future submitters. Succeeds also when the form did not have the tag. Contacts who already received the tag keep it, and the tag itself is not deleted. The automatic `form:{name}` tag cannot be removed and is rejected with a conflict.
|
|
44503
|
+
* @summary Remove form submitter tag
|
|
44504
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44505
|
+
* @param {string} formUuid Form uuid parameter
|
|
44506
|
+
* @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
|
|
44507
|
+
* @param {*} [options] Override http request option.
|
|
44508
|
+
* @throws {RequiredError}
|
|
44509
|
+
*/
|
|
44510
|
+
removeFormSubmitterTagV1: async (profileUuid: string, formUuid: string, reachV1FormsRemoveTagRequest: ReachV1FormsRemoveTagRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44511
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
44512
|
+
assertParamExists('removeFormSubmitterTagV1', 'profileUuid', profileUuid)
|
|
44513
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
44514
|
+
assertParamExists('removeFormSubmitterTagV1', 'formUuid', formUuid)
|
|
44515
|
+
// verify required parameter 'reachV1FormsRemoveTagRequest' is not null or undefined
|
|
44516
|
+
assertParamExists('removeFormSubmitterTagV1', 'reachV1FormsRemoveTagRequest', reachV1FormsRemoveTagRequest)
|
|
44517
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}/tags`
|
|
44518
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
44519
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
44520
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44521
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44522
|
+
let baseOptions;
|
|
44523
|
+
if (configuration) {
|
|
44524
|
+
baseOptions = configuration.baseOptions;
|
|
44525
|
+
}
|
|
44526
|
+
|
|
44527
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
44528
|
+
const localVarHeaderParameter = {} as any;
|
|
44529
|
+
const localVarQueryParameter = {} as any;
|
|
44530
|
+
|
|
44531
|
+
// authentication apiToken required
|
|
44532
|
+
// http bearer authentication required
|
|
44533
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
44534
|
+
|
|
44535
|
+
|
|
44536
|
+
|
|
44537
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
44538
|
+
|
|
44539
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44540
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44541
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44542
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1FormsRemoveTagRequest, localVarRequestOptions, configuration)
|
|
44543
|
+
|
|
44544
|
+
return {
|
|
44545
|
+
url: toPathString(localVarUrlObj),
|
|
44546
|
+
options: localVarRequestOptions,
|
|
44547
|
+
};
|
|
44548
|
+
},
|
|
44549
|
+
/**
|
|
44550
|
+
* Save `content` as the latest design of a form and return the stored version. The HTML is sanitized and, unless the plan allows removing it, the Reach signature is added. Visitors submit the form with an `email` field (required) and optional `name`, `surname` and `phone`. After sanitizing, the design must contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`); otherwise the request fails with `422` and `errors.content` lists `missing_form_container`, `missing_email_field` and/or `missing_submit_button`. A `draft` or `paused` form stays unreachable until its status is set to `active`, which publishes this design. On a form that is already `active` the saved design is not public until the form is paused and set to `active` again. Saving a design does not consume AI credits.
|
|
44551
|
+
* @summary Update form template
|
|
44552
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44553
|
+
* @param {string} formUuid Form uuid parameter
|
|
44554
|
+
* @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
|
|
44555
|
+
* @param {*} [options] Override http request option.
|
|
44556
|
+
* @throws {RequiredError}
|
|
44557
|
+
*/
|
|
44558
|
+
updateFormTemplateV1: async (profileUuid: string, formUuid: string, reachV1FormsUpdateTemplateRequest: ReachV1FormsUpdateTemplateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44559
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
44560
|
+
assertParamExists('updateFormTemplateV1', 'profileUuid', profileUuid)
|
|
44561
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
44562
|
+
assertParamExists('updateFormTemplateV1', 'formUuid', formUuid)
|
|
44563
|
+
// verify required parameter 'reachV1FormsUpdateTemplateRequest' is not null or undefined
|
|
44564
|
+
assertParamExists('updateFormTemplateV1', 'reachV1FormsUpdateTemplateRequest', reachV1FormsUpdateTemplateRequest)
|
|
44565
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}/template`
|
|
44566
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
44567
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
44568
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44569
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44570
|
+
let baseOptions;
|
|
44571
|
+
if (configuration) {
|
|
44572
|
+
baseOptions = configuration.baseOptions;
|
|
44573
|
+
}
|
|
44574
|
+
|
|
44575
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
44576
|
+
const localVarHeaderParameter = {} as any;
|
|
44577
|
+
const localVarQueryParameter = {} as any;
|
|
44578
|
+
|
|
44579
|
+
// authentication apiToken required
|
|
44580
|
+
// http bearer authentication required
|
|
44581
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
44582
|
+
|
|
44076
44583
|
|
|
44077
44584
|
|
|
44585
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
44586
|
+
|
|
44078
44587
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44079
44588
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44080
44589
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44590
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1FormsUpdateTemplateRequest, localVarRequestOptions, configuration)
|
|
44591
|
+
|
|
44592
|
+
return {
|
|
44593
|
+
url: toPathString(localVarUrlObj),
|
|
44594
|
+
options: localVarRequestOptions,
|
|
44595
|
+
};
|
|
44596
|
+
},
|
|
44597
|
+
/**
|
|
44598
|
+
* Rename a form and/or change its status. Setting a `draft` or `paused` form to `active` takes it live: its latest saved design is published and visitors can submit it. `paused` and `draft` stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already `active` stay unpublished until the form is paused and set to `active` again. Renaming does not rename the automatic `form:{name}` tag.
|
|
44599
|
+
* @summary Update form
|
|
44600
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44601
|
+
* @param {string} formUuid Form uuid parameter
|
|
44602
|
+
* @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
|
|
44603
|
+
* @param {*} [options] Override http request option.
|
|
44604
|
+
* @throws {RequiredError}
|
|
44605
|
+
*/
|
|
44606
|
+
updateFormV1: async (profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
44607
|
+
// verify required parameter 'profileUuid' is not null or undefined
|
|
44608
|
+
assertParamExists('updateFormV1', 'profileUuid', profileUuid)
|
|
44609
|
+
// verify required parameter 'formUuid' is not null or undefined
|
|
44610
|
+
assertParamExists('updateFormV1', 'formUuid', formUuid)
|
|
44611
|
+
// verify required parameter 'reachV1FormsUpdateRequest' is not null or undefined
|
|
44612
|
+
assertParamExists('updateFormV1', 'reachV1FormsUpdateRequest', reachV1FormsUpdateRequest)
|
|
44613
|
+
const localVarPath = `/api/reach/v1/profiles/{profileUuid}/forms/{formUuid}`
|
|
44614
|
+
.replace(`{${"profileUuid"}}`, encodeURIComponent(String(profileUuid)))
|
|
44615
|
+
.replace(`{${"formUuid"}}`, encodeURIComponent(String(formUuid)));
|
|
44616
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
44617
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44618
|
+
let baseOptions;
|
|
44619
|
+
if (configuration) {
|
|
44620
|
+
baseOptions = configuration.baseOptions;
|
|
44621
|
+
}
|
|
44622
|
+
|
|
44623
|
+
const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
|
|
44624
|
+
const localVarHeaderParameter = {} as any;
|
|
44625
|
+
const localVarQueryParameter = {} as any;
|
|
44626
|
+
|
|
44627
|
+
// authentication apiToken required
|
|
44628
|
+
// http bearer authentication required
|
|
44629
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
44630
|
+
|
|
44631
|
+
|
|
44632
|
+
|
|
44633
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
44634
|
+
|
|
44635
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
44636
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
44637
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
44638
|
+
localVarRequestOptions.data = serializeDataIfNeeded(reachV1FormsUpdateRequest, localVarRequestOptions, configuration)
|
|
44081
44639
|
|
|
44082
44640
|
return {
|
|
44083
44641
|
url: toPathString(localVarUrlObj),
|
|
@@ -44094,6 +44652,33 @@ export const ReachFormsApiAxiosParamCreator = function (configuration?: Configur
|
|
|
44094
44652
|
export const ReachFormsApiFp = function(configuration?: Configuration) {
|
|
44095
44653
|
const localVarAxiosParamCreator = ReachFormsApiAxiosParamCreator(configuration)
|
|
44096
44654
|
return {
|
|
44655
|
+
/**
|
|
44656
|
+
* Add tags to a form so that every contact who submits it from now on receives them. A tag the form already has is skipped; an unknown tag is rejected. Contacts who submitted earlier are not tagged.
|
|
44657
|
+
* @summary Add form submitter tags
|
|
44658
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44659
|
+
* @param {string} formUuid Form uuid parameter
|
|
44660
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
44661
|
+
* @param {*} [options] Override http request option.
|
|
44662
|
+
* @throws {RequiredError}
|
|
44663
|
+
*/
|
|
44664
|
+
async addFormSubmitterTagsV1(profileUuid: string, formUuid: string, reachV1FormsAssignTagsRequest: ReachV1FormsAssignTagsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
44665
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options);
|
|
44666
|
+
const localVarOperationServerBasePath = operationServerMap['ReachFormsApi.addFormSubmitterTagsV1']?.[0]?.url;
|
|
44667
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44668
|
+
},
|
|
44669
|
+
/**
|
|
44670
|
+
* Create an empty draft form. Reach also adds an automatic `form:{name}` tag that every submitter receives. A draft has no design and is not reachable by visitors: save a design with the update form template operation, then take the form live by setting its status to `active`. Creating a form does not consume AI credits.
|
|
44671
|
+
* @summary Create form
|
|
44672
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44673
|
+
* @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
|
|
44674
|
+
* @param {*} [options] Override http request option.
|
|
44675
|
+
* @throws {RequiredError}
|
|
44676
|
+
*/
|
|
44677
|
+
async createFormV1(profileUuid: string, reachV1FormsStoreRequest: ReachV1FormsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1FormsFormResource>> {
|
|
44678
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createFormV1(profileUuid, reachV1FormsStoreRequest, options);
|
|
44679
|
+
const localVarOperationServerBasePath = operationServerMap['ReachFormsApi.createFormV1']?.[0]?.url;
|
|
44680
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44681
|
+
},
|
|
44097
44682
|
/**
|
|
44098
44683
|
* Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
|
|
44099
44684
|
* @summary Delete form
|
|
@@ -44107,6 +44692,19 @@ export const ReachFormsApiFp = function(configuration?: Configuration) {
|
|
|
44107
44692
|
const localVarOperationServerBasePath = operationServerMap['ReachFormsApi.deleteFormV1']?.[0]?.url;
|
|
44108
44693
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44109
44694
|
},
|
|
44695
|
+
/**
|
|
44696
|
+
* Copy a form into a new draft form with the same name and design. The copy shares the source\'s automatic `form:{name}` tag; other submitter tags are not copied. The copy is not live until its status is set to `active`.
|
|
44697
|
+
* @summary Duplicate form
|
|
44698
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44699
|
+
* @param {string} formUuid Form uuid parameter
|
|
44700
|
+
* @param {*} [options] Override http request option.
|
|
44701
|
+
* @throws {RequiredError}
|
|
44702
|
+
*/
|
|
44703
|
+
async duplicateFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1FormsFormResource>> {
|
|
44704
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.duplicateFormV1(profileUuid, formUuid, options);
|
|
44705
|
+
const localVarOperationServerBasePath = operationServerMap['ReachFormsApi.duplicateFormV1']?.[0]?.url;
|
|
44706
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44707
|
+
},
|
|
44110
44708
|
/**
|
|
44111
44709
|
* Get a single form with the URL of its hosted template and the tags it applies to the contacts it captures. There is no ready-made embed snippet in the response - either serve the template HTML yourself or build your own embed around the form uuid.
|
|
44112
44710
|
* @summary Get form details
|
|
@@ -44126,14 +44724,57 @@ export const ReachFormsApiFp = function(configuration?: Configuration) {
|
|
|
44126
44724
|
* @param {string} profileUuid Profile uuid parameter
|
|
44127
44725
|
* @param {number} [page] Page number
|
|
44128
44726
|
* @param {number} [perPage] Number of items per page
|
|
44727
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
44129
44728
|
* @param {*} [options] Override http request option.
|
|
44130
44729
|
* @throws {RequiredError}
|
|
44131
44730
|
*/
|
|
44132
|
-
async listFormsV1(profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListFormsV1200Response>> {
|
|
44133
|
-
const localVarAxiosArgs = await localVarAxiosParamCreator.listFormsV1(profileUuid, page, perPage, options);
|
|
44731
|
+
async listFormsV1(profileUuid: string, page?: number, perPage?: number, status?: ListFormsV1StatusEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachListFormsV1200Response>> {
|
|
44732
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listFormsV1(profileUuid, page, perPage, status, options);
|
|
44134
44733
|
const localVarOperationServerBasePath = operationServerMap['ReachFormsApi.listFormsV1']?.[0]?.url;
|
|
44135
44734
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44136
44735
|
},
|
|
44736
|
+
/**
|
|
44737
|
+
* Stop a form from applying a tag to its future submitters. Succeeds also when the form did not have the tag. Contacts who already received the tag keep it, and the tag itself is not deleted. The automatic `form:{name}` tag cannot be removed and is rejected with a conflict.
|
|
44738
|
+
* @summary Remove form submitter tag
|
|
44739
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44740
|
+
* @param {string} formUuid Form uuid parameter
|
|
44741
|
+
* @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
|
|
44742
|
+
* @param {*} [options] Override http request option.
|
|
44743
|
+
* @throws {RequiredError}
|
|
44744
|
+
*/
|
|
44745
|
+
async removeFormSubmitterTagV1(profileUuid: string, formUuid: string, reachV1FormsRemoveTagRequest: ReachV1FormsRemoveTagRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>> {
|
|
44746
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options);
|
|
44747
|
+
const localVarOperationServerBasePath = operationServerMap['ReachFormsApi.removeFormSubmitterTagV1']?.[0]?.url;
|
|
44748
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44749
|
+
},
|
|
44750
|
+
/**
|
|
44751
|
+
* Save `content` as the latest design of a form and return the stored version. The HTML is sanitized and, unless the plan allows removing it, the Reach signature is added. Visitors submit the form with an `email` field (required) and optional `name`, `surname` and `phone`. After sanitizing, the design must contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`); otherwise the request fails with `422` and `errors.content` lists `missing_form_container`, `missing_email_field` and/or `missing_submit_button`. A `draft` or `paused` form stays unreachable until its status is set to `active`, which publishes this design. On a form that is already `active` the saved design is not public until the form is paused and set to `active` again. Saving a design does not consume AI credits.
|
|
44752
|
+
* @summary Update form template
|
|
44753
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44754
|
+
* @param {string} formUuid Form uuid parameter
|
|
44755
|
+
* @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
|
|
44756
|
+
* @param {*} [options] Override http request option.
|
|
44757
|
+
* @throws {RequiredError}
|
|
44758
|
+
*/
|
|
44759
|
+
async updateFormTemplateV1(profileUuid: string, formUuid: string, reachV1FormsUpdateTemplateRequest: ReachV1FormsUpdateTemplateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1FormsFormTemplateVersionResource>> {
|
|
44760
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options);
|
|
44761
|
+
const localVarOperationServerBasePath = operationServerMap['ReachFormsApi.updateFormTemplateV1']?.[0]?.url;
|
|
44762
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44763
|
+
},
|
|
44764
|
+
/**
|
|
44765
|
+
* Rename a form and/or change its status. Setting a `draft` or `paused` form to `active` takes it live: its latest saved design is published and visitors can submit it. `paused` and `draft` stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already `active` stay unpublished until the form is paused and set to `active` again. Renaming does not rename the automatic `form:{name}` tag.
|
|
44766
|
+
* @summary Update form
|
|
44767
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44768
|
+
* @param {string} formUuid Form uuid parameter
|
|
44769
|
+
* @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
|
|
44770
|
+
* @param {*} [options] Override http request option.
|
|
44771
|
+
* @throws {RequiredError}
|
|
44772
|
+
*/
|
|
44773
|
+
async updateFormV1(profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ReachV1FormsFormResource>> {
|
|
44774
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options);
|
|
44775
|
+
const localVarOperationServerBasePath = operationServerMap['ReachFormsApi.updateFormV1']?.[0]?.url;
|
|
44776
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
44777
|
+
},
|
|
44137
44778
|
}
|
|
44138
44779
|
};
|
|
44139
44780
|
|
|
@@ -44144,6 +44785,29 @@ export const ReachFormsApiFp = function(configuration?: Configuration) {
|
|
|
44144
44785
|
export const ReachFormsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
44145
44786
|
const localVarFp = ReachFormsApiFp(configuration)
|
|
44146
44787
|
return {
|
|
44788
|
+
/**
|
|
44789
|
+
* Add tags to a form so that every contact who submits it from now on receives them. A tag the form already has is skipped; an unknown tag is rejected. Contacts who submitted earlier are not tagged.
|
|
44790
|
+
* @summary Add form submitter tags
|
|
44791
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44792
|
+
* @param {string} formUuid Form uuid parameter
|
|
44793
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
44794
|
+
* @param {*} [options] Override http request option.
|
|
44795
|
+
* @throws {RequiredError}
|
|
44796
|
+
*/
|
|
44797
|
+
addFormSubmitterTagsV1(profileUuid: string, formUuid: string, reachV1FormsAssignTagsRequest: ReachV1FormsAssignTagsRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
44798
|
+
return localVarFp.addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options).then((request) => request(axios, basePath));
|
|
44799
|
+
},
|
|
44800
|
+
/**
|
|
44801
|
+
* Create an empty draft form. Reach also adds an automatic `form:{name}` tag that every submitter receives. A draft has no design and is not reachable by visitors: save a design with the update form template operation, then take the form live by setting its status to `active`. Creating a form does not consume AI credits.
|
|
44802
|
+
* @summary Create form
|
|
44803
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44804
|
+
* @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
|
|
44805
|
+
* @param {*} [options] Override http request option.
|
|
44806
|
+
* @throws {RequiredError}
|
|
44807
|
+
*/
|
|
44808
|
+
createFormV1(profileUuid: string, reachV1FormsStoreRequest: ReachV1FormsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1FormsFormResource> {
|
|
44809
|
+
return localVarFp.createFormV1(profileUuid, reachV1FormsStoreRequest, options).then((request) => request(axios, basePath));
|
|
44810
|
+
},
|
|
44147
44811
|
/**
|
|
44148
44812
|
* Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
|
|
44149
44813
|
* @summary Delete form
|
|
@@ -44155,6 +44819,17 @@ export const ReachFormsApiFactory = function (configuration?: Configuration, bas
|
|
|
44155
44819
|
deleteFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
44156
44820
|
return localVarFp.deleteFormV1(profileUuid, formUuid, options).then((request) => request(axios, basePath));
|
|
44157
44821
|
},
|
|
44822
|
+
/**
|
|
44823
|
+
* Copy a form into a new draft form with the same name and design. The copy shares the source\'s automatic `form:{name}` tag; other submitter tags are not copied. The copy is not live until its status is set to `active`.
|
|
44824
|
+
* @summary Duplicate form
|
|
44825
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44826
|
+
* @param {string} formUuid Form uuid parameter
|
|
44827
|
+
* @param {*} [options] Override http request option.
|
|
44828
|
+
* @throws {RequiredError}
|
|
44829
|
+
*/
|
|
44830
|
+
duplicateFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1FormsFormResource> {
|
|
44831
|
+
return localVarFp.duplicateFormV1(profileUuid, formUuid, options).then((request) => request(axios, basePath));
|
|
44832
|
+
},
|
|
44158
44833
|
/**
|
|
44159
44834
|
* Get a single form with the URL of its hosted template and the tags it applies to the contacts it captures. There is no ready-made embed snippet in the response - either serve the template HTML yourself or build your own embed around the form uuid.
|
|
44160
44835
|
* @summary Get form details
|
|
@@ -44172,11 +44847,48 @@ export const ReachFormsApiFactory = function (configuration?: Configuration, bas
|
|
|
44172
44847
|
* @param {string} profileUuid Profile uuid parameter
|
|
44173
44848
|
* @param {number} [page] Page number
|
|
44174
44849
|
* @param {number} [perPage] Number of items per page
|
|
44850
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
44175
44851
|
* @param {*} [options] Override http request option.
|
|
44176
44852
|
* @throws {RequiredError}
|
|
44177
44853
|
*/
|
|
44178
|
-
listFormsV1(profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig): AxiosPromise<ReachListFormsV1200Response> {
|
|
44179
|
-
return localVarFp.listFormsV1(profileUuid, page, perPage, options).then((request) => request(axios, basePath));
|
|
44854
|
+
listFormsV1(profileUuid: string, page?: number, perPage?: number, status?: ListFormsV1StatusEnum, options?: RawAxiosRequestConfig): AxiosPromise<ReachListFormsV1200Response> {
|
|
44855
|
+
return localVarFp.listFormsV1(profileUuid, page, perPage, status, options).then((request) => request(axios, basePath));
|
|
44856
|
+
},
|
|
44857
|
+
/**
|
|
44858
|
+
* Stop a form from applying a tag to its future submitters. Succeeds also when the form did not have the tag. Contacts who already received the tag keep it, and the tag itself is not deleted. The automatic `form:{name}` tag cannot be removed and is rejected with a conflict.
|
|
44859
|
+
* @summary Remove form submitter tag
|
|
44860
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44861
|
+
* @param {string} formUuid Form uuid parameter
|
|
44862
|
+
* @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
|
|
44863
|
+
* @param {*} [options] Override http request option.
|
|
44864
|
+
* @throws {RequiredError}
|
|
44865
|
+
*/
|
|
44866
|
+
removeFormSubmitterTagV1(profileUuid: string, formUuid: string, reachV1FormsRemoveTagRequest: ReachV1FormsRemoveTagRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource> {
|
|
44867
|
+
return localVarFp.removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options).then((request) => request(axios, basePath));
|
|
44868
|
+
},
|
|
44869
|
+
/**
|
|
44870
|
+
* Save `content` as the latest design of a form and return the stored version. The HTML is sanitized and, unless the plan allows removing it, the Reach signature is added. Visitors submit the form with an `email` field (required) and optional `name`, `surname` and `phone`. After sanitizing, the design must contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`); otherwise the request fails with `422` and `errors.content` lists `missing_form_container`, `missing_email_field` and/or `missing_submit_button`. A `draft` or `paused` form stays unreachable until its status is set to `active`, which publishes this design. On a form that is already `active` the saved design is not public until the form is paused and set to `active` again. Saving a design does not consume AI credits.
|
|
44871
|
+
* @summary Update form template
|
|
44872
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44873
|
+
* @param {string} formUuid Form uuid parameter
|
|
44874
|
+
* @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
|
|
44875
|
+
* @param {*} [options] Override http request option.
|
|
44876
|
+
* @throws {RequiredError}
|
|
44877
|
+
*/
|
|
44878
|
+
updateFormTemplateV1(profileUuid: string, formUuid: string, reachV1FormsUpdateTemplateRequest: ReachV1FormsUpdateTemplateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1FormsFormTemplateVersionResource> {
|
|
44879
|
+
return localVarFp.updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options).then((request) => request(axios, basePath));
|
|
44880
|
+
},
|
|
44881
|
+
/**
|
|
44882
|
+
* Rename a form and/or change its status. Setting a `draft` or `paused` form to `active` takes it live: its latest saved design is published and visitors can submit it. `paused` and `draft` stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already `active` stay unpublished until the form is paused and set to `active` again. Renaming does not rename the automatic `form:{name}` tag.
|
|
44883
|
+
* @summary Update form
|
|
44884
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44885
|
+
* @param {string} formUuid Form uuid parameter
|
|
44886
|
+
* @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
|
|
44887
|
+
* @param {*} [options] Override http request option.
|
|
44888
|
+
* @throws {RequiredError}
|
|
44889
|
+
*/
|
|
44890
|
+
updateFormV1(profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<ReachV1FormsFormResource> {
|
|
44891
|
+
return localVarFp.updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options).then((request) => request(axios, basePath));
|
|
44180
44892
|
},
|
|
44181
44893
|
};
|
|
44182
44894
|
};
|
|
@@ -44188,6 +44900,33 @@ export const ReachFormsApiFactory = function (configuration?: Configuration, bas
|
|
|
44188
44900
|
* @extends {BaseAPI}
|
|
44189
44901
|
*/
|
|
44190
44902
|
export class ReachFormsApi extends BaseAPI {
|
|
44903
|
+
/**
|
|
44904
|
+
* Add tags to a form so that every contact who submits it from now on receives them. A tag the form already has is skipped; an unknown tag is rejected. Contacts who submitted earlier are not tagged.
|
|
44905
|
+
* @summary Add form submitter tags
|
|
44906
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44907
|
+
* @param {string} formUuid Form uuid parameter
|
|
44908
|
+
* @param {ReachV1FormsAssignTagsRequest} reachV1FormsAssignTagsRequest
|
|
44909
|
+
* @param {*} [options] Override http request option.
|
|
44910
|
+
* @throws {RequiredError}
|
|
44911
|
+
* @memberof ReachFormsApi
|
|
44912
|
+
*/
|
|
44913
|
+
public addFormSubmitterTagsV1(profileUuid: string, formUuid: string, reachV1FormsAssignTagsRequest: ReachV1FormsAssignTagsRequest, options?: RawAxiosRequestConfig) {
|
|
44914
|
+
return ReachFormsApiFp(this.configuration).addFormSubmitterTagsV1(profileUuid, formUuid, reachV1FormsAssignTagsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
44915
|
+
}
|
|
44916
|
+
|
|
44917
|
+
/**
|
|
44918
|
+
* Create an empty draft form. Reach also adds an automatic `form:{name}` tag that every submitter receives. A draft has no design and is not reachable by visitors: save a design with the update form template operation, then take the form live by setting its status to `active`. Creating a form does not consume AI credits.
|
|
44919
|
+
* @summary Create form
|
|
44920
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44921
|
+
* @param {ReachV1FormsStoreRequest} reachV1FormsStoreRequest
|
|
44922
|
+
* @param {*} [options] Override http request option.
|
|
44923
|
+
* @throws {RequiredError}
|
|
44924
|
+
* @memberof ReachFormsApi
|
|
44925
|
+
*/
|
|
44926
|
+
public createFormV1(profileUuid: string, reachV1FormsStoreRequest: ReachV1FormsStoreRequest, options?: RawAxiosRequestConfig) {
|
|
44927
|
+
return ReachFormsApiFp(this.configuration).createFormV1(profileUuid, reachV1FormsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
44928
|
+
}
|
|
44929
|
+
|
|
44191
44930
|
/**
|
|
44192
44931
|
* Permanently delete a form together with its template. A form that has already captured submissions cannot be deleted, so that the contacts it collected are never silently discarded - pause the form instead to stop it collecting new ones. Views alone do not block deletion.
|
|
44193
44932
|
* @summary Delete form
|
|
@@ -44201,6 +44940,19 @@ export class ReachFormsApi extends BaseAPI {
|
|
|
44201
44940
|
return ReachFormsApiFp(this.configuration).deleteFormV1(profileUuid, formUuid, options).then((request) => request(this.axios, this.basePath));
|
|
44202
44941
|
}
|
|
44203
44942
|
|
|
44943
|
+
/**
|
|
44944
|
+
* Copy a form into a new draft form with the same name and design. The copy shares the source\'s automatic `form:{name}` tag; other submitter tags are not copied. The copy is not live until its status is set to `active`.
|
|
44945
|
+
* @summary Duplicate form
|
|
44946
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44947
|
+
* @param {string} formUuid Form uuid parameter
|
|
44948
|
+
* @param {*} [options] Override http request option.
|
|
44949
|
+
* @throws {RequiredError}
|
|
44950
|
+
* @memberof ReachFormsApi
|
|
44951
|
+
*/
|
|
44952
|
+
public duplicateFormV1(profileUuid: string, formUuid: string, options?: RawAxiosRequestConfig) {
|
|
44953
|
+
return ReachFormsApiFp(this.configuration).duplicateFormV1(profileUuid, formUuid, options).then((request) => request(this.axios, this.basePath));
|
|
44954
|
+
}
|
|
44955
|
+
|
|
44204
44956
|
/**
|
|
44205
44957
|
* Get a single form with the URL of its hosted template and the tags it applies to the contacts it captures. There is no ready-made embed snippet in the response - either serve the template HTML yourself or build your own embed around the form uuid.
|
|
44206
44958
|
* @summary Get form details
|
|
@@ -44220,15 +44972,67 @@ export class ReachFormsApi extends BaseAPI {
|
|
|
44220
44972
|
* @param {string} profileUuid Profile uuid parameter
|
|
44221
44973
|
* @param {number} [page] Page number
|
|
44222
44974
|
* @param {number} [perPage] Number of items per page
|
|
44975
|
+
* @param {ListFormsV1StatusEnum} [status] Return only forms with this status.
|
|
44223
44976
|
* @param {*} [options] Override http request option.
|
|
44224
44977
|
* @throws {RequiredError}
|
|
44225
44978
|
* @memberof ReachFormsApi
|
|
44226
44979
|
*/
|
|
44227
|
-
public listFormsV1(profileUuid: string, page?: number, perPage?: number, options?: RawAxiosRequestConfig) {
|
|
44228
|
-
return ReachFormsApiFp(this.configuration).listFormsV1(profileUuid, page, perPage, options).then((request) => request(this.axios, this.basePath));
|
|
44980
|
+
public listFormsV1(profileUuid: string, page?: number, perPage?: number, status?: ListFormsV1StatusEnum, options?: RawAxiosRequestConfig) {
|
|
44981
|
+
return ReachFormsApiFp(this.configuration).listFormsV1(profileUuid, page, perPage, status, options).then((request) => request(this.axios, this.basePath));
|
|
44982
|
+
}
|
|
44983
|
+
|
|
44984
|
+
/**
|
|
44985
|
+
* Stop a form from applying a tag to its future submitters. Succeeds also when the form did not have the tag. Contacts who already received the tag keep it, and the tag itself is not deleted. The automatic `form:{name}` tag cannot be removed and is rejected with a conflict.
|
|
44986
|
+
* @summary Remove form submitter tag
|
|
44987
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
44988
|
+
* @param {string} formUuid Form uuid parameter
|
|
44989
|
+
* @param {ReachV1FormsRemoveTagRequest} reachV1FormsRemoveTagRequest
|
|
44990
|
+
* @param {*} [options] Override http request option.
|
|
44991
|
+
* @throws {RequiredError}
|
|
44992
|
+
* @memberof ReachFormsApi
|
|
44993
|
+
*/
|
|
44994
|
+
public removeFormSubmitterTagV1(profileUuid: string, formUuid: string, reachV1FormsRemoveTagRequest: ReachV1FormsRemoveTagRequest, options?: RawAxiosRequestConfig) {
|
|
44995
|
+
return ReachFormsApiFp(this.configuration).removeFormSubmitterTagV1(profileUuid, formUuid, reachV1FormsRemoveTagRequest, options).then((request) => request(this.axios, this.basePath));
|
|
44996
|
+
}
|
|
44997
|
+
|
|
44998
|
+
/**
|
|
44999
|
+
* Save `content` as the latest design of a form and return the stored version. The HTML is sanitized and, unless the plan allows removing it, the Reach signature is added. Visitors submit the form with an `email` field (required) and optional `name`, `surname` and `phone`. After sanitizing, the design must contain a form container (`data-reach-form`), an email input (`data-reach-field=\"email\"`) and a submit button (`data-reach-submit`); otherwise the request fails with `422` and `errors.content` lists `missing_form_container`, `missing_email_field` and/or `missing_submit_button`. A `draft` or `paused` form stays unreachable until its status is set to `active`, which publishes this design. On a form that is already `active` the saved design is not public until the form is paused and set to `active` again. Saving a design does not consume AI credits.
|
|
45000
|
+
* @summary Update form template
|
|
45001
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45002
|
+
* @param {string} formUuid Form uuid parameter
|
|
45003
|
+
* @param {ReachV1FormsUpdateTemplateRequest} reachV1FormsUpdateTemplateRequest
|
|
45004
|
+
* @param {*} [options] Override http request option.
|
|
45005
|
+
* @throws {RequiredError}
|
|
45006
|
+
* @memberof ReachFormsApi
|
|
45007
|
+
*/
|
|
45008
|
+
public updateFormTemplateV1(profileUuid: string, formUuid: string, reachV1FormsUpdateTemplateRequest: ReachV1FormsUpdateTemplateRequest, options?: RawAxiosRequestConfig) {
|
|
45009
|
+
return ReachFormsApiFp(this.configuration).updateFormTemplateV1(profileUuid, formUuid, reachV1FormsUpdateTemplateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
45010
|
+
}
|
|
45011
|
+
|
|
45012
|
+
/**
|
|
45013
|
+
* Rename a form and/or change its status. Setting a `draft` or `paused` form to `active` takes it live: its latest saved design is published and visitors can submit it. `paused` and `draft` stop the form from accepting submissions. A form is not reachable by visitors until it is taken live. Design changes saved while the form is already `active` stay unpublished until the form is paused and set to `active` again. Renaming does not rename the automatic `form:{name}` tag.
|
|
45014
|
+
* @summary Update form
|
|
45015
|
+
* @param {string} profileUuid Profile uuid parameter
|
|
45016
|
+
* @param {string} formUuid Form uuid parameter
|
|
45017
|
+
* @param {ReachV1FormsUpdateRequest} reachV1FormsUpdateRequest
|
|
45018
|
+
* @param {*} [options] Override http request option.
|
|
45019
|
+
* @throws {RequiredError}
|
|
45020
|
+
* @memberof ReachFormsApi
|
|
45021
|
+
*/
|
|
45022
|
+
public updateFormV1(profileUuid: string, formUuid: string, reachV1FormsUpdateRequest: ReachV1FormsUpdateRequest, options?: RawAxiosRequestConfig) {
|
|
45023
|
+
return ReachFormsApiFp(this.configuration).updateFormV1(profileUuid, formUuid, reachV1FormsUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
44229
45024
|
}
|
|
44230
45025
|
}
|
|
44231
45026
|
|
|
45027
|
+
/**
|
|
45028
|
+
* @export
|
|
45029
|
+
*/
|
|
45030
|
+
export const ListFormsV1StatusEnum = {
|
|
45031
|
+
Active: 'active',
|
|
45032
|
+
Paused: 'paused',
|
|
45033
|
+
Draft: 'draft'
|
|
45034
|
+
} as const;
|
|
45035
|
+
export type ListFormsV1StatusEnum = typeof ListFormsV1StatusEnum[keyof typeof ListFormsV1StatusEnum];
|
|
44232
45036
|
|
|
44233
45037
|
|
|
44234
45038
|
/**
|