@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,140 @@
|
|
|
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 { AutomationDelayInput } from './AutomationDelayInput';
|
|
17
|
+
import {
|
|
18
|
+
AutomationDelayInputFromJSON,
|
|
19
|
+
AutomationDelayInputFromJSONTyped,
|
|
20
|
+
AutomationDelayInputToJSON,
|
|
21
|
+
AutomationDelayInputToJSONTyped,
|
|
22
|
+
} from './AutomationDelayInput';
|
|
23
|
+
import type { AutomationTriggerEnum } from './AutomationTriggerEnum';
|
|
24
|
+
import {
|
|
25
|
+
AutomationTriggerEnumFromJSON,
|
|
26
|
+
AutomationTriggerEnumFromJSONTyped,
|
|
27
|
+
AutomationTriggerEnumToJSON,
|
|
28
|
+
AutomationTriggerEnumToJSONTyped,
|
|
29
|
+
} from './AutomationTriggerEnum';
|
|
30
|
+
import type { AutomationActionInput } from './AutomationActionInput';
|
|
31
|
+
import {
|
|
32
|
+
AutomationActionInputFromJSON,
|
|
33
|
+
AutomationActionInputFromJSONTyped,
|
|
34
|
+
AutomationActionInputToJSON,
|
|
35
|
+
AutomationActionInputToJSONTyped,
|
|
36
|
+
} from './AutomationActionInput';
|
|
37
|
+
import type { AutomationConditionGroupInput } from './AutomationConditionGroupInput';
|
|
38
|
+
import {
|
|
39
|
+
AutomationConditionGroupInputFromJSON,
|
|
40
|
+
AutomationConditionGroupInputFromJSONTyped,
|
|
41
|
+
AutomationConditionGroupInputToJSON,
|
|
42
|
+
AutomationConditionGroupInputToJSONTyped,
|
|
43
|
+
} from './AutomationConditionGroupInput';
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
*
|
|
47
|
+
* @export
|
|
48
|
+
* @interface AutomationInput
|
|
49
|
+
*/
|
|
50
|
+
export interface AutomationInput {
|
|
51
|
+
/**
|
|
52
|
+
* Name the seller recognises the automation by.
|
|
53
|
+
* @type {string}
|
|
54
|
+
* @memberof AutomationInput
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
/**
|
|
58
|
+
* Whether the automation is applied.
|
|
59
|
+
* @type {boolean}
|
|
60
|
+
* @memberof AutomationInput
|
|
61
|
+
*/
|
|
62
|
+
enabled?: boolean;
|
|
63
|
+
/**
|
|
64
|
+
* What makes the automation be evaluated.
|
|
65
|
+
* @type {AutomationTriggerEnum}
|
|
66
|
+
* @memberof AutomationInput
|
|
67
|
+
*/
|
|
68
|
+
trigger: AutomationTriggerEnum;
|
|
69
|
+
/**
|
|
70
|
+
* How long the trigger waits before the automation applies.
|
|
71
|
+
* @type {AutomationDelayInput}
|
|
72
|
+
* @memberof AutomationInput
|
|
73
|
+
*/
|
|
74
|
+
delay?: AutomationDelayInput | null;
|
|
75
|
+
/**
|
|
76
|
+
* Conditions that have to hold for the actions to run.
|
|
77
|
+
* @type {AutomationConditionGroupInput}
|
|
78
|
+
* @memberof AutomationInput
|
|
79
|
+
*/
|
|
80
|
+
conditions: AutomationConditionGroupInput;
|
|
81
|
+
/**
|
|
82
|
+
* What the automation does when its conditions hold.
|
|
83
|
+
* @type {Array<AutomationActionInput>}
|
|
84
|
+
* @memberof AutomationInput
|
|
85
|
+
*/
|
|
86
|
+
actions: Array<AutomationActionInput>;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* Check if a given object implements the AutomationInput interface.
|
|
93
|
+
*/
|
|
94
|
+
export function instanceOfAutomationInput(value: object): value is AutomationInput {
|
|
95
|
+
if (!('name' in value) || value['name'] === undefined) return false;
|
|
96
|
+
if (!('trigger' in value) || value['trigger'] === undefined) return false;
|
|
97
|
+
if (!('conditions' in value) || value['conditions'] === undefined) return false;
|
|
98
|
+
if (!('actions' in value) || value['actions'] === undefined) return false;
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export function AutomationInputFromJSON(json: any): AutomationInput {
|
|
103
|
+
return AutomationInputFromJSONTyped(json, false);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
export function AutomationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationInput {
|
|
107
|
+
if (json == null) {
|
|
108
|
+
return json;
|
|
109
|
+
}
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'name': json['name'],
|
|
113
|
+
'enabled': json['enabled'] == null ? undefined : json['enabled'],
|
|
114
|
+
'trigger': AutomationTriggerEnumFromJSON(json['trigger']),
|
|
115
|
+
'delay': json['delay'] == null ? undefined : AutomationDelayInputFromJSON(json['delay']),
|
|
116
|
+
'conditions': AutomationConditionGroupInputFromJSON(json['conditions']),
|
|
117
|
+
'actions': ((json['actions'] as Array<any>).map(AutomationActionInputFromJSON)),
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function AutomationInputToJSON(json: any): AutomationInput {
|
|
122
|
+
return AutomationInputToJSONTyped(json, false);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export function AutomationInputToJSONTyped(value?: AutomationInput | null, ignoreDiscriminator: boolean = false): any {
|
|
126
|
+
if (value == null) {
|
|
127
|
+
return value;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
return {
|
|
131
|
+
|
|
132
|
+
'name': value['name'],
|
|
133
|
+
'enabled': value['enabled'],
|
|
134
|
+
'trigger': AutomationTriggerEnumToJSON(value['trigger']),
|
|
135
|
+
'delay': AutomationDelayInputToJSON(value['delay']),
|
|
136
|
+
'conditions': AutomationConditionGroupInputToJSON(value['conditions']),
|
|
137
|
+
'actions': ((value['actions'] as Array<any>).map(AutomationActionInputToJSON)),
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
|
|
@@ -0,0 +1,65 @@
|
|
|
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 fact is compared against the value.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationOperatorEnum = {
|
|
21
|
+
EQUAL: 'equal',
|
|
22
|
+
NOT_EQUAL: 'not_equal',
|
|
23
|
+
CONTAINS: 'contains',
|
|
24
|
+
NOT_CONTAINS: 'not_contains',
|
|
25
|
+
STARTS_WITH: 'starts_with',
|
|
26
|
+
NOT_STARTS_WITH: 'not_starts_with',
|
|
27
|
+
ENDS_WITH: 'ends_with',
|
|
28
|
+
NOT_ENDS_WITH: 'not_ends_with',
|
|
29
|
+
IN: 'in',
|
|
30
|
+
NOT_IN: 'not_in',
|
|
31
|
+
LESS_THAN: 'less_than',
|
|
32
|
+
LESS_THAN_OR_EQUAL: 'less_than_or_equal',
|
|
33
|
+
GREATER_THAN: 'greater_than',
|
|
34
|
+
GREATER_THAN_OR_EQUAL: 'greater_than_or_equal'
|
|
35
|
+
} as const;
|
|
36
|
+
export type AutomationOperatorEnum = typeof AutomationOperatorEnum[keyof typeof AutomationOperatorEnum];
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
export function instanceOfAutomationOperatorEnum(value: any): boolean {
|
|
40
|
+
for (const key in AutomationOperatorEnum) {
|
|
41
|
+
if (Object.prototype.hasOwnProperty.call(AutomationOperatorEnum, key)) {
|
|
42
|
+
if (AutomationOperatorEnum[key as keyof typeof AutomationOperatorEnum] === value) {
|
|
43
|
+
return true;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return false;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function AutomationOperatorEnumFromJSON(json: any): AutomationOperatorEnum {
|
|
51
|
+
return AutomationOperatorEnumFromJSONTyped(json, false);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export function AutomationOperatorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationOperatorEnum {
|
|
55
|
+
return json as AutomationOperatorEnum;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export function AutomationOperatorEnumToJSON(value?: AutomationOperatorEnum | null): any {
|
|
59
|
+
return value as any;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AutomationOperatorEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationOperatorEnum {
|
|
63
|
+
return value as AutomationOperatorEnum;
|
|
64
|
+
}
|
|
65
|
+
|
|
@@ -0,0 +1,101 @@
|
|
|
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 { AutomationActionStatusEnum } from './AutomationActionStatusEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationActionStatusEnumFromJSON,
|
|
19
|
+
AutomationActionStatusEnumFromJSONTyped,
|
|
20
|
+
AutomationActionStatusEnumToJSON,
|
|
21
|
+
AutomationActionStatusEnumToJSONTyped,
|
|
22
|
+
} from './AutomationActionStatusEnum';
|
|
23
|
+
import type { AutomationActionTypeEnum } from './AutomationActionTypeEnum';
|
|
24
|
+
import {
|
|
25
|
+
AutomationActionTypeEnumFromJSON,
|
|
26
|
+
AutomationActionTypeEnumFromJSONTyped,
|
|
27
|
+
AutomationActionTypeEnumToJSON,
|
|
28
|
+
AutomationActionTypeEnumToJSONTyped,
|
|
29
|
+
} from './AutomationActionTypeEnum';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface AutomationRunActionDto
|
|
35
|
+
*/
|
|
36
|
+
export interface AutomationRunActionDto {
|
|
37
|
+
/**
|
|
38
|
+
* Action the automation ran.
|
|
39
|
+
* @type {AutomationActionTypeEnum}
|
|
40
|
+
* @memberof AutomationRunActionDto
|
|
41
|
+
*/
|
|
42
|
+
type: AutomationActionTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
* How the action ended.
|
|
45
|
+
* @type {AutomationActionStatusEnum}
|
|
46
|
+
* @memberof AutomationRunActionDto
|
|
47
|
+
*/
|
|
48
|
+
status: AutomationActionStatusEnum;
|
|
49
|
+
/**
|
|
50
|
+
* Code of why the action was skipped or failed.
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof AutomationRunActionDto
|
|
53
|
+
*/
|
|
54
|
+
reason: string | null;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Check if a given object implements the AutomationRunActionDto interface.
|
|
61
|
+
*/
|
|
62
|
+
export function instanceOfAutomationRunActionDto(value: object): value is AutomationRunActionDto {
|
|
63
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
64
|
+
if (!('status' in value) || value['status'] === undefined) return false;
|
|
65
|
+
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
66
|
+
return true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export function AutomationRunActionDtoFromJSON(json: any): AutomationRunActionDto {
|
|
70
|
+
return AutomationRunActionDtoFromJSONTyped(json, false);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export function AutomationRunActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunActionDto {
|
|
74
|
+
if (json == null) {
|
|
75
|
+
return json;
|
|
76
|
+
}
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'type': AutomationActionTypeEnumFromJSON(json['type']),
|
|
80
|
+
'status': AutomationActionStatusEnumFromJSON(json['status']),
|
|
81
|
+
'reason': json['reason'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function AutomationRunActionDtoToJSON(json: any): AutomationRunActionDto {
|
|
86
|
+
return AutomationRunActionDtoToJSONTyped(json, false);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function AutomationRunActionDtoToJSONTyped(value?: AutomationRunActionDto | null, ignoreDiscriminator: boolean = false): any {
|
|
90
|
+
if (value == null) {
|
|
91
|
+
return value;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
return {
|
|
95
|
+
|
|
96
|
+
'type': AutomationActionTypeEnumToJSON(value['type']),
|
|
97
|
+
'status': AutomationActionStatusEnumToJSON(value['status']),
|
|
98
|
+
'reason': value['reason'],
|
|
99
|
+
};
|
|
100
|
+
}
|
|
101
|
+
|
|
@@ -0,0 +1,117 @@
|
|
|
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 { AutomationConditionGroupEvaluationDto } from './AutomationConditionGroupEvaluationDto';
|
|
17
|
+
import {
|
|
18
|
+
AutomationConditionGroupEvaluationDtoFromJSON,
|
|
19
|
+
AutomationConditionGroupEvaluationDtoFromJSONTyped,
|
|
20
|
+
AutomationConditionGroupEvaluationDtoToJSON,
|
|
21
|
+
AutomationConditionGroupEvaluationDtoToJSONTyped,
|
|
22
|
+
} from './AutomationConditionGroupEvaluationDto';
|
|
23
|
+
import type { AutomationRunActionDto } from './AutomationRunActionDto';
|
|
24
|
+
import {
|
|
25
|
+
AutomationRunActionDtoFromJSON,
|
|
26
|
+
AutomationRunActionDtoFromJSONTyped,
|
|
27
|
+
AutomationRunActionDtoToJSON,
|
|
28
|
+
AutomationRunActionDtoToJSONTyped,
|
|
29
|
+
} from './AutomationRunActionDto';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface AutomationRunAutomationDto
|
|
35
|
+
*/
|
|
36
|
+
export interface AutomationRunAutomationDto {
|
|
37
|
+
/**
|
|
38
|
+
* Id of the automation, which may no longer exist.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AutomationRunAutomationDto
|
|
41
|
+
*/
|
|
42
|
+
automationId: string;
|
|
43
|
+
/**
|
|
44
|
+
* Name the automation had when it ran.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof AutomationRunAutomationDto
|
|
47
|
+
*/
|
|
48
|
+
automationName: string;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the conditions of the automation held.
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof AutomationRunAutomationDto
|
|
53
|
+
*/
|
|
54
|
+
matched: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* How each condition went, with the value its fact had.
|
|
57
|
+
* @type {AutomationConditionGroupEvaluationDto}
|
|
58
|
+
* @memberof AutomationRunAutomationDto
|
|
59
|
+
*/
|
|
60
|
+
conditions: AutomationConditionGroupEvaluationDto;
|
|
61
|
+
/**
|
|
62
|
+
* Actions of the automation and how each one ended.
|
|
63
|
+
* @type {Array<AutomationRunActionDto>}
|
|
64
|
+
* @memberof AutomationRunAutomationDto
|
|
65
|
+
*/
|
|
66
|
+
actions: Array<AutomationRunActionDto>;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Check if a given object implements the AutomationRunAutomationDto interface.
|
|
71
|
+
*/
|
|
72
|
+
export function instanceOfAutomationRunAutomationDto(value: object): value is AutomationRunAutomationDto {
|
|
73
|
+
if (!('automationId' in value) || value['automationId'] === undefined) return false;
|
|
74
|
+
if (!('automationName' in value) || value['automationName'] === undefined) return false;
|
|
75
|
+
if (!('matched' in value) || value['matched'] === undefined) return false;
|
|
76
|
+
if (!('conditions' in value) || value['conditions'] === undefined) return false;
|
|
77
|
+
if (!('actions' in value) || value['actions'] === undefined) return false;
|
|
78
|
+
return true;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function AutomationRunAutomationDtoFromJSON(json: any): AutomationRunAutomationDto {
|
|
82
|
+
return AutomationRunAutomationDtoFromJSONTyped(json, false);
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export function AutomationRunAutomationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunAutomationDto {
|
|
86
|
+
if (json == null) {
|
|
87
|
+
return json;
|
|
88
|
+
}
|
|
89
|
+
return {
|
|
90
|
+
|
|
91
|
+
'automationId': json['automationId'],
|
|
92
|
+
'automationName': json['automationName'],
|
|
93
|
+
'matched': json['matched'],
|
|
94
|
+
'conditions': AutomationConditionGroupEvaluationDtoFromJSON(json['conditions']),
|
|
95
|
+
'actions': ((json['actions'] as Array<any>).map(AutomationRunActionDtoFromJSON)),
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export function AutomationRunAutomationDtoToJSON(json: any): AutomationRunAutomationDto {
|
|
100
|
+
return AutomationRunAutomationDtoToJSONTyped(json, false);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export function AutomationRunAutomationDtoToJSONTyped(value?: AutomationRunAutomationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
104
|
+
if (value == null) {
|
|
105
|
+
return value;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
|
|
110
|
+
'automationId': value['automationId'],
|
|
111
|
+
'automationName': value['automationName'],
|
|
112
|
+
'matched': value['matched'],
|
|
113
|
+
'conditions': AutomationConditionGroupEvaluationDtoToJSON(value['conditions']),
|
|
114
|
+
'actions': ((value['actions'] as Array<any>).map(AutomationRunActionDtoToJSON)),
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
@@ -0,0 +1,135 @@
|
|
|
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 { AutomationRunAutomationDto } from './AutomationRunAutomationDto';
|
|
24
|
+
import {
|
|
25
|
+
AutomationRunAutomationDtoFromJSON,
|
|
26
|
+
AutomationRunAutomationDtoFromJSONTyped,
|
|
27
|
+
AutomationRunAutomationDtoToJSON,
|
|
28
|
+
AutomationRunAutomationDtoToJSONTyped,
|
|
29
|
+
} from './AutomationRunAutomationDto';
|
|
30
|
+
import type { AutomationRunLeadDto } from './AutomationRunLeadDto';
|
|
31
|
+
import {
|
|
32
|
+
AutomationRunLeadDtoFromJSON,
|
|
33
|
+
AutomationRunLeadDtoFromJSONTyped,
|
|
34
|
+
AutomationRunLeadDtoToJSON,
|
|
35
|
+
AutomationRunLeadDtoToJSONTyped,
|
|
36
|
+
} from './AutomationRunLeadDto';
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @export
|
|
41
|
+
* @interface AutomationRunDto
|
|
42
|
+
*/
|
|
43
|
+
export interface AutomationRunDto {
|
|
44
|
+
/**
|
|
45
|
+
* Run id.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AutomationRunDto
|
|
48
|
+
*/
|
|
49
|
+
id: string;
|
|
50
|
+
/**
|
|
51
|
+
* What made the automations be evaluated.
|
|
52
|
+
* @type {AutomationTriggerEnum}
|
|
53
|
+
* @memberof AutomationRunDto
|
|
54
|
+
*/
|
|
55
|
+
trigger: AutomationTriggerEnum;
|
|
56
|
+
/**
|
|
57
|
+
* Whether any automation of the run matched.
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof AutomationRunDto
|
|
60
|
+
*/
|
|
61
|
+
matched: boolean;
|
|
62
|
+
/**
|
|
63
|
+
* Lead the automations were evaluated for.
|
|
64
|
+
* @type {AutomationRunLeadDto}
|
|
65
|
+
* @memberof AutomationRunDto
|
|
66
|
+
*/
|
|
67
|
+
lead: AutomationRunLeadDto;
|
|
68
|
+
/**
|
|
69
|
+
* Automations evaluated in the run and how each one went.
|
|
70
|
+
* @type {Array<AutomationRunAutomationDto>}
|
|
71
|
+
* @memberof AutomationRunDto
|
|
72
|
+
*/
|
|
73
|
+
automations: Array<AutomationRunAutomationDto>;
|
|
74
|
+
/**
|
|
75
|
+
* When the automations were evaluated.
|
|
76
|
+
* @type {Date}
|
|
77
|
+
* @memberof AutomationRunDto
|
|
78
|
+
*/
|
|
79
|
+
createdAt: Date;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Check if a given object implements the AutomationRunDto interface.
|
|
86
|
+
*/
|
|
87
|
+
export function instanceOfAutomationRunDto(value: object): value is AutomationRunDto {
|
|
88
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
89
|
+
if (!('trigger' in value) || value['trigger'] === undefined) return false;
|
|
90
|
+
if (!('matched' in value) || value['matched'] === undefined) return false;
|
|
91
|
+
if (!('lead' in value) || value['lead'] === undefined) return false;
|
|
92
|
+
if (!('automations' in value) || value['automations'] === undefined) return false;
|
|
93
|
+
if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
|
|
94
|
+
return true;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function AutomationRunDtoFromJSON(json: any): AutomationRunDto {
|
|
98
|
+
return AutomationRunDtoFromJSONTyped(json, false);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function AutomationRunDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunDto {
|
|
102
|
+
if (json == null) {
|
|
103
|
+
return json;
|
|
104
|
+
}
|
|
105
|
+
return {
|
|
106
|
+
|
|
107
|
+
'id': json['id'],
|
|
108
|
+
'trigger': AutomationTriggerEnumFromJSON(json['trigger']),
|
|
109
|
+
'matched': json['matched'],
|
|
110
|
+
'lead': AutomationRunLeadDtoFromJSON(json['lead']),
|
|
111
|
+
'automations': ((json['automations'] as Array<any>).map(AutomationRunAutomationDtoFromJSON)),
|
|
112
|
+
'createdAt': (new Date(json['createdAt'])),
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
export function AutomationRunDtoToJSON(json: any): AutomationRunDto {
|
|
117
|
+
return AutomationRunDtoToJSONTyped(json, false);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export function AutomationRunDtoToJSONTyped(value?: AutomationRunDto | null, ignoreDiscriminator: boolean = false): any {
|
|
121
|
+
if (value == null) {
|
|
122
|
+
return value;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return {
|
|
126
|
+
|
|
127
|
+
'id': value['id'],
|
|
128
|
+
'trigger': AutomationTriggerEnumToJSON(value['trigger']),
|
|
129
|
+
'matched': value['matched'],
|
|
130
|
+
'lead': AutomationRunLeadDtoToJSON(value['lead']),
|
|
131
|
+
'automations': ((value['automations'] as Array<any>).map(AutomationRunAutomationDtoToJSON)),
|
|
132
|
+
'createdAt': ((value['createdAt']).toISOString()),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
@@ -0,0 +1,84 @@
|
|
|
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
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AutomationRunLeadDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AutomationRunLeadDto {
|
|
22
|
+
/**
|
|
23
|
+
* Lead id.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof AutomationRunLeadDto
|
|
26
|
+
*/
|
|
27
|
+
id: string;
|
|
28
|
+
/**
|
|
29
|
+
* Name of the domain the lead is for.
|
|
30
|
+
* @type {string}
|
|
31
|
+
* @memberof AutomationRunLeadDto
|
|
32
|
+
*/
|
|
33
|
+
domainName: string;
|
|
34
|
+
/**
|
|
35
|
+
* Email of the buyer of the lead.
|
|
36
|
+
* @type {string}
|
|
37
|
+
* @memberof AutomationRunLeadDto
|
|
38
|
+
*/
|
|
39
|
+
buyerEmail: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Check if a given object implements the AutomationRunLeadDto interface.
|
|
44
|
+
*/
|
|
45
|
+
export function instanceOfAutomationRunLeadDto(value: object): value is AutomationRunLeadDto {
|
|
46
|
+
if (!('id' in value) || value['id'] === undefined) return false;
|
|
47
|
+
if (!('domainName' in value) || value['domainName'] === undefined) return false;
|
|
48
|
+
if (!('buyerEmail' in value) || value['buyerEmail'] === undefined) return false;
|
|
49
|
+
return true;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function AutomationRunLeadDtoFromJSON(json: any): AutomationRunLeadDto {
|
|
53
|
+
return AutomationRunLeadDtoFromJSONTyped(json, false);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function AutomationRunLeadDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationRunLeadDto {
|
|
57
|
+
if (json == null) {
|
|
58
|
+
return json;
|
|
59
|
+
}
|
|
60
|
+
return {
|
|
61
|
+
|
|
62
|
+
'id': json['id'],
|
|
63
|
+
'domainName': json['domainName'],
|
|
64
|
+
'buyerEmail': json['buyerEmail'],
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export function AutomationRunLeadDtoToJSON(json: any): AutomationRunLeadDto {
|
|
69
|
+
return AutomationRunLeadDtoToJSONTyped(json, false);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function AutomationRunLeadDtoToJSONTyped(value?: AutomationRunLeadDto | null, ignoreDiscriminator: boolean = false): any {
|
|
73
|
+
if (value == null) {
|
|
74
|
+
return value;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
return {
|
|
78
|
+
|
|
79
|
+
'id': value['id'],
|
|
80
|
+
'domainName': value['domainName'],
|
|
81
|
+
'buyerEmail': value['buyerEmail'],
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
|