@randock/nameshift-api-client 0.0.363 → 0.0.364

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 (36) hide show
  1. package/.openapi-generator/FILES +4 -0
  2. package/README.md +3 -3
  3. package/dist/apis/LeadsApi.d.ts +13 -1
  4. package/dist/apis/LeadsApi.js +56 -0
  5. package/dist/models/AccountSettingsDto.d.ts +7 -0
  6. package/dist/models/AccountSettingsDto.js +5 -0
  7. package/dist/models/AccountSettingsInput.d.ts +7 -0
  8. package/dist/models/AccountSettingsInput.js +3 -0
  9. package/dist/models/AdminAccountSettingsInput.d.ts +7 -0
  10. package/dist/models/AdminAccountSettingsInput.js +3 -0
  11. package/dist/models/DomainLockConfigurationDto.d.ts +39 -0
  12. package/dist/models/DomainLockConfigurationDto.js +56 -0
  13. package/dist/models/LockConfigurationInput.d.ts +39 -0
  14. package/dist/models/LockConfigurationInput.js +52 -0
  15. package/dist/models/LockDurationDto.d.ts +47 -0
  16. package/dist/models/LockDurationDto.js +64 -0
  17. package/dist/models/LockDurationInput.d.ts +47 -0
  18. package/dist/models/LockDurationInput.js +60 -0
  19. package/dist/models/SellerLeadDetails.d.ts +7 -0
  20. package/dist/models/SellerLeadDetails.js +5 -0
  21. package/dist/models/WithSettingsInner.d.ts +7 -0
  22. package/dist/models/WithSettingsInner.js +5 -0
  23. package/dist/models/index.d.ts +4 -0
  24. package/dist/models/index.js +4 -0
  25. package/package.json +1 -1
  26. package/src/apis/LeadsApi.ts +58 -0
  27. package/src/models/AccountSettingsDto.ts +16 -0
  28. package/src/models/AccountSettingsInput.ts +15 -0
  29. package/src/models/AdminAccountSettingsInput.ts +15 -0
  30. package/src/models/DomainLockConfigurationDto.ts +83 -0
  31. package/src/models/LockConfigurationInput.ts +81 -0
  32. package/src/models/LockDurationDto.ts +87 -0
  33. package/src/models/LockDurationInput.ts +85 -0
  34. package/src/models/SellerLeadDetails.ts +16 -0
  35. package/src/models/WithSettingsInner.ts +16 -0
  36. package/src/models/index.ts +4 -0
@@ -155,6 +155,7 @@ src/models/DomainExchangeRateDto.ts
155
155
  src/models/DomainFiltersDto.ts
156
156
  src/models/DomainLeadPriceNegotiatorAiAgentConfigurationDto.ts
157
157
  src/models/DomainLeadPriceNegotiatorAiAgentConfigurationInput.ts
158
+ src/models/DomainLockConfigurationDto.ts
158
159
  src/models/DomainLockDto.ts
159
160
  src/models/DomainPricesChangeDto.ts
160
161
  src/models/DomainSalesInformationDto.ts
@@ -257,6 +258,9 @@ src/models/ListDomainsWithUpdatedPricing200Response.ts
257
258
  src/models/ListLeadMessagesDto.ts
258
259
  src/models/ListLeadsResultItem.ts
259
260
  src/models/ListNotifications200Response.ts
261
+ src/models/LockConfigurationInput.ts
262
+ src/models/LockDurationDto.ts
263
+ src/models/LockDurationInput.ts
260
264
  src/models/LoginDto.ts
261
265
  src/models/LoginInput.ts
262
266
  src/models/MajesticMetrics.ts
package/README.md CHANGED
@@ -1,4 +1,4 @@
1
- ## @randock/nameshift-api-client@0.0.363
1
+ ## @randock/nameshift-api-client@0.0.364
2
2
 
3
3
  This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
4
4
 
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
36
36
  _published:_
37
37
 
38
38
  ```
39
- npm install @randock/nameshift-api-client@0.0.363 --save
39
+ npm install @randock/nameshift-api-client@0.0.364 --save
40
40
  ```
41
41
 
42
42
  _unPublished (not recommended):_
@@ -44,4 +44,4 @@ _unPublished (not recommended):_
44
44
  ```
45
45
  npm install PATH_TO_GENERATED_PACKAGE --save
46
46
  ```
47
- 6c894dddb9c1c7410e81ce635ad8f71604c4f720191da25d1491a8a2fbf291d1403de7d6c73bbd097a08978d6f0cc87d
47
+ b8af6f75ac68bc0761c871ebdf3ee69af707ec41a13468c43a5444863613d0e457d2d1ef385401135c3c49c3b3e68684
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, List200Response, ListLeadMessagesDto, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
13
+ import type { BatchReadSellerLeadMessageInput, CreateLeadMessageInput, CreateManualLeadInput, IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto, LeadLeaseToOwnAndRentConfigurationPresetsDto, List200Response, ListLeadMessagesDto, LockConfigurationInput, ObjectId, PutLeadOfferInput, SellerLeadDetails, UpdateLeadMuteStatusInput } from '../models/index';
14
14
  export interface LeadsApiAcceptLeadOfferRequest {
15
15
  leadId: string;
16
16
  }
@@ -56,6 +56,10 @@ export interface LeadsApiResumeLeadPriceNegotiatorAgentRequest {
56
56
  export interface LeadsApiUnarchiveLeadRequest {
57
57
  leadId: string;
58
58
  }
59
+ export interface LeadsApiUpdateLeadDomainLockConfigurationRequest {
60
+ leadId: string;
61
+ lockConfigurationInput: LockConfigurationInput;
62
+ }
59
63
  export interface LeadsApiUpdateLeadMuteStatusRequest {
60
64
  leadId: string;
61
65
  updateLeadMuteStatusInput: UpdateLeadMuteStatusInput;
@@ -176,6 +180,14 @@ export declare class LeadsApi extends runtime.BaseAPI {
176
180
  *
177
181
  */
178
182
  unarchiveLead(requestParameters: LeadsApiUnarchiveLeadRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
183
+ /**
184
+ *
185
+ */
186
+ updateLeadDomainLockConfigurationRaw(requestParameters: LeadsApiUpdateLeadDomainLockConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
187
+ /**
188
+ *
189
+ */
190
+ updateLeadDomainLockConfiguration(requestParameters: LeadsApiUpdateLeadDomainLockConfigurationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
179
191
  /**
180
192
  *
181
193
  */
@@ -825,6 +825,62 @@ var LeadsApi = /** @class */ (function (_super) {
825
825
  });
826
826
  });
827
827
  };
828
+ /**
829
+ *
830
+ */
831
+ LeadsApi.prototype.updateLeadDomainLockConfigurationRaw = function (requestParameters, initOverrides) {
832
+ return __awaiter(this, void 0, void 0, function () {
833
+ var queryParameters, headerParameters, token, tokenString, response;
834
+ return __generator(this, function (_a) {
835
+ switch (_a.label) {
836
+ case 0:
837
+ if (requestParameters['leadId'] == null) {
838
+ throw new runtime.RequiredError('leadId', 'Required parameter "leadId" was null or undefined when calling updateLeadDomainLockConfiguration().');
839
+ }
840
+ if (requestParameters['lockConfigurationInput'] == null) {
841
+ throw new runtime.RequiredError('lockConfigurationInput', 'Required parameter "lockConfigurationInput" was null or undefined when calling updateLeadDomainLockConfiguration().');
842
+ }
843
+ queryParameters = {};
844
+ headerParameters = {};
845
+ headerParameters['Content-Type'] = 'application/json';
846
+ if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
847
+ token = this.configuration.accessToken;
848
+ return [4 /*yield*/, token("bearer", [])];
849
+ case 1:
850
+ tokenString = _a.sent();
851
+ if (tokenString) {
852
+ headerParameters["Authorization"] = "Bearer ".concat(tokenString);
853
+ }
854
+ _a.label = 2;
855
+ case 2: return [4 /*yield*/, this.request({
856
+ path: "/private/leads/{leadId}/domain-lock-configuration".replace("{".concat("leadId", "}"), encodeURIComponent(String(requestParameters['leadId']))),
857
+ method: 'PUT',
858
+ headers: headerParameters,
859
+ query: queryParameters,
860
+ body: (0, index_1.LockConfigurationInputToJSON)(requestParameters['lockConfigurationInput']),
861
+ }, initOverrides)];
862
+ case 3:
863
+ response = _a.sent();
864
+ return [2 /*return*/, new runtime.VoidApiResponse(response)];
865
+ }
866
+ });
867
+ });
868
+ };
869
+ /**
870
+ *
871
+ */
872
+ LeadsApi.prototype.updateLeadDomainLockConfiguration = function (requestParameters, initOverrides) {
873
+ return __awaiter(this, void 0, void 0, function () {
874
+ return __generator(this, function (_a) {
875
+ switch (_a.label) {
876
+ case 0: return [4 /*yield*/, this.updateLeadDomainLockConfigurationRaw(requestParameters, initOverrides)];
877
+ case 1:
878
+ _a.sent();
879
+ return [2 /*return*/];
880
+ }
881
+ });
882
+ });
883
+ };
828
884
  /**
829
885
  *
830
886
  */
@@ -14,6 +14,7 @@ import type { AccountSettingsSidnDto } from './AccountSettingsSidnDto';
14
14
  import type { AccountSettingsAliasDto } from './AccountSettingsAliasDto';
15
15
  import type { AccountSettingsLeaseToOwnConfigurationDto } from './AccountSettingsLeaseToOwnConfigurationDto';
16
16
  import type { LandingPageSettingsDto } from './LandingPageSettingsDto';
17
+ import type { DomainLockConfigurationDto } from './DomainLockConfigurationDto';
17
18
  import type { AccountSettingsRentConfigurationDto } from './AccountSettingsRentConfigurationDto';
18
19
  /**
19
20
  *
@@ -87,6 +88,12 @@ export interface AccountSettingsDto {
87
88
  * @memberof AccountSettingsDto
88
89
  */
89
90
  transferCostPaymentMaxPercentage: number;
91
+ /**
92
+ *
93
+ * @type {DomainLockConfigurationDto}
94
+ * @memberof AccountSettingsDto
95
+ */
96
+ domainLockConfiguration: DomainLockConfigurationDto;
90
97
  }
91
98
  /**
92
99
  * Check if a given object implements the AccountSettingsDto interface.
@@ -23,6 +23,7 @@ var AccountSettingsSidnDto_1 = require("./AccountSettingsSidnDto");
23
23
  var AccountSettingsAliasDto_1 = require("./AccountSettingsAliasDto");
24
24
  var AccountSettingsLeaseToOwnConfigurationDto_1 = require("./AccountSettingsLeaseToOwnConfigurationDto");
25
25
  var LandingPageSettingsDto_1 = require("./LandingPageSettingsDto");
26
+ var DomainLockConfigurationDto_1 = require("./DomainLockConfigurationDto");
26
27
  var AccountSettingsRentConfigurationDto_1 = require("./AccountSettingsRentConfigurationDto");
27
28
  /**
28
29
  * Check if a given object implements the AccountSettingsDto interface.
@@ -50,6 +51,8 @@ function instanceOfAccountSettingsDto(value) {
50
51
  return false;
51
52
  if (!('transferCostPaymentMaxPercentage' in value) || value['transferCostPaymentMaxPercentage'] === undefined)
52
53
  return false;
54
+ if (!('domainLockConfiguration' in value) || value['domainLockConfiguration'] === undefined)
55
+ return false;
53
56
  return true;
54
57
  }
55
58
  function AccountSettingsDtoFromJSON(json) {
@@ -71,6 +74,7 @@ function AccountSettingsDtoFromJSONTyped(json, ignoreDiscriminator) {
71
74
  'avatar': json['avatar'],
72
75
  'alias': (0, AccountSettingsAliasDto_1.AccountSettingsAliasDtoFromJSON)(json['alias']),
73
76
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'],
77
+ 'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoFromJSON)(json['domainLockConfiguration']),
74
78
  };
75
79
  }
76
80
  function AccountSettingsDtoToJSON(json) {
@@ -93,5 +97,6 @@ function AccountSettingsDtoToJSONTyped(value, ignoreDiscriminator) {
93
97
  'avatar': value['avatar'],
94
98
  'alias': (0, AccountSettingsAliasDto_1.AccountSettingsAliasDtoToJSON)(value['alias']),
95
99
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
100
+ 'domainLockConfiguration': (0, DomainLockConfigurationDto_1.DomainLockConfigurationDtoToJSON)(value['domainLockConfiguration']),
96
101
  };
97
102
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LockConfigurationInput } from './LockConfigurationInput';
12
13
  import type { MoneyDto } from './MoneyDto';
13
14
  import type { LandingPageInput } from './LandingPageInput';
14
15
  import type { TimeTableConfigurationInput } from './TimeTableConfigurationInput';
@@ -93,6 +94,12 @@ export interface AccountSettingsInput {
93
94
  * @memberof AccountSettingsInput
94
95
  */
95
96
  transferCostPaymentMaxPercentage?: number;
97
+ /**
98
+ *
99
+ * @type {LockConfigurationInput}
100
+ * @memberof AccountSettingsInput
101
+ */
102
+ domainLockConfiguration?: LockConfigurationInput;
96
103
  }
97
104
  /**
98
105
  * Check if a given object implements the AccountSettingsInput interface.
@@ -18,6 +18,7 @@ exports.AccountSettingsInputFromJSON = AccountSettingsInputFromJSON;
18
18
  exports.AccountSettingsInputFromJSONTyped = AccountSettingsInputFromJSONTyped;
19
19
  exports.AccountSettingsInputToJSON = AccountSettingsInputToJSON;
20
20
  exports.AccountSettingsInputToJSONTyped = AccountSettingsInputToJSONTyped;
21
+ var LockConfigurationInput_1 = require("./LockConfigurationInput");
21
22
  var MoneyDto_1 = require("./MoneyDto");
22
23
  var LandingPageInput_1 = require("./LandingPageInput");
23
24
  var TimeTableConfigurationInput_1 = require("./TimeTableConfigurationInput");
@@ -50,6 +51,7 @@ function AccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
50
51
  'timezone': json['timezone'] == null ? undefined : json['timezone'],
51
52
  'alias': json['alias'] == null ? undefined : (0, AccountAliasInput_1.AccountAliasInputFromJSON)(json['alias']),
52
53
  'transferCostPaymentMaxPercentage': json['transferCostPaymentMaxPercentage'] == null ? undefined : json['transferCostPaymentMaxPercentage'],
54
+ 'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : (0, LockConfigurationInput_1.LockConfigurationInputFromJSON)(json['domainLockConfiguration']),
53
55
  };
54
56
  }
55
57
  function AccountSettingsInputToJSON(json) {
@@ -73,5 +75,6 @@ function AccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
73
75
  'timezone': value['timezone'],
74
76
  'alias': (0, AccountAliasInput_1.AccountAliasInputToJSON)(value['alias']),
75
77
  'transferCostPaymentMaxPercentage': value['transferCostPaymentMaxPercentage'],
78
+ 'domainLockConfiguration': (0, LockConfigurationInput_1.LockConfigurationInputToJSON)(value['domainLockConfiguration']),
76
79
  };
77
80
  }
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { LockConfigurationInput } from './LockConfigurationInput';
12
13
  import type { AdminAccountSettingsAffiliateInput } from './AdminAccountSettingsAffiliateInput';
13
14
  import type { AdminAccountCommissionByDateRangeInput } from './AdminAccountCommissionByDateRangeInput';
14
15
  import type { AdminAuctionConfigurationInput } from './AdminAuctionConfigurationInput';
@@ -60,6 +61,12 @@ export interface AdminAccountSettingsInput {
60
61
  * @memberof AdminAccountSettingsInput
61
62
  */
62
63
  auctionConfiguration?: AdminAuctionConfigurationInput;
64
+ /**
65
+ *
66
+ * @type {LockConfigurationInput}
67
+ * @memberof AdminAccountSettingsInput
68
+ */
69
+ domainLockConfiguration?: LockConfigurationInput;
63
70
  }
64
71
  /**
65
72
  * Check if a given object implements the AdminAccountSettingsInput interface.
@@ -18,6 +18,7 @@ exports.AdminAccountSettingsInputFromJSON = AdminAccountSettingsInputFromJSON;
18
18
  exports.AdminAccountSettingsInputFromJSONTyped = AdminAccountSettingsInputFromJSONTyped;
19
19
  exports.AdminAccountSettingsInputToJSON = AdminAccountSettingsInputToJSON;
20
20
  exports.AdminAccountSettingsInputToJSONTyped = AdminAccountSettingsInputToJSONTyped;
21
+ var LockConfigurationInput_1 = require("./LockConfigurationInput");
21
22
  var AdminAccountSettingsAffiliateInput_1 = require("./AdminAccountSettingsAffiliateInput");
22
23
  var AdminAccountCommissionByDateRangeInput_1 = require("./AdminAccountCommissionByDateRangeInput");
23
24
  var AdminAuctionConfigurationInput_1 = require("./AdminAuctionConfigurationInput");
@@ -42,6 +43,7 @@ function AdminAccountSettingsInputFromJSONTyped(json, ignoreDiscriminator) {
42
43
  'affiliate': json['affiliate'] == null ? undefined : (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputFromJSON)(json['affiliate']),
43
44
  'domainAffiliate': json['domainAffiliate'] == null ? undefined : (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputFromJSON)(json['domainAffiliate']),
44
45
  'auctionConfiguration': json['auctionConfiguration'] == null ? undefined : (0, AdminAuctionConfigurationInput_1.AdminAuctionConfigurationInputFromJSON)(json['auctionConfiguration']),
46
+ 'domainLockConfiguration': json['domainLockConfiguration'] == null ? undefined : (0, LockConfigurationInput_1.LockConfigurationInputFromJSON)(json['domainLockConfiguration']),
45
47
  };
46
48
  }
47
49
  function AdminAccountSettingsInputToJSON(json) {
@@ -60,5 +62,6 @@ function AdminAccountSettingsInputToJSONTyped(value, ignoreDiscriminator) {
60
62
  'affiliate': (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputToJSON)(value['affiliate']),
61
63
  'domainAffiliate': (0, AdminAccountSettingsAffiliateInput_1.AdminAccountSettingsAffiliateInputToJSON)(value['domainAffiliate']),
62
64
  'auctionConfiguration': (0, AdminAuctionConfigurationInput_1.AdminAuctionConfigurationInputToJSON)(value['auctionConfiguration']),
65
+ 'domainLockConfiguration': (0, LockConfigurationInput_1.LockConfigurationInputToJSON)(value['domainLockConfiguration']),
63
66
  };
64
67
  }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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 { LockDurationDto } from './LockDurationDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DomainLockConfigurationDto
17
+ */
18
+ export interface DomainLockConfigurationDto {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof DomainLockConfigurationDto
23
+ */
24
+ enabled: boolean;
25
+ /**
26
+ *
27
+ * @type {LockDurationDto}
28
+ * @memberof DomainLockConfigurationDto
29
+ */
30
+ duration: LockDurationDto;
31
+ }
32
+ /**
33
+ * Check if a given object implements the DomainLockConfigurationDto interface.
34
+ */
35
+ export declare function instanceOfDomainLockConfigurationDto(value: object): value is DomainLockConfigurationDto;
36
+ export declare function DomainLockConfigurationDtoFromJSON(json: any): DomainLockConfigurationDto;
37
+ export declare function DomainLockConfigurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainLockConfigurationDto;
38
+ export declare function DomainLockConfigurationDtoToJSON(json: any): DomainLockConfigurationDto;
39
+ export declare function DomainLockConfigurationDtoToJSONTyped(value?: DomainLockConfigurationDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
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.instanceOfDomainLockConfigurationDto = instanceOfDomainLockConfigurationDto;
17
+ exports.DomainLockConfigurationDtoFromJSON = DomainLockConfigurationDtoFromJSON;
18
+ exports.DomainLockConfigurationDtoFromJSONTyped = DomainLockConfigurationDtoFromJSONTyped;
19
+ exports.DomainLockConfigurationDtoToJSON = DomainLockConfigurationDtoToJSON;
20
+ exports.DomainLockConfigurationDtoToJSONTyped = DomainLockConfigurationDtoToJSONTyped;
21
+ var LockDurationDto_1 = require("./LockDurationDto");
22
+ /**
23
+ * Check if a given object implements the DomainLockConfigurationDto interface.
24
+ */
25
+ function instanceOfDomainLockConfigurationDto(value) {
26
+ if (!('enabled' in value) || value['enabled'] === undefined)
27
+ return false;
28
+ if (!('duration' in value) || value['duration'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function DomainLockConfigurationDtoFromJSON(json) {
33
+ return DomainLockConfigurationDtoFromJSONTyped(json, false);
34
+ }
35
+ function DomainLockConfigurationDtoFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'enabled': json['enabled'],
41
+ 'duration': (0, LockDurationDto_1.LockDurationDtoFromJSON)(json['duration']),
42
+ };
43
+ }
44
+ function DomainLockConfigurationDtoToJSON(json) {
45
+ return DomainLockConfigurationDtoToJSONTyped(json, false);
46
+ }
47
+ function DomainLockConfigurationDtoToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'enabled': value['enabled'],
54
+ 'duration': (0, LockDurationDto_1.LockDurationDtoToJSON)(value['duration']),
55
+ };
56
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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 { LockDurationInput } from './LockDurationInput';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface LockConfigurationInput
17
+ */
18
+ export interface LockConfigurationInput {
19
+ /**
20
+ *
21
+ * @type {boolean}
22
+ * @memberof LockConfigurationInput
23
+ */
24
+ enabled?: boolean;
25
+ /**
26
+ *
27
+ * @type {LockDurationInput}
28
+ * @memberof LockConfigurationInput
29
+ */
30
+ duration?: LockDurationInput;
31
+ }
32
+ /**
33
+ * Check if a given object implements the LockConfigurationInput interface.
34
+ */
35
+ export declare function instanceOfLockConfigurationInput(value: object): value is LockConfigurationInput;
36
+ export declare function LockConfigurationInputFromJSON(json: any): LockConfigurationInput;
37
+ export declare function LockConfigurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LockConfigurationInput;
38
+ export declare function LockConfigurationInputToJSON(json: any): LockConfigurationInput;
39
+ export declare function LockConfigurationInputToJSONTyped(value?: LockConfigurationInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
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.instanceOfLockConfigurationInput = instanceOfLockConfigurationInput;
17
+ exports.LockConfigurationInputFromJSON = LockConfigurationInputFromJSON;
18
+ exports.LockConfigurationInputFromJSONTyped = LockConfigurationInputFromJSONTyped;
19
+ exports.LockConfigurationInputToJSON = LockConfigurationInputToJSON;
20
+ exports.LockConfigurationInputToJSONTyped = LockConfigurationInputToJSONTyped;
21
+ var LockDurationInput_1 = require("./LockDurationInput");
22
+ /**
23
+ * Check if a given object implements the LockConfigurationInput interface.
24
+ */
25
+ function instanceOfLockConfigurationInput(value) {
26
+ return true;
27
+ }
28
+ function LockConfigurationInputFromJSON(json) {
29
+ return LockConfigurationInputFromJSONTyped(json, false);
30
+ }
31
+ function LockConfigurationInputFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'enabled': json['enabled'] == null ? undefined : json['enabled'],
37
+ 'duration': json['duration'] == null ? undefined : (0, LockDurationInput_1.LockDurationInputFromJSON)(json['duration']),
38
+ };
39
+ }
40
+ function LockConfigurationInputToJSON(json) {
41
+ return LockConfigurationInputToJSONTyped(json, false);
42
+ }
43
+ function LockConfigurationInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'enabled': value['enabled'],
50
+ 'duration': (0, LockDurationInput_1.LockDurationInputToJSON)(value['duration']),
51
+ };
52
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface LockDurationDto
16
+ */
17
+ export interface LockDurationDto {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof LockDurationDto
22
+ */
23
+ amount: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LockDurationDto
28
+ */
29
+ unit: LockDurationDtoUnitEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const LockDurationDtoUnitEnum: {
35
+ readonly MINUTE: "minute";
36
+ readonly HOUR: "hour";
37
+ readonly DAY: "day";
38
+ };
39
+ export type LockDurationDtoUnitEnum = typeof LockDurationDtoUnitEnum[keyof typeof LockDurationDtoUnitEnum];
40
+ /**
41
+ * Check if a given object implements the LockDurationDto interface.
42
+ */
43
+ export declare function instanceOfLockDurationDto(value: object): value is LockDurationDto;
44
+ export declare function LockDurationDtoFromJSON(json: any): LockDurationDto;
45
+ export declare function LockDurationDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): LockDurationDto;
46
+ export declare function LockDurationDtoToJSON(json: any): LockDurationDto;
47
+ export declare function LockDurationDtoToJSONTyped(value?: LockDurationDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,64 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift API
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.LockDurationDtoUnitEnum = void 0;
17
+ exports.instanceOfLockDurationDto = instanceOfLockDurationDto;
18
+ exports.LockDurationDtoFromJSON = LockDurationDtoFromJSON;
19
+ exports.LockDurationDtoFromJSONTyped = LockDurationDtoFromJSONTyped;
20
+ exports.LockDurationDtoToJSON = LockDurationDtoToJSON;
21
+ exports.LockDurationDtoToJSONTyped = LockDurationDtoToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.LockDurationDtoUnitEnum = {
26
+ MINUTE: 'minute',
27
+ HOUR: 'hour',
28
+ DAY: 'day'
29
+ };
30
+ /**
31
+ * Check if a given object implements the LockDurationDto interface.
32
+ */
33
+ function instanceOfLockDurationDto(value) {
34
+ if (!('amount' in value) || value['amount'] === undefined)
35
+ return false;
36
+ if (!('unit' in value) || value['unit'] === undefined)
37
+ return false;
38
+ return true;
39
+ }
40
+ function LockDurationDtoFromJSON(json) {
41
+ return LockDurationDtoFromJSONTyped(json, false);
42
+ }
43
+ function LockDurationDtoFromJSONTyped(json, ignoreDiscriminator) {
44
+ if (json == null) {
45
+ return json;
46
+ }
47
+ return {
48
+ 'amount': json['amount'],
49
+ 'unit': json['unit'],
50
+ };
51
+ }
52
+ function LockDurationDtoToJSON(json) {
53
+ return LockDurationDtoToJSONTyped(json, false);
54
+ }
55
+ function LockDurationDtoToJSONTyped(value, ignoreDiscriminator) {
56
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
57
+ if (value == null) {
58
+ return value;
59
+ }
60
+ return {
61
+ 'amount': value['amount'],
62
+ 'unit': value['unit'],
63
+ };
64
+ }
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift API
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
+ /**
13
+ *
14
+ * @export
15
+ * @interface LockDurationInput
16
+ */
17
+ export interface LockDurationInput {
18
+ /**
19
+ *
20
+ * @type {number}
21
+ * @memberof LockDurationInput
22
+ */
23
+ amount?: number;
24
+ /**
25
+ *
26
+ * @type {string}
27
+ * @memberof LockDurationInput
28
+ */
29
+ unit?: LockDurationInputUnitEnum;
30
+ }
31
+ /**
32
+ * @export
33
+ */
34
+ export declare const LockDurationInputUnitEnum: {
35
+ readonly MINUTE: "minute";
36
+ readonly HOUR: "hour";
37
+ readonly DAY: "day";
38
+ };
39
+ export type LockDurationInputUnitEnum = typeof LockDurationInputUnitEnum[keyof typeof LockDurationInputUnitEnum];
40
+ /**
41
+ * Check if a given object implements the LockDurationInput interface.
42
+ */
43
+ export declare function instanceOfLockDurationInput(value: object): value is LockDurationInput;
44
+ export declare function LockDurationInputFromJSON(json: any): LockDurationInput;
45
+ export declare function LockDurationInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): LockDurationInput;
46
+ export declare function LockDurationInputToJSON(json: any): LockDurationInput;
47
+ export declare function LockDurationInputToJSONTyped(value?: LockDurationInput | null, ignoreDiscriminator?: boolean): any;