@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.
Files changed (168) hide show
  1. package/.openapi-generator/FILES +39 -0
  2. package/README.md +3 -3
  3. package/dist/apis/AutomationsApi.d.ts +160 -0
  4. package/dist/apis/AutomationsApi.js +748 -0
  5. package/dist/apis/index.d.ts +1 -0
  6. package/dist/apis/index.js +1 -0
  7. package/dist/models/AccountSettingsDto.d.ts +15 -1
  8. package/dist/models/AccountSettingsDto.js +8 -0
  9. package/dist/models/AccountSettingsInput.d.ts +14 -0
  10. package/dist/models/AccountSettingsInput.js +4 -0
  11. package/dist/models/AdminDomainListItemDto.d.ts +21 -1
  12. package/dist/models/AdminDomainListItemDto.js +12 -0
  13. package/dist/models/AutomationActionDto.d.ts +45 -0
  14. package/dist/models/AutomationActionDto.js +60 -0
  15. package/dist/models/AutomationActionInput.d.ts +45 -0
  16. package/dist/models/AutomationActionInput.js +56 -0
  17. package/dist/models/AutomationActionStatusEnum.d.ts +26 -0
  18. package/dist/models/AutomationActionStatusEnum.js +52 -0
  19. package/dist/models/AutomationActionTypeEnum.d.ts +27 -0
  20. package/dist/models/AutomationActionTypeEnum.js +53 -0
  21. package/dist/models/AutomationAggregateEnum.d.ts +24 -0
  22. package/dist/models/AutomationAggregateEnum.js +50 -0
  23. package/dist/models/AutomationCatalogDelayUnitDto.d.ts +45 -0
  24. package/dist/models/AutomationCatalogDelayUnitDto.js +60 -0
  25. package/dist/models/AutomationCatalogDto.d.ts +77 -0
  26. package/dist/models/AutomationCatalogDto.js +82 -0
  27. package/dist/models/AutomationCatalogFactDto.d.ts +54 -0
  28. package/dist/models/AutomationCatalogFactDto.js +67 -0
  29. package/dist/models/AutomationCatalogTriggerDto.d.ts +60 -0
  30. package/dist/models/AutomationCatalogTriggerDto.js +71 -0
  31. package/dist/models/AutomationConditionDto.d.ts +65 -0
  32. package/dist/models/AutomationConditionDto.js +76 -0
  33. package/dist/models/AutomationConditionEvaluationDto.d.ts +77 -0
  34. package/dist/models/AutomationConditionEvaluationDto.js +84 -0
  35. package/dist/models/AutomationConditionGroupDto.d.ts +53 -0
  36. package/dist/models/AutomationConditionGroupDto.js +68 -0
  37. package/dist/models/AutomationConditionGroupDtoChildrenInner.d.ts +27 -0
  38. package/dist/models/AutomationConditionGroupDtoChildrenInner.js +54 -0
  39. package/dist/models/AutomationConditionGroupEvaluationDto.d.ts +59 -0
  40. package/dist/models/AutomationConditionGroupEvaluationDto.js +72 -0
  41. package/dist/models/AutomationConditionGroupEvaluationDtoChildrenInner.d.ts +27 -0
  42. package/dist/models/AutomationConditionGroupEvaluationDtoChildrenInner.js +54 -0
  43. package/dist/models/AutomationConditionGroupInput.d.ts +53 -0
  44. package/dist/models/AutomationConditionGroupInput.js +68 -0
  45. package/dist/models/AutomationConditionGroupInputChildrenInner.d.ts +27 -0
  46. package/dist/models/AutomationConditionGroupInputChildrenInner.js +54 -0
  47. package/dist/models/AutomationConditionInput.d.ts +65 -0
  48. package/dist/models/AutomationConditionInput.js +74 -0
  49. package/dist/models/AutomationDelayDto.d.ts +39 -0
  50. package/dist/models/AutomationDelayDto.js +56 -0
  51. package/dist/models/AutomationDelayInput.d.ts +39 -0
  52. package/dist/models/AutomationDelayInput.js +56 -0
  53. package/dist/models/AutomationDelayUnitEnum.d.ts +25 -0
  54. package/dist/models/AutomationDelayUnitEnum.js +51 -0
  55. package/dist/models/AutomationDto.d.ts +96 -0
  56. package/dist/models/AutomationDto.js +95 -0
  57. package/dist/models/AutomationFactEnum.d.ts +36 -0
  58. package/dist/models/AutomationFactEnum.js +62 -0
  59. package/dist/models/AutomationFactGroupEnum.d.ts +27 -0
  60. package/dist/models/AutomationFactGroupEnum.js +53 -0
  61. package/dist/models/AutomationFactValueTypeEnum.d.ts +30 -0
  62. package/dist/models/AutomationFactValueTypeEnum.js +56 -0
  63. package/dist/models/AutomationGroupOperatorEnum.d.ts +25 -0
  64. package/dist/models/AutomationGroupOperatorEnum.js +51 -0
  65. package/dist/models/AutomationInput.d.ts +66 -0
  66. package/dist/models/AutomationInput.js +71 -0
  67. package/dist/models/AutomationOperatorEnum.d.ts +37 -0
  68. package/dist/models/AutomationOperatorEnum.js +63 -0
  69. package/dist/models/AutomationRunActionDto.d.ts +46 -0
  70. package/dist/models/AutomationRunActionDto.js +61 -0
  71. package/dist/models/AutomationRunAutomationDto.d.ts +58 -0
  72. package/dist/models/AutomationRunAutomationDto.js +69 -0
  73. package/dist/models/AutomationRunDto.d.ts +65 -0
  74. package/dist/models/AutomationRunDto.js +74 -0
  75. package/dist/models/AutomationRunLeadDto.d.ts +44 -0
  76. package/dist/models/AutomationRunLeadDto.js +59 -0
  77. package/dist/models/AutomationSimulationDto.d.ts +64 -0
  78. package/dist/models/AutomationSimulationDto.js +73 -0
  79. package/dist/models/AutomationStatusInput.d.ts +32 -0
  80. package/dist/models/AutomationStatusInput.js +51 -0
  81. package/dist/models/AutomationTriggerEnum.d.ts +28 -0
  82. package/dist/models/AutomationTriggerEnum.js +54 -0
  83. package/dist/models/DomainSellerDto.d.ts +9 -1
  84. package/dist/models/DomainSellerDto.js +4 -0
  85. package/dist/models/FeatureFlagListItemDto.d.ts +1 -0
  86. package/dist/models/FeatureFlagListItemDto.js +2 -1
  87. package/dist/models/GetAutomationRuns200Response.d.ts +47 -0
  88. package/dist/models/GetAutomationRuns200Response.js +62 -0
  89. package/dist/models/GetAutomations200Response.d.ts +47 -0
  90. package/dist/models/GetAutomations200Response.js +62 -0
  91. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.d.ts +1 -0
  92. package/dist/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.js +2 -1
  93. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.d.ts +21 -1
  94. package/dist/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.js +12 -0
  95. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.d.ts +21 -1
  96. package/dist/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.js +12 -0
  97. package/dist/models/IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto.d.ts +21 -1
  98. package/dist/models/IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto.js +12 -0
  99. package/dist/models/LandingPageOriginalDesignSettingsDto.d.ts +12 -0
  100. package/dist/models/LandingPageOriginalDesignSettingsDto.js +8 -0
  101. package/dist/models/LandingPageOriginalDesignSettingsInput.d.ts +12 -0
  102. package/dist/models/LandingPageOriginalDesignSettingsInput.js +4 -0
  103. package/dist/models/LeadMessageDto.d.ts +6 -0
  104. package/dist/models/LeadMessageDto.js +4 -0
  105. package/dist/models/PrivateAccountGetMeResponse.d.ts +1 -0
  106. package/dist/models/PrivateAccountGetMeResponse.js +2 -1
  107. package/dist/models/SimulateAutomationsInput.d.ts +70 -0
  108. package/dist/models/SimulateAutomationsInput.js +69 -0
  109. package/dist/models/UpdateDomainInput.d.ts +21 -1
  110. package/dist/models/UpdateDomainInput.js +6 -0
  111. package/dist/models/index.d.ts +38 -0
  112. package/dist/models/index.js +38 -0
  113. package/package.json +1 -1
  114. package/src/apis/AutomationsApi.ts +622 -0
  115. package/src/apis/index.ts +1 -0
  116. package/src/models/AccountSettingsDto.ts +19 -1
  117. package/src/models/AccountSettingsInput.ts +16 -0
  118. package/src/models/AdminDomainListItemDto.ts +28 -1
  119. package/src/models/AutomationActionDto.ts +94 -0
  120. package/src/models/AutomationActionInput.ts +92 -0
  121. package/src/models/AutomationActionStatusEnum.ts +54 -0
  122. package/src/models/AutomationActionTypeEnum.ts +55 -0
  123. package/src/models/AutomationAggregateEnum.ts +52 -0
  124. package/src/models/AutomationCatalogDelayUnitDto.ts +94 -0
  125. package/src/models/AutomationCatalogDto.ts +151 -0
  126. package/src/models/AutomationCatalogFactDto.ts +124 -0
  127. package/src/models/AutomationCatalogTriggerDto.ts +133 -0
  128. package/src/models/AutomationConditionDto.ts +127 -0
  129. package/src/models/AutomationConditionEvaluationDto.ts +145 -0
  130. package/src/models/AutomationConditionGroupDto.ts +109 -0
  131. package/src/models/AutomationConditionGroupDtoChildrenInner.ts +73 -0
  132. package/src/models/AutomationConditionGroupEvaluationDto.ts +118 -0
  133. package/src/models/AutomationConditionGroupEvaluationDtoChildrenInner.ts +73 -0
  134. package/src/models/AutomationConditionGroupInput.ts +109 -0
  135. package/src/models/AutomationConditionGroupInputChildrenInner.ts +73 -0
  136. package/src/models/AutomationConditionInput.ts +126 -0
  137. package/src/models/AutomationDelayDto.ts +85 -0
  138. package/src/models/AutomationDelayInput.ts +85 -0
  139. package/src/models/AutomationDelayUnitEnum.ts +53 -0
  140. package/src/models/AutomationDto.ts +187 -0
  141. package/src/models/AutomationFactEnum.ts +64 -0
  142. package/src/models/AutomationFactGroupEnum.ts +55 -0
  143. package/src/models/AutomationFactValueTypeEnum.ts +58 -0
  144. package/src/models/AutomationGroupOperatorEnum.ts +53 -0
  145. package/src/models/AutomationInput.ts +140 -0
  146. package/src/models/AutomationOperatorEnum.ts +65 -0
  147. package/src/models/AutomationRunActionDto.ts +101 -0
  148. package/src/models/AutomationRunAutomationDto.ts +117 -0
  149. package/src/models/AutomationRunDto.ts +135 -0
  150. package/src/models/AutomationRunLeadDto.ts +84 -0
  151. package/src/models/AutomationSimulationDto.ts +126 -0
  152. package/src/models/AutomationStatusInput.ts +66 -0
  153. package/src/models/AutomationTriggerEnum.ts +56 -0
  154. package/src/models/DomainSellerDto.ts +10 -1
  155. package/src/models/FeatureFlagListItemDto.ts +2 -1
  156. package/src/models/GetAutomationRuns200Response.ts +106 -0
  157. package/src/models/GetAutomations200Response.ts +106 -0
  158. package/src/models/IntersectionAccountDtoWithSettingsDtoWithNotificationsDtoWithFeatureFlagsDto.ts +2 -1
  159. package/src/models/IntersectionDomainDtoWithAccountDtoWithAuctionInfoDto.ts +28 -1
  160. package/src/models/IntersectionDomainDtoWithHijackerDtoWithAccountDto.ts +28 -1
  161. package/src/models/IntersectionDomainDtoWithSeoMetricsDtoWithRoutingDto.ts +28 -1
  162. package/src/models/LandingPageOriginalDesignSettingsDto.ts +18 -0
  163. package/src/models/LandingPageOriginalDesignSettingsInput.ts +16 -0
  164. package/src/models/LeadMessageDto.ts +9 -0
  165. package/src/models/PrivateAccountGetMeResponse.ts +2 -1
  166. package/src/models/SimulateAutomationsInput.ts +133 -0
  167. package/src/models/UpdateDomainInput.ts +25 -1
  168. package/src/models/index.ts +38 -0
@@ -0,0 +1,85 @@
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 { AutomationDelayUnitEnum } from './AutomationDelayUnitEnum';
17
+ import {
18
+ AutomationDelayUnitEnumFromJSON,
19
+ AutomationDelayUnitEnumFromJSONTyped,
20
+ AutomationDelayUnitEnumToJSON,
21
+ AutomationDelayUnitEnumToJSONTyped,
22
+ } from './AutomationDelayUnitEnum';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AutomationDelayDto
28
+ */
29
+ export interface AutomationDelayDto {
30
+ /**
31
+ * How many hours or days the trigger waits.
32
+ * @type {number}
33
+ * @memberof AutomationDelayDto
34
+ */
35
+ amount: number;
36
+ /**
37
+ * Unit of the amount.
38
+ * @type {AutomationDelayUnitEnum}
39
+ * @memberof AutomationDelayDto
40
+ */
41
+ unit: AutomationDelayUnitEnum;
42
+ }
43
+
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the AutomationDelayDto interface.
48
+ */
49
+ export function instanceOfAutomationDelayDto(value: object): value is AutomationDelayDto {
50
+ if (!('amount' in value) || value['amount'] === undefined) return false;
51
+ if (!('unit' in value) || value['unit'] === undefined) return false;
52
+ return true;
53
+ }
54
+
55
+ export function AutomationDelayDtoFromJSON(json: any): AutomationDelayDto {
56
+ return AutomationDelayDtoFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function AutomationDelayDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationDelayDto {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'amount': json['amount'],
66
+ 'unit': AutomationDelayUnitEnumFromJSON(json['unit']),
67
+ };
68
+ }
69
+
70
+ export function AutomationDelayDtoToJSON(json: any): AutomationDelayDto {
71
+ return AutomationDelayDtoToJSONTyped(json, false);
72
+ }
73
+
74
+ export function AutomationDelayDtoToJSONTyped(value?: AutomationDelayDto | null, ignoreDiscriminator: boolean = false): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+
79
+ return {
80
+
81
+ 'amount': value['amount'],
82
+ 'unit': AutomationDelayUnitEnumToJSON(value['unit']),
83
+ };
84
+ }
85
+
@@ -0,0 +1,85 @@
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 { AutomationDelayUnitEnum } from './AutomationDelayUnitEnum';
17
+ import {
18
+ AutomationDelayUnitEnumFromJSON,
19
+ AutomationDelayUnitEnumFromJSONTyped,
20
+ AutomationDelayUnitEnumToJSON,
21
+ AutomationDelayUnitEnumToJSONTyped,
22
+ } from './AutomationDelayUnitEnum';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AutomationDelayInput
28
+ */
29
+ export interface AutomationDelayInput {
30
+ /**
31
+ * How many hours or days the trigger waits.
32
+ * @type {number}
33
+ * @memberof AutomationDelayInput
34
+ */
35
+ amount: number;
36
+ /**
37
+ * Unit of the amount.
38
+ * @type {AutomationDelayUnitEnum}
39
+ * @memberof AutomationDelayInput
40
+ */
41
+ unit: AutomationDelayUnitEnum;
42
+ }
43
+
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the AutomationDelayInput interface.
48
+ */
49
+ export function instanceOfAutomationDelayInput(value: object): value is AutomationDelayInput {
50
+ if (!('amount' in value) || value['amount'] === undefined) return false;
51
+ if (!('unit' in value) || value['unit'] === undefined) return false;
52
+ return true;
53
+ }
54
+
55
+ export function AutomationDelayInputFromJSON(json: any): AutomationDelayInput {
56
+ return AutomationDelayInputFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function AutomationDelayInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationDelayInput {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'amount': json['amount'],
66
+ 'unit': AutomationDelayUnitEnumFromJSON(json['unit']),
67
+ };
68
+ }
69
+
70
+ export function AutomationDelayInputToJSON(json: any): AutomationDelayInput {
71
+ return AutomationDelayInputToJSONTyped(json, false);
72
+ }
73
+
74
+ export function AutomationDelayInputToJSONTyped(value?: AutomationDelayInput | null, ignoreDiscriminator: boolean = false): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+
79
+ return {
80
+
81
+ 'amount': value['amount'],
82
+ 'unit': AutomationDelayUnitEnumToJSON(value['unit']),
83
+ };
84
+ }
85
+
@@ -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 the amount.
18
+ * @export
19
+ */
20
+ export const AutomationDelayUnitEnum = {
21
+ HOURS: 'hours',
22
+ DAYS: 'days'
23
+ } as const;
24
+ export type AutomationDelayUnitEnum = typeof AutomationDelayUnitEnum[keyof typeof AutomationDelayUnitEnum];
25
+
26
+
27
+ export function instanceOfAutomationDelayUnitEnum(value: any): boolean {
28
+ for (const key in AutomationDelayUnitEnum) {
29
+ if (Object.prototype.hasOwnProperty.call(AutomationDelayUnitEnum, key)) {
30
+ if (AutomationDelayUnitEnum[key as keyof typeof AutomationDelayUnitEnum] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function AutomationDelayUnitEnumFromJSON(json: any): AutomationDelayUnitEnum {
39
+ return AutomationDelayUnitEnumFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AutomationDelayUnitEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationDelayUnitEnum {
43
+ return json as AutomationDelayUnitEnum;
44
+ }
45
+
46
+ export function AutomationDelayUnitEnumToJSON(value?: AutomationDelayUnitEnum | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function AutomationDelayUnitEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationDelayUnitEnum {
51
+ return value as AutomationDelayUnitEnum;
52
+ }
53
+
@@ -0,0 +1,187 @@
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 { AutomationActionDto } from './AutomationActionDto';
17
+ import {
18
+ AutomationActionDtoFromJSON,
19
+ AutomationActionDtoFromJSONTyped,
20
+ AutomationActionDtoToJSON,
21
+ AutomationActionDtoToJSONTyped,
22
+ } from './AutomationActionDto';
23
+ import type { AutomationTriggerEnum } from './AutomationTriggerEnum';
24
+ import {
25
+ AutomationTriggerEnumFromJSON,
26
+ AutomationTriggerEnumFromJSONTyped,
27
+ AutomationTriggerEnumToJSON,
28
+ AutomationTriggerEnumToJSONTyped,
29
+ } from './AutomationTriggerEnum';
30
+ import type { AutomationConditionGroupDto } from './AutomationConditionGroupDto';
31
+ import {
32
+ AutomationConditionGroupDtoFromJSON,
33
+ AutomationConditionGroupDtoFromJSONTyped,
34
+ AutomationConditionGroupDtoToJSON,
35
+ AutomationConditionGroupDtoToJSONTyped,
36
+ } from './AutomationConditionGroupDto';
37
+ import type { AutomationDelayDto } from './AutomationDelayDto';
38
+ import {
39
+ AutomationDelayDtoFromJSON,
40
+ AutomationDelayDtoFromJSONTyped,
41
+ AutomationDelayDtoToJSON,
42
+ AutomationDelayDtoToJSONTyped,
43
+ } from './AutomationDelayDto';
44
+
45
+ /**
46
+ *
47
+ * @export
48
+ * @interface AutomationDto
49
+ */
50
+ export interface AutomationDto {
51
+ /**
52
+ * Automation id.
53
+ * @type {string}
54
+ * @memberof AutomationDto
55
+ */
56
+ id: string;
57
+ /**
58
+ * Name the seller recognises the automation by.
59
+ * @type {string}
60
+ * @memberof AutomationDto
61
+ */
62
+ name: string;
63
+ /**
64
+ * Whether the automation is being applied.
65
+ * @type {boolean}
66
+ * @memberof AutomationDto
67
+ */
68
+ enabled: boolean;
69
+ /**
70
+ * What makes the automation be evaluated.
71
+ * @type {AutomationTriggerEnum}
72
+ * @memberof AutomationDto
73
+ */
74
+ trigger: AutomationTriggerEnum;
75
+ /**
76
+ * How long the trigger waits before the automation applies.
77
+ * @type {AutomationDelayDto}
78
+ * @memberof AutomationDto
79
+ */
80
+ delay: AutomationDelayDto | null;
81
+ /**
82
+ * Conditions that have to hold for the actions to run.
83
+ * @type {AutomationConditionGroupDto}
84
+ * @memberof AutomationDto
85
+ */
86
+ conditions: AutomationConditionGroupDto;
87
+ /**
88
+ * What the automation does when its conditions hold.
89
+ * @type {Array<AutomationActionDto>}
90
+ * @memberof AutomationDto
91
+ */
92
+ actions: Array<AutomationActionDto>;
93
+ /**
94
+ * How many times the automation has acted.
95
+ * @type {number}
96
+ * @memberof AutomationDto
97
+ */
98
+ executionsCount: number;
99
+ /**
100
+ * When the automation last acted.
101
+ * @type {Date}
102
+ * @memberof AutomationDto
103
+ */
104
+ lastExecutedAt: Date | null;
105
+ /**
106
+ * When the automation was created.
107
+ * @type {Date}
108
+ * @memberof AutomationDto
109
+ */
110
+ createdAt: Date;
111
+ /**
112
+ * When the automation was last updated.
113
+ * @type {Date}
114
+ * @memberof AutomationDto
115
+ */
116
+ updatedAt: Date;
117
+ }
118
+
119
+
120
+
121
+ /**
122
+ * Check if a given object implements the AutomationDto interface.
123
+ */
124
+ export function instanceOfAutomationDto(value: object): value is AutomationDto {
125
+ if (!('id' in value) || value['id'] === undefined) return false;
126
+ if (!('name' in value) || value['name'] === undefined) return false;
127
+ if (!('enabled' in value) || value['enabled'] === undefined) return false;
128
+ if (!('trigger' in value) || value['trigger'] === undefined) return false;
129
+ if (!('delay' in value) || value['delay'] === undefined) return false;
130
+ if (!('conditions' in value) || value['conditions'] === undefined) return false;
131
+ if (!('actions' in value) || value['actions'] === undefined) return false;
132
+ if (!('executionsCount' in value) || value['executionsCount'] === undefined) return false;
133
+ if (!('lastExecutedAt' in value) || value['lastExecutedAt'] === undefined) return false;
134
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
135
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
136
+ return true;
137
+ }
138
+
139
+ export function AutomationDtoFromJSON(json: any): AutomationDto {
140
+ return AutomationDtoFromJSONTyped(json, false);
141
+ }
142
+
143
+ export function AutomationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationDto {
144
+ if (json == null) {
145
+ return json;
146
+ }
147
+ return {
148
+
149
+ 'id': json['id'],
150
+ 'name': json['name'],
151
+ 'enabled': json['enabled'],
152
+ 'trigger': AutomationTriggerEnumFromJSON(json['trigger']),
153
+ 'delay': AutomationDelayDtoFromJSON(json['delay']),
154
+ 'conditions': AutomationConditionGroupDtoFromJSON(json['conditions']),
155
+ 'actions': ((json['actions'] as Array<any>).map(AutomationActionDtoFromJSON)),
156
+ 'executionsCount': json['executionsCount'],
157
+ 'lastExecutedAt': (json['lastExecutedAt'] == null ? null : new Date(json['lastExecutedAt'])),
158
+ 'createdAt': (new Date(json['createdAt'])),
159
+ 'updatedAt': (new Date(json['updatedAt'])),
160
+ };
161
+ }
162
+
163
+ export function AutomationDtoToJSON(json: any): AutomationDto {
164
+ return AutomationDtoToJSONTyped(json, false);
165
+ }
166
+
167
+ export function AutomationDtoToJSONTyped(value?: AutomationDto | null, ignoreDiscriminator: boolean = false): any {
168
+ if (value == null) {
169
+ return value;
170
+ }
171
+
172
+ return {
173
+
174
+ 'id': value['id'],
175
+ 'name': value['name'],
176
+ 'enabled': value['enabled'],
177
+ 'trigger': AutomationTriggerEnumToJSON(value['trigger']),
178
+ 'delay': AutomationDelayDtoToJSON(value['delay']),
179
+ 'conditions': AutomationConditionGroupDtoToJSON(value['conditions']),
180
+ 'actions': ((value['actions'] as Array<any>).map(AutomationActionDtoToJSON)),
181
+ 'executionsCount': value['executionsCount'],
182
+ 'lastExecutedAt': (value['lastExecutedAt'] == null ? null : (value['lastExecutedAt'] as any).toISOString()),
183
+ 'createdAt': ((value['createdAt']).toISOString()),
184
+ 'updatedAt': ((value['updatedAt']).toISOString()),
185
+ };
186
+ }
187
+
@@ -0,0 +1,64 @@
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
+ * Data the condition looks at.
18
+ * @export
19
+ */
20
+ export const AutomationFactEnum = {
21
+ OFFER_AMOUNT: 'offer_amount',
22
+ OFFER_CURRENCY: 'offer_currency',
23
+ OFFER_BUY_NOW_PERCENTAGE: 'offer_buy_now_percentage',
24
+ LEAD_IS_INFORMATION_REQUEST: 'lead_is_information_request',
25
+ BUYER_EMAIL: 'buyer_email',
26
+ BUYER_EMAIL_DOMAIN: 'buyer_email_domain',
27
+ BUYER_EMAIL_TLD: 'buyer_email_tld',
28
+ BUYER_EMAIL_IS_DISPOSABLE: 'buyer_email_is_disposable',
29
+ BUYER_IP_COUNTRY: 'buyer_ip_country',
30
+ DOMAIN_NAME: 'domain_name',
31
+ DOMAIN_TLD: 'domain_tld',
32
+ DOMAIN_BUY_NOW_PRICE: 'domain_buy_now_price',
33
+ LEAD_MESSAGE_TEXT: 'lead_message_text'
34
+ } as const;
35
+ export type AutomationFactEnum = typeof AutomationFactEnum[keyof typeof AutomationFactEnum];
36
+
37
+
38
+ export function instanceOfAutomationFactEnum(value: any): boolean {
39
+ for (const key in AutomationFactEnum) {
40
+ if (Object.prototype.hasOwnProperty.call(AutomationFactEnum, key)) {
41
+ if (AutomationFactEnum[key as keyof typeof AutomationFactEnum] === value) {
42
+ return true;
43
+ }
44
+ }
45
+ }
46
+ return false;
47
+ }
48
+
49
+ export function AutomationFactEnumFromJSON(json: any): AutomationFactEnum {
50
+ return AutomationFactEnumFromJSONTyped(json, false);
51
+ }
52
+
53
+ export function AutomationFactEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationFactEnum {
54
+ return json as AutomationFactEnum;
55
+ }
56
+
57
+ export function AutomationFactEnumToJSON(value?: AutomationFactEnum | null): any {
58
+ return value as any;
59
+ }
60
+
61
+ export function AutomationFactEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationFactEnum {
62
+ return value as AutomationFactEnum;
63
+ }
64
+
@@ -0,0 +1,55 @@
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
+ * What the fact is about.
18
+ * @export
19
+ */
20
+ export const AutomationFactGroupEnum = {
21
+ OFFER: 'offer',
22
+ LEAD: 'lead',
23
+ BUYER: 'buyer',
24
+ DOMAIN: 'domain'
25
+ } as const;
26
+ export type AutomationFactGroupEnum = typeof AutomationFactGroupEnum[keyof typeof AutomationFactGroupEnum];
27
+
28
+
29
+ export function instanceOfAutomationFactGroupEnum(value: any): boolean {
30
+ for (const key in AutomationFactGroupEnum) {
31
+ if (Object.prototype.hasOwnProperty.call(AutomationFactGroupEnum, key)) {
32
+ if (AutomationFactGroupEnum[key as keyof typeof AutomationFactGroupEnum] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function AutomationFactGroupEnumFromJSON(json: any): AutomationFactGroupEnum {
41
+ return AutomationFactGroupEnumFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function AutomationFactGroupEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationFactGroupEnum {
45
+ return json as AutomationFactGroupEnum;
46
+ }
47
+
48
+ export function AutomationFactGroupEnumToJSON(value?: AutomationFactGroupEnum | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function AutomationFactGroupEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationFactGroupEnum {
53
+ return value as AutomationFactGroupEnum;
54
+ }
55
+
@@ -0,0 +1,58 @@
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
+ * Kind of value the fact holds.
18
+ * @export
19
+ */
20
+ export const AutomationFactValueTypeEnum = {
21
+ STRING: 'string',
22
+ MONEY: 'money',
23
+ PERCENTAGE: 'percentage',
24
+ BOOLEAN: 'boolean',
25
+ COUNTRY: 'country',
26
+ TLD: 'tld',
27
+ CURRENCY: 'currency'
28
+ } as const;
29
+ export type AutomationFactValueTypeEnum = typeof AutomationFactValueTypeEnum[keyof typeof AutomationFactValueTypeEnum];
30
+
31
+
32
+ export function instanceOfAutomationFactValueTypeEnum(value: any): boolean {
33
+ for (const key in AutomationFactValueTypeEnum) {
34
+ if (Object.prototype.hasOwnProperty.call(AutomationFactValueTypeEnum, key)) {
35
+ if (AutomationFactValueTypeEnum[key as keyof typeof AutomationFactValueTypeEnum] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+
43
+ export function AutomationFactValueTypeEnumFromJSON(json: any): AutomationFactValueTypeEnum {
44
+ return AutomationFactValueTypeEnumFromJSONTyped(json, false);
45
+ }
46
+
47
+ export function AutomationFactValueTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationFactValueTypeEnum {
48
+ return json as AutomationFactValueTypeEnum;
49
+ }
50
+
51
+ export function AutomationFactValueTypeEnumToJSON(value?: AutomationFactValueTypeEnum | null): any {
52
+ return value as any;
53
+ }
54
+
55
+ export function AutomationFactValueTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationFactValueTypeEnum {
56
+ return value as AutomationFactValueTypeEnum;
57
+ }
58
+
@@ -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
+ * How the conditions of the group combine.
18
+ * @export
19
+ */
20
+ export const AutomationGroupOperatorEnum = {
21
+ ALL: 'all',
22
+ ANY: 'any'
23
+ } as const;
24
+ export type AutomationGroupOperatorEnum = typeof AutomationGroupOperatorEnum[keyof typeof AutomationGroupOperatorEnum];
25
+
26
+
27
+ export function instanceOfAutomationGroupOperatorEnum(value: any): boolean {
28
+ for (const key in AutomationGroupOperatorEnum) {
29
+ if (Object.prototype.hasOwnProperty.call(AutomationGroupOperatorEnum, key)) {
30
+ if (AutomationGroupOperatorEnum[key as keyof typeof AutomationGroupOperatorEnum] === value) {
31
+ return true;
32
+ }
33
+ }
34
+ }
35
+ return false;
36
+ }
37
+
38
+ export function AutomationGroupOperatorEnumFromJSON(json: any): AutomationGroupOperatorEnum {
39
+ return AutomationGroupOperatorEnumFromJSONTyped(json, false);
40
+ }
41
+
42
+ export function AutomationGroupOperatorEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): AutomationGroupOperatorEnum {
43
+ return json as AutomationGroupOperatorEnum;
44
+ }
45
+
46
+ export function AutomationGroupOperatorEnumToJSON(value?: AutomationGroupOperatorEnum | null): any {
47
+ return value as any;
48
+ }
49
+
50
+ export function AutomationGroupOperatorEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): AutomationGroupOperatorEnum {
51
+ return value as AutomationGroupOperatorEnum;
52
+ }
53
+