@randock/nameshift-api-client 0.0.552 → 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/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/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/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/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/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/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/LeadMessageDto.ts +9 -0
- package/src/models/PrivateAccountGetMeResponse.ts +2 -1
- package/src/models/SimulateAutomationsInput.ts +133 -0
- package/src/models/index.ts +38 -0
|
@@ -0,0 +1,124 @@
|
|
|
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 { AutomationOperatorEnum } from './AutomationOperatorEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationOperatorEnumFromJSON,
|
|
19
|
+
AutomationOperatorEnumFromJSONTyped,
|
|
20
|
+
AutomationOperatorEnumToJSON,
|
|
21
|
+
AutomationOperatorEnumToJSONTyped,
|
|
22
|
+
} from './AutomationOperatorEnum';
|
|
23
|
+
import type { AutomationFactEnum } from './AutomationFactEnum';
|
|
24
|
+
import {
|
|
25
|
+
AutomationFactEnumFromJSON,
|
|
26
|
+
AutomationFactEnumFromJSONTyped,
|
|
27
|
+
AutomationFactEnumToJSON,
|
|
28
|
+
AutomationFactEnumToJSONTyped,
|
|
29
|
+
} from './AutomationFactEnum';
|
|
30
|
+
import type { AutomationFactGroupEnum } from './AutomationFactGroupEnum';
|
|
31
|
+
import {
|
|
32
|
+
AutomationFactGroupEnumFromJSON,
|
|
33
|
+
AutomationFactGroupEnumFromJSONTyped,
|
|
34
|
+
AutomationFactGroupEnumToJSON,
|
|
35
|
+
AutomationFactGroupEnumToJSONTyped,
|
|
36
|
+
} from './AutomationFactGroupEnum';
|
|
37
|
+
import type { AutomationFactValueTypeEnum } from './AutomationFactValueTypeEnum';
|
|
38
|
+
import {
|
|
39
|
+
AutomationFactValueTypeEnumFromJSON,
|
|
40
|
+
AutomationFactValueTypeEnumFromJSONTyped,
|
|
41
|
+
AutomationFactValueTypeEnumToJSON,
|
|
42
|
+
AutomationFactValueTypeEnumToJSONTyped,
|
|
43
|
+
} from './AutomationFactValueTypeEnum';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface AutomationCatalogFactDto
|
|
49
|
+
*/
|
|
50
|
+
export interface AutomationCatalogFactDto {
|
|
51
|
+
/**
|
|
52
|
+
* Data a condition can look at.
|
|
53
|
+
* @type {AutomationFactEnum}
|
|
54
|
+
* @memberof AutomationCatalogFactDto
|
|
55
|
+
*/
|
|
56
|
+
fact: AutomationFactEnum;
|
|
57
|
+
/**
|
|
58
|
+
* What the fact is about.
|
|
59
|
+
* @type {AutomationFactGroupEnum}
|
|
60
|
+
* @memberof AutomationCatalogFactDto
|
|
61
|
+
*/
|
|
62
|
+
group: AutomationFactGroupEnum;
|
|
63
|
+
/**
|
|
64
|
+
* Kind of value the fact holds.
|
|
65
|
+
* @type {AutomationFactValueTypeEnum}
|
|
66
|
+
* @memberof AutomationCatalogFactDto
|
|
67
|
+
*/
|
|
68
|
+
valueType: AutomationFactValueTypeEnum;
|
|
69
|
+
/**
|
|
70
|
+
* Operators the fact can be compared with.
|
|
71
|
+
* @type {Array<AutomationOperatorEnum>}
|
|
72
|
+
* @memberof AutomationCatalogFactDto
|
|
73
|
+
*/
|
|
74
|
+
operators: Array<AutomationOperatorEnum>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the AutomationCatalogFactDto interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfAutomationCatalogFactDto(value: object): value is AutomationCatalogFactDto {
|
|
83
|
+
if (!('fact' in value) || value['fact'] === undefined) return false;
|
|
84
|
+
if (!('group' in value) || value['group'] === undefined) return false;
|
|
85
|
+
if (!('valueType' in value) || value['valueType'] === undefined) return false;
|
|
86
|
+
if (!('operators' in value) || value['operators'] === undefined) return false;
|
|
87
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function AutomationCatalogFactDtoFromJSON(json: any): AutomationCatalogFactDto {
|
|
91
|
+
return AutomationCatalogFactDtoFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function AutomationCatalogFactDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationCatalogFactDto {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'fact': AutomationFactEnumFromJSON(json['fact']),
|
|
101
|
+
'group': AutomationFactGroupEnumFromJSON(json['group']),
|
|
102
|
+
'valueType': AutomationFactValueTypeEnumFromJSON(json['valueType']),
|
|
103
|
+
'operators': ((json['operators'] as Array<any>).map(AutomationOperatorEnumFromJSON)),
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export function AutomationCatalogFactDtoToJSON(json: any): AutomationCatalogFactDto {
|
|
108
|
+
return AutomationCatalogFactDtoToJSONTyped(json, false);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export function AutomationCatalogFactDtoToJSONTyped(value?: AutomationCatalogFactDto | null, ignoreDiscriminator: boolean = false): any {
|
|
112
|
+
if (value == null) {
|
|
113
|
+
return value;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return {
|
|
117
|
+
|
|
118
|
+
'fact': AutomationFactEnumToJSON(value['fact']),
|
|
119
|
+
'group': AutomationFactGroupEnumToJSON(value['group']),
|
|
120
|
+
'valueType': AutomationFactValueTypeEnumToJSON(value['valueType']),
|
|
121
|
+
'operators': ((value['operators'] as Array<any>).map(AutomationOperatorEnumToJSON)),
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
@@ -0,0 +1,133 @@
|
|
|
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 { AutomationTriggerEnum } from './AutomationTriggerEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationTriggerEnumFromJSON,
|
|
19
|
+
AutomationTriggerEnumFromJSONTyped,
|
|
20
|
+
AutomationTriggerEnumToJSON,
|
|
21
|
+
AutomationTriggerEnumToJSONTyped,
|
|
22
|
+
} from './AutomationTriggerEnum';
|
|
23
|
+
import type { AutomationActionTypeEnum } from './AutomationActionTypeEnum';
|
|
24
|
+
import {
|
|
25
|
+
AutomationActionTypeEnumFromJSON,
|
|
26
|
+
AutomationActionTypeEnumFromJSONTyped,
|
|
27
|
+
AutomationActionTypeEnumToJSON,
|
|
28
|
+
AutomationActionTypeEnumToJSONTyped,
|
|
29
|
+
} from './AutomationActionTypeEnum';
|
|
30
|
+
import type { AutomationAggregateEnum } from './AutomationAggregateEnum';
|
|
31
|
+
import {
|
|
32
|
+
AutomationAggregateEnumFromJSON,
|
|
33
|
+
AutomationAggregateEnumFromJSONTyped,
|
|
34
|
+
AutomationAggregateEnumToJSON,
|
|
35
|
+
AutomationAggregateEnumToJSONTyped,
|
|
36
|
+
} from './AutomationAggregateEnum';
|
|
37
|
+
import type { AutomationCatalogFactDto } from './AutomationCatalogFactDto';
|
|
38
|
+
import {
|
|
39
|
+
AutomationCatalogFactDtoFromJSON,
|
|
40
|
+
AutomationCatalogFactDtoFromJSONTyped,
|
|
41
|
+
AutomationCatalogFactDtoToJSON,
|
|
42
|
+
AutomationCatalogFactDtoToJSONTyped,
|
|
43
|
+
} from './AutomationCatalogFactDto';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface AutomationCatalogTriggerDto
|
|
49
|
+
*/
|
|
50
|
+
export interface AutomationCatalogTriggerDto {
|
|
51
|
+
/**
|
|
52
|
+
* What makes an automation be evaluated.
|
|
53
|
+
* @type {AutomationTriggerEnum}
|
|
54
|
+
* @memberof AutomationCatalogTriggerDto
|
|
55
|
+
*/
|
|
56
|
+
trigger: AutomationTriggerEnum;
|
|
57
|
+
/**
|
|
58
|
+
* What the trigger happens to, which triggers are grouped by.
|
|
59
|
+
* @type {AutomationAggregateEnum}
|
|
60
|
+
* @memberof AutomationCatalogTriggerDto
|
|
61
|
+
*/
|
|
62
|
+
aggregate: AutomationAggregateEnum;
|
|
63
|
+
/**
|
|
64
|
+
* Whether an automation of the trigger says how long to wait.
|
|
65
|
+
* @type {boolean}
|
|
66
|
+
* @memberof AutomationCatalogTriggerDto
|
|
67
|
+
*/
|
|
68
|
+
hasDelay: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Facts the conditions of the trigger can use.
|
|
71
|
+
* @type {Array<AutomationCatalogFactDto>}
|
|
72
|
+
* @memberof AutomationCatalogTriggerDto
|
|
73
|
+
*/
|
|
74
|
+
facts: Array<AutomationCatalogFactDto>;
|
|
75
|
+
/**
|
|
76
|
+
* Actions an automation of the trigger can run.
|
|
77
|
+
* @type {Array<AutomationActionTypeEnum>}
|
|
78
|
+
* @memberof AutomationCatalogTriggerDto
|
|
79
|
+
*/
|
|
80
|
+
actions: Array<AutomationActionTypeEnum>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Check if a given object implements the AutomationCatalogTriggerDto interface.
|
|
87
|
+
*/
|
|
88
|
+
export function instanceOfAutomationCatalogTriggerDto(value: object): value is AutomationCatalogTriggerDto {
|
|
89
|
+
if (!('trigger' in value) || value['trigger'] === undefined) return false;
|
|
90
|
+
if (!('aggregate' in value) || value['aggregate'] === undefined) return false;
|
|
91
|
+
if (!('hasDelay' in value) || value['hasDelay'] === undefined) return false;
|
|
92
|
+
if (!('facts' in value) || value['facts'] === undefined) return false;
|
|
93
|
+
if (!('actions' in value) || value['actions'] === undefined) return false;
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function AutomationCatalogTriggerDtoFromJSON(json: any): AutomationCatalogTriggerDto {
|
|
98
|
+
return AutomationCatalogTriggerDtoFromJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function AutomationCatalogTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationCatalogTriggerDto {
|
|
102
|
+
if (json == null) {
|
|
103
|
+
return json;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'trigger': AutomationTriggerEnumFromJSON(json['trigger']),
|
|
108
|
+
'aggregate': AutomationAggregateEnumFromJSON(json['aggregate']),
|
|
109
|
+
'hasDelay': json['hasDelay'],
|
|
110
|
+
'facts': ((json['facts'] as Array<any>).map(AutomationCatalogFactDtoFromJSON)),
|
|
111
|
+
'actions': ((json['actions'] as Array<any>).map(AutomationActionTypeEnumFromJSON)),
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
export function AutomationCatalogTriggerDtoToJSON(json: any): AutomationCatalogTriggerDto {
|
|
116
|
+
return AutomationCatalogTriggerDtoToJSONTyped(json, false);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export function AutomationCatalogTriggerDtoToJSONTyped(value?: AutomationCatalogTriggerDto | null, ignoreDiscriminator: boolean = false): any {
|
|
120
|
+
if (value == null) {
|
|
121
|
+
return value;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
|
|
126
|
+
'trigger': AutomationTriggerEnumToJSON(value['trigger']),
|
|
127
|
+
'aggregate': AutomationAggregateEnumToJSON(value['aggregate']),
|
|
128
|
+
'hasDelay': value['hasDelay'],
|
|
129
|
+
'facts': ((value['facts'] as Array<any>).map(AutomationCatalogFactDtoToJSON)),
|
|
130
|
+
'actions': ((value['actions'] as Array<any>).map(AutomationActionTypeEnumToJSON)),
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
|
|
@@ -0,0 +1,127 @@
|
|
|
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 { AutomationOperatorEnum } from './AutomationOperatorEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationOperatorEnumFromJSON,
|
|
19
|
+
AutomationOperatorEnumFromJSONTyped,
|
|
20
|
+
AutomationOperatorEnumToJSON,
|
|
21
|
+
AutomationOperatorEnumToJSONTyped,
|
|
22
|
+
} from './AutomationOperatorEnum';
|
|
23
|
+
import type { AutomationFactEnum } from './AutomationFactEnum';
|
|
24
|
+
import {
|
|
25
|
+
AutomationFactEnumFromJSON,
|
|
26
|
+
AutomationFactEnumFromJSONTyped,
|
|
27
|
+
AutomationFactEnumToJSON,
|
|
28
|
+
AutomationFactEnumToJSONTyped,
|
|
29
|
+
} from './AutomationFactEnum';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface AutomationConditionDto
|
|
35
|
+
*/
|
|
36
|
+
export interface AutomationConditionDto {
|
|
37
|
+
/**
|
|
38
|
+
* Marks the node as a single comparison.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AutomationConditionDto
|
|
41
|
+
*/
|
|
42
|
+
type: AutomationConditionDtoTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Data the condition looks at.
|
|
45
|
+
* @type {AutomationFactEnum}
|
|
46
|
+
* @memberof AutomationConditionDto
|
|
47
|
+
*/
|
|
48
|
+
fact: AutomationFactEnum;
|
|
49
|
+
/**
|
|
50
|
+
* How the fact is compared against the value.
|
|
51
|
+
* @type {AutomationOperatorEnum}
|
|
52
|
+
* @memberof AutomationConditionDto
|
|
53
|
+
*/
|
|
54
|
+
operator: AutomationOperatorEnum;
|
|
55
|
+
/**
|
|
56
|
+
* Value the fact is compared against: a text, a number, a boolean or a list of texts.
|
|
57
|
+
* @type {any}
|
|
58
|
+
* @memberof AutomationConditionDto
|
|
59
|
+
*/
|
|
60
|
+
value: any | null;
|
|
61
|
+
/**
|
|
62
|
+
* Currency of the value, for facts that hold money.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AutomationConditionDto
|
|
65
|
+
*/
|
|
66
|
+
currencyCode: string | null;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export const AutomationConditionDtoTypeEnum = {
|
|
74
|
+
CONDITION: 'condition'
|
|
75
|
+
} as const;
|
|
76
|
+
export type AutomationConditionDtoTypeEnum = typeof AutomationConditionDtoTypeEnum[keyof typeof AutomationConditionDtoTypeEnum];
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the AutomationConditionDto interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfAutomationConditionDto(value: object): value is AutomationConditionDto {
|
|
83
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
84
|
+
if (!('fact' in value) || value['fact'] === undefined) return false;
|
|
85
|
+
if (!('operator' in value) || value['operator'] === undefined) return false;
|
|
86
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
87
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
88
|
+
return true;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export function AutomationConditionDtoFromJSON(json: any): AutomationConditionDto {
|
|
92
|
+
return AutomationConditionDtoFromJSONTyped(json, false);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export function AutomationConditionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationConditionDto {
|
|
96
|
+
if (json == null) {
|
|
97
|
+
return json;
|
|
98
|
+
}
|
|
99
|
+
return {
|
|
100
|
+
|
|
101
|
+
'type': json['type'],
|
|
102
|
+
'fact': AutomationFactEnumFromJSON(json['fact']),
|
|
103
|
+
'operator': AutomationOperatorEnumFromJSON(json['operator']),
|
|
104
|
+
'value': json['value'],
|
|
105
|
+
'currencyCode': json['currencyCode'],
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function AutomationConditionDtoToJSON(json: any): AutomationConditionDto {
|
|
110
|
+
return AutomationConditionDtoToJSONTyped(json, false);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function AutomationConditionDtoToJSONTyped(value?: AutomationConditionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
114
|
+
if (value == null) {
|
|
115
|
+
return value;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
return {
|
|
119
|
+
|
|
120
|
+
'type': value['type'],
|
|
121
|
+
'fact': AutomationFactEnumToJSON(value['fact']),
|
|
122
|
+
'operator': AutomationOperatorEnumToJSON(value['operator']),
|
|
123
|
+
'value': value['value'],
|
|
124
|
+
'currencyCode': value['currencyCode'],
|
|
125
|
+
};
|
|
126
|
+
}
|
|
127
|
+
|
|
@@ -0,0 +1,145 @@
|
|
|
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 { AutomationOperatorEnum } from './AutomationOperatorEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationOperatorEnumFromJSON,
|
|
19
|
+
AutomationOperatorEnumFromJSONTyped,
|
|
20
|
+
AutomationOperatorEnumToJSON,
|
|
21
|
+
AutomationOperatorEnumToJSONTyped,
|
|
22
|
+
} from './AutomationOperatorEnum';
|
|
23
|
+
import type { AutomationFactEnum } from './AutomationFactEnum';
|
|
24
|
+
import {
|
|
25
|
+
AutomationFactEnumFromJSON,
|
|
26
|
+
AutomationFactEnumFromJSONTyped,
|
|
27
|
+
AutomationFactEnumToJSON,
|
|
28
|
+
AutomationFactEnumToJSONTyped,
|
|
29
|
+
} from './AutomationFactEnum';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface AutomationConditionEvaluationDto
|
|
35
|
+
*/
|
|
36
|
+
export interface AutomationConditionEvaluationDto {
|
|
37
|
+
/**
|
|
38
|
+
* Marks the node as a single comparison.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AutomationConditionEvaluationDto
|
|
41
|
+
*/
|
|
42
|
+
type: AutomationConditionEvaluationDtoTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Data the condition looked at.
|
|
45
|
+
* @type {AutomationFactEnum}
|
|
46
|
+
* @memberof AutomationConditionEvaluationDto
|
|
47
|
+
*/
|
|
48
|
+
fact: AutomationFactEnum;
|
|
49
|
+
/**
|
|
50
|
+
* How the fact was compared against the value.
|
|
51
|
+
* @type {AutomationOperatorEnum}
|
|
52
|
+
* @memberof AutomationConditionEvaluationDto
|
|
53
|
+
*/
|
|
54
|
+
operator: AutomationOperatorEnum;
|
|
55
|
+
/**
|
|
56
|
+
* Value the fact was compared against: a text, a number, a boolean or a list of texts.
|
|
57
|
+
* @type {any}
|
|
58
|
+
* @memberof AutomationConditionEvaluationDto
|
|
59
|
+
*/
|
|
60
|
+
value: any | null;
|
|
61
|
+
/**
|
|
62
|
+
* Currency of the value, for facts that hold money.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AutomationConditionEvaluationDto
|
|
65
|
+
*/
|
|
66
|
+
currencyCode: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Value the fact had when the condition was evaluated; null when it was not known.
|
|
69
|
+
* @type {any}
|
|
70
|
+
* @memberof AutomationConditionEvaluationDto
|
|
71
|
+
*/
|
|
72
|
+
factValue: any | null;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the condition held.
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof AutomationConditionEvaluationDto
|
|
77
|
+
*/
|
|
78
|
+
result: boolean;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* @export
|
|
84
|
+
*/
|
|
85
|
+
export const AutomationConditionEvaluationDtoTypeEnum = {
|
|
86
|
+
CONDITION: 'condition'
|
|
87
|
+
} as const;
|
|
88
|
+
export type AutomationConditionEvaluationDtoTypeEnum = typeof AutomationConditionEvaluationDtoTypeEnum[keyof typeof AutomationConditionEvaluationDtoTypeEnum];
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the AutomationConditionEvaluationDto interface.
|
|
93
|
+
*/
|
|
94
|
+
export function instanceOfAutomationConditionEvaluationDto(value: object): value is AutomationConditionEvaluationDto {
|
|
95
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
96
|
+
if (!('fact' in value) || value['fact'] === undefined) return false;
|
|
97
|
+
if (!('operator' in value) || value['operator'] === undefined) return false;
|
|
98
|
+
if (!('value' in value) || value['value'] === undefined) return false;
|
|
99
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
|
|
100
|
+
if (!('factValue' in value) || value['factValue'] === undefined) return false;
|
|
101
|
+
if (!('result' in value) || value['result'] === undefined) return false;
|
|
102
|
+
return true;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function AutomationConditionEvaluationDtoFromJSON(json: any): AutomationConditionEvaluationDto {
|
|
106
|
+
return AutomationConditionEvaluationDtoFromJSONTyped(json, false);
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export function AutomationConditionEvaluationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationConditionEvaluationDto {
|
|
110
|
+
if (json == null) {
|
|
111
|
+
return json;
|
|
112
|
+
}
|
|
113
|
+
return {
|
|
114
|
+
|
|
115
|
+
'type': json['type'],
|
|
116
|
+
'fact': AutomationFactEnumFromJSON(json['fact']),
|
|
117
|
+
'operator': AutomationOperatorEnumFromJSON(json['operator']),
|
|
118
|
+
'value': json['value'],
|
|
119
|
+
'currencyCode': json['currencyCode'],
|
|
120
|
+
'factValue': json['factValue'],
|
|
121
|
+
'result': json['result'],
|
|
122
|
+
};
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function AutomationConditionEvaluationDtoToJSON(json: any): AutomationConditionEvaluationDto {
|
|
126
|
+
return AutomationConditionEvaluationDtoToJSONTyped(json, false);
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export function AutomationConditionEvaluationDtoToJSONTyped(value?: AutomationConditionEvaluationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
130
|
+
if (value == null) {
|
|
131
|
+
return value;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return {
|
|
135
|
+
|
|
136
|
+
'type': value['type'],
|
|
137
|
+
'fact': AutomationFactEnumToJSON(value['fact']),
|
|
138
|
+
'operator': AutomationOperatorEnumToJSON(value['operator']),
|
|
139
|
+
'value': value['value'],
|
|
140
|
+
'currencyCode': value['currencyCode'],
|
|
141
|
+
'factValue': value['factValue'],
|
|
142
|
+
'result': value['result'],
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
|
|
@@ -0,0 +1,109 @@
|
|
|
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 { AutomationConditionGroupDtoChildrenInner } from './AutomationConditionGroupDtoChildrenInner';
|
|
17
|
+
import {
|
|
18
|
+
AutomationConditionGroupDtoChildrenInnerFromJSON,
|
|
19
|
+
AutomationConditionGroupDtoChildrenInnerFromJSONTyped,
|
|
20
|
+
AutomationConditionGroupDtoChildrenInnerToJSON,
|
|
21
|
+
AutomationConditionGroupDtoChildrenInnerToJSONTyped,
|
|
22
|
+
} from './AutomationConditionGroupDtoChildrenInner';
|
|
23
|
+
import type { AutomationGroupOperatorEnum } from './AutomationGroupOperatorEnum';
|
|
24
|
+
import {
|
|
25
|
+
AutomationGroupOperatorEnumFromJSON,
|
|
26
|
+
AutomationGroupOperatorEnumFromJSONTyped,
|
|
27
|
+
AutomationGroupOperatorEnumToJSON,
|
|
28
|
+
AutomationGroupOperatorEnumToJSONTyped,
|
|
29
|
+
} from './AutomationGroupOperatorEnum';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface AutomationConditionGroupDto
|
|
35
|
+
*/
|
|
36
|
+
export interface AutomationConditionGroupDto {
|
|
37
|
+
/**
|
|
38
|
+
* Marks the node as a group of conditions.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AutomationConditionGroupDto
|
|
41
|
+
*/
|
|
42
|
+
type: AutomationConditionGroupDtoTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
* How the conditions of the group combine.
|
|
45
|
+
* @type {AutomationGroupOperatorEnum}
|
|
46
|
+
* @memberof AutomationConditionGroupDto
|
|
47
|
+
*/
|
|
48
|
+
operator: AutomationGroupOperatorEnum;
|
|
49
|
+
/**
|
|
50
|
+
* Conditions and nested groups of the group.
|
|
51
|
+
* @type {Array<AutomationConditionGroupDtoChildrenInner>}
|
|
52
|
+
* @memberof AutomationConditionGroupDto
|
|
53
|
+
*/
|
|
54
|
+
children: Array<AutomationConditionGroupDtoChildrenInner>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export const AutomationConditionGroupDtoTypeEnum = {
|
|
62
|
+
GROUP: 'group'
|
|
63
|
+
} as const;
|
|
64
|
+
export type AutomationConditionGroupDtoTypeEnum = typeof AutomationConditionGroupDtoTypeEnum[keyof typeof AutomationConditionGroupDtoTypeEnum];
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the AutomationConditionGroupDto interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfAutomationConditionGroupDto(value: object): value is AutomationConditionGroupDto {
|
|
71
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
72
|
+
if (!('operator' in value) || value['operator'] === undefined) return false;
|
|
73
|
+
if (!('children' in value) || value['children'] === undefined) return false;
|
|
74
|
+
return true;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export function AutomationConditionGroupDtoFromJSON(json: any): AutomationConditionGroupDto {
|
|
78
|
+
return AutomationConditionGroupDtoFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function AutomationConditionGroupDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationConditionGroupDto {
|
|
82
|
+
if (json == null) {
|
|
83
|
+
return json;
|
|
84
|
+
}
|
|
85
|
+
return {
|
|
86
|
+
|
|
87
|
+
'type': json['type'],
|
|
88
|
+
'operator': AutomationGroupOperatorEnumFromJSON(json['operator']),
|
|
89
|
+
'children': ((json['children'] as Array<any>).map(AutomationConditionGroupDtoChildrenInnerFromJSON)),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function AutomationConditionGroupDtoToJSON(json: any): AutomationConditionGroupDto {
|
|
94
|
+
return AutomationConditionGroupDtoToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function AutomationConditionGroupDtoToJSONTyped(value?: AutomationConditionGroupDto | null, ignoreDiscriminator: boolean = false): any {
|
|
98
|
+
if (value == null) {
|
|
99
|
+
return value;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
return {
|
|
103
|
+
|
|
104
|
+
'type': value['type'],
|
|
105
|
+
'operator': AutomationGroupOperatorEnumToJSON(value['operator']),
|
|
106
|
+
'children': ((value['children'] as Array<any>).map(AutomationConditionGroupDtoChildrenInnerToJSON)),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|