hostinger-api-sdk 2.2.0 → 2.3.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 +44 -32
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +44 -32
- package/dist/api.js +5 -5
- 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 +44 -32
- package/dist/esm/api.js +5 -5
- 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/ReachContactsApi.md +1 -1
- package/docs/ReachV1ContactsBulkStoreRequestContactsInner.md +2 -0
- package/docs/{ReachV1ContactsUpdateRequestFieldsInner.md → ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md} +3 -3
- package/docs/ReachV1ContactsStoreRequest.md +2 -0
- package/docs/ReachV1ContactsUpdateRequest.md +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
## @hostinger/sdk@2.
|
|
1
|
+
## @hostinger/sdk@2.3.0
|
|
2
2
|
|
|
3
3
|
For more information, please visit [https://developers.hostinger.com](https://developers.hostinger.com).
|
|
4
4
|
|
|
5
5
|
### Usage
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
npm install @hostinger/sdk@2.
|
|
8
|
+
npm install @hostinger/sdk@2.3.0 --save
|
|
9
9
|
```
|
package/api.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.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
|
|
@@ -13209,6 +13209,37 @@ export interface ReachV1ContactsBulkStoreRequestContactsInner {
|
|
|
13209
13209
|
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
|
|
13210
13210
|
*/
|
|
13211
13211
|
'phone': string | null;
|
|
13212
|
+
/**
|
|
13213
|
+
* Custom field values to set on the contact. For a contact whose email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped.
|
|
13214
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
|
|
13215
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
|
|
13216
|
+
*/
|
|
13217
|
+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
|
|
13218
|
+
}
|
|
13219
|
+
/**
|
|
13220
|
+
*
|
|
13221
|
+
* @export
|
|
13222
|
+
* @interface ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
13223
|
+
*/
|
|
13224
|
+
export interface ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner {
|
|
13225
|
+
/**
|
|
13226
|
+
*
|
|
13227
|
+
* @type {string}
|
|
13228
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
13229
|
+
*/
|
|
13230
|
+
'uuid': string;
|
|
13231
|
+
/**
|
|
13232
|
+
* For the scalar field types
|
|
13233
|
+
* @type {string}
|
|
13234
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
13235
|
+
*/
|
|
13236
|
+
'value': string | null;
|
|
13237
|
+
/**
|
|
13238
|
+
* For the choice field types
|
|
13239
|
+
* @type {Array<string>}
|
|
13240
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
13241
|
+
*/
|
|
13242
|
+
'selected_option_uuids': Array<string>;
|
|
13212
13243
|
}
|
|
13213
13244
|
/**
|
|
13214
13245
|
*
|
|
@@ -14532,6 +14563,12 @@ export interface ReachV1ContactsStoreRequest {
|
|
|
14532
14563
|
* @memberof ReachV1ContactsStoreRequest
|
|
14533
14564
|
*/
|
|
14534
14565
|
'tag_uuids': Array<string>;
|
|
14566
|
+
/**
|
|
14567
|
+
* Custom field values to set on the contact. When a contact with this email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped.
|
|
14568
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
|
|
14569
|
+
* @memberof ReachV1ContactsStoreRequest
|
|
14570
|
+
*/
|
|
14571
|
+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
|
|
14535
14572
|
}
|
|
14536
14573
|
/**
|
|
14537
14574
|
* Contacts to assign to, or remove from, a tag
|
|
@@ -14661,10 +14698,10 @@ export interface ReachV1ContactsUpdateRequest {
|
|
|
14661
14698
|
'note': string | null;
|
|
14662
14699
|
/**
|
|
14663
14700
|
* Set custom field values. Omit to leave untouched, send an empty array to clear them all.
|
|
14664
|
-
* @type {Array<
|
|
14701
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
|
|
14665
14702
|
* @memberof ReachV1ContactsUpdateRequest
|
|
14666
14703
|
*/
|
|
14667
|
-
'fields': Array<
|
|
14704
|
+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
|
|
14668
14705
|
}
|
|
14669
14706
|
|
|
14670
14707
|
export const ReachV1ContactsUpdateRequestSubscriptionStatusEnum = {
|
|
@@ -14676,31 +14713,6 @@ export const ReachV1ContactsUpdateRequestSubscriptionStatusEnum = {
|
|
|
14676
14713
|
|
|
14677
14714
|
export type ReachV1ContactsUpdateRequestSubscriptionStatusEnum = typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum[keyof typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum];
|
|
14678
14715
|
|
|
14679
|
-
/**
|
|
14680
|
-
*
|
|
14681
|
-
* @export
|
|
14682
|
-
* @interface ReachV1ContactsUpdateRequestFieldsInner
|
|
14683
|
-
*/
|
|
14684
|
-
export interface ReachV1ContactsUpdateRequestFieldsInner {
|
|
14685
|
-
/**
|
|
14686
|
-
*
|
|
14687
|
-
* @type {string}
|
|
14688
|
-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
14689
|
-
*/
|
|
14690
|
-
'uuid': string;
|
|
14691
|
-
/**
|
|
14692
|
-
* For the scalar field types
|
|
14693
|
-
* @type {string}
|
|
14694
|
-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
14695
|
-
*/
|
|
14696
|
-
'value': string | null;
|
|
14697
|
-
/**
|
|
14698
|
-
* For the choice field types
|
|
14699
|
-
* @type {Array<string>}
|
|
14700
|
-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
14701
|
-
*/
|
|
14702
|
-
'selected_option_uuids': Array<string>;
|
|
14703
|
-
}
|
|
14704
14716
|
/**
|
|
14705
14717
|
* Tags every future submitter of the form receives
|
|
14706
14718
|
* @export
|
|
@@ -43374,7 +43386,7 @@ export const ReachContactsApiAxiosParamCreator = function (configuration?: Confi
|
|
|
43374
43386
|
};
|
|
43375
43387
|
},
|
|
43376
43388
|
/**
|
|
43377
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
43389
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
43378
43390
|
* @summary Create contacts in bulk
|
|
43379
43391
|
* @param {string} profileUuid Profile uuid parameter
|
|
43380
43392
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -43804,7 +43816,7 @@ export const ReachContactsApiFp = function(configuration?: Configuration) {
|
|
|
43804
43816
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
43805
43817
|
},
|
|
43806
43818
|
/**
|
|
43807
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
43819
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
43808
43820
|
* @summary Create contacts in bulk
|
|
43809
43821
|
* @param {string} profileUuid Profile uuid parameter
|
|
43810
43822
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -43948,7 +43960,7 @@ export const ReachContactsApiFactory = function (configuration?: Configuration,
|
|
|
43948
43960
|
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
43949
43961
|
},
|
|
43950
43962
|
/**
|
|
43951
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
43963
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
43952
43964
|
* @summary Create contacts in bulk
|
|
43953
43965
|
* @param {string} profileUuid Profile uuid parameter
|
|
43954
43966
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -44076,7 +44088,7 @@ export class ReachContactsApi extends BaseAPI {
|
|
|
44076
44088
|
}
|
|
44077
44089
|
|
|
44078
44090
|
/**
|
|
44079
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
44091
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
44080
44092
|
* @summary Create contacts in bulk
|
|
44081
44093
|
* @param {string} profileUuid Profile uuid parameter
|
|
44082
44094
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
package/base.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.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
|
package/common.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.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
|
package/configuration.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.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
|
|
@@ -48,7 +48,7 @@ export class Configuration {
|
|
|
48
48
|
this.baseOptions = {
|
|
49
49
|
...param.baseOptions,
|
|
50
50
|
headers: {
|
|
51
|
-
'User-Agent': "hostinger-typescript-sdk/2.
|
|
51
|
+
'User-Agent': "hostinger-typescript-sdk/2.3.0",
|
|
52
52
|
...param.baseOptions?.headers,
|
|
53
53
|
},
|
|
54
54
|
};
|
package/dist/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -12935,6 +12935,37 @@ export interface ReachV1ContactsBulkStoreRequestContactsInner {
|
|
|
12935
12935
|
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
|
|
12936
12936
|
*/
|
|
12937
12937
|
'phone': string | null;
|
|
12938
|
+
/**
|
|
12939
|
+
* Custom field values to set on the contact. For a contact whose email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped.
|
|
12940
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
|
|
12941
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
|
|
12942
|
+
*/
|
|
12943
|
+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
|
|
12944
|
+
}
|
|
12945
|
+
/**
|
|
12946
|
+
*
|
|
12947
|
+
* @export
|
|
12948
|
+
* @interface ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
12949
|
+
*/
|
|
12950
|
+
export interface ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner {
|
|
12951
|
+
/**
|
|
12952
|
+
*
|
|
12953
|
+
* @type {string}
|
|
12954
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
12955
|
+
*/
|
|
12956
|
+
'uuid': string;
|
|
12957
|
+
/**
|
|
12958
|
+
* For the scalar field types
|
|
12959
|
+
* @type {string}
|
|
12960
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
12961
|
+
*/
|
|
12962
|
+
'value': string | null;
|
|
12963
|
+
/**
|
|
12964
|
+
* For the choice field types
|
|
12965
|
+
* @type {Array<string>}
|
|
12966
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
12967
|
+
*/
|
|
12968
|
+
'selected_option_uuids': Array<string>;
|
|
12938
12969
|
}
|
|
12939
12970
|
/**
|
|
12940
12971
|
*
|
|
@@ -14206,6 +14237,12 @@ export interface ReachV1ContactsStoreRequest {
|
|
|
14206
14237
|
* @memberof ReachV1ContactsStoreRequest
|
|
14207
14238
|
*/
|
|
14208
14239
|
'tag_uuids': Array<string>;
|
|
14240
|
+
/**
|
|
14241
|
+
* Custom field values to set on the contact. When a contact with this email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped.
|
|
14242
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
|
|
14243
|
+
* @memberof ReachV1ContactsStoreRequest
|
|
14244
|
+
*/
|
|
14245
|
+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
|
|
14209
14246
|
}
|
|
14210
14247
|
/**
|
|
14211
14248
|
* Contacts to assign to, or remove from, a tag
|
|
@@ -14332,10 +14369,10 @@ export interface ReachV1ContactsUpdateRequest {
|
|
|
14332
14369
|
'note': string | null;
|
|
14333
14370
|
/**
|
|
14334
14371
|
* Set custom field values. Omit to leave untouched, send an empty array to clear them all.
|
|
14335
|
-
* @type {Array<
|
|
14372
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
|
|
14336
14373
|
* @memberof ReachV1ContactsUpdateRequest
|
|
14337
14374
|
*/
|
|
14338
|
-
'fields': Array<
|
|
14375
|
+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
|
|
14339
14376
|
}
|
|
14340
14377
|
export declare const ReachV1ContactsUpdateRequestSubscriptionStatusEnum: {
|
|
14341
14378
|
readonly Subscribed: "subscribed";
|
|
@@ -14344,31 +14381,6 @@ export declare const ReachV1ContactsUpdateRequestSubscriptionStatusEnum: {
|
|
|
14344
14381
|
readonly Pending: "pending";
|
|
14345
14382
|
};
|
|
14346
14383
|
export type ReachV1ContactsUpdateRequestSubscriptionStatusEnum = typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum[keyof typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum];
|
|
14347
|
-
/**
|
|
14348
|
-
*
|
|
14349
|
-
* @export
|
|
14350
|
-
* @interface ReachV1ContactsUpdateRequestFieldsInner
|
|
14351
|
-
*/
|
|
14352
|
-
export interface ReachV1ContactsUpdateRequestFieldsInner {
|
|
14353
|
-
/**
|
|
14354
|
-
*
|
|
14355
|
-
* @type {string}
|
|
14356
|
-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
14357
|
-
*/
|
|
14358
|
-
'uuid': string;
|
|
14359
|
-
/**
|
|
14360
|
-
* For the scalar field types
|
|
14361
|
-
* @type {string}
|
|
14362
|
-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
14363
|
-
*/
|
|
14364
|
-
'value': string | null;
|
|
14365
|
-
/**
|
|
14366
|
-
* For the choice field types
|
|
14367
|
-
* @type {Array<string>}
|
|
14368
|
-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
14369
|
-
*/
|
|
14370
|
-
'selected_option_uuids': Array<string>;
|
|
14371
|
-
}
|
|
14372
14384
|
/**
|
|
14373
14385
|
* Tags every future submitter of the form receives
|
|
14374
14386
|
* @export
|
|
@@ -30401,7 +30413,7 @@ export declare const ReachContactsApiAxiosParamCreator: (configuration?: Configu
|
|
|
30401
30413
|
*/
|
|
30402
30414
|
createANewContactV1: (reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30403
30415
|
/**
|
|
30404
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
30416
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
30405
30417
|
* @summary Create contacts in bulk
|
|
30406
30418
|
* @param {string} profileUuid Profile uuid parameter
|
|
30407
30419
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -30503,7 +30515,7 @@ export declare const ReachContactsApiFp: (configuration?: Configuration) => {
|
|
|
30503
30515
|
*/
|
|
30504
30516
|
createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
30505
30517
|
/**
|
|
30506
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
30518
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
30507
30519
|
* @summary Create contacts in bulk
|
|
30508
30520
|
* @param {string} profileUuid Profile uuid parameter
|
|
30509
30521
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -30605,7 +30617,7 @@ export declare const ReachContactsApiFactory: (configuration?: Configuration, ba
|
|
|
30605
30617
|
*/
|
|
30606
30618
|
createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
30607
30619
|
/**
|
|
30608
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
30620
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
30609
30621
|
* @summary Create contacts in bulk
|
|
30610
30622
|
* @param {string} profileUuid Profile uuid parameter
|
|
30611
30623
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -30710,7 +30722,7 @@ export declare class ReachContactsApi extends BaseAPI {
|
|
|
30710
30722
|
*/
|
|
30711
30723
|
createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
30712
30724
|
/**
|
|
30713
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
30725
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
30714
30726
|
* @summary Create contacts in bulk
|
|
30715
30727
|
* @param {string} profileUuid Profile uuid parameter
|
|
30716
30728
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
package/dist/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.3.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -24438,7 +24438,7 @@ const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
24438
24438
|
};
|
|
24439
24439
|
}),
|
|
24440
24440
|
/**
|
|
24441
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
24441
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
24442
24442
|
* @summary Create contacts in bulk
|
|
24443
24443
|
* @param {string} profileUuid Profile uuid parameter
|
|
24444
24444
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -24806,7 +24806,7 @@ const ReachContactsApiFp = function (configuration) {
|
|
|
24806
24806
|
});
|
|
24807
24807
|
},
|
|
24808
24808
|
/**
|
|
24809
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
24809
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
24810
24810
|
* @summary Create contacts in bulk
|
|
24811
24811
|
* @param {string} profileUuid Profile uuid parameter
|
|
24812
24812
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -24977,7 +24977,7 @@ const ReachContactsApiFactory = function (configuration, basePath, axios) {
|
|
|
24977
24977
|
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
24978
24978
|
},
|
|
24979
24979
|
/**
|
|
24980
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
24980
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
24981
24981
|
* @summary Create contacts in bulk
|
|
24982
24982
|
* @param {string} profileUuid Profile uuid parameter
|
|
24983
24983
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -25104,7 +25104,7 @@ class ReachContactsApi extends base_1.BaseAPI {
|
|
|
25104
25104
|
return (0, exports.ReachContactsApiFp)(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25105
25105
|
}
|
|
25106
25106
|
/**
|
|
25107
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
25107
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
25108
25108
|
* @summary Create contacts in bulk
|
|
25109
25109
|
* @param {string} profileUuid Profile uuid parameter
|
|
25110
25110
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.3.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.3.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.3.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.3.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -12935,6 +12935,37 @@ export interface ReachV1ContactsBulkStoreRequestContactsInner {
|
|
|
12935
12935
|
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
|
|
12936
12936
|
*/
|
|
12937
12937
|
'phone': string | null;
|
|
12938
|
+
/**
|
|
12939
|
+
* Custom field values to set on the contact. For a contact whose email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped.
|
|
12940
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
|
|
12941
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInner
|
|
12942
|
+
*/
|
|
12943
|
+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
|
|
12944
|
+
}
|
|
12945
|
+
/**
|
|
12946
|
+
*
|
|
12947
|
+
* @export
|
|
12948
|
+
* @interface ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
12949
|
+
*/
|
|
12950
|
+
export interface ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner {
|
|
12951
|
+
/**
|
|
12952
|
+
*
|
|
12953
|
+
* @type {string}
|
|
12954
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
12955
|
+
*/
|
|
12956
|
+
'uuid': string;
|
|
12957
|
+
/**
|
|
12958
|
+
* For the scalar field types
|
|
12959
|
+
* @type {string}
|
|
12960
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
12961
|
+
*/
|
|
12962
|
+
'value': string | null;
|
|
12963
|
+
/**
|
|
12964
|
+
* For the choice field types
|
|
12965
|
+
* @type {Array<string>}
|
|
12966
|
+
* @memberof ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
12967
|
+
*/
|
|
12968
|
+
'selected_option_uuids': Array<string>;
|
|
12938
12969
|
}
|
|
12939
12970
|
/**
|
|
12940
12971
|
*
|
|
@@ -14206,6 +14237,12 @@ export interface ReachV1ContactsStoreRequest {
|
|
|
14206
14237
|
* @memberof ReachV1ContactsStoreRequest
|
|
14207
14238
|
*/
|
|
14208
14239
|
'tag_uuids': Array<string>;
|
|
14240
|
+
/**
|
|
14241
|
+
* Custom field values to set on the contact. When a contact with this email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped.
|
|
14242
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
|
|
14243
|
+
* @memberof ReachV1ContactsStoreRequest
|
|
14244
|
+
*/
|
|
14245
|
+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
|
|
14209
14246
|
}
|
|
14210
14247
|
/**
|
|
14211
14248
|
* Contacts to assign to, or remove from, a tag
|
|
@@ -14332,10 +14369,10 @@ export interface ReachV1ContactsUpdateRequest {
|
|
|
14332
14369
|
'note': string | null;
|
|
14333
14370
|
/**
|
|
14334
14371
|
* Set custom field values. Omit to leave untouched, send an empty array to clear them all.
|
|
14335
|
-
* @type {Array<
|
|
14372
|
+
* @type {Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>}
|
|
14336
14373
|
* @memberof ReachV1ContactsUpdateRequest
|
|
14337
14374
|
*/
|
|
14338
|
-
'fields': Array<
|
|
14375
|
+
'fields': Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>;
|
|
14339
14376
|
}
|
|
14340
14377
|
export declare const ReachV1ContactsUpdateRequestSubscriptionStatusEnum: {
|
|
14341
14378
|
readonly Subscribed: "subscribed";
|
|
@@ -14344,31 +14381,6 @@ export declare const ReachV1ContactsUpdateRequestSubscriptionStatusEnum: {
|
|
|
14344
14381
|
readonly Pending: "pending";
|
|
14345
14382
|
};
|
|
14346
14383
|
export type ReachV1ContactsUpdateRequestSubscriptionStatusEnum = typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum[keyof typeof ReachV1ContactsUpdateRequestSubscriptionStatusEnum];
|
|
14347
|
-
/**
|
|
14348
|
-
*
|
|
14349
|
-
* @export
|
|
14350
|
-
* @interface ReachV1ContactsUpdateRequestFieldsInner
|
|
14351
|
-
*/
|
|
14352
|
-
export interface ReachV1ContactsUpdateRequestFieldsInner {
|
|
14353
|
-
/**
|
|
14354
|
-
*
|
|
14355
|
-
* @type {string}
|
|
14356
|
-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
14357
|
-
*/
|
|
14358
|
-
'uuid': string;
|
|
14359
|
-
/**
|
|
14360
|
-
* For the scalar field types
|
|
14361
|
-
* @type {string}
|
|
14362
|
-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
14363
|
-
*/
|
|
14364
|
-
'value': string | null;
|
|
14365
|
-
/**
|
|
14366
|
-
* For the choice field types
|
|
14367
|
-
* @type {Array<string>}
|
|
14368
|
-
* @memberof ReachV1ContactsUpdateRequestFieldsInner
|
|
14369
|
-
*/
|
|
14370
|
-
'selected_option_uuids': Array<string>;
|
|
14371
|
-
}
|
|
14372
14384
|
/**
|
|
14373
14385
|
* Tags every future submitter of the form receives
|
|
14374
14386
|
* @export
|
|
@@ -30401,7 +30413,7 @@ export declare const ReachContactsApiAxiosParamCreator: (configuration?: Configu
|
|
|
30401
30413
|
*/
|
|
30402
30414
|
createANewContactV1: (reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
30403
30415
|
/**
|
|
30404
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
30416
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
30405
30417
|
* @summary Create contacts in bulk
|
|
30406
30418
|
* @param {string} profileUuid Profile uuid parameter
|
|
30407
30419
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -30503,7 +30515,7 @@ export declare const ReachContactsApiFp: (configuration?: Configuration) => {
|
|
|
30503
30515
|
*/
|
|
30504
30516
|
createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
30505
30517
|
/**
|
|
30506
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
30518
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
30507
30519
|
* @summary Create contacts in bulk
|
|
30508
30520
|
* @param {string} profileUuid Profile uuid parameter
|
|
30509
30521
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -30605,7 +30617,7 @@ export declare const ReachContactsApiFactory: (configuration?: Configuration, ba
|
|
|
30605
30617
|
*/
|
|
30606
30618
|
createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
30607
30619
|
/**
|
|
30608
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
30620
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
30609
30621
|
* @summary Create contacts in bulk
|
|
30610
30622
|
* @param {string} profileUuid Profile uuid parameter
|
|
30611
30623
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -30710,7 +30722,7 @@ export declare class ReachContactsApi extends BaseAPI {
|
|
|
30710
30722
|
*/
|
|
30711
30723
|
createANewContactV1(reachV1ContactsStoreRequest: ReachV1ContactsStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
30712
30724
|
/**
|
|
30713
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
30725
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
30714
30726
|
* @summary Create contacts in bulk
|
|
30715
30727
|
* @param {string} profileUuid Profile uuid parameter
|
|
30716
30728
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
package/dist/esm/api.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.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
|
|
@@ -24164,7 +24164,7 @@ export const ReachContactsApiAxiosParamCreator = function (configuration) {
|
|
|
24164
24164
|
};
|
|
24165
24165
|
}),
|
|
24166
24166
|
/**
|
|
24167
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
24167
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
24168
24168
|
* @summary Create contacts in bulk
|
|
24169
24169
|
* @param {string} profileUuid Profile uuid parameter
|
|
24170
24170
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -24531,7 +24531,7 @@ export const ReachContactsApiFp = function (configuration) {
|
|
|
24531
24531
|
});
|
|
24532
24532
|
},
|
|
24533
24533
|
/**
|
|
24534
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
24534
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
24535
24535
|
* @summary Create contacts in bulk
|
|
24536
24536
|
* @param {string} profileUuid Profile uuid parameter
|
|
24537
24537
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -24701,7 +24701,7 @@ export const ReachContactsApiFactory = function (configuration, basePath, axios)
|
|
|
24701
24701
|
return localVarFp.createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(axios, basePath));
|
|
24702
24702
|
},
|
|
24703
24703
|
/**
|
|
24704
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
24704
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
24705
24705
|
* @summary Create contacts in bulk
|
|
24706
24706
|
* @param {string} profileUuid Profile uuid parameter
|
|
24707
24707
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
|
@@ -24827,7 +24827,7 @@ export class ReachContactsApi extends BaseAPI {
|
|
|
24827
24827
|
return ReachContactsApiFp(this.configuration).createANewContactV1(reachV1ContactsStoreRequest, options).then((request) => request(this.axios, this.basePath));
|
|
24828
24828
|
}
|
|
24829
24829
|
/**
|
|
24830
|
-
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
24830
|
+
* Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
24831
24831
|
* @summary Create contacts in bulk
|
|
24832
24832
|
* @param {string} profileUuid Profile uuid parameter
|
|
24833
24833
|
* @param {ReachV1ContactsBulkStoreRequest} reachV1ContactsBulkStoreRequest
|
package/dist/esm/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/base.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.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
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/common.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.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
|
|
@@ -13,7 +13,7 @@ export class Configuration {
|
|
|
13
13
|
var _a;
|
|
14
14
|
this.accessToken = param.accessToken;
|
|
15
15
|
this.basePath = param.basePath;
|
|
16
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.
|
|
16
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/2.3.0" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
17
17
|
this.formDataCtor = param.formDataCtor;
|
|
18
18
|
}
|
|
19
19
|
/**
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/esm/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.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
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 2.
|
|
4
|
+
* API Version: 2.3.0
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 2.
|
|
7
|
+
* API Version: 2.3.0
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/docs/ReachContactsApi.md
CHANGED
|
@@ -73,7 +73,7 @@ const { status, data } = await apiInstance.createANewContactV1(
|
|
|
73
73
|
# **createContactsInBulkV1**
|
|
74
74
|
> CommonSuccessEmptyResource createContactsInBulkV1(reachV1ContactsBulkStoreRequest)
|
|
75
75
|
|
|
76
|
-
Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile are
|
|
76
|
+
Create many contacts in a profile in a single call. The contacts are imported in the background, so a success response means the import was accepted rather than finished. Contacts whose email already exists in the profile keep their current values; only the ones that are still empty, custom fields included, are filled in. If double opt-in is enabled, new contacts start off pending and are sent a confirmation email.
|
|
77
77
|
|
|
78
78
|
### Example
|
|
79
79
|
|
|
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**name** | **string** | | [optional] [default to undefined]
|
|
10
10
|
**surname** | **string** | | [optional] [default to undefined]
|
|
11
11
|
**phone** | **string** | Phone number in E.164 format (leading \"+\" then 7-15 digits) | [optional] [default to undefined]
|
|
12
|
+
**fields** | [**Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>**](ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md) | Custom field values to set on the contact. For a contact whose email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped. | [optional] [default to undefined]
|
|
12
13
|
|
|
13
14
|
## Example
|
|
14
15
|
|
|
@@ -20,6 +21,7 @@ const instance: ReachV1ContactsBulkStoreRequestContactsInner = {
|
|
|
20
21
|
name,
|
|
21
22
|
surname,
|
|
22
23
|
phone,
|
|
24
|
+
fields,
|
|
23
25
|
};
|
|
24
26
|
```
|
|
25
27
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
## Properties
|
|
@@ -12,9 +12,9 @@ Name | Type | Description | Notes
|
|
|
12
12
|
## Example
|
|
13
13
|
|
|
14
14
|
```typescript
|
|
15
|
-
import {
|
|
15
|
+
import { ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner } from '@hostinger/sdk';
|
|
16
16
|
|
|
17
|
-
const instance:
|
|
17
|
+
const instance: ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner = {
|
|
18
18
|
uuid,
|
|
19
19
|
value,
|
|
20
20
|
selected_option_uuids,
|
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
|
11
11
|
**phone** | **string** | Phone number in E.164 format (leading \"+\" then 7-15 digits) | [optional] [default to undefined]
|
|
12
12
|
**note** | **string** | | [optional] [default to undefined]
|
|
13
13
|
**tag_uuids** | **Array<string>** | Existing tags to attach to the created contact | [optional] [default to undefined]
|
|
14
|
+
**fields** | [**Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>**](ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md) | Custom field values to set on the contact. When a contact with this email already exists, only fields that have no value yet are filled. Unknown field UUIDs and values that do not match the field type are skipped. | [optional] [default to undefined]
|
|
14
15
|
|
|
15
16
|
## Example
|
|
16
17
|
|
|
@@ -24,6 +25,7 @@ const instance: ReachV1ContactsStoreRequest = {
|
|
|
24
25
|
phone,
|
|
25
26
|
note,
|
|
26
27
|
tag_uuids,
|
|
28
|
+
fields,
|
|
27
29
|
};
|
|
28
30
|
```
|
|
29
31
|
|
|
@@ -12,7 +12,7 @@ Name | Type | Description | Notes
|
|
|
12
12
|
**phone** | **string** | Phone number in E.164 format (leading \"+\" then 7-15 digits) | [optional] [default to undefined]
|
|
13
13
|
**subscription_status** | **string** | | [optional] [default to undefined]
|
|
14
14
|
**note** | **string** | | [optional] [default to undefined]
|
|
15
|
-
**fields** | [**Array<
|
|
15
|
+
**fields** | [**Array<ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner>**](ReachV1ContactsBulkStoreRequestContactsInnerFieldsInner.md) | Set custom field values. Omit to leave untouched, send an empty array to clear them all. | [optional] [default to undefined]
|
|
16
16
|
|
|
17
17
|
## Example
|
|
18
18
|
|
package/index.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
/**
|
|
4
4
|
* Hostinger API
|
|
5
5
|
*
|
|
6
|
-
* API Version: 2.
|
|
6
|
+
* API Version: 2.3.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
|