@randock/nameshift-api-client 0.0.520 → 0.0.522

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 (50) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/LeadsApi.d.ts +4 -4
  4. package/dist/apis/LeadsApi.js +4 -4
  5. package/dist/apis/QuickRepliesApi.d.ts +66 -3
  6. package/dist/apis/QuickRepliesApi.js +319 -2
  7. package/dist/models/AccountQuickReplyCustomVariableDto.d.ts +51 -0
  8. package/dist/models/AccountQuickReplyCustomVariableDto.js +64 -0
  9. package/dist/models/AccountQuickReplyCustomVariableInput.d.ts +39 -0
  10. package/dist/models/AccountQuickReplyCustomVariableInput.js +56 -0
  11. package/dist/models/AccountQuickReplyCustomVariableListDto.d.ts +33 -0
  12. package/dist/models/AccountQuickReplyCustomVariableListDto.js +52 -0
  13. package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +1 -1
  14. package/dist/models/LeadDto.d.ts +1 -1
  15. package/dist/models/LeadQuickReplyDto.d.ts +8 -1
  16. package/dist/models/LeadQuickReplyDto.js +5 -0
  17. package/dist/models/LeadQuickReplyListDto.d.ts +12 -0
  18. package/dist/models/LeadQuickReplyListDto.js +8 -0
  19. package/dist/models/ListLeadsResultItem.d.ts +1 -1
  20. package/dist/models/QuickReplyCustomVariableDto.d.ts +45 -0
  21. package/dist/models/QuickReplyCustomVariableDto.js +60 -0
  22. package/dist/models/QuickReplyCustomVariableInput.d.ts +45 -0
  23. package/dist/models/QuickReplyCustomVariableInput.js +60 -0
  24. package/dist/models/QuickReplyCustomVariableTypeEnum.d.ts +26 -0
  25. package/dist/models/QuickReplyCustomVariableTypeEnum.js +52 -0
  26. package/dist/models/QuickReplyDto.d.ts +8 -1
  27. package/dist/models/QuickReplyDto.js +5 -0
  28. package/dist/models/QuickReplyInput.d.ts +8 -1
  29. package/dist/models/QuickReplyInput.js +3 -0
  30. package/dist/models/SellerLeadDetails.d.ts +1 -1
  31. package/dist/models/index.d.ts +6 -0
  32. package/dist/models/index.js +6 -0
  33. package/package.json +1 -1
  34. package/src/apis/LeadsApi.ts +4 -4
  35. package/src/apis/QuickRepliesApi.ts +268 -2
  36. package/src/models/AccountQuickReplyCustomVariableDto.ts +103 -0
  37. package/src/models/AccountQuickReplyCustomVariableInput.ts +85 -0
  38. package/src/models/AccountQuickReplyCustomVariableListDto.ts +74 -0
  39. package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +1 -1
  40. package/src/models/LeadDto.ts +1 -1
  41. package/src/models/LeadQuickReplyDto.ts +17 -1
  42. package/src/models/LeadQuickReplyListDto.ts +18 -0
  43. package/src/models/ListLeadsResultItem.ts +1 -1
  44. package/src/models/QuickReplyCustomVariableDto.ts +94 -0
  45. package/src/models/QuickReplyCustomVariableInput.ts +94 -0
  46. package/src/models/QuickReplyCustomVariableTypeEnum.ts +54 -0
  47. package/src/models/QuickReplyDto.ts +17 -1
  48. package/src/models/QuickReplyInput.ts +17 -1
  49. package/src/models/SellerLeadDetails.ts +1 -1
  50. package/src/models/index.ts +6 -0
@@ -0,0 +1,64 @@
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.instanceOfAccountQuickReplyCustomVariableDto = instanceOfAccountQuickReplyCustomVariableDto;
17
+ exports.AccountQuickReplyCustomVariableDtoFromJSON = AccountQuickReplyCustomVariableDtoFromJSON;
18
+ exports.AccountQuickReplyCustomVariableDtoFromJSONTyped = AccountQuickReplyCustomVariableDtoFromJSONTyped;
19
+ exports.AccountQuickReplyCustomVariableDtoToJSON = AccountQuickReplyCustomVariableDtoToJSON;
20
+ exports.AccountQuickReplyCustomVariableDtoToJSONTyped = AccountQuickReplyCustomVariableDtoToJSONTyped;
21
+ var QuickReplyCustomVariableTypeEnum_1 = require("./QuickReplyCustomVariableTypeEnum");
22
+ /**
23
+ * Check if a given object implements the AccountQuickReplyCustomVariableDto interface.
24
+ */
25
+ function instanceOfAccountQuickReplyCustomVariableDto(value) {
26
+ if (!('id' in value) || value['id'] === undefined)
27
+ return false;
28
+ if (!('key' in value) || value['key'] === undefined)
29
+ return false;
30
+ if (!('label' in value) || value['label'] === undefined)
31
+ return false;
32
+ if (!('type' in value) || value['type'] === undefined)
33
+ return false;
34
+ return true;
35
+ }
36
+ function AccountQuickReplyCustomVariableDtoFromJSON(json) {
37
+ return AccountQuickReplyCustomVariableDtoFromJSONTyped(json, false);
38
+ }
39
+ function AccountQuickReplyCustomVariableDtoFromJSONTyped(json, ignoreDiscriminator) {
40
+ if (json == null) {
41
+ return json;
42
+ }
43
+ return {
44
+ 'id': json['id'],
45
+ 'key': json['key'],
46
+ 'label': json['label'],
47
+ 'type': (0, QuickReplyCustomVariableTypeEnum_1.QuickReplyCustomVariableTypeEnumFromJSON)(json['type']),
48
+ };
49
+ }
50
+ function AccountQuickReplyCustomVariableDtoToJSON(json) {
51
+ return AccountQuickReplyCustomVariableDtoToJSONTyped(json, false);
52
+ }
53
+ function AccountQuickReplyCustomVariableDtoToJSONTyped(value, ignoreDiscriminator) {
54
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'id': value['id'],
60
+ 'key': value['key'],
61
+ 'label': value['label'],
62
+ 'type': (0, QuickReplyCustomVariableTypeEnum_1.QuickReplyCustomVariableTypeEnumToJSON)(value['type']),
63
+ };
64
+ }
@@ -0,0 +1,39 @@
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 { QuickReplyCustomVariableTypeEnum } from './QuickReplyCustomVariableTypeEnum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AccountQuickReplyCustomVariableInput
17
+ */
18
+ export interface AccountQuickReplyCustomVariableInput {
19
+ /**
20
+ * Name the seller gives to the variable.
21
+ * @type {string}
22
+ * @memberof AccountQuickReplyCustomVariableInput
23
+ */
24
+ label: string;
25
+ /**
26
+ * Kind of value the variable takes.
27
+ * @type {QuickReplyCustomVariableTypeEnum}
28
+ * @memberof AccountQuickReplyCustomVariableInput
29
+ */
30
+ type: QuickReplyCustomVariableTypeEnum;
31
+ }
32
+ /**
33
+ * Check if a given object implements the AccountQuickReplyCustomVariableInput interface.
34
+ */
35
+ export declare function instanceOfAccountQuickReplyCustomVariableInput(value: object): value is AccountQuickReplyCustomVariableInput;
36
+ export declare function AccountQuickReplyCustomVariableInputFromJSON(json: any): AccountQuickReplyCustomVariableInput;
37
+ export declare function AccountQuickReplyCustomVariableInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountQuickReplyCustomVariableInput;
38
+ export declare function AccountQuickReplyCustomVariableInputToJSON(json: any): AccountQuickReplyCustomVariableInput;
39
+ export declare function AccountQuickReplyCustomVariableInputToJSONTyped(value?: AccountQuickReplyCustomVariableInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,56 @@
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.instanceOfAccountQuickReplyCustomVariableInput = instanceOfAccountQuickReplyCustomVariableInput;
17
+ exports.AccountQuickReplyCustomVariableInputFromJSON = AccountQuickReplyCustomVariableInputFromJSON;
18
+ exports.AccountQuickReplyCustomVariableInputFromJSONTyped = AccountQuickReplyCustomVariableInputFromJSONTyped;
19
+ exports.AccountQuickReplyCustomVariableInputToJSON = AccountQuickReplyCustomVariableInputToJSON;
20
+ exports.AccountQuickReplyCustomVariableInputToJSONTyped = AccountQuickReplyCustomVariableInputToJSONTyped;
21
+ var QuickReplyCustomVariableTypeEnum_1 = require("./QuickReplyCustomVariableTypeEnum");
22
+ /**
23
+ * Check if a given object implements the AccountQuickReplyCustomVariableInput interface.
24
+ */
25
+ function instanceOfAccountQuickReplyCustomVariableInput(value) {
26
+ if (!('label' in value) || value['label'] === undefined)
27
+ return false;
28
+ if (!('type' in value) || value['type'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function AccountQuickReplyCustomVariableInputFromJSON(json) {
33
+ return AccountQuickReplyCustomVariableInputFromJSONTyped(json, false);
34
+ }
35
+ function AccountQuickReplyCustomVariableInputFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'label': json['label'],
41
+ 'type': (0, QuickReplyCustomVariableTypeEnum_1.QuickReplyCustomVariableTypeEnumFromJSON)(json['type']),
42
+ };
43
+ }
44
+ function AccountQuickReplyCustomVariableInputToJSON(json) {
45
+ return AccountQuickReplyCustomVariableInputToJSONTyped(json, false);
46
+ }
47
+ function AccountQuickReplyCustomVariableInputToJSONTyped(value, ignoreDiscriminator) {
48
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
49
+ if (value == null) {
50
+ return value;
51
+ }
52
+ return {
53
+ 'label': value['label'],
54
+ 'type': (0, QuickReplyCustomVariableTypeEnum_1.QuickReplyCustomVariableTypeEnumToJSON)(value['type']),
55
+ };
56
+ }
@@ -0,0 +1,33 @@
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 { AccountQuickReplyCustomVariableDto } from './AccountQuickReplyCustomVariableDto';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface AccountQuickReplyCustomVariableListDto
17
+ */
18
+ export interface AccountQuickReplyCustomVariableListDto {
19
+ /**
20
+ * Custom variables of the account, sorted by label.
21
+ * @type {Array<AccountQuickReplyCustomVariableDto>}
22
+ * @memberof AccountQuickReplyCustomVariableListDto
23
+ */
24
+ data: Array<AccountQuickReplyCustomVariableDto>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the AccountQuickReplyCustomVariableListDto interface.
28
+ */
29
+ export declare function instanceOfAccountQuickReplyCustomVariableListDto(value: object): value is AccountQuickReplyCustomVariableListDto;
30
+ export declare function AccountQuickReplyCustomVariableListDtoFromJSON(json: any): AccountQuickReplyCustomVariableListDto;
31
+ export declare function AccountQuickReplyCustomVariableListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountQuickReplyCustomVariableListDto;
32
+ export declare function AccountQuickReplyCustomVariableListDtoToJSON(json: any): AccountQuickReplyCustomVariableListDto;
33
+ export declare function AccountQuickReplyCustomVariableListDtoToJSONTyped(value?: AccountQuickReplyCustomVariableListDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,52 @@
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.instanceOfAccountQuickReplyCustomVariableListDto = instanceOfAccountQuickReplyCustomVariableListDto;
17
+ exports.AccountQuickReplyCustomVariableListDtoFromJSON = AccountQuickReplyCustomVariableListDtoFromJSON;
18
+ exports.AccountQuickReplyCustomVariableListDtoFromJSONTyped = AccountQuickReplyCustomVariableListDtoFromJSONTyped;
19
+ exports.AccountQuickReplyCustomVariableListDtoToJSON = AccountQuickReplyCustomVariableListDtoToJSON;
20
+ exports.AccountQuickReplyCustomVariableListDtoToJSONTyped = AccountQuickReplyCustomVariableListDtoToJSONTyped;
21
+ var AccountQuickReplyCustomVariableDto_1 = require("./AccountQuickReplyCustomVariableDto");
22
+ /**
23
+ * Check if a given object implements the AccountQuickReplyCustomVariableListDto interface.
24
+ */
25
+ function instanceOfAccountQuickReplyCustomVariableListDto(value) {
26
+ if (!('data' in value) || value['data'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function AccountQuickReplyCustomVariableListDtoFromJSON(json) {
31
+ return AccountQuickReplyCustomVariableListDtoFromJSONTyped(json, false);
32
+ }
33
+ function AccountQuickReplyCustomVariableListDtoFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'data': (json['data'].map(AccountQuickReplyCustomVariableDto_1.AccountQuickReplyCustomVariableDtoFromJSON)),
39
+ };
40
+ }
41
+ function AccountQuickReplyCustomVariableListDtoToJSON(json) {
42
+ return AccountQuickReplyCustomVariableListDtoToJSONTyped(json, false);
43
+ }
44
+ function AccountQuickReplyCustomVariableListDtoToJSONTyped(value, ignoreDiscriminator) {
45
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'data': (value['data'].map(AccountQuickReplyCustomVariableDto_1.AccountQuickReplyCustomVariableDtoToJSON)),
51
+ };
52
+ }
@@ -149,7 +149,7 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
149
149
  */
150
150
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
151
151
  /**
152
- * Whether the lead can be closed by the seller
152
+ * Whether the seller can close the lead now. An accepted lead can be closed once its payment link has expired or a month after it was accepted, and a manual lead whose payment link the buyer never used at any time; never while the buyer has paid or a payment is being processed.
153
153
  * @type {boolean}
154
154
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
155
155
  */
@@ -148,7 +148,7 @@ export interface LeadDto {
148
148
  */
149
149
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
150
150
  /**
151
- * Whether the lead can be closed by the seller
151
+ * Whether the seller can close the lead now. An accepted lead can be closed once its payment link has expired or a month after it was accepted, and a manual lead whose payment link the buyer never used at any time; never while the buyer has paid or a payment is being processed.
152
152
  * @type {boolean}
153
153
  * @memberof LeadDto
154
154
  */
@@ -9,6 +9,7 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { QuickReplyCustomVariableDto } from './QuickReplyCustomVariableDto';
12
13
  import type { QuickReplyVariableEnum } from './QuickReplyVariableEnum';
13
14
  /**
14
15
  *
@@ -29,7 +30,7 @@ export interface LeadQuickReplyDto {
29
30
  */
30
31
  name: string;
31
32
  /**
32
- * Message with the variables replaced by the values of the lead.
33
+ * Message with the variables replaced by the values of the lead. The {{custom.key}} tokens are kept.
33
34
  * @type {string}
34
35
  * @memberof LeadQuickReplyDto
35
36
  */
@@ -40,6 +41,12 @@ export interface LeadQuickReplyDto {
40
41
  * @memberof LeadQuickReplyDto
41
42
  */
42
43
  missingVariables: Array<QuickReplyVariableEnum>;
44
+ /**
45
+ * Variables the seller fills in when using the reply.
46
+ * @type {Array<QuickReplyCustomVariableDto>}
47
+ * @memberof LeadQuickReplyDto
48
+ */
49
+ customVariables: Array<QuickReplyCustomVariableDto>;
43
50
  }
44
51
  /**
45
52
  * Check if a given object implements the LeadQuickReplyDto interface.
@@ -18,6 +18,7 @@ exports.LeadQuickReplyDtoFromJSON = LeadQuickReplyDtoFromJSON;
18
18
  exports.LeadQuickReplyDtoFromJSONTyped = LeadQuickReplyDtoFromJSONTyped;
19
19
  exports.LeadQuickReplyDtoToJSON = LeadQuickReplyDtoToJSON;
20
20
  exports.LeadQuickReplyDtoToJSONTyped = LeadQuickReplyDtoToJSONTyped;
21
+ var QuickReplyCustomVariableDto_1 = require("./QuickReplyCustomVariableDto");
21
22
  var QuickReplyVariableEnum_1 = require("./QuickReplyVariableEnum");
22
23
  /**
23
24
  * Check if a given object implements the LeadQuickReplyDto interface.
@@ -31,6 +32,8 @@ function instanceOfLeadQuickReplyDto(value) {
31
32
  return false;
32
33
  if (!('missingVariables' in value) || value['missingVariables'] === undefined)
33
34
  return false;
35
+ if (!('customVariables' in value) || value['customVariables'] === undefined)
36
+ return false;
34
37
  return true;
35
38
  }
36
39
  function LeadQuickReplyDtoFromJSON(json) {
@@ -45,6 +48,7 @@ function LeadQuickReplyDtoFromJSONTyped(json, ignoreDiscriminator) {
45
48
  'name': json['name'],
46
49
  'message': json['message'],
47
50
  'missingVariables': (json['missingVariables'].map(QuickReplyVariableEnum_1.QuickReplyVariableEnumFromJSON)),
51
+ 'customVariables': (json['customVariables'].map(QuickReplyCustomVariableDto_1.QuickReplyCustomVariableDtoFromJSON)),
48
52
  };
49
53
  }
50
54
  function LeadQuickReplyDtoToJSON(json) {
@@ -60,5 +64,6 @@ function LeadQuickReplyDtoToJSONTyped(value, ignoreDiscriminator) {
60
64
  'name': value['name'],
61
65
  'message': value['message'],
62
66
  'missingVariables': (value['missingVariables'].map(QuickReplyVariableEnum_1.QuickReplyVariableEnumToJSON)),
67
+ 'customVariables': (value['customVariables'].map(QuickReplyCustomVariableDto_1.QuickReplyCustomVariableDtoToJSON)),
63
68
  };
64
69
  }
@@ -22,6 +22,18 @@ export interface LeadQuickReplyListDto {
22
22
  * @memberof LeadQuickReplyListDto
23
23
  */
24
24
  data: Array<LeadQuickReplyDto>;
25
+ /**
26
+ * Locale of the buyer, to format the custom variables in.
27
+ * @type {string}
28
+ * @memberof LeadQuickReplyListDto
29
+ */
30
+ buyerLocale: string;
31
+ /**
32
+ * Currency of the domain, for the price custom variables.
33
+ * @type {string}
34
+ * @memberof LeadQuickReplyListDto
35
+ */
36
+ currencyCode: string;
25
37
  }
26
38
  /**
27
39
  * Check if a given object implements the LeadQuickReplyListDto interface.
@@ -25,6 +25,10 @@ var LeadQuickReplyDto_1 = require("./LeadQuickReplyDto");
25
25
  function instanceOfLeadQuickReplyListDto(value) {
26
26
  if (!('data' in value) || value['data'] === undefined)
27
27
  return false;
28
+ if (!('buyerLocale' in value) || value['buyerLocale'] === undefined)
29
+ return false;
30
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined)
31
+ return false;
28
32
  return true;
29
33
  }
30
34
  function LeadQuickReplyListDtoFromJSON(json) {
@@ -36,6 +40,8 @@ function LeadQuickReplyListDtoFromJSONTyped(json, ignoreDiscriminator) {
36
40
  }
37
41
  return {
38
42
  'data': (json['data'].map(LeadQuickReplyDto_1.LeadQuickReplyDtoFromJSON)),
43
+ 'buyerLocale': json['buyerLocale'],
44
+ 'currencyCode': json['currencyCode'],
39
45
  };
40
46
  }
41
47
  function LeadQuickReplyListDtoToJSON(json) {
@@ -48,5 +54,7 @@ function LeadQuickReplyListDtoToJSONTyped(value, ignoreDiscriminator) {
48
54
  }
49
55
  return {
50
56
  'data': (value['data'].map(LeadQuickReplyDto_1.LeadQuickReplyDtoToJSON)),
57
+ 'buyerLocale': value['buyerLocale'],
58
+ 'currencyCode': value['currencyCode'],
51
59
  };
52
60
  }
@@ -149,7 +149,7 @@ export interface ListLeadsResultItem {
149
149
  */
150
150
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
151
151
  /**
152
- * Whether the lead can be closed by the seller
152
+ * Whether the seller can close the lead now. An accepted lead can be closed once its payment link has expired or a month after it was accepted, and a manual lead whose payment link the buyer never used at any time; never while the buyer has paid or a payment is being processed.
153
153
  * @type {boolean}
154
154
  * @memberof ListLeadsResultItem
155
155
  */
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { QuickReplyCustomVariableTypeEnum } from './QuickReplyCustomVariableTypeEnum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface QuickReplyCustomVariableDto
17
+ */
18
+ export interface QuickReplyCustomVariableDto {
19
+ /**
20
+ * Key of the variable in its {{custom.key}} token.
21
+ * @type {string}
22
+ * @memberof QuickReplyCustomVariableDto
23
+ */
24
+ key: string;
25
+ /**
26
+ * Name the seller gave to the variable.
27
+ * @type {string}
28
+ * @memberof QuickReplyCustomVariableDto
29
+ */
30
+ label: string;
31
+ /**
32
+ * Kind of value the variable takes.
33
+ * @type {QuickReplyCustomVariableTypeEnum}
34
+ * @memberof QuickReplyCustomVariableDto
35
+ */
36
+ type: QuickReplyCustomVariableTypeEnum;
37
+ }
38
+ /**
39
+ * Check if a given object implements the QuickReplyCustomVariableDto interface.
40
+ */
41
+ export declare function instanceOfQuickReplyCustomVariableDto(value: object): value is QuickReplyCustomVariableDto;
42
+ export declare function QuickReplyCustomVariableDtoFromJSON(json: any): QuickReplyCustomVariableDto;
43
+ export declare function QuickReplyCustomVariableDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuickReplyCustomVariableDto;
44
+ export declare function QuickReplyCustomVariableDtoToJSON(json: any): QuickReplyCustomVariableDto;
45
+ export declare function QuickReplyCustomVariableDtoToJSONTyped(value?: QuickReplyCustomVariableDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfQuickReplyCustomVariableDto = instanceOfQuickReplyCustomVariableDto;
17
+ exports.QuickReplyCustomVariableDtoFromJSON = QuickReplyCustomVariableDtoFromJSON;
18
+ exports.QuickReplyCustomVariableDtoFromJSONTyped = QuickReplyCustomVariableDtoFromJSONTyped;
19
+ exports.QuickReplyCustomVariableDtoToJSON = QuickReplyCustomVariableDtoToJSON;
20
+ exports.QuickReplyCustomVariableDtoToJSONTyped = QuickReplyCustomVariableDtoToJSONTyped;
21
+ var QuickReplyCustomVariableTypeEnum_1 = require("./QuickReplyCustomVariableTypeEnum");
22
+ /**
23
+ * Check if a given object implements the QuickReplyCustomVariableDto interface.
24
+ */
25
+ function instanceOfQuickReplyCustomVariableDto(value) {
26
+ if (!('key' in value) || value['key'] === undefined)
27
+ return false;
28
+ if (!('label' in value) || value['label'] === undefined)
29
+ return false;
30
+ if (!('type' in value) || value['type'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function QuickReplyCustomVariableDtoFromJSON(json) {
35
+ return QuickReplyCustomVariableDtoFromJSONTyped(json, false);
36
+ }
37
+ function QuickReplyCustomVariableDtoFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'key': json['key'],
43
+ 'label': json['label'],
44
+ 'type': (0, QuickReplyCustomVariableTypeEnum_1.QuickReplyCustomVariableTypeEnumFromJSON)(json['type']),
45
+ };
46
+ }
47
+ function QuickReplyCustomVariableDtoToJSON(json) {
48
+ return QuickReplyCustomVariableDtoToJSONTyped(json, false);
49
+ }
50
+ function QuickReplyCustomVariableDtoToJSONTyped(value, ignoreDiscriminator) {
51
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'key': value['key'],
57
+ 'label': value['label'],
58
+ 'type': (0, QuickReplyCustomVariableTypeEnum_1.QuickReplyCustomVariableTypeEnumToJSON)(value['type']),
59
+ };
60
+ }
@@ -0,0 +1,45 @@
1
+ /**
2
+ * Nameshift
3
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
4
+ *
5
+ * The version of the OpenAPI document: 1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { QuickReplyCustomVariableTypeEnum } from './QuickReplyCustomVariableTypeEnum';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface QuickReplyCustomVariableInput
17
+ */
18
+ export interface QuickReplyCustomVariableInput {
19
+ /**
20
+ * Key of the variable in its {{custom.key}} token.
21
+ * @type {string}
22
+ * @memberof QuickReplyCustomVariableInput
23
+ */
24
+ key: string;
25
+ /**
26
+ * Name the seller gives to the variable.
27
+ * @type {string}
28
+ * @memberof QuickReplyCustomVariableInput
29
+ */
30
+ label: string;
31
+ /**
32
+ * Kind of value the variable takes.
33
+ * @type {QuickReplyCustomVariableTypeEnum}
34
+ * @memberof QuickReplyCustomVariableInput
35
+ */
36
+ type: QuickReplyCustomVariableTypeEnum;
37
+ }
38
+ /**
39
+ * Check if a given object implements the QuickReplyCustomVariableInput interface.
40
+ */
41
+ export declare function instanceOfQuickReplyCustomVariableInput(value: object): value is QuickReplyCustomVariableInput;
42
+ export declare function QuickReplyCustomVariableInputFromJSON(json: any): QuickReplyCustomVariableInput;
43
+ export declare function QuickReplyCustomVariableInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuickReplyCustomVariableInput;
44
+ export declare function QuickReplyCustomVariableInputToJSON(json: any): QuickReplyCustomVariableInput;
45
+ export declare function QuickReplyCustomVariableInputToJSONTyped(value?: QuickReplyCustomVariableInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,60 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Nameshift
6
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
7
+ *
8
+ * The version of the OpenAPI document: 1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfQuickReplyCustomVariableInput = instanceOfQuickReplyCustomVariableInput;
17
+ exports.QuickReplyCustomVariableInputFromJSON = QuickReplyCustomVariableInputFromJSON;
18
+ exports.QuickReplyCustomVariableInputFromJSONTyped = QuickReplyCustomVariableInputFromJSONTyped;
19
+ exports.QuickReplyCustomVariableInputToJSON = QuickReplyCustomVariableInputToJSON;
20
+ exports.QuickReplyCustomVariableInputToJSONTyped = QuickReplyCustomVariableInputToJSONTyped;
21
+ var QuickReplyCustomVariableTypeEnum_1 = require("./QuickReplyCustomVariableTypeEnum");
22
+ /**
23
+ * Check if a given object implements the QuickReplyCustomVariableInput interface.
24
+ */
25
+ function instanceOfQuickReplyCustomVariableInput(value) {
26
+ if (!('key' in value) || value['key'] === undefined)
27
+ return false;
28
+ if (!('label' in value) || value['label'] === undefined)
29
+ return false;
30
+ if (!('type' in value) || value['type'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function QuickReplyCustomVariableInputFromJSON(json) {
35
+ return QuickReplyCustomVariableInputFromJSONTyped(json, false);
36
+ }
37
+ function QuickReplyCustomVariableInputFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'key': json['key'],
43
+ 'label': json['label'],
44
+ 'type': (0, QuickReplyCustomVariableTypeEnum_1.QuickReplyCustomVariableTypeEnumFromJSON)(json['type']),
45
+ };
46
+ }
47
+ function QuickReplyCustomVariableInputToJSON(json) {
48
+ return QuickReplyCustomVariableInputToJSONTyped(json, false);
49
+ }
50
+ function QuickReplyCustomVariableInputToJSONTyped(value, ignoreDiscriminator) {
51
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'key': value['key'],
57
+ 'label': value['label'],
58
+ 'type': (0, QuickReplyCustomVariableTypeEnum_1.QuickReplyCustomVariableTypeEnumToJSON)(value['type']),
59
+ };
60
+ }
@@ -0,0 +1,26 @@
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
+ /**
13
+ * Kind of value the variable takes.
14
+ * @export
15
+ */
16
+ export declare const QuickReplyCustomVariableTypeEnum: {
17
+ readonly TEXT: "text";
18
+ readonly NUMBER: "number";
19
+ readonly PRICE: "price";
20
+ };
21
+ export type QuickReplyCustomVariableTypeEnum = typeof QuickReplyCustomVariableTypeEnum[keyof typeof QuickReplyCustomVariableTypeEnum];
22
+ export declare function instanceOfQuickReplyCustomVariableTypeEnum(value: any): boolean;
23
+ export declare function QuickReplyCustomVariableTypeEnumFromJSON(json: any): QuickReplyCustomVariableTypeEnum;
24
+ export declare function QuickReplyCustomVariableTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuickReplyCustomVariableTypeEnum;
25
+ export declare function QuickReplyCustomVariableTypeEnumToJSON(value?: QuickReplyCustomVariableTypeEnum | null): any;
26
+ export declare function QuickReplyCustomVariableTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): QuickReplyCustomVariableTypeEnum;