@randock/nameshift-api-client 0.0.551 → 0.0.553
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/.openapi-generator/FILES +39 -0
- package/README.md +3 -3
- package/dist/apis/AutomationsApi.d.ts +160 -0
- package/dist/apis/AutomationsApi.js +748 -0
- package/dist/apis/index.d.ts +1 -0
- package/dist/apis/index.js +1 -0
- package/dist/models/AccountSettingsDto.d.ts +15 -1
- package/dist/models/AccountSettingsDto.js +8 -0
- package/dist/models/AccountSettingsInput.d.ts +14 -0
- package/dist/models/AccountSettingsInput.js +4 -0
- package/dist/models/AdminDomainListItemDto.d.ts +21 -1
- package/dist/models/AdminDomainListItemDto.js +12 -0
- package/dist/models/AutomationActionDto.d.ts +45 -0
- package/dist/models/AutomationActionDto.js +60 -0
- package/dist/models/AutomationActionInput.d.ts +45 -0
- package/dist/models/AutomationActionInput.js +56 -0
- package/dist/models/AutomationActionStatusEnum.d.ts +26 -0
- package/dist/models/AutomationActionStatusEnum.js +52 -0
- package/dist/models/AutomationActionTypeEnum.d.ts +27 -0
- package/dist/models/AutomationActionTypeEnum.js +53 -0
- package/dist/models/AutomationAggregateEnum.d.ts +24 -0
- package/dist/models/AutomationAggregateEnum.js +50 -0
- package/dist/models/AutomationCatalogDelayUnitDto.d.ts +45 -0
- package/dist/models/AutomationCatalogDelayUnitDto.js +60 -0
- package/dist/models/AutomationCatalogDto.d.ts +77 -0
- package/dist/models/AutomationCatalogDto.js +82 -0
- package/dist/models/AutomationCatalogFactDto.d.ts +54 -0
- package/dist/models/AutomationCatalogFactDto.js +67 -0
- package/dist/models/AutomationCatalogTriggerDto.d.ts +60 -0
- package/dist/models/AutomationCatalogTriggerDto.js +71 -0
- package/dist/models/AutomationConditionDto.d.ts +65 -0
- package/dist/models/AutomationConditionDto.js +76 -0
- package/dist/models/AutomationConditionEvaluationDto.d.ts +77 -0
- package/dist/models/AutomationConditionEvaluationDto.js +84 -0
- package/dist/models/AutomationConditionGroupDto.d.ts +53 -0
- package/dist/models/AutomationConditionGroupDto.js +68 -0
- package/dist/models/AutomationConditionGroupDtoChildrenInner.d.ts +27 -0
- package/dist/models/AutomationConditionGroupDtoChildrenInner.js +54 -0
- package/dist/models/AutomationConditionGroupEvaluationDto.d.ts +59 -0
- package/dist/models/AutomationConditionGroupEvaluationDto.js +72 -0
- package/dist/models/AutomationConditionGroupEvaluationDtoChildrenInner.d.ts +27 -0
- package/dist/models/AutomationConditionGroupEvaluationDtoChildrenInner.js +54 -0
- package/dist/models/AutomationConditionGroupInput.d.ts +53 -0
- package/dist/models/AutomationConditionGroupInput.js +68 -0
- package/dist/models/AutomationConditionGroupInputChildrenInner.d.ts +27 -0
- package/dist/models/AutomationConditionGroupInputChildrenInner.js +54 -0
- package/dist/models/AutomationConditionInput.d.ts +65 -0
- package/dist/models/AutomationConditionInput.js +74 -0
- package/dist/models/AutomationDelayDto.d.ts +39 -0
- package/dist/models/AutomationDelayDto.js +56 -0
- package/dist/models/AutomationDelayInput.d.ts +39 -0
- package/dist/models/AutomationDelayInput.js +56 -0
- package/dist/models/AutomationDelayUnitEnum.d.ts +25 -0
- package/dist/models/AutomationDelayUnitEnum.js +51 -0
- package/dist/models/AutomationDto.d.ts +96 -0
- package/dist/models/AutomationDto.js +95 -0
- package/dist/models/AutomationFactEnum.d.ts +36 -0
- package/dist/models/AutomationFactEnum.js +62 -0
- package/dist/models/AutomationFactGroupEnum.d.ts +27 -0
- package/dist/models/AutomationFactGroupEnum.js +53 -0
- package/dist/models/AutomationFactValueTypeEnum.d.ts +30 -0
- package/dist/models/AutomationFactValueTypeEnum.js +56 -0
- package/dist/models/AutomationGroupOperatorEnum.d.ts +25 -0
- package/dist/models/AutomationGroupOperatorEnum.js +51 -0
- package/dist/models/AutomationInput.d.ts +66 -0
- package/dist/models/AutomationInput.js +71 -0
- package/dist/models/AutomationOperatorEnum.d.ts +37 -0
- package/dist/models/AutomationOperatorEnum.js +63 -0
- package/dist/models/AutomationRunActionDto.d.ts +46 -0
- package/dist/models/AutomationRunActionDto.js +61 -0
- package/dist/models/AutomationRunAutomationDto.d.ts +58 -0
- package/dist/models/AutomationRunAutomationDto.js +69 -0
- package/dist/models/AutomationRunDto.d.ts +65 -0
- package/dist/models/AutomationRunDto.js +74 -0
- package/dist/models/AutomationRunLeadDto.d.ts +44 -0
- package/dist/models/AutomationRunLeadDto.js +59 -0
- package/dist/models/AutomationSimulationDto.d.ts +64 -0
- package/dist/models/AutomationSimulationDto.js +73 -0
- package/dist/models/AutomationStatusInput.d.ts +32 -0
- package/dist/models/AutomationStatusInput.js +51 -0
- package/dist/models/AutomationTriggerEnum.d.ts +28 -0
- package/dist/models/AutomationTriggerEnum.js +54 -0
- package/dist/models/DomainSellerDto.d.ts +9 -1
- package/dist/models/DomainSellerDto.js +4 -0
- package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
- package/dist/models/FeatureFlagListItemDto.js +2 -1
- package/dist/models/GetAutomationRuns200Response.d.ts +47 -0
- package/dist/models/GetAutomationRuns200Response.js +62 -0
- package/dist/models/GetAutomations200Response.d.ts +47 -0
- package/dist/models/GetAutomations200Response.js +62 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
- package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +21 -1
- package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +12 -0
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +21 -1
- package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +12 -0
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto.d.ts +21 -1
- package/dist/models/IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto.js +12 -0
- package/dist/models/LandingPageOriginalDesignSettingsDto.d.ts +12 -0
- package/dist/models/LandingPageOriginalDesignSettingsDto.js +8 -0
- package/dist/models/LandingPageOriginalDesignSettingsInput.d.ts +12 -0
- package/dist/models/LandingPageOriginalDesignSettingsInput.js +4 -0
- package/dist/models/LeadMessageDto.d.ts +6 -0
- package/dist/models/LeadMessageDto.js +4 -0
- package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
- package/dist/models/PrivateAccountGetMeResponse.js +2 -1
- package/dist/models/SimulateAutomationsInput.d.ts +70 -0
- package/dist/models/SimulateAutomationsInput.js +69 -0
- package/dist/models/UpdateDomainInput.d.ts +21 -1
- package/dist/models/UpdateDomainInput.js +6 -0
- package/dist/models/index.d.ts +38 -0
- package/dist/models/index.js +38 -0
- package/package.json +1 -1
- package/src/apis/AutomationsApi.ts +622 -0
- package/src/apis/index.ts +1 -0
- package/src/models/AccountSettingsDto.ts +19 -1
- package/src/models/AccountSettingsInput.ts +16 -0
- package/src/models/AdminDomainListItemDto.ts +28 -1
- package/src/models/AutomationActionDto.ts +94 -0
- package/src/models/AutomationActionInput.ts +92 -0
- package/src/models/AutomationActionStatusEnum.ts +54 -0
- package/src/models/AutomationActionTypeEnum.ts +55 -0
- package/src/models/AutomationAggregateEnum.ts +52 -0
- package/src/models/AutomationCatalogDelayUnitDto.ts +94 -0
- package/src/models/AutomationCatalogDto.ts +151 -0
- package/src/models/AutomationCatalogFactDto.ts +124 -0
- package/src/models/AutomationCatalogTriggerDto.ts +133 -0
- package/src/models/AutomationConditionDto.ts +127 -0
- package/src/models/AutomationConditionEvaluationDto.ts +145 -0
- package/src/models/AutomationConditionGroupDto.ts +109 -0
- package/src/models/AutomationConditionGroupDtoChildrenInner.ts +73 -0
- package/src/models/AutomationConditionGroupEvaluationDto.ts +118 -0
- package/src/models/AutomationConditionGroupEvaluationDtoChildrenInner.ts +73 -0
- package/src/models/AutomationConditionGroupInput.ts +109 -0
- package/src/models/AutomationConditionGroupInputChildrenInner.ts +73 -0
- package/src/models/AutomationConditionInput.ts +126 -0
- package/src/models/AutomationDelayDto.ts +85 -0
- package/src/models/AutomationDelayInput.ts +85 -0
- package/src/models/AutomationDelayUnitEnum.ts +53 -0
- package/src/models/AutomationDto.ts +187 -0
- package/src/models/AutomationFactEnum.ts +64 -0
- package/src/models/AutomationFactGroupEnum.ts +55 -0
- package/src/models/AutomationFactValueTypeEnum.ts +58 -0
- package/src/models/AutomationGroupOperatorEnum.ts +53 -0
- package/src/models/AutomationInput.ts +140 -0
- package/src/models/AutomationOperatorEnum.ts +65 -0
- package/src/models/AutomationRunActionDto.ts +101 -0
- package/src/models/AutomationRunAutomationDto.ts +117 -0
- package/src/models/AutomationRunDto.ts +135 -0
- package/src/models/AutomationRunLeadDto.ts +84 -0
- package/src/models/AutomationSimulationDto.ts +126 -0
- package/src/models/AutomationStatusInput.ts +66 -0
- package/src/models/AutomationTriggerEnum.ts +56 -0
- package/src/models/DomainSellerDto.ts +10 -1
- package/src/models/FeatureFlagListItemDto.ts +2 -1
- package/src/models/GetAutomationRuns200Response.ts +106 -0
- package/src/models/GetAutomations200Response.ts +106 -0
- package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
- package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +28 -1
- package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +28 -1
- package/src/models/IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto.ts +28 -1
- package/src/models/LandingPageOriginalDesignSettingsDto.ts +18 -0
- package/src/models/LandingPageOriginalDesignSettingsInput.ts +16 -0
- package/src/models/LeadMessageDto.ts +9 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/SimulateAutomationsInput.ts +133 -0
- package/src/models/UpdateDomainInput.ts +25 -1
- package/src/models/index.ts +38 -0
|
@@ -125,6 +125,18 @@ export interface AccountSettingsInput {
|
|
|
125
125
|
* @memberof AccountSettingsInput
|
|
126
126
|
*/
|
|
127
127
|
description?: string | null;
|
|
128
|
+
/**
|
|
129
|
+
* Public description by landing page locale (en-gb) or language (en, every English locale).
|
|
130
|
+
* @type {{ [key: string]: string | null; }}
|
|
131
|
+
* @memberof AccountSettingsInput
|
|
132
|
+
*/
|
|
133
|
+
descriptions?: { [key: string]: string | null; } | null;
|
|
134
|
+
/**
|
|
135
|
+
* Whether the landing page shows the description by locale instead of the single description.
|
|
136
|
+
* @type {boolean}
|
|
137
|
+
* @memberof AccountSettingsInput
|
|
138
|
+
*/
|
|
139
|
+
descriptionByLocale?: boolean;
|
|
128
140
|
/**
|
|
129
141
|
* Whether third-party sales data sharing is allowed by default
|
|
130
142
|
* @type {boolean}
|
|
@@ -241,6 +253,8 @@ export function AccountSettingsInputFromJSONTyped(json: any, ignoreDiscriminator
|
|
|
241
253
|
'landingPage': json['landingPage'] == null ? undefined : LandingPageInputFromJSON(json['landingPage']),
|
|
242
254
|
'leaseToOwn': json['leaseToOwn'] == null ? undefined : LeaseToOwnConfigurationInputFromJSON(json['leaseToOwn']),
|
|
243
255
|
'description': json['description'] == null ? undefined : json['description'],
|
|
256
|
+
'descriptions': json['descriptions'] == null ? undefined : json['descriptions'],
|
|
257
|
+
'descriptionByLocale': json['descriptionByLocale'] == null ? undefined : json['descriptionByLocale'],
|
|
244
258
|
'allowThirdPartySalesDataSharing': json['allowThirdPartySalesDataSharing'] == null ? undefined : json['allowThirdPartySalesDataSharing'],
|
|
245
259
|
'timeTable': json['timeTable'] == null ? undefined : TimeTableConfigurationInputFromJSON(json['timeTable']),
|
|
246
260
|
'leadPriceNegotiatorAiAgent': json['leadPriceNegotiatorAiAgent'] == null ? undefined : LeadPriceNegotiatorAiAgentConfigurationInputFromJSON(json['leadPriceNegotiatorAiAgent']),
|
|
@@ -273,6 +287,8 @@ export function AccountSettingsInputToJSONTyped(value?: AccountSettingsInput | n
|
|
|
273
287
|
'landingPage': LandingPageInputToJSON(value['landingPage']),
|
|
274
288
|
'leaseToOwn': LeaseToOwnConfigurationInputToJSON(value['leaseToOwn']),
|
|
275
289
|
'description': value['description'],
|
|
290
|
+
'descriptions': value['descriptions'],
|
|
291
|
+
'descriptionByLocale': value['descriptionByLocale'],
|
|
276
292
|
'allowThirdPartySalesDataSharing': value['allowThirdPartySalesDataSharing'],
|
|
277
293
|
'timeTable': TimeTableConfigurationInputToJSON(value['timeTable']),
|
|
278
294
|
'leadPriceNegotiatorAiAgent': LeadPriceNegotiatorAiAgentConfigurationInputToJSON(value['leadPriceNegotiatorAiAgent']),
|
|
@@ -149,11 +149,29 @@ export interface AdminDomainListItemDto {
|
|
|
149
149
|
*/
|
|
150
150
|
customDisplayName: string | null;
|
|
151
151
|
/**
|
|
152
|
-
* Owner's short description shown on the domain's landing page.
|
|
152
|
+
* Owner's short description shown on the domain's landing page, the same in every language.
|
|
153
153
|
* @type {string}
|
|
154
154
|
* @memberof AdminDomainListItemDto
|
|
155
155
|
*/
|
|
156
156
|
ownerDescription: string | null;
|
|
157
|
+
/**
|
|
158
|
+
* Owner's short description by landing page locale (en-gb, nl-be, …).
|
|
159
|
+
* @type {{ [key: string]: string; }}
|
|
160
|
+
* @memberof AdminDomainListItemDto
|
|
161
|
+
*/
|
|
162
|
+
ownerDescriptions: { [key: string]: string; } | null;
|
|
163
|
+
/**
|
|
164
|
+
* Whether the landing page shows the owner's description by locale instead of the single one.
|
|
165
|
+
* @type {boolean}
|
|
166
|
+
* @memberof AdminDomainListItemDto
|
|
167
|
+
*/
|
|
168
|
+
ownerDescriptionByLocale: boolean;
|
|
169
|
+
/**
|
|
170
|
+
* Whether the domain's landing page shows the owner's description; null follows the account.
|
|
171
|
+
* @type {boolean}
|
|
172
|
+
* @memberof AdminDomainListItemDto
|
|
173
|
+
*/
|
|
174
|
+
showOwnerDescription: boolean | null;
|
|
157
175
|
/**
|
|
158
176
|
* ISO 4217 currency code used for domain pricing.
|
|
159
177
|
* @type {string}
|
|
@@ -340,6 +358,9 @@ export function instanceOfAdminDomainListItemDto(value: object): value is AdminD
|
|
|
340
358
|
if (!('displayName' in value) || value['displayName'] === undefined) return false;
|
|
341
359
|
if (!('customDisplayName' in value) || value['customDisplayName'] === undefined) return false;
|
|
342
360
|
if (!('ownerDescription' in value) || value['ownerDescription'] === undefined) return false;
|
|
361
|
+
if (!('ownerDescriptions' in value) || value['ownerDescriptions'] === undefined) return false;
|
|
362
|
+
if (!('ownerDescriptionByLocale' in value) || value['ownerDescriptionByLocale'] === undefined) return false;
|
|
363
|
+
if (!('showOwnerDescription' in value) || value['showOwnerDescription'] === undefined) return false;
|
|
343
364
|
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
344
365
|
if (!('buyNow' in value) || value['buyNow'] === undefined) return false;
|
|
345
366
|
if (!('leaseToOwn' in value) || value['leaseToOwn'] === undefined) return false;
|
|
@@ -389,6 +410,9 @@ export function AdminDomainListItemDtoFromJSONTyped(json: any, ignoreDiscriminat
|
|
|
389
410
|
'displayName': json['displayName'],
|
|
390
411
|
'customDisplayName': json['customDisplayName'],
|
|
391
412
|
'ownerDescription': json['ownerDescription'],
|
|
413
|
+
'ownerDescriptions': json['ownerDescriptions'],
|
|
414
|
+
'ownerDescriptionByLocale': json['ownerDescriptionByLocale'],
|
|
415
|
+
'showOwnerDescription': json['showOwnerDescription'],
|
|
392
416
|
'currencyCode': json['currencyCode'],
|
|
393
417
|
'buyNow': MoneyDtoFromJSON(json['buyNow']),
|
|
394
418
|
'leaseToOwn': LeaseToOwnConfigurationDtoFromJSON(json['leaseToOwn']),
|
|
@@ -439,6 +463,9 @@ export function AdminDomainListItemDtoToJSONTyped(value?: AdminDomainListItemDto
|
|
|
439
463
|
'displayName': value['displayName'],
|
|
440
464
|
'customDisplayName': value['customDisplayName'],
|
|
441
465
|
'ownerDescription': value['ownerDescription'],
|
|
466
|
+
'ownerDescriptions': value['ownerDescriptions'],
|
|
467
|
+
'ownerDescriptionByLocale': value['ownerDescriptionByLocale'],
|
|
468
|
+
'showOwnerDescription': value['showOwnerDescription'],
|
|
442
469
|
'currencyCode': value['currencyCode'],
|
|
443
470
|
'buyNow': MoneyDtoToJSON(value['buyNow']),
|
|
444
471
|
'leaseToOwn': LeaseToOwnConfigurationDtoToJSON(value['leaseToOwn']),
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AutomationActionTypeEnum } from './AutomationActionTypeEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationActionTypeEnumFromJSON,
|
|
19
|
+
AutomationActionTypeEnumFromJSONTyped,
|
|
20
|
+
AutomationActionTypeEnumToJSON,
|
|
21
|
+
AutomationActionTypeEnumToJSONTyped,
|
|
22
|
+
} from './AutomationActionTypeEnum';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AutomationActionDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AutomationActionDto {
|
|
30
|
+
/**
|
|
31
|
+
* What the automation does to the lead.
|
|
32
|
+
* @type {AutomationActionTypeEnum}
|
|
33
|
+
* @memberof AutomationActionDto
|
|
34
|
+
*/
|
|
35
|
+
type: AutomationActionTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Text the action sends to the buyer, with {{variable}} tokens.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AutomationActionDto
|
|
40
|
+
*/
|
|
41
|
+
message: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Quick reply the action sends instead of a message of its own.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AutomationActionDto
|
|
46
|
+
*/
|
|
47
|
+
quickReplyId: string | null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AutomationActionDto interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfAutomationActionDto(value: object): value is AutomationActionDto {
|
|
56
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
57
|
+
if (!('message' in value) || value['message'] === undefined) return false;
|
|
58
|
+
if (!('quickReplyId' in value) || value['quickReplyId'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AutomationActionDtoFromJSON(json: any): AutomationActionDto {
|
|
63
|
+
return AutomationActionDtoFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AutomationActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionDto {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'type': AutomationActionTypeEnumFromJSON(json['type']),
|
|
73
|
+
'message': json['message'],
|
|
74
|
+
'quickReplyId': json['quickReplyId'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function AutomationActionDtoToJSON(json: any): AutomationActionDto {
|
|
79
|
+
return AutomationActionDtoToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function AutomationActionDtoToJSONTyped(value?: AutomationActionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'type': AutomationActionTypeEnumToJSON(value['type']),
|
|
90
|
+
'message': value['message'],
|
|
91
|
+
'quickReplyId': value['quickReplyId'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AutomationActionTypeEnum } from './AutomationActionTypeEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationActionTypeEnumFromJSON,
|
|
19
|
+
AutomationActionTypeEnumFromJSONTyped,
|
|
20
|
+
AutomationActionTypeEnumToJSON,
|
|
21
|
+
AutomationActionTypeEnumToJSONTyped,
|
|
22
|
+
} from './AutomationActionTypeEnum';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AutomationActionInput
|
|
28
|
+
*/
|
|
29
|
+
export interface AutomationActionInput {
|
|
30
|
+
/**
|
|
31
|
+
* What the automation does to the lead.
|
|
32
|
+
* @type {AutomationActionTypeEnum}
|
|
33
|
+
* @memberof AutomationActionInput
|
|
34
|
+
*/
|
|
35
|
+
type: AutomationActionTypeEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Text the action sends to the buyer, with {{variable}} tokens.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof AutomationActionInput
|
|
40
|
+
*/
|
|
41
|
+
message?: string | null;
|
|
42
|
+
/**
|
|
43
|
+
* Quick reply the action sends instead of a message of its own.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof AutomationActionInput
|
|
46
|
+
*/
|
|
47
|
+
quickReplyId?: string | null;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AutomationActionInput interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfAutomationActionInput(value: object): value is AutomationActionInput {
|
|
56
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
57
|
+
return true;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export function AutomationActionInputFromJSON(json: any): AutomationActionInput {
|
|
61
|
+
return AutomationActionInputFromJSONTyped(json, false);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export function AutomationActionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionInput {
|
|
65
|
+
if (json == null) {
|
|
66
|
+
return json;
|
|
67
|
+
}
|
|
68
|
+
return {
|
|
69
|
+
|
|
70
|
+
'type': AutomationActionTypeEnumFromJSON(json['type']),
|
|
71
|
+
'message': json['message'] == null ? undefined : json['message'],
|
|
72
|
+
'quickReplyId': json['quickReplyId'] == null ? undefined : json['quickReplyId'],
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export function AutomationActionInputToJSON(json: any): AutomationActionInput {
|
|
77
|
+
return AutomationActionInputToJSONTyped(json, false);
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export function AutomationActionInputToJSONTyped(value?: AutomationActionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
81
|
+
if (value == null) {
|
|
82
|
+
return value;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'type': AutomationActionTypeEnumToJSON(value['type']),
|
|
88
|
+
'message': value['message'],
|
|
89
|
+
'quickReplyId': value['quickReplyId'],
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* How the action ended.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationActionStatusEnum = {
|
|
21
|
+
EXECUTED: 'executed',
|
|
22
|
+
SKIPPED: 'skipped',
|
|
23
|
+
FAILED: 'failed'
|
|
24
|
+
} as const;
|
|
25
|
+
export type AutomationActionStatusEnum = typeof AutomationActionStatusEnum[keyof typeof AutomationActionStatusEnum];
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
export function instanceOfAutomationActionStatusEnum(value: any): boolean {
|
|
29
|
+
for (const key in AutomationActionStatusEnum) {
|
|
30
|
+
if (Object.prototype.hasOwnProperty.call(AutomationActionStatusEnum, key)) {
|
|
31
|
+
if (AutomationActionStatusEnum[key as keyof typeof AutomationActionStatusEnum] === value) {
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
return false;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export function AutomationActionStatusEnumFromJSON(json: any): AutomationActionStatusEnum {
|
|
40
|
+
return AutomationActionStatusEnumFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export function AutomationActionStatusEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionStatusEnum {
|
|
44
|
+
return json as AutomationActionStatusEnum;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export function AutomationActionStatusEnumToJSON(value?: AutomationActionStatusEnum | null): any {
|
|
48
|
+
return value as any;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export function AutomationActionStatusEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationActionStatusEnum {
|
|
52
|
+
return value as AutomationActionStatusEnum;
|
|
53
|
+
}
|
|
54
|
+
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* What the automation does to the lead.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationActionTypeEnum = {
|
|
21
|
+
REJECT_LEAD_OFFER: 'reject_lead_offer',
|
|
22
|
+
SEND_LEAD_MESSAGE: 'send_lead_message',
|
|
23
|
+
ARCHIVE_LEAD: 'archive_lead',
|
|
24
|
+
MUTE_LEAD: 'mute_lead'
|
|
25
|
+
} as const;
|
|
26
|
+
export type AutomationActionTypeEnum = typeof AutomationActionTypeEnum[keyof typeof AutomationActionTypeEnum];
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
export function instanceOfAutomationActionTypeEnum(value: any): boolean {
|
|
30
|
+
for (const key in AutomationActionTypeEnum) {
|
|
31
|
+
if (Object.prototype.hasOwnProperty.call(AutomationActionTypeEnum, key)) {
|
|
32
|
+
if (AutomationActionTypeEnum[key as keyof typeof AutomationActionTypeEnum] === value) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
return false;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function AutomationActionTypeEnumFromJSON(json: any): AutomationActionTypeEnum {
|
|
41
|
+
return AutomationActionTypeEnumFromJSONTyped(json, false);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function AutomationActionTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionTypeEnum {
|
|
45
|
+
return json as AutomationActionTypeEnum;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function AutomationActionTypeEnumToJSON(value?: AutomationActionTypeEnum | null): any {
|
|
49
|
+
return value as any;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AutomationActionTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationActionTypeEnum {
|
|
53
|
+
return value as AutomationActionTypeEnum;
|
|
54
|
+
}
|
|
55
|
+
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* What the trigger happens to, which triggers are grouped by.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationAggregateEnum = {
|
|
21
|
+
LEAD: 'lead'
|
|
22
|
+
} as const;
|
|
23
|
+
export type AutomationAggregateEnum = typeof AutomationAggregateEnum[keyof typeof AutomationAggregateEnum];
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
export function instanceOfAutomationAggregateEnum(value: any): boolean {
|
|
27
|
+
for (const key in AutomationAggregateEnum) {
|
|
28
|
+
if (Object.prototype.hasOwnProperty.call(AutomationAggregateEnum, key)) {
|
|
29
|
+
if (AutomationAggregateEnum[key as keyof typeof AutomationAggregateEnum] === value) {
|
|
30
|
+
return true;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
return false;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export function AutomationAggregateEnumFromJSON(json: any): AutomationAggregateEnum {
|
|
38
|
+
return AutomationAggregateEnumFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function AutomationAggregateEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationAggregateEnum {
|
|
42
|
+
return json as AutomationAggregateEnum;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export function AutomationAggregateEnumToJSON(value?: AutomationAggregateEnum | null): any {
|
|
46
|
+
return value as any;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export function AutomationAggregateEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationAggregateEnum {
|
|
50
|
+
return value as AutomationAggregateEnum;
|
|
51
|
+
}
|
|
52
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AutomationDelayUnitEnum } from './AutomationDelayUnitEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationDelayUnitEnumFromJSON,
|
|
19
|
+
AutomationDelayUnitEnumFromJSONTyped,
|
|
20
|
+
AutomationDelayUnitEnumToJSON,
|
|
21
|
+
AutomationDelayUnitEnumToJSONTyped,
|
|
22
|
+
} from './AutomationDelayUnitEnum';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AutomationCatalogDelayUnitDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AutomationCatalogDelayUnitDto {
|
|
30
|
+
/**
|
|
31
|
+
* Unit a trigger can wait in.
|
|
32
|
+
* @type {AutomationDelayUnitEnum}
|
|
33
|
+
* @memberof AutomationCatalogDelayUnitDto
|
|
34
|
+
*/
|
|
35
|
+
unit: AutomationDelayUnitEnum;
|
|
36
|
+
/**
|
|
37
|
+
* Smallest amount of the unit.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AutomationCatalogDelayUnitDto
|
|
40
|
+
*/
|
|
41
|
+
minAmount: number;
|
|
42
|
+
/**
|
|
43
|
+
* Largest amount of the unit.
|
|
44
|
+
* @type {number}
|
|
45
|
+
* @memberof AutomationCatalogDelayUnitDto
|
|
46
|
+
*/
|
|
47
|
+
maxAmount: number;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AutomationCatalogDelayUnitDto interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfAutomationCatalogDelayUnitDto(value: object): value is AutomationCatalogDelayUnitDto {
|
|
56
|
+
if (!('unit' in value) || value['unit'] === undefined) return false;
|
|
57
|
+
if (!('minAmount' in value) || value['minAmount'] === undefined) return false;
|
|
58
|
+
if (!('maxAmount' in value) || value['maxAmount'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AutomationCatalogDelayUnitDtoFromJSON(json: any): AutomationCatalogDelayUnitDto {
|
|
63
|
+
return AutomationCatalogDelayUnitDtoFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AutomationCatalogDelayUnitDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationCatalogDelayUnitDto {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'unit': AutomationDelayUnitEnumFromJSON(json['unit']),
|
|
73
|
+
'minAmount': json['minAmount'],
|
|
74
|
+
'maxAmount': json['maxAmount'],
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function AutomationCatalogDelayUnitDtoToJSON(json: any): AutomationCatalogDelayUnitDto {
|
|
79
|
+
return AutomationCatalogDelayUnitDtoToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function AutomationCatalogDelayUnitDtoToJSONTyped(value?: AutomationCatalogDelayUnitDto | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'unit': AutomationDelayUnitEnumToJSON(value['unit']),
|
|
90
|
+
'minAmount': value['minAmount'],
|
|
91
|
+
'maxAmount': value['maxAmount'],
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|