@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,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AutomationDelayUnitEnum } from './AutomationDelayUnitEnum';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface AutomationCatalogDelayUnitDto
|
|
17
|
+
*/
|
|
18
|
+
export interface AutomationCatalogDelayUnitDto {
|
|
19
|
+
/**
|
|
20
|
+
* Unit a trigger can wait in.
|
|
21
|
+
* @type {AutomationDelayUnitEnum}
|
|
22
|
+
* @memberof AutomationCatalogDelayUnitDto
|
|
23
|
+
*/
|
|
24
|
+
unit: AutomationDelayUnitEnum;
|
|
25
|
+
/**
|
|
26
|
+
* Smallest amount of the unit.
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof AutomationCatalogDelayUnitDto
|
|
29
|
+
*/
|
|
30
|
+
minAmount: number;
|
|
31
|
+
/**
|
|
32
|
+
* Largest amount of the unit.
|
|
33
|
+
* @type {number}
|
|
34
|
+
* @memberof AutomationCatalogDelayUnitDto
|
|
35
|
+
*/
|
|
36
|
+
maxAmount: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Check if a given object implements the AutomationCatalogDelayUnitDto interface.
|
|
40
|
+
*/
|
|
41
|
+
export declare function instanceOfAutomationCatalogDelayUnitDto(value: object): value is AutomationCatalogDelayUnitDto;
|
|
42
|
+
export declare function AutomationCatalogDelayUnitDtoFromJSON(json: any): AutomationCatalogDelayUnitDto;
|
|
43
|
+
export declare function AutomationCatalogDelayUnitDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationCatalogDelayUnitDto;
|
|
44
|
+
export declare function AutomationCatalogDelayUnitDtoToJSON(json: any): AutomationCatalogDelayUnitDto;
|
|
45
|
+
export declare function AutomationCatalogDelayUnitDtoToJSONTyped(value?: AutomationCatalogDelayUnitDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAutomationCatalogDelayUnitDto = instanceOfAutomationCatalogDelayUnitDto;
|
|
17
|
+
exports.AutomationCatalogDelayUnitDtoFromJSON = AutomationCatalogDelayUnitDtoFromJSON;
|
|
18
|
+
exports.AutomationCatalogDelayUnitDtoFromJSONTyped = AutomationCatalogDelayUnitDtoFromJSONTyped;
|
|
19
|
+
exports.AutomationCatalogDelayUnitDtoToJSON = AutomationCatalogDelayUnitDtoToJSON;
|
|
20
|
+
exports.AutomationCatalogDelayUnitDtoToJSONTyped = AutomationCatalogDelayUnitDtoToJSONTyped;
|
|
21
|
+
var AutomationDelayUnitEnum_1 = require("./AutomationDelayUnitEnum");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the AutomationCatalogDelayUnitDto interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfAutomationCatalogDelayUnitDto(value) {
|
|
26
|
+
if (!('unit' in value) || value['unit'] === undefined)
|
|
27
|
+
return false;
|
|
28
|
+
if (!('minAmount' in value) || value['minAmount'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('maxAmount' in value) || value['maxAmount'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
return true;
|
|
33
|
+
}
|
|
34
|
+
function AutomationCatalogDelayUnitDtoFromJSON(json) {
|
|
35
|
+
return AutomationCatalogDelayUnitDtoFromJSONTyped(json, false);
|
|
36
|
+
}
|
|
37
|
+
function AutomationCatalogDelayUnitDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
38
|
+
if (json == null) {
|
|
39
|
+
return json;
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
'unit': (0, AutomationDelayUnitEnum_1.AutomationDelayUnitEnumFromJSON)(json['unit']),
|
|
43
|
+
'minAmount': json['minAmount'],
|
|
44
|
+
'maxAmount': json['maxAmount'],
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
function AutomationCatalogDelayUnitDtoToJSON(json) {
|
|
48
|
+
return AutomationCatalogDelayUnitDtoToJSONTyped(json, false);
|
|
49
|
+
}
|
|
50
|
+
function AutomationCatalogDelayUnitDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
51
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
52
|
+
if (value == null) {
|
|
53
|
+
return value;
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
'unit': (0, AutomationDelayUnitEnum_1.AutomationDelayUnitEnumToJSON)(value['unit']),
|
|
57
|
+
'minAmount': value['minAmount'],
|
|
58
|
+
'maxAmount': value['maxAmount'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AutomationCatalogTriggerDto } from './AutomationCatalogTriggerDto';
|
|
13
|
+
import type { AutomationCatalogDelayUnitDto } from './AutomationCatalogDelayUnitDto';
|
|
14
|
+
import type { QuickReplyVariableEnum } from './QuickReplyVariableEnum';
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
* @export
|
|
18
|
+
* @interface AutomationCatalogDto
|
|
19
|
+
*/
|
|
20
|
+
export interface AutomationCatalogDto {
|
|
21
|
+
/**
|
|
22
|
+
* Triggers an automation can be built on.
|
|
23
|
+
* @type {Array<AutomationCatalogTriggerDto>}
|
|
24
|
+
* @memberof AutomationCatalogDto
|
|
25
|
+
*/
|
|
26
|
+
triggers: Array<AutomationCatalogTriggerDto>;
|
|
27
|
+
/**
|
|
28
|
+
* Automations an account can have.
|
|
29
|
+
* @type {number}
|
|
30
|
+
* @memberof AutomationCatalogDto
|
|
31
|
+
*/
|
|
32
|
+
maxAutomations: number;
|
|
33
|
+
/**
|
|
34
|
+
* Conditions an automation can have.
|
|
35
|
+
* @type {number}
|
|
36
|
+
* @memberof AutomationCatalogDto
|
|
37
|
+
*/
|
|
38
|
+
maxConditions: number;
|
|
39
|
+
/**
|
|
40
|
+
* Levels of groups an automation can nest, the root included.
|
|
41
|
+
* @type {number}
|
|
42
|
+
* @memberof AutomationCatalogDto
|
|
43
|
+
*/
|
|
44
|
+
maxDepth: number;
|
|
45
|
+
/**
|
|
46
|
+
* Units a trigger can wait in, with the amounts each takes.
|
|
47
|
+
* @type {Array<AutomationCatalogDelayUnitDto>}
|
|
48
|
+
* @memberof AutomationCatalogDto
|
|
49
|
+
*/
|
|
50
|
+
delayUnits: Array<AutomationCatalogDelayUnitDto>;
|
|
51
|
+
/**
|
|
52
|
+
* Currencies a condition on a currency can name.
|
|
53
|
+
* @type {Array<string>}
|
|
54
|
+
* @memberof AutomationCatalogDto
|
|
55
|
+
*/
|
|
56
|
+
currencies: Array<string>;
|
|
57
|
+
/**
|
|
58
|
+
* Variables the message of an action can use.
|
|
59
|
+
* @type {Array<QuickReplyVariableEnum>}
|
|
60
|
+
* @memberof AutomationCatalogDto
|
|
61
|
+
*/
|
|
62
|
+
messageVariables: Array<QuickReplyVariableEnum>;
|
|
63
|
+
/**
|
|
64
|
+
* Characters the message of an action can have.
|
|
65
|
+
* @type {number}
|
|
66
|
+
* @memberof AutomationCatalogDto
|
|
67
|
+
*/
|
|
68
|
+
maxMessageLength: number;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Check if a given object implements the AutomationCatalogDto interface.
|
|
72
|
+
*/
|
|
73
|
+
export declare function instanceOfAutomationCatalogDto(value: object): value is AutomationCatalogDto;
|
|
74
|
+
export declare function AutomationCatalogDtoFromJSON(json: any): AutomationCatalogDto;
|
|
75
|
+
export declare function AutomationCatalogDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationCatalogDto;
|
|
76
|
+
export declare function AutomationCatalogDtoToJSON(json: any): AutomationCatalogDto;
|
|
77
|
+
export declare function AutomationCatalogDtoToJSONTyped(value?: AutomationCatalogDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAutomationCatalogDto = instanceOfAutomationCatalogDto;
|
|
17
|
+
exports.AutomationCatalogDtoFromJSON = AutomationCatalogDtoFromJSON;
|
|
18
|
+
exports.AutomationCatalogDtoFromJSONTyped = AutomationCatalogDtoFromJSONTyped;
|
|
19
|
+
exports.AutomationCatalogDtoToJSON = AutomationCatalogDtoToJSON;
|
|
20
|
+
exports.AutomationCatalogDtoToJSONTyped = AutomationCatalogDtoToJSONTyped;
|
|
21
|
+
var AutomationCatalogTriggerDto_1 = require("./AutomationCatalogTriggerDto");
|
|
22
|
+
var AutomationCatalogDelayUnitDto_1 = require("./AutomationCatalogDelayUnitDto");
|
|
23
|
+
var QuickReplyVariableEnum_1 = require("./QuickReplyVariableEnum");
|
|
24
|
+
/**
|
|
25
|
+
* Check if a given object implements the AutomationCatalogDto interface.
|
|
26
|
+
*/
|
|
27
|
+
function instanceOfAutomationCatalogDto(value) {
|
|
28
|
+
if (!('triggers' in value) || value['triggers'] === undefined)
|
|
29
|
+
return false;
|
|
30
|
+
if (!('maxAutomations' in value) || value['maxAutomations'] === undefined)
|
|
31
|
+
return false;
|
|
32
|
+
if (!('maxConditions' in value) || value['maxConditions'] === undefined)
|
|
33
|
+
return false;
|
|
34
|
+
if (!('maxDepth' in value) || value['maxDepth'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('delayUnits' in value) || value['delayUnits'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('currencies' in value) || value['currencies'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('messageVariables' in value) || value['messageVariables'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('maxMessageLength' in value) || value['maxMessageLength'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function AutomationCatalogDtoFromJSON(json) {
|
|
47
|
+
return AutomationCatalogDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AutomationCatalogDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'triggers': (json['triggers'].map(AutomationCatalogTriggerDto_1.AutomationCatalogTriggerDtoFromJSON)),
|
|
55
|
+
'maxAutomations': json['maxAutomations'],
|
|
56
|
+
'maxConditions': json['maxConditions'],
|
|
57
|
+
'maxDepth': json['maxDepth'],
|
|
58
|
+
'delayUnits': (json['delayUnits'].map(AutomationCatalogDelayUnitDto_1.AutomationCatalogDelayUnitDtoFromJSON)),
|
|
59
|
+
'currencies': json['currencies'],
|
|
60
|
+
'messageVariables': (json['messageVariables'].map(QuickReplyVariableEnum_1.QuickReplyVariableEnumFromJSON)),
|
|
61
|
+
'maxMessageLength': json['maxMessageLength'],
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
function AutomationCatalogDtoToJSON(json) {
|
|
65
|
+
return AutomationCatalogDtoToJSONTyped(json, false);
|
|
66
|
+
}
|
|
67
|
+
function AutomationCatalogDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
68
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
69
|
+
if (value == null) {
|
|
70
|
+
return value;
|
|
71
|
+
}
|
|
72
|
+
return {
|
|
73
|
+
'triggers': (value['triggers'].map(AutomationCatalogTriggerDto_1.AutomationCatalogTriggerDtoToJSON)),
|
|
74
|
+
'maxAutomations': value['maxAutomations'],
|
|
75
|
+
'maxConditions': value['maxConditions'],
|
|
76
|
+
'maxDepth': value['maxDepth'],
|
|
77
|
+
'delayUnits': (value['delayUnits'].map(AutomationCatalogDelayUnitDto_1.AutomationCatalogDelayUnitDtoToJSON)),
|
|
78
|
+
'currencies': value['currencies'],
|
|
79
|
+
'messageVariables': (value['messageVariables'].map(QuickReplyVariableEnum_1.QuickReplyVariableEnumToJSON)),
|
|
80
|
+
'maxMessageLength': value['maxMessageLength'],
|
|
81
|
+
};
|
|
82
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AutomationOperatorEnum } from './AutomationOperatorEnum';
|
|
13
|
+
import type { AutomationFactEnum } from './AutomationFactEnum';
|
|
14
|
+
import type { AutomationFactGroupEnum } from './AutomationFactGroupEnum';
|
|
15
|
+
import type { AutomationFactValueTypeEnum } from './AutomationFactValueTypeEnum';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AutomationCatalogFactDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AutomationCatalogFactDto {
|
|
22
|
+
/**
|
|
23
|
+
* Data a condition can look at.
|
|
24
|
+
* @type {AutomationFactEnum}
|
|
25
|
+
* @memberof AutomationCatalogFactDto
|
|
26
|
+
*/
|
|
27
|
+
fact: AutomationFactEnum;
|
|
28
|
+
/**
|
|
29
|
+
* What the fact is about.
|
|
30
|
+
* @type {AutomationFactGroupEnum}
|
|
31
|
+
* @memberof AutomationCatalogFactDto
|
|
32
|
+
*/
|
|
33
|
+
group: AutomationFactGroupEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Kind of value the fact holds.
|
|
36
|
+
* @type {AutomationFactValueTypeEnum}
|
|
37
|
+
* @memberof AutomationCatalogFactDto
|
|
38
|
+
*/
|
|
39
|
+
valueType: AutomationFactValueTypeEnum;
|
|
40
|
+
/**
|
|
41
|
+
* Operators the fact can be compared with.
|
|
42
|
+
* @type {Array<AutomationOperatorEnum>}
|
|
43
|
+
* @memberof AutomationCatalogFactDto
|
|
44
|
+
*/
|
|
45
|
+
operators: Array<AutomationOperatorEnum>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Check if a given object implements the AutomationCatalogFactDto interface.
|
|
49
|
+
*/
|
|
50
|
+
export declare function instanceOfAutomationCatalogFactDto(value: object): value is AutomationCatalogFactDto;
|
|
51
|
+
export declare function AutomationCatalogFactDtoFromJSON(json: any): AutomationCatalogFactDto;
|
|
52
|
+
export declare function AutomationCatalogFactDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationCatalogFactDto;
|
|
53
|
+
export declare function AutomationCatalogFactDtoToJSON(json: any): AutomationCatalogFactDto;
|
|
54
|
+
export declare function AutomationCatalogFactDtoToJSONTyped(value?: AutomationCatalogFactDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAutomationCatalogFactDto = instanceOfAutomationCatalogFactDto;
|
|
17
|
+
exports.AutomationCatalogFactDtoFromJSON = AutomationCatalogFactDtoFromJSON;
|
|
18
|
+
exports.AutomationCatalogFactDtoFromJSONTyped = AutomationCatalogFactDtoFromJSONTyped;
|
|
19
|
+
exports.AutomationCatalogFactDtoToJSON = AutomationCatalogFactDtoToJSON;
|
|
20
|
+
exports.AutomationCatalogFactDtoToJSONTyped = AutomationCatalogFactDtoToJSONTyped;
|
|
21
|
+
var AutomationOperatorEnum_1 = require("./AutomationOperatorEnum");
|
|
22
|
+
var AutomationFactEnum_1 = require("./AutomationFactEnum");
|
|
23
|
+
var AutomationFactGroupEnum_1 = require("./AutomationFactGroupEnum");
|
|
24
|
+
var AutomationFactValueTypeEnum_1 = require("./AutomationFactValueTypeEnum");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AutomationCatalogFactDto interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfAutomationCatalogFactDto(value) {
|
|
29
|
+
if (!('fact' in value) || value['fact'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('group' in value) || value['group'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('valueType' in value) || value['valueType'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('operators' in value) || value['operators'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
return true;
|
|
38
|
+
}
|
|
39
|
+
function AutomationCatalogFactDtoFromJSON(json) {
|
|
40
|
+
return AutomationCatalogFactDtoFromJSONTyped(json, false);
|
|
41
|
+
}
|
|
42
|
+
function AutomationCatalogFactDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
43
|
+
if (json == null) {
|
|
44
|
+
return json;
|
|
45
|
+
}
|
|
46
|
+
return {
|
|
47
|
+
'fact': (0, AutomationFactEnum_1.AutomationFactEnumFromJSON)(json['fact']),
|
|
48
|
+
'group': (0, AutomationFactGroupEnum_1.AutomationFactGroupEnumFromJSON)(json['group']),
|
|
49
|
+
'valueType': (0, AutomationFactValueTypeEnum_1.AutomationFactValueTypeEnumFromJSON)(json['valueType']),
|
|
50
|
+
'operators': (json['operators'].map(AutomationOperatorEnum_1.AutomationOperatorEnumFromJSON)),
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
function AutomationCatalogFactDtoToJSON(json) {
|
|
54
|
+
return AutomationCatalogFactDtoToJSONTyped(json, false);
|
|
55
|
+
}
|
|
56
|
+
function AutomationCatalogFactDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
57
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
58
|
+
if (value == null) {
|
|
59
|
+
return value;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'fact': (0, AutomationFactEnum_1.AutomationFactEnumToJSON)(value['fact']),
|
|
63
|
+
'group': (0, AutomationFactGroupEnum_1.AutomationFactGroupEnumToJSON)(value['group']),
|
|
64
|
+
'valueType': (0, AutomationFactValueTypeEnum_1.AutomationFactValueTypeEnumToJSON)(value['valueType']),
|
|
65
|
+
'operators': (value['operators'].map(AutomationOperatorEnum_1.AutomationOperatorEnumToJSON)),
|
|
66
|
+
};
|
|
67
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AutomationTriggerEnum } from './AutomationTriggerEnum';
|
|
13
|
+
import type { AutomationActionTypeEnum } from './AutomationActionTypeEnum';
|
|
14
|
+
import type { AutomationAggregateEnum } from './AutomationAggregateEnum';
|
|
15
|
+
import type { AutomationCatalogFactDto } from './AutomationCatalogFactDto';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface AutomationCatalogTriggerDto
|
|
20
|
+
*/
|
|
21
|
+
export interface AutomationCatalogTriggerDto {
|
|
22
|
+
/**
|
|
23
|
+
* What makes an automation be evaluated.
|
|
24
|
+
* @type {AutomationTriggerEnum}
|
|
25
|
+
* @memberof AutomationCatalogTriggerDto
|
|
26
|
+
*/
|
|
27
|
+
trigger: AutomationTriggerEnum;
|
|
28
|
+
/**
|
|
29
|
+
* What the trigger happens to, which triggers are grouped by.
|
|
30
|
+
* @type {AutomationAggregateEnum}
|
|
31
|
+
* @memberof AutomationCatalogTriggerDto
|
|
32
|
+
*/
|
|
33
|
+
aggregate: AutomationAggregateEnum;
|
|
34
|
+
/**
|
|
35
|
+
* Whether an automation of the trigger says how long to wait.
|
|
36
|
+
* @type {boolean}
|
|
37
|
+
* @memberof AutomationCatalogTriggerDto
|
|
38
|
+
*/
|
|
39
|
+
hasDelay: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Facts the conditions of the trigger can use.
|
|
42
|
+
* @type {Array<AutomationCatalogFactDto>}
|
|
43
|
+
* @memberof AutomationCatalogTriggerDto
|
|
44
|
+
*/
|
|
45
|
+
facts: Array<AutomationCatalogFactDto>;
|
|
46
|
+
/**
|
|
47
|
+
* Actions an automation of the trigger can run.
|
|
48
|
+
* @type {Array<AutomationActionTypeEnum>}
|
|
49
|
+
* @memberof AutomationCatalogTriggerDto
|
|
50
|
+
*/
|
|
51
|
+
actions: Array<AutomationActionTypeEnum>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the AutomationCatalogTriggerDto interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfAutomationCatalogTriggerDto(value: object): value is AutomationCatalogTriggerDto;
|
|
57
|
+
export declare function AutomationCatalogTriggerDtoFromJSON(json: any): AutomationCatalogTriggerDto;
|
|
58
|
+
export declare function AutomationCatalogTriggerDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationCatalogTriggerDto;
|
|
59
|
+
export declare function AutomationCatalogTriggerDtoToJSON(json: any): AutomationCatalogTriggerDto;
|
|
60
|
+
export declare function AutomationCatalogTriggerDtoToJSONTyped(value?: AutomationCatalogTriggerDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.instanceOfAutomationCatalogTriggerDto = instanceOfAutomationCatalogTriggerDto;
|
|
17
|
+
exports.AutomationCatalogTriggerDtoFromJSON = AutomationCatalogTriggerDtoFromJSON;
|
|
18
|
+
exports.AutomationCatalogTriggerDtoFromJSONTyped = AutomationCatalogTriggerDtoFromJSONTyped;
|
|
19
|
+
exports.AutomationCatalogTriggerDtoToJSON = AutomationCatalogTriggerDtoToJSON;
|
|
20
|
+
exports.AutomationCatalogTriggerDtoToJSONTyped = AutomationCatalogTriggerDtoToJSONTyped;
|
|
21
|
+
var AutomationTriggerEnum_1 = require("./AutomationTriggerEnum");
|
|
22
|
+
var AutomationActionTypeEnum_1 = require("./AutomationActionTypeEnum");
|
|
23
|
+
var AutomationAggregateEnum_1 = require("./AutomationAggregateEnum");
|
|
24
|
+
var AutomationCatalogFactDto_1 = require("./AutomationCatalogFactDto");
|
|
25
|
+
/**
|
|
26
|
+
* Check if a given object implements the AutomationCatalogTriggerDto interface.
|
|
27
|
+
*/
|
|
28
|
+
function instanceOfAutomationCatalogTriggerDto(value) {
|
|
29
|
+
if (!('trigger' in value) || value['trigger'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
if (!('aggregate' in value) || value['aggregate'] === undefined)
|
|
32
|
+
return false;
|
|
33
|
+
if (!('hasDelay' in value) || value['hasDelay'] === undefined)
|
|
34
|
+
return false;
|
|
35
|
+
if (!('facts' in value) || value['facts'] === undefined)
|
|
36
|
+
return false;
|
|
37
|
+
if (!('actions' in value) || value['actions'] === undefined)
|
|
38
|
+
return false;
|
|
39
|
+
return true;
|
|
40
|
+
}
|
|
41
|
+
function AutomationCatalogTriggerDtoFromJSON(json) {
|
|
42
|
+
return AutomationCatalogTriggerDtoFromJSONTyped(json, false);
|
|
43
|
+
}
|
|
44
|
+
function AutomationCatalogTriggerDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
45
|
+
if (json == null) {
|
|
46
|
+
return json;
|
|
47
|
+
}
|
|
48
|
+
return {
|
|
49
|
+
'trigger': (0, AutomationTriggerEnum_1.AutomationTriggerEnumFromJSON)(json['trigger']),
|
|
50
|
+
'aggregate': (0, AutomationAggregateEnum_1.AutomationAggregateEnumFromJSON)(json['aggregate']),
|
|
51
|
+
'hasDelay': json['hasDelay'],
|
|
52
|
+
'facts': (json['facts'].map(AutomationCatalogFactDto_1.AutomationCatalogFactDtoFromJSON)),
|
|
53
|
+
'actions': (json['actions'].map(AutomationActionTypeEnum_1.AutomationActionTypeEnumFromJSON)),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
function AutomationCatalogTriggerDtoToJSON(json) {
|
|
57
|
+
return AutomationCatalogTriggerDtoToJSONTyped(json, false);
|
|
58
|
+
}
|
|
59
|
+
function AutomationCatalogTriggerDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
60
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
61
|
+
if (value == null) {
|
|
62
|
+
return value;
|
|
63
|
+
}
|
|
64
|
+
return {
|
|
65
|
+
'trigger': (0, AutomationTriggerEnum_1.AutomationTriggerEnumToJSON)(value['trigger']),
|
|
66
|
+
'aggregate': (0, AutomationAggregateEnum_1.AutomationAggregateEnumToJSON)(value['aggregate']),
|
|
67
|
+
'hasDelay': value['hasDelay'],
|
|
68
|
+
'facts': (value['facts'].map(AutomationCatalogFactDto_1.AutomationCatalogFactDtoToJSON)),
|
|
69
|
+
'actions': (value['actions'].map(AutomationActionTypeEnum_1.AutomationActionTypeEnumToJSON)),
|
|
70
|
+
};
|
|
71
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Nameshift
|
|
3
|
+
* 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.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import type { AutomationOperatorEnum } from './AutomationOperatorEnum';
|
|
13
|
+
import type { AutomationFactEnum } from './AutomationFactEnum';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AutomationConditionDto
|
|
18
|
+
*/
|
|
19
|
+
export interface AutomationConditionDto {
|
|
20
|
+
/**
|
|
21
|
+
* Marks the node as a single comparison.
|
|
22
|
+
* @type {string}
|
|
23
|
+
* @memberof AutomationConditionDto
|
|
24
|
+
*/
|
|
25
|
+
type: AutomationConditionDtoTypeEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Data the condition looks at.
|
|
28
|
+
* @type {AutomationFactEnum}
|
|
29
|
+
* @memberof AutomationConditionDto
|
|
30
|
+
*/
|
|
31
|
+
fact: AutomationFactEnum;
|
|
32
|
+
/**
|
|
33
|
+
* How the fact is compared against the value.
|
|
34
|
+
* @type {AutomationOperatorEnum}
|
|
35
|
+
* @memberof AutomationConditionDto
|
|
36
|
+
*/
|
|
37
|
+
operator: AutomationOperatorEnum;
|
|
38
|
+
/**
|
|
39
|
+
* Value the fact is compared against: a text, a number, a boolean or a list of texts.
|
|
40
|
+
* @type {any}
|
|
41
|
+
* @memberof AutomationConditionDto
|
|
42
|
+
*/
|
|
43
|
+
value: any | null;
|
|
44
|
+
/**
|
|
45
|
+
* Currency of the value, for facts that hold money.
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof AutomationConditionDto
|
|
48
|
+
*/
|
|
49
|
+
currencyCode: string | null;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* @export
|
|
53
|
+
*/
|
|
54
|
+
export declare const AutomationConditionDtoTypeEnum: {
|
|
55
|
+
readonly CONDITION: "condition";
|
|
56
|
+
};
|
|
57
|
+
export type AutomationConditionDtoTypeEnum = typeof AutomationConditionDtoTypeEnum[keyof typeof AutomationConditionDtoTypeEnum];
|
|
58
|
+
/**
|
|
59
|
+
* Check if a given object implements the AutomationConditionDto interface.
|
|
60
|
+
*/
|
|
61
|
+
export declare function instanceOfAutomationConditionDto(value: object): value is AutomationConditionDto;
|
|
62
|
+
export declare function AutomationConditionDtoFromJSON(json: any): AutomationConditionDto;
|
|
63
|
+
export declare function AutomationConditionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationConditionDto;
|
|
64
|
+
export declare function AutomationConditionDtoToJSON(json: any): AutomationConditionDto;
|
|
65
|
+
export declare function AutomationConditionDtoToJSONTyped(value?: AutomationConditionDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* Nameshift
|
|
6
|
+
* 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.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1.0
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.AutomationConditionDtoTypeEnum = void 0;
|
|
17
|
+
exports.instanceOfAutomationConditionDto = instanceOfAutomationConditionDto;
|
|
18
|
+
exports.AutomationConditionDtoFromJSON = AutomationConditionDtoFromJSON;
|
|
19
|
+
exports.AutomationConditionDtoFromJSONTyped = AutomationConditionDtoFromJSONTyped;
|
|
20
|
+
exports.AutomationConditionDtoToJSON = AutomationConditionDtoToJSON;
|
|
21
|
+
exports.AutomationConditionDtoToJSONTyped = AutomationConditionDtoToJSONTyped;
|
|
22
|
+
var AutomationOperatorEnum_1 = require("./AutomationOperatorEnum");
|
|
23
|
+
var AutomationFactEnum_1 = require("./AutomationFactEnum");
|
|
24
|
+
/**
|
|
25
|
+
* @export
|
|
26
|
+
*/
|
|
27
|
+
exports.AutomationConditionDtoTypeEnum = {
|
|
28
|
+
CONDITION: 'condition'
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Check if a given object implements the AutomationConditionDto interface.
|
|
32
|
+
*/
|
|
33
|
+
function instanceOfAutomationConditionDto(value) {
|
|
34
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
35
|
+
return false;
|
|
36
|
+
if (!('fact' in value) || value['fact'] === undefined)
|
|
37
|
+
return false;
|
|
38
|
+
if (!('operator' in value) || value['operator'] === undefined)
|
|
39
|
+
return false;
|
|
40
|
+
if (!('value' in value) || value['value'] === undefined)
|
|
41
|
+
return false;
|
|
42
|
+
if (!('currencyCode' in value) || value['currencyCode'] === undefined)
|
|
43
|
+
return false;
|
|
44
|
+
return true;
|
|
45
|
+
}
|
|
46
|
+
function AutomationConditionDtoFromJSON(json) {
|
|
47
|
+
return AutomationConditionDtoFromJSONTyped(json, false);
|
|
48
|
+
}
|
|
49
|
+
function AutomationConditionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
50
|
+
if (json == null) {
|
|
51
|
+
return json;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'type': json['type'],
|
|
55
|
+
'fact': (0, AutomationFactEnum_1.AutomationFactEnumFromJSON)(json['fact']),
|
|
56
|
+
'operator': (0, AutomationOperatorEnum_1.AutomationOperatorEnumFromJSON)(json['operator']),
|
|
57
|
+
'value': json['value'],
|
|
58
|
+
'currencyCode': json['currencyCode'],
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function AutomationConditionDtoToJSON(json) {
|
|
62
|
+
return AutomationConditionDtoToJSONTyped(json, false);
|
|
63
|
+
}
|
|
64
|
+
function AutomationConditionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
65
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
66
|
+
if (value == null) {
|
|
67
|
+
return value;
|
|
68
|
+
}
|
|
69
|
+
return {
|
|
70
|
+
'type': value['type'],
|
|
71
|
+
'fact': (0, AutomationFactEnum_1.AutomationFactEnumToJSON)(value['fact']),
|
|
72
|
+
'operator': (0, AutomationOperatorEnum_1.AutomationOperatorEnumToJSON)(value['operator']),
|
|
73
|
+
'value': value['value'],
|
|
74
|
+
'currencyCode': value['currencyCode'],
|
|
75
|
+
};
|
|
76
|
+
}
|