@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
|
@@ -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
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 type { AutomationConditionDto } from './AutomationConditionDto';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfAutomationConditionDto,
|
|
18
|
+
AutomationConditionDtoFromJSON,
|
|
19
|
+
AutomationConditionDtoFromJSONTyped,
|
|
20
|
+
AutomationConditionDtoToJSON,
|
|
21
|
+
} from './AutomationConditionDto';
|
|
22
|
+
import type { AutomationConditionGroupDto } from './AutomationConditionGroupDto';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfAutomationConditionGroupDto,
|
|
25
|
+
AutomationConditionGroupDtoFromJSON,
|
|
26
|
+
AutomationConditionGroupDtoFromJSONTyped,
|
|
27
|
+
AutomationConditionGroupDtoToJSON,
|
|
28
|
+
} from './AutomationConditionGroupDto';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type AutomationConditionGroupDtoChildrenInner
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export type AutomationConditionGroupDtoChildrenInner = { type: 'condition' } & AutomationConditionDto | { type: 'group' } & AutomationConditionGroupDto;
|
|
36
|
+
|
|
37
|
+
export function AutomationConditionGroupDtoChildrenInnerFromJSON(json: any): AutomationConditionGroupDtoChildrenInner {
|
|
38
|
+
return AutomationConditionGroupDtoChildrenInnerFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function AutomationConditionGroupDtoChildrenInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationConditionGroupDtoChildrenInner {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
switch (json['type']) {
|
|
46
|
+
case 'condition':
|
|
47
|
+
return Object.assign({}, AutomationConditionDtoFromJSONTyped(json, true), { type: 'condition' } as const);
|
|
48
|
+
case 'group':
|
|
49
|
+
return Object.assign({}, AutomationConditionGroupDtoFromJSONTyped(json, true), { type: 'group' } as const);
|
|
50
|
+
default:
|
|
51
|
+
throw new Error(`No variant of AutomationConditionGroupDtoChildrenInner exists with 'type=${json['type']}'`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function AutomationConditionGroupDtoChildrenInnerToJSON(json: any): any {
|
|
56
|
+
return AutomationConditionGroupDtoChildrenInnerToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AutomationConditionGroupDtoChildrenInnerToJSONTyped(value?: AutomationConditionGroupDtoChildrenInner | null, ignoreDiscriminator: boolean = false): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
switch (value['type']) {
|
|
64
|
+
case 'condition':
|
|
65
|
+
return Object.assign({}, AutomationConditionDtoToJSON(value), { type: 'condition' } as const);
|
|
66
|
+
case 'group':
|
|
67
|
+
return Object.assign({}, AutomationConditionGroupDtoToJSON(value), { type: 'group' } as const);
|
|
68
|
+
default:
|
|
69
|
+
throw new Error(`No variant of AutomationConditionGroupDtoChildrenInner exists with 'type=${value['type']}'`);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,118 @@
|
|
|
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 { AutomationConditionGroupEvaluationDtoChildrenInner } from './AutomationConditionGroupEvaluationDtoChildrenInner';
|
|
17
|
+
import {
|
|
18
|
+
AutomationConditionGroupEvaluationDtoChildrenInnerFromJSON,
|
|
19
|
+
AutomationConditionGroupEvaluationDtoChildrenInnerFromJSONTyped,
|
|
20
|
+
AutomationConditionGroupEvaluationDtoChildrenInnerToJSON,
|
|
21
|
+
AutomationConditionGroupEvaluationDtoChildrenInnerToJSONTyped,
|
|
22
|
+
} from './AutomationConditionGroupEvaluationDtoChildrenInner';
|
|
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 AutomationConditionGroupEvaluationDto
|
|
35
|
+
*/
|
|
36
|
+
export interface AutomationConditionGroupEvaluationDto {
|
|
37
|
+
/**
|
|
38
|
+
* Marks the node as a group of conditions.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AutomationConditionGroupEvaluationDto
|
|
41
|
+
*/
|
|
42
|
+
type: AutomationConditionGroupEvaluationDtoTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
* How the conditions of the group combined.
|
|
45
|
+
* @type {AutomationGroupOperatorEnum}
|
|
46
|
+
* @memberof AutomationConditionGroupEvaluationDto
|
|
47
|
+
*/
|
|
48
|
+
operator: AutomationGroupOperatorEnum;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the group held.
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof AutomationConditionGroupEvaluationDto
|
|
53
|
+
*/
|
|
54
|
+
result: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* How each condition and nested group of the group went.
|
|
57
|
+
* @type {Array<AutomationConditionGroupEvaluationDtoChildrenInner>}
|
|
58
|
+
* @memberof AutomationConditionGroupEvaluationDto
|
|
59
|
+
*/
|
|
60
|
+
children: Array<AutomationConditionGroupEvaluationDtoChildrenInner>;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* @export
|
|
66
|
+
*/
|
|
67
|
+
export const AutomationConditionGroupEvaluationDtoTypeEnum = {
|
|
68
|
+
GROUP: 'group'
|
|
69
|
+
} as const;
|
|
70
|
+
export type AutomationConditionGroupEvaluationDtoTypeEnum = typeof AutomationConditionGroupEvaluationDtoTypeEnum[keyof typeof AutomationConditionGroupEvaluationDtoTypeEnum];
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* Check if a given object implements the AutomationConditionGroupEvaluationDto interface.
|
|
75
|
+
*/
|
|
76
|
+
export function instanceOfAutomationConditionGroupEvaluationDto(value: object): value is AutomationConditionGroupEvaluationDto {
|
|
77
|
+
if (!('type' in value) || value['type'] === undefined) return false;
|
|
78
|
+
if (!('operator' in value) || value['operator'] === undefined) return false;
|
|
79
|
+
if (!('result' in value) || value['result'] === undefined) return false;
|
|
80
|
+
if (!('children' in value) || value['children'] === undefined) return false;
|
|
81
|
+
return true;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function AutomationConditionGroupEvaluationDtoFromJSON(json: any): AutomationConditionGroupEvaluationDto {
|
|
85
|
+
return AutomationConditionGroupEvaluationDtoFromJSONTyped(json, false);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function AutomationConditionGroupEvaluationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationConditionGroupEvaluationDto {
|
|
89
|
+
if (json == null) {
|
|
90
|
+
return json;
|
|
91
|
+
}
|
|
92
|
+
return {
|
|
93
|
+
|
|
94
|
+
'type': json['type'],
|
|
95
|
+
'operator': AutomationGroupOperatorEnumFromJSON(json['operator']),
|
|
96
|
+
'result': json['result'],
|
|
97
|
+
'children': ((json['children'] as Array<any>).map(AutomationConditionGroupEvaluationDtoChildrenInnerFromJSON)),
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export function AutomationConditionGroupEvaluationDtoToJSON(json: any): AutomationConditionGroupEvaluationDto {
|
|
102
|
+
return AutomationConditionGroupEvaluationDtoToJSONTyped(json, false);
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export function AutomationConditionGroupEvaluationDtoToJSONTyped(value?: AutomationConditionGroupEvaluationDto | null, ignoreDiscriminator: boolean = false): any {
|
|
106
|
+
if (value == null) {
|
|
107
|
+
return value;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
return {
|
|
111
|
+
|
|
112
|
+
'type': value['type'],
|
|
113
|
+
'operator': AutomationGroupOperatorEnumToJSON(value['operator']),
|
|
114
|
+
'result': value['result'],
|
|
115
|
+
'children': ((value['children'] as Array<any>).map(AutomationConditionGroupEvaluationDtoChildrenInnerToJSON)),
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 type { AutomationConditionEvaluationDto } from './AutomationConditionEvaluationDto';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfAutomationConditionEvaluationDto,
|
|
18
|
+
AutomationConditionEvaluationDtoFromJSON,
|
|
19
|
+
AutomationConditionEvaluationDtoFromJSONTyped,
|
|
20
|
+
AutomationConditionEvaluationDtoToJSON,
|
|
21
|
+
} from './AutomationConditionEvaluationDto';
|
|
22
|
+
import type { AutomationConditionGroupEvaluationDto } from './AutomationConditionGroupEvaluationDto';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfAutomationConditionGroupEvaluationDto,
|
|
25
|
+
AutomationConditionGroupEvaluationDtoFromJSON,
|
|
26
|
+
AutomationConditionGroupEvaluationDtoFromJSONTyped,
|
|
27
|
+
AutomationConditionGroupEvaluationDtoToJSON,
|
|
28
|
+
} from './AutomationConditionGroupEvaluationDto';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type AutomationConditionGroupEvaluationDtoChildrenInner
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export type AutomationConditionGroupEvaluationDtoChildrenInner = { type: 'condition' } & AutomationConditionEvaluationDto | { type: 'group' } & AutomationConditionGroupEvaluationDto;
|
|
36
|
+
|
|
37
|
+
export function AutomationConditionGroupEvaluationDtoChildrenInnerFromJSON(json: any): AutomationConditionGroupEvaluationDtoChildrenInner {
|
|
38
|
+
return AutomationConditionGroupEvaluationDtoChildrenInnerFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function AutomationConditionGroupEvaluationDtoChildrenInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationConditionGroupEvaluationDtoChildrenInner {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
switch (json['type']) {
|
|
46
|
+
case 'condition':
|
|
47
|
+
return Object.assign({}, AutomationConditionEvaluationDtoFromJSONTyped(json, true), { type: 'condition' } as const);
|
|
48
|
+
case 'group':
|
|
49
|
+
return Object.assign({}, AutomationConditionGroupEvaluationDtoFromJSONTyped(json, true), { type: 'group' } as const);
|
|
50
|
+
default:
|
|
51
|
+
throw new Error(`No variant of AutomationConditionGroupEvaluationDtoChildrenInner exists with 'type=${json['type']}'`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function AutomationConditionGroupEvaluationDtoChildrenInnerToJSON(json: any): any {
|
|
56
|
+
return AutomationConditionGroupEvaluationDtoChildrenInnerToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AutomationConditionGroupEvaluationDtoChildrenInnerToJSONTyped(value?: AutomationConditionGroupEvaluationDtoChildrenInner | null, ignoreDiscriminator: boolean = false): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
switch (value['type']) {
|
|
64
|
+
case 'condition':
|
|
65
|
+
return Object.assign({}, AutomationConditionEvaluationDtoToJSON(value), { type: 'condition' } as const);
|
|
66
|
+
case 'group':
|
|
67
|
+
return Object.assign({}, AutomationConditionGroupEvaluationDtoToJSON(value), { type: 'group' } as const);
|
|
68
|
+
default:
|
|
69
|
+
throw new Error(`No variant of AutomationConditionGroupEvaluationDtoChildrenInner exists with 'type=${value['type']}'`);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -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 { AutomationGroupOperatorEnum } from './AutomationGroupOperatorEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationGroupOperatorEnumFromJSON,
|
|
19
|
+
AutomationGroupOperatorEnumFromJSONTyped,
|
|
20
|
+
AutomationGroupOperatorEnumToJSON,
|
|
21
|
+
AutomationGroupOperatorEnumToJSONTyped,
|
|
22
|
+
} from './AutomationGroupOperatorEnum';
|
|
23
|
+
import type { AutomationConditionGroupInputChildrenInner } from './AutomationConditionGroupInputChildrenInner';
|
|
24
|
+
import {
|
|
25
|
+
AutomationConditionGroupInputChildrenInnerFromJSON,
|
|
26
|
+
AutomationConditionGroupInputChildrenInnerFromJSONTyped,
|
|
27
|
+
AutomationConditionGroupInputChildrenInnerToJSON,
|
|
28
|
+
AutomationConditionGroupInputChildrenInnerToJSONTyped,
|
|
29
|
+
} from './AutomationConditionGroupInputChildrenInner';
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
* @interface AutomationConditionGroupInput
|
|
35
|
+
*/
|
|
36
|
+
export interface AutomationConditionGroupInput {
|
|
37
|
+
/**
|
|
38
|
+
* Marks the node as a group of conditions.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AutomationConditionGroupInput
|
|
41
|
+
*/
|
|
42
|
+
type: AutomationConditionGroupInputTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
* How the conditions of the group combine.
|
|
45
|
+
* @type {AutomationGroupOperatorEnum}
|
|
46
|
+
* @memberof AutomationConditionGroupInput
|
|
47
|
+
*/
|
|
48
|
+
operator: AutomationGroupOperatorEnum;
|
|
49
|
+
/**
|
|
50
|
+
* Conditions and nested groups of the group.
|
|
51
|
+
* @type {Array<AutomationConditionGroupInputChildrenInner>}
|
|
52
|
+
* @memberof AutomationConditionGroupInput
|
|
53
|
+
*/
|
|
54
|
+
children: Array<AutomationConditionGroupInputChildrenInner>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* @export
|
|
60
|
+
*/
|
|
61
|
+
export const AutomationConditionGroupInputTypeEnum = {
|
|
62
|
+
GROUP: 'group'
|
|
63
|
+
} as const;
|
|
64
|
+
export type AutomationConditionGroupInputTypeEnum = typeof AutomationConditionGroupInputTypeEnum[keyof typeof AutomationConditionGroupInputTypeEnum];
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* Check if a given object implements the AutomationConditionGroupInput interface.
|
|
69
|
+
*/
|
|
70
|
+
export function instanceOfAutomationConditionGroupInput(value: object): value is AutomationConditionGroupInput {
|
|
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 AutomationConditionGroupInputFromJSON(json: any): AutomationConditionGroupInput {
|
|
78
|
+
return AutomationConditionGroupInputFromJSONTyped(json, false);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export function AutomationConditionGroupInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationConditionGroupInput {
|
|
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(AutomationConditionGroupInputChildrenInnerFromJSON)),
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export function AutomationConditionGroupInputToJSON(json: any): AutomationConditionGroupInput {
|
|
94
|
+
return AutomationConditionGroupInputToJSONTyped(json, false);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function AutomationConditionGroupInputToJSONTyped(value?: AutomationConditionGroupInput | 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(AutomationConditionGroupInputChildrenInnerToJSON)),
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
@@ -0,0 +1,73 @@
|
|
|
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 type { AutomationConditionGroupInput } from './AutomationConditionGroupInput';
|
|
16
|
+
import {
|
|
17
|
+
instanceOfAutomationConditionGroupInput,
|
|
18
|
+
AutomationConditionGroupInputFromJSON,
|
|
19
|
+
AutomationConditionGroupInputFromJSONTyped,
|
|
20
|
+
AutomationConditionGroupInputToJSON,
|
|
21
|
+
} from './AutomationConditionGroupInput';
|
|
22
|
+
import type { AutomationConditionInput } from './AutomationConditionInput';
|
|
23
|
+
import {
|
|
24
|
+
instanceOfAutomationConditionInput,
|
|
25
|
+
AutomationConditionInputFromJSON,
|
|
26
|
+
AutomationConditionInputFromJSONTyped,
|
|
27
|
+
AutomationConditionInputToJSON,
|
|
28
|
+
} from './AutomationConditionInput';
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* @type AutomationConditionGroupInputChildrenInner
|
|
32
|
+
*
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export type AutomationConditionGroupInputChildrenInner = { type: 'condition' } & AutomationConditionInput | { type: 'group' } & AutomationConditionGroupInput;
|
|
36
|
+
|
|
37
|
+
export function AutomationConditionGroupInputChildrenInnerFromJSON(json: any): AutomationConditionGroupInputChildrenInner {
|
|
38
|
+
return AutomationConditionGroupInputChildrenInnerFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function AutomationConditionGroupInputChildrenInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationConditionGroupInputChildrenInner {
|
|
42
|
+
if (json == null) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
switch (json['type']) {
|
|
46
|
+
case 'condition':
|
|
47
|
+
return Object.assign({}, AutomationConditionInputFromJSONTyped(json, true), { type: 'condition' } as const);
|
|
48
|
+
case 'group':
|
|
49
|
+
return Object.assign({}, AutomationConditionGroupInputFromJSONTyped(json, true), { type: 'group' } as const);
|
|
50
|
+
default:
|
|
51
|
+
throw new Error(`No variant of AutomationConditionGroupInputChildrenInner exists with 'type=${json['type']}'`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export function AutomationConditionGroupInputChildrenInnerToJSON(json: any): any {
|
|
56
|
+
return AutomationConditionGroupInputChildrenInnerToJSONTyped(json, false);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export function AutomationConditionGroupInputChildrenInnerToJSONTyped(value?: AutomationConditionGroupInputChildrenInner | null, ignoreDiscriminator: boolean = false): any {
|
|
60
|
+
if (value == null) {
|
|
61
|
+
return value;
|
|
62
|
+
}
|
|
63
|
+
switch (value['type']) {
|
|
64
|
+
case 'condition':
|
|
65
|
+
return Object.assign({}, AutomationConditionInputToJSON(value), { type: 'condition' } as const);
|
|
66
|
+
case 'group':
|
|
67
|
+
return Object.assign({}, AutomationConditionGroupInputToJSON(value), { type: 'group' } as const);
|
|
68
|
+
default:
|
|
69
|
+
throw new Error(`No variant of AutomationConditionGroupInputChildrenInner exists with 'type=${value['type']}'`);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
}
|
|
73
|
+
|
|
@@ -0,0 +1,126 @@
|
|
|
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 AutomationConditionInput
|
|
35
|
+
*/
|
|
36
|
+
export interface AutomationConditionInput {
|
|
37
|
+
/**
|
|
38
|
+
* Marks the node as a single comparison.
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof AutomationConditionInput
|
|
41
|
+
*/
|
|
42
|
+
type: AutomationConditionInputTypeEnum;
|
|
43
|
+
/**
|
|
44
|
+
* Data the condition looks at.
|
|
45
|
+
* @type {AutomationFactEnum}
|
|
46
|
+
* @memberof AutomationConditionInput
|
|
47
|
+
*/
|
|
48
|
+
fact: AutomationFactEnum;
|
|
49
|
+
/**
|
|
50
|
+
* How the fact is compared against the value.
|
|
51
|
+
* @type {AutomationOperatorEnum}
|
|
52
|
+
* @memberof AutomationConditionInput
|
|
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 AutomationConditionInput
|
|
59
|
+
*/
|
|
60
|
+
value: any | null;
|
|
61
|
+
/**
|
|
62
|
+
* Currency of the value, for facts that hold money.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof AutomationConditionInput
|
|
65
|
+
*/
|
|
66
|
+
currencyCode?: string | null;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* @export
|
|
72
|
+
*/
|
|
73
|
+
export const AutomationConditionInputTypeEnum = {
|
|
74
|
+
CONDITION: 'condition'
|
|
75
|
+
} as const;
|
|
76
|
+
export type AutomationConditionInputTypeEnum = typeof AutomationConditionInputTypeEnum[keyof typeof AutomationConditionInputTypeEnum];
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Check if a given object implements the AutomationConditionInput interface.
|
|
81
|
+
*/
|
|
82
|
+
export function instanceOfAutomationConditionInput(value: object): value is AutomationConditionInput {
|
|
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
|
+
return true;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export function AutomationConditionInputFromJSON(json: any): AutomationConditionInput {
|
|
91
|
+
return AutomationConditionInputFromJSONTyped(json, false);
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export function AutomationConditionInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationConditionInput {
|
|
95
|
+
if (json == null) {
|
|
96
|
+
return json;
|
|
97
|
+
}
|
|
98
|
+
return {
|
|
99
|
+
|
|
100
|
+
'type': json['type'],
|
|
101
|
+
'fact': AutomationFactEnumFromJSON(json['fact']),
|
|
102
|
+
'operator': AutomationOperatorEnumFromJSON(json['operator']),
|
|
103
|
+
'value': json['value'],
|
|
104
|
+
'currencyCode': json['currencyCode'] == null ? undefined : json['currencyCode'],
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function AutomationConditionInputToJSON(json: any): AutomationConditionInput {
|
|
109
|
+
return AutomationConditionInputToJSONTyped(json, false);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function AutomationConditionInputToJSONTyped(value?: AutomationConditionInput | null, ignoreDiscriminator: boolean = false): any {
|
|
113
|
+
if (value == null) {
|
|
114
|
+
return value;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
return {
|
|
118
|
+
|
|
119
|
+
'type': value['type'],
|
|
120
|
+
'fact': AutomationFactEnumToJSON(value['fact']),
|
|
121
|
+
'operator': AutomationOperatorEnumToJSON(value['operator']),
|
|
122
|
+
'value': value['value'],
|
|
123
|
+
'currencyCode': value['currencyCode'],
|
|
124
|
+
};
|
|
125
|
+
}
|
|
126
|
+
|