@randock/nameshift-api-client 0.0.554 → 0.0.555
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 +5 -0
- package/README.md +3 -3
- package/dist/models/AutomationActionDelayDto.d.ts +45 -0
- package/dist/models/AutomationActionDelayDto.js +60 -0
- package/dist/models/AutomationActionDelayInput.d.ts +45 -0
- package/dist/models/AutomationActionDelayInput.js +60 -0
- package/dist/models/AutomationActionDelayUnitEnum.d.ts +25 -0
- package/dist/models/AutomationActionDelayUnitEnum.js +51 -0
- package/dist/models/AutomationActionDto.d.ts +7 -0
- package/dist/models/AutomationActionDto.js +5 -0
- package/dist/models/AutomationActionInput.d.ts +7 -0
- package/dist/models/AutomationActionInput.js +3 -0
- package/dist/models/AutomationActionStatusEnum.d.ts +2 -0
- package/dist/models/AutomationActionStatusEnum.js +3 -1
- package/dist/models/AutomationActionTypeEnum.d.ts +1 -0
- package/dist/models/AutomationActionTypeEnum.js +2 -1
- package/dist/models/AutomationCatalogActionDelayUnitDto.d.ts +45 -0
- package/dist/models/AutomationCatalogActionDelayUnitDto.js +60 -0
- package/dist/models/AutomationCatalogDto.d.ts +14 -0
- package/dist/models/AutomationCatalogDto.js +10 -0
- package/dist/models/AutomationRunActionDto.d.ts +7 -1
- package/dist/models/AutomationRunActionDto.js +4 -0
- package/dist/models/AutomationSimulationDelayedActionDto.d.ts +40 -0
- package/dist/models/AutomationSimulationDelayedActionDto.js +57 -0
- package/dist/models/AutomationSimulationDto.d.ts +7 -0
- package/dist/models/AutomationSimulationDto.js +5 -0
- package/dist/models/index.d.ts +5 -0
- package/dist/models/index.js +5 -0
- package/package.json +1 -1
- package/src/models/AutomationActionDelayDto.ts +94 -0
- package/src/models/AutomationActionDelayInput.ts +94 -0
- package/src/models/AutomationActionDelayUnitEnum.ts +53 -0
- package/src/models/AutomationActionDto.ts +16 -0
- package/src/models/AutomationActionInput.ts +15 -0
- package/src/models/AutomationActionStatusEnum.ts +3 -1
- package/src/models/AutomationActionTypeEnum.ts +2 -1
- package/src/models/AutomationCatalogActionDelayUnitDto.ts +94 -0
- package/src/models/AutomationCatalogDto.ts +32 -0
- package/src/models/AutomationRunActionDto.ts +10 -1
- package/src/models/AutomationSimulationDelayedActionDto.ts +92 -0
- package/src/models/AutomationSimulationDto.ts +16 -0
- package/src/models/index.ts +5 -0
|
@@ -30,11 +30,17 @@ export interface AutomationRunActionDto {
|
|
|
30
30
|
*/
|
|
31
31
|
status: AutomationActionStatusEnum;
|
|
32
32
|
/**
|
|
33
|
-
* Code of why the action was skipped or
|
|
33
|
+
* Code of why the action was skipped, failed or called off.
|
|
34
34
|
* @type {string}
|
|
35
35
|
* @memberof AutomationRunActionDto
|
|
36
36
|
*/
|
|
37
37
|
reason: string | null;
|
|
38
|
+
/**
|
|
39
|
+
* When an action that waits was due.
|
|
40
|
+
* @type {Date}
|
|
41
|
+
* @memberof AutomationRunActionDto
|
|
42
|
+
*/
|
|
43
|
+
scheduledFor: Date | null;
|
|
38
44
|
}
|
|
39
45
|
/**
|
|
40
46
|
* Check if a given object implements the AutomationRunActionDto interface.
|
|
@@ -30,6 +30,8 @@ function instanceOfAutomationRunActionDto(value) {
|
|
|
30
30
|
return false;
|
|
31
31
|
if (!('reason' in value) || value['reason'] === undefined)
|
|
32
32
|
return false;
|
|
33
|
+
if (!('scheduledFor' in value) || value['scheduledFor'] === undefined)
|
|
34
|
+
return false;
|
|
33
35
|
return true;
|
|
34
36
|
}
|
|
35
37
|
function AutomationRunActionDtoFromJSON(json) {
|
|
@@ -43,6 +45,7 @@ function AutomationRunActionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
43
45
|
'type': (0, AutomationActionTypeEnum_1.AutomationActionTypeEnumFromJSON)(json['type']),
|
|
44
46
|
'status': (0, AutomationActionStatusEnum_1.AutomationActionStatusEnumFromJSON)(json['status']),
|
|
45
47
|
'reason': json['reason'],
|
|
48
|
+
'scheduledFor': (json['scheduledFor'] == null ? null : new Date(json['scheduledFor'])),
|
|
46
49
|
};
|
|
47
50
|
}
|
|
48
51
|
function AutomationRunActionDtoToJSON(json) {
|
|
@@ -57,5 +60,6 @@ function AutomationRunActionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
57
60
|
'type': (0, AutomationActionTypeEnum_1.AutomationActionTypeEnumToJSON)(value['type']),
|
|
58
61
|
'status': (0, AutomationActionStatusEnum_1.AutomationActionStatusEnumToJSON)(value['status']),
|
|
59
62
|
'reason': value['reason'],
|
|
63
|
+
'scheduledFor': (value['scheduledFor'] == null ? null : value['scheduledFor'].toISOString()),
|
|
60
64
|
};
|
|
61
65
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
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 { AutomationActionTypeEnum } from './AutomationActionTypeEnum';
|
|
13
|
+
import type { AutomationActionDelayDto } from './AutomationActionDelayDto';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface AutomationSimulationDelayedActionDto
|
|
18
|
+
*/
|
|
19
|
+
export interface AutomationSimulationDelayedActionDto {
|
|
20
|
+
/**
|
|
21
|
+
* Action that waits.
|
|
22
|
+
* @type {AutomationActionTypeEnum}
|
|
23
|
+
* @memberof AutomationSimulationDelayedActionDto
|
|
24
|
+
*/
|
|
25
|
+
type: AutomationActionTypeEnum;
|
|
26
|
+
/**
|
|
27
|
+
* Time the action waits before it runs.
|
|
28
|
+
* @type {AutomationActionDelayDto}
|
|
29
|
+
* @memberof AutomationSimulationDelayedActionDto
|
|
30
|
+
*/
|
|
31
|
+
delay: AutomationActionDelayDto;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Check if a given object implements the AutomationSimulationDelayedActionDto interface.
|
|
35
|
+
*/
|
|
36
|
+
export declare function instanceOfAutomationSimulationDelayedActionDto(value: object): value is AutomationSimulationDelayedActionDto;
|
|
37
|
+
export declare function AutomationSimulationDelayedActionDtoFromJSON(json: any): AutomationSimulationDelayedActionDto;
|
|
38
|
+
export declare function AutomationSimulationDelayedActionDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationSimulationDelayedActionDto;
|
|
39
|
+
export declare function AutomationSimulationDelayedActionDtoToJSON(json: any): AutomationSimulationDelayedActionDto;
|
|
40
|
+
export declare function AutomationSimulationDelayedActionDtoToJSONTyped(value?: AutomationSimulationDelayedActionDto | null, ignoreDiscriminator?: boolean): any;
|
|
@@ -0,0 +1,57 @@
|
|
|
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.instanceOfAutomationSimulationDelayedActionDto = instanceOfAutomationSimulationDelayedActionDto;
|
|
17
|
+
exports.AutomationSimulationDelayedActionDtoFromJSON = AutomationSimulationDelayedActionDtoFromJSON;
|
|
18
|
+
exports.AutomationSimulationDelayedActionDtoFromJSONTyped = AutomationSimulationDelayedActionDtoFromJSONTyped;
|
|
19
|
+
exports.AutomationSimulationDelayedActionDtoToJSON = AutomationSimulationDelayedActionDtoToJSON;
|
|
20
|
+
exports.AutomationSimulationDelayedActionDtoToJSONTyped = AutomationSimulationDelayedActionDtoToJSONTyped;
|
|
21
|
+
var AutomationActionTypeEnum_1 = require("./AutomationActionTypeEnum");
|
|
22
|
+
var AutomationActionDelayDto_1 = require("./AutomationActionDelayDto");
|
|
23
|
+
/**
|
|
24
|
+
* Check if a given object implements the AutomationSimulationDelayedActionDto interface.
|
|
25
|
+
*/
|
|
26
|
+
function instanceOfAutomationSimulationDelayedActionDto(value) {
|
|
27
|
+
if (!('type' in value) || value['type'] === undefined)
|
|
28
|
+
return false;
|
|
29
|
+
if (!('delay' in value) || value['delay'] === undefined)
|
|
30
|
+
return false;
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
function AutomationSimulationDelayedActionDtoFromJSON(json) {
|
|
34
|
+
return AutomationSimulationDelayedActionDtoFromJSONTyped(json, false);
|
|
35
|
+
}
|
|
36
|
+
function AutomationSimulationDelayedActionDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
37
|
+
if (json == null) {
|
|
38
|
+
return json;
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
'type': (0, AutomationActionTypeEnum_1.AutomationActionTypeEnumFromJSON)(json['type']),
|
|
42
|
+
'delay': (0, AutomationActionDelayDto_1.AutomationActionDelayDtoFromJSON)(json['delay']),
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
function AutomationSimulationDelayedActionDtoToJSON(json) {
|
|
46
|
+
return AutomationSimulationDelayedActionDtoToJSONTyped(json, false);
|
|
47
|
+
}
|
|
48
|
+
function AutomationSimulationDelayedActionDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
49
|
+
if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
|
|
50
|
+
if (value == null) {
|
|
51
|
+
return value;
|
|
52
|
+
}
|
|
53
|
+
return {
|
|
54
|
+
'type': (0, AutomationActionTypeEnum_1.AutomationActionTypeEnumToJSON)(value['type']),
|
|
55
|
+
'delay': (0, AutomationActionDelayDto_1.AutomationActionDelayDtoToJSON)(value['delay']),
|
|
56
|
+
};
|
|
57
|
+
}
|
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
*/
|
|
12
12
|
import type { AutomationConditionGroupEvaluationDto } from './AutomationConditionGroupEvaluationDto';
|
|
13
13
|
import type { AutomationActionTypeEnum } from './AutomationActionTypeEnum';
|
|
14
|
+
import type { AutomationSimulationDelayedActionDto } from './AutomationSimulationDelayedActionDto';
|
|
14
15
|
/**
|
|
15
16
|
*
|
|
16
17
|
* @export
|
|
@@ -53,6 +54,12 @@ export interface AutomationSimulationDto {
|
|
|
53
54
|
* @memberof AutomationSimulationDto
|
|
54
55
|
*/
|
|
55
56
|
actions: Array<AutomationActionTypeEnum>;
|
|
57
|
+
/**
|
|
58
|
+
* The actions of the automation that wait before they run.
|
|
59
|
+
* @type {Array<AutomationSimulationDelayedActionDto>}
|
|
60
|
+
* @memberof AutomationSimulationDto
|
|
61
|
+
*/
|
|
62
|
+
delayedActions: Array<AutomationSimulationDelayedActionDto>;
|
|
56
63
|
}
|
|
57
64
|
/**
|
|
58
65
|
* Check if a given object implements the AutomationSimulationDto interface.
|
|
@@ -20,6 +20,7 @@ exports.AutomationSimulationDtoToJSON = AutomationSimulationDtoToJSON;
|
|
|
20
20
|
exports.AutomationSimulationDtoToJSONTyped = AutomationSimulationDtoToJSONTyped;
|
|
21
21
|
var AutomationConditionGroupEvaluationDto_1 = require("./AutomationConditionGroupEvaluationDto");
|
|
22
22
|
var AutomationActionTypeEnum_1 = require("./AutomationActionTypeEnum");
|
|
23
|
+
var AutomationSimulationDelayedActionDto_1 = require("./AutomationSimulationDelayedActionDto");
|
|
23
24
|
/**
|
|
24
25
|
* Check if a given object implements the AutomationSimulationDto interface.
|
|
25
26
|
*/
|
|
@@ -36,6 +37,8 @@ function instanceOfAutomationSimulationDto(value) {
|
|
|
36
37
|
return false;
|
|
37
38
|
if (!('actions' in value) || value['actions'] === undefined)
|
|
38
39
|
return false;
|
|
40
|
+
if (!('delayedActions' in value) || value['delayedActions'] === undefined)
|
|
41
|
+
return false;
|
|
39
42
|
return true;
|
|
40
43
|
}
|
|
41
44
|
function AutomationSimulationDtoFromJSON(json) {
|
|
@@ -52,6 +55,7 @@ function AutomationSimulationDtoFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
52
55
|
'matched': json['matched'],
|
|
53
56
|
'conditions': (0, AutomationConditionGroupEvaluationDto_1.AutomationConditionGroupEvaluationDtoFromJSON)(json['conditions']),
|
|
54
57
|
'actions': (json['actions'].map(AutomationActionTypeEnum_1.AutomationActionTypeEnumFromJSON)),
|
|
58
|
+
'delayedActions': (json['delayedActions'].map(AutomationSimulationDelayedActionDto_1.AutomationSimulationDelayedActionDtoFromJSON)),
|
|
55
59
|
};
|
|
56
60
|
}
|
|
57
61
|
function AutomationSimulationDtoToJSON(json) {
|
|
@@ -69,5 +73,6 @@ function AutomationSimulationDtoToJSONTyped(value, ignoreDiscriminator) {
|
|
|
69
73
|
'matched': value['matched'],
|
|
70
74
|
'conditions': (0, AutomationConditionGroupEvaluationDto_1.AutomationConditionGroupEvaluationDtoToJSON)(value['conditions']),
|
|
71
75
|
'actions': (value['actions'].map(AutomationActionTypeEnum_1.AutomationActionTypeEnumToJSON)),
|
|
76
|
+
'delayedActions': (value['delayedActions'].map(AutomationSimulationDelayedActionDto_1.AutomationSimulationDelayedActionDtoToJSON)),
|
|
72
77
|
};
|
|
73
78
|
}
|
package/dist/models/index.d.ts
CHANGED
|
@@ -106,11 +106,15 @@ export * from './AuctionListItemDto';
|
|
|
106
106
|
export * from './AuctionListItemDtoDomainInformation';
|
|
107
107
|
export * from './AuctionListItemDtoSellerAccount';
|
|
108
108
|
export * from './AuctionsStatsDto';
|
|
109
|
+
export * from './AutomationActionDelayDto';
|
|
110
|
+
export * from './AutomationActionDelayInput';
|
|
111
|
+
export * from './AutomationActionDelayUnitEnum';
|
|
109
112
|
export * from './AutomationActionDto';
|
|
110
113
|
export * from './AutomationActionInput';
|
|
111
114
|
export * from './AutomationActionStatusEnum';
|
|
112
115
|
export * from './AutomationActionTypeEnum';
|
|
113
116
|
export * from './AutomationAggregateEnum';
|
|
117
|
+
export * from './AutomationCatalogActionDelayUnitDto';
|
|
114
118
|
export * from './AutomationCatalogDelayUnitDto';
|
|
115
119
|
export * from './AutomationCatalogDto';
|
|
116
120
|
export * from './AutomationCatalogFactDto';
|
|
@@ -138,6 +142,7 @@ export * from './AutomationRunActionDto';
|
|
|
138
142
|
export * from './AutomationRunAutomationDto';
|
|
139
143
|
export * from './AutomationRunDto';
|
|
140
144
|
export * from './AutomationRunLeadDto';
|
|
145
|
+
export * from './AutomationSimulationDelayedActionDto';
|
|
141
146
|
export * from './AutomationSimulationDto';
|
|
142
147
|
export * from './AutomationStatusInput';
|
|
143
148
|
export * from './AutomationTriggerEnum';
|
package/dist/models/index.js
CHANGED
|
@@ -124,11 +124,15 @@ __exportStar(require("./AuctionListItemDto"), exports);
|
|
|
124
124
|
__exportStar(require("./AuctionListItemDtoDomainInformation"), exports);
|
|
125
125
|
__exportStar(require("./AuctionListItemDtoSellerAccount"), exports);
|
|
126
126
|
__exportStar(require("./AuctionsStatsDto"), exports);
|
|
127
|
+
__exportStar(require("./AutomationActionDelayDto"), exports);
|
|
128
|
+
__exportStar(require("./AutomationActionDelayInput"), exports);
|
|
129
|
+
__exportStar(require("./AutomationActionDelayUnitEnum"), exports);
|
|
127
130
|
__exportStar(require("./AutomationActionDto"), exports);
|
|
128
131
|
__exportStar(require("./AutomationActionInput"), exports);
|
|
129
132
|
__exportStar(require("./AutomationActionStatusEnum"), exports);
|
|
130
133
|
__exportStar(require("./AutomationActionTypeEnum"), exports);
|
|
131
134
|
__exportStar(require("./AutomationAggregateEnum"), exports);
|
|
135
|
+
__exportStar(require("./AutomationCatalogActionDelayUnitDto"), exports);
|
|
132
136
|
__exportStar(require("./AutomationCatalogDelayUnitDto"), exports);
|
|
133
137
|
__exportStar(require("./AutomationCatalogDto"), exports);
|
|
134
138
|
__exportStar(require("./AutomationCatalogFactDto"), exports);
|
|
@@ -156,6 +160,7 @@ __exportStar(require("./AutomationRunActionDto"), exports);
|
|
|
156
160
|
__exportStar(require("./AutomationRunAutomationDto"), exports);
|
|
157
161
|
__exportStar(require("./AutomationRunDto"), exports);
|
|
158
162
|
__exportStar(require("./AutomationRunLeadDto"), exports);
|
|
163
|
+
__exportStar(require("./AutomationSimulationDelayedActionDto"), exports);
|
|
159
164
|
__exportStar(require("./AutomationSimulationDto"), exports);
|
|
160
165
|
__exportStar(require("./AutomationStatusInput"), exports);
|
|
161
166
|
__exportStar(require("./AutomationTriggerEnum"), exports);
|
package/package.json
CHANGED
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AutomationActionDelayUnitEnum } from './AutomationActionDelayUnitEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationActionDelayUnitEnumFromJSON,
|
|
19
|
+
AutomationActionDelayUnitEnumFromJSONTyped,
|
|
20
|
+
AutomationActionDelayUnitEnumToJSON,
|
|
21
|
+
AutomationActionDelayUnitEnumToJSONTyped,
|
|
22
|
+
} from './AutomationActionDelayUnitEnum';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AutomationActionDelayDto
|
|
28
|
+
*/
|
|
29
|
+
export interface AutomationActionDelayDto {
|
|
30
|
+
/**
|
|
31
|
+
* Shortest time the action waits.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AutomationActionDelayDto
|
|
34
|
+
*/
|
|
35
|
+
min: number;
|
|
36
|
+
/**
|
|
37
|
+
* Longest time the action waits; the same as the shortest for a fixed wait.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AutomationActionDelayDto
|
|
40
|
+
*/
|
|
41
|
+
max: number;
|
|
42
|
+
/**
|
|
43
|
+
* Unit of both times.
|
|
44
|
+
* @type {AutomationActionDelayUnitEnum}
|
|
45
|
+
* @memberof AutomationActionDelayDto
|
|
46
|
+
*/
|
|
47
|
+
unit: AutomationActionDelayUnitEnum;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AutomationActionDelayDto interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfAutomationActionDelayDto(value: object): value is AutomationActionDelayDto {
|
|
56
|
+
if (!('min' in value) || value['min'] === undefined) return false;
|
|
57
|
+
if (!('max' in value) || value['max'] === undefined) return false;
|
|
58
|
+
if (!('unit' in value) || value['unit'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AutomationActionDelayDtoFromJSON(json: any): AutomationActionDelayDto {
|
|
63
|
+
return AutomationActionDelayDtoFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AutomationActionDelayDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionDelayDto {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'min': json['min'],
|
|
73
|
+
'max': json['max'],
|
|
74
|
+
'unit': AutomationActionDelayUnitEnumFromJSON(json['unit']),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function AutomationActionDelayDtoToJSON(json: any): AutomationActionDelayDto {
|
|
79
|
+
return AutomationActionDelayDtoToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function AutomationActionDelayDtoToJSONTyped(value?: AutomationActionDelayDto | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'min': value['min'],
|
|
90
|
+
'max': value['max'],
|
|
91
|
+
'unit': AutomationActionDelayUnitEnumToJSON(value['unit']),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Nameshift
|
|
5
|
+
* Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
import { mapValues } from '../runtime';
|
|
16
|
+
import type { AutomationActionDelayUnitEnum } from './AutomationActionDelayUnitEnum';
|
|
17
|
+
import {
|
|
18
|
+
AutomationActionDelayUnitEnumFromJSON,
|
|
19
|
+
AutomationActionDelayUnitEnumFromJSONTyped,
|
|
20
|
+
AutomationActionDelayUnitEnumToJSON,
|
|
21
|
+
AutomationActionDelayUnitEnumToJSONTyped,
|
|
22
|
+
} from './AutomationActionDelayUnitEnum';
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
* @export
|
|
27
|
+
* @interface AutomationActionDelayInput
|
|
28
|
+
*/
|
|
29
|
+
export interface AutomationActionDelayInput {
|
|
30
|
+
/**
|
|
31
|
+
* Shortest time the action waits.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof AutomationActionDelayInput
|
|
34
|
+
*/
|
|
35
|
+
min: number;
|
|
36
|
+
/**
|
|
37
|
+
* Longest time the action waits; the same as the shortest for a fixed wait.
|
|
38
|
+
* @type {number}
|
|
39
|
+
* @memberof AutomationActionDelayInput
|
|
40
|
+
*/
|
|
41
|
+
max: number;
|
|
42
|
+
/**
|
|
43
|
+
* Unit of both times.
|
|
44
|
+
* @type {AutomationActionDelayUnitEnum}
|
|
45
|
+
* @memberof AutomationActionDelayInput
|
|
46
|
+
*/
|
|
47
|
+
unit: AutomationActionDelayUnitEnum;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Check if a given object implements the AutomationActionDelayInput interface.
|
|
54
|
+
*/
|
|
55
|
+
export function instanceOfAutomationActionDelayInput(value: object): value is AutomationActionDelayInput {
|
|
56
|
+
if (!('min' in value) || value['min'] === undefined) return false;
|
|
57
|
+
if (!('max' in value) || value['max'] === undefined) return false;
|
|
58
|
+
if (!('unit' in value) || value['unit'] === undefined) return false;
|
|
59
|
+
return true;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export function AutomationActionDelayInputFromJSON(json: any): AutomationActionDelayInput {
|
|
63
|
+
return AutomationActionDelayInputFromJSONTyped(json, false);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export function AutomationActionDelayInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionDelayInput {
|
|
67
|
+
if (json == null) {
|
|
68
|
+
return json;
|
|
69
|
+
}
|
|
70
|
+
return {
|
|
71
|
+
|
|
72
|
+
'min': json['min'],
|
|
73
|
+
'max': json['max'],
|
|
74
|
+
'unit': AutomationActionDelayUnitEnumFromJSON(json['unit']),
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export function AutomationActionDelayInputToJSON(json: any): AutomationActionDelayInput {
|
|
79
|
+
return AutomationActionDelayInputToJSONTyped(json, false);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export function AutomationActionDelayInputToJSONTyped(value?: AutomationActionDelayInput | null, ignoreDiscriminator: boolean = false): any {
|
|
83
|
+
if (value == null) {
|
|
84
|
+
return value;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
return {
|
|
88
|
+
|
|
89
|
+
'min': value['min'],
|
|
90
|
+
'max': value['max'],
|
|
91
|
+
'unit': AutomationActionDelayUnitEnumToJSON(value['unit']),
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
|
|
@@ -0,0 +1,53 @@
|
|
|
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
|
+
* Unit of both times.
|
|
18
|
+
* @export
|
|
19
|
+
*/
|
|
20
|
+
export const AutomationActionDelayUnitEnum = {
|
|
21
|
+
MINUTES: 'minutes',
|
|
22
|
+
HOURS: 'hours'
|
|
23
|
+
} as const;
|
|
24
|
+
export type AutomationActionDelayUnitEnum = typeof AutomationActionDelayUnitEnum[keyof typeof AutomationActionDelayUnitEnum];
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
export function instanceOfAutomationActionDelayUnitEnum(value: any): boolean {
|
|
28
|
+
for (const key in AutomationActionDelayUnitEnum) {
|
|
29
|
+
if (Object.prototype.hasOwnProperty.call(AutomationActionDelayUnitEnum, key)) {
|
|
30
|
+
if (AutomationActionDelayUnitEnum[key as keyof typeof AutomationActionDelayUnitEnum] === value) {
|
|
31
|
+
return true;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export function AutomationActionDelayUnitEnumFromJSON(json: any): AutomationActionDelayUnitEnum {
|
|
39
|
+
return AutomationActionDelayUnitEnumFromJSONTyped(json, false);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function AutomationActionDelayUnitEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationActionDelayUnitEnum {
|
|
43
|
+
return json as AutomationActionDelayUnitEnum;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export function AutomationActionDelayUnitEnumToJSON(value?: AutomationActionDelayUnitEnum | null): any {
|
|
47
|
+
return value as any;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export function AutomationActionDelayUnitEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationActionDelayUnitEnum {
|
|
51
|
+
return value as AutomationActionDelayUnitEnum;
|
|
52
|
+
}
|
|
53
|
+
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
AutomationActionTypeEnumToJSON,
|
|
21
21
|
AutomationActionTypeEnumToJSONTyped,
|
|
22
22
|
} from './AutomationActionTypeEnum';
|
|
23
|
+
import type { AutomationActionDelayDto } from './AutomationActionDelayDto';
|
|
24
|
+
import {
|
|
25
|
+
AutomationActionDelayDtoFromJSON,
|
|
26
|
+
AutomationActionDelayDtoFromJSONTyped,
|
|
27
|
+
AutomationActionDelayDtoToJSON,
|
|
28
|
+
AutomationActionDelayDtoToJSONTyped,
|
|
29
|
+
} from './AutomationActionDelayDto';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -45,6 +52,12 @@ export interface AutomationActionDto {
|
|
|
45
52
|
* @memberof AutomationActionDto
|
|
46
53
|
*/
|
|
47
54
|
quickReplyId: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Time the action waits before it runs.
|
|
57
|
+
* @type {AutomationActionDelayDto}
|
|
58
|
+
* @memberof AutomationActionDto
|
|
59
|
+
*/
|
|
60
|
+
delay: AutomationActionDelayDto | null;
|
|
48
61
|
}
|
|
49
62
|
|
|
50
63
|
|
|
@@ -56,6 +69,7 @@ export function instanceOfAutomationActionDto(value: object): value is Automatio
|
|
|
56
69
|
if (!('type' in value) || value['type'] === undefined) return false;
|
|
57
70
|
if (!('message' in value) || value['message'] === undefined) return false;
|
|
58
71
|
if (!('quickReplyId' in value) || value['quickReplyId'] === undefined) return false;
|
|
72
|
+
if (!('delay' in value) || value['delay'] === undefined) return false;
|
|
59
73
|
return true;
|
|
60
74
|
}
|
|
61
75
|
|
|
@@ -72,6 +86,7 @@ export function AutomationActionDtoFromJSONTyped(json: any, ignoreDiscriminator:
|
|
|
72
86
|
'type': AutomationActionTypeEnumFromJSON(json['type']),
|
|
73
87
|
'message': json['message'],
|
|
74
88
|
'quickReplyId': json['quickReplyId'],
|
|
89
|
+
'delay': AutomationActionDelayDtoFromJSON(json['delay']),
|
|
75
90
|
};
|
|
76
91
|
}
|
|
77
92
|
|
|
@@ -89,6 +104,7 @@ export function AutomationActionDtoToJSONTyped(value?: AutomationActionDto | nul
|
|
|
89
104
|
'type': AutomationActionTypeEnumToJSON(value['type']),
|
|
90
105
|
'message': value['message'],
|
|
91
106
|
'quickReplyId': value['quickReplyId'],
|
|
107
|
+
'delay': AutomationActionDelayDtoToJSON(value['delay']),
|
|
92
108
|
};
|
|
93
109
|
}
|
|
94
110
|
|
|
@@ -20,6 +20,13 @@ import {
|
|
|
20
20
|
AutomationActionTypeEnumToJSON,
|
|
21
21
|
AutomationActionTypeEnumToJSONTyped,
|
|
22
22
|
} from './AutomationActionTypeEnum';
|
|
23
|
+
import type { AutomationActionDelayInput } from './AutomationActionDelayInput';
|
|
24
|
+
import {
|
|
25
|
+
AutomationActionDelayInputFromJSON,
|
|
26
|
+
AutomationActionDelayInputFromJSONTyped,
|
|
27
|
+
AutomationActionDelayInputToJSON,
|
|
28
|
+
AutomationActionDelayInputToJSONTyped,
|
|
29
|
+
} from './AutomationActionDelayInput';
|
|
23
30
|
|
|
24
31
|
/**
|
|
25
32
|
*
|
|
@@ -45,6 +52,12 @@ export interface AutomationActionInput {
|
|
|
45
52
|
* @memberof AutomationActionInput
|
|
46
53
|
*/
|
|
47
54
|
quickReplyId?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
* Time the action waits before it runs.
|
|
57
|
+
* @type {AutomationActionDelayInput}
|
|
58
|
+
* @memberof AutomationActionInput
|
|
59
|
+
*/
|
|
60
|
+
delay?: AutomationActionDelayInput | null;
|
|
48
61
|
}
|
|
49
62
|
|
|
50
63
|
|
|
@@ -70,6 +83,7 @@ export function AutomationActionInputFromJSONTyped(json: any, ignoreDiscriminato
|
|
|
70
83
|
'type': AutomationActionTypeEnumFromJSON(json['type']),
|
|
71
84
|
'message': json['message'] == null ? undefined : json['message'],
|
|
72
85
|
'quickReplyId': json['quickReplyId'] == null ? undefined : json['quickReplyId'],
|
|
86
|
+
'delay': json['delay'] == null ? undefined : AutomationActionDelayInputFromJSON(json['delay']),
|
|
73
87
|
};
|
|
74
88
|
}
|
|
75
89
|
|
|
@@ -87,6 +101,7 @@ export function AutomationActionInputToJSONTyped(value?: AutomationActionInput |
|
|
|
87
101
|
'type': AutomationActionTypeEnumToJSON(value['type']),
|
|
88
102
|
'message': value['message'],
|
|
89
103
|
'quickReplyId': value['quickReplyId'],
|
|
104
|
+
'delay': AutomationActionDelayInputToJSON(value['delay']),
|
|
90
105
|
};
|
|
91
106
|
}
|
|
92
107
|
|
|
@@ -20,7 +20,9 @@
|
|
|
20
20
|
export const AutomationActionStatusEnum = {
|
|
21
21
|
EXECUTED: 'executed',
|
|
22
22
|
SKIPPED: 'skipped',
|
|
23
|
-
FAILED: 'failed'
|
|
23
|
+
FAILED: 'failed',
|
|
24
|
+
SCHEDULED: 'scheduled',
|
|
25
|
+
CANCELLED: 'cancelled'
|
|
24
26
|
} as const;
|
|
25
27
|
export type AutomationActionStatusEnum = typeof AutomationActionStatusEnum[keyof typeof AutomationActionStatusEnum];
|
|
26
28
|
|
|
@@ -21,7 +21,8 @@ export const AutomationActionTypeEnum = {
|
|
|
21
21
|
REJECT_LEAD_OFFER: 'reject_lead_offer',
|
|
22
22
|
SEND_LEAD_MESSAGE: 'send_lead_message',
|
|
23
23
|
ARCHIVE_LEAD: 'archive_lead',
|
|
24
|
-
MUTE_LEAD: 'mute_lead'
|
|
24
|
+
MUTE_LEAD: 'mute_lead',
|
|
25
|
+
SILENCE_LEAD_NOTIFICATION: 'silence_lead_notification'
|
|
25
26
|
} as const;
|
|
26
27
|
export type AutomationActionTypeEnum = typeof AutomationActionTypeEnum[keyof typeof AutomationActionTypeEnum];
|
|
27
28
|
|