@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,103 @@
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 { QuickReplyCustomVariableTypeEnum } from './QuickReplyCustomVariableTypeEnum';
17
+ import {
18
+ QuickReplyCustomVariableTypeEnumFromJSON,
19
+ QuickReplyCustomVariableTypeEnumFromJSONTyped,
20
+ QuickReplyCustomVariableTypeEnumToJSON,
21
+ QuickReplyCustomVariableTypeEnumToJSONTyped,
22
+ } from './QuickReplyCustomVariableTypeEnum';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AccountQuickReplyCustomVariableDto
28
+ */
29
+ export interface AccountQuickReplyCustomVariableDto {
30
+ /**
31
+ * Custom variable id.
32
+ * @type {string}
33
+ * @memberof AccountQuickReplyCustomVariableDto
34
+ */
35
+ id: string;
36
+ /**
37
+ * Key of the variable in its {{custom.key}} token.
38
+ * @type {string}
39
+ * @memberof AccountQuickReplyCustomVariableDto
40
+ */
41
+ key: string;
42
+ /**
43
+ * Name the seller gave to the variable.
44
+ * @type {string}
45
+ * @memberof AccountQuickReplyCustomVariableDto
46
+ */
47
+ label: string;
48
+ /**
49
+ * Kind of value the variable takes.
50
+ * @type {QuickReplyCustomVariableTypeEnum}
51
+ * @memberof AccountQuickReplyCustomVariableDto
52
+ */
53
+ type: QuickReplyCustomVariableTypeEnum;
54
+ }
55
+
56
+
57
+
58
+ /**
59
+ * Check if a given object implements the AccountQuickReplyCustomVariableDto interface.
60
+ */
61
+ export function instanceOfAccountQuickReplyCustomVariableDto(value: object): value is AccountQuickReplyCustomVariableDto {
62
+ if (!('id' in value) || value['id'] === undefined) return false;
63
+ if (!('key' in value) || value['key'] === undefined) return false;
64
+ if (!('label' in value) || value['label'] === undefined) return false;
65
+ if (!('type' in value) || value['type'] === undefined) return false;
66
+ return true;
67
+ }
68
+
69
+ export function AccountQuickReplyCustomVariableDtoFromJSON(json: any): AccountQuickReplyCustomVariableDto {
70
+ return AccountQuickReplyCustomVariableDtoFromJSONTyped(json, false);
71
+ }
72
+
73
+ export function AccountQuickReplyCustomVariableDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountQuickReplyCustomVariableDto {
74
+ if (json == null) {
75
+ return json;
76
+ }
77
+ return {
78
+
79
+ 'id': json['id'],
80
+ 'key': json['key'],
81
+ 'label': json['label'],
82
+ 'type': QuickReplyCustomVariableTypeEnumFromJSON(json['type']),
83
+ };
84
+ }
85
+
86
+ export function AccountQuickReplyCustomVariableDtoToJSON(json: any): AccountQuickReplyCustomVariableDto {
87
+ return AccountQuickReplyCustomVariableDtoToJSONTyped(json, false);
88
+ }
89
+
90
+ export function AccountQuickReplyCustomVariableDtoToJSONTyped(value?: AccountQuickReplyCustomVariableDto | null, ignoreDiscriminator: boolean = false): any {
91
+ if (value == null) {
92
+ return value;
93
+ }
94
+
95
+ return {
96
+
97
+ 'id': value['id'],
98
+ 'key': value['key'],
99
+ 'label': value['label'],
100
+ 'type': QuickReplyCustomVariableTypeEnumToJSON(value['type']),
101
+ };
102
+ }
103
+
@@ -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 { QuickReplyCustomVariableTypeEnum } from './QuickReplyCustomVariableTypeEnum';
17
+ import {
18
+ QuickReplyCustomVariableTypeEnumFromJSON,
19
+ QuickReplyCustomVariableTypeEnumFromJSONTyped,
20
+ QuickReplyCustomVariableTypeEnumToJSON,
21
+ QuickReplyCustomVariableTypeEnumToJSONTyped,
22
+ } from './QuickReplyCustomVariableTypeEnum';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AccountQuickReplyCustomVariableInput
28
+ */
29
+ export interface AccountQuickReplyCustomVariableInput {
30
+ /**
31
+ * Name the seller gives to the variable.
32
+ * @type {string}
33
+ * @memberof AccountQuickReplyCustomVariableInput
34
+ */
35
+ label: string;
36
+ /**
37
+ * Kind of value the variable takes.
38
+ * @type {QuickReplyCustomVariableTypeEnum}
39
+ * @memberof AccountQuickReplyCustomVariableInput
40
+ */
41
+ type: QuickReplyCustomVariableTypeEnum;
42
+ }
43
+
44
+
45
+
46
+ /**
47
+ * Check if a given object implements the AccountQuickReplyCustomVariableInput interface.
48
+ */
49
+ export function instanceOfAccountQuickReplyCustomVariableInput(value: object): value is AccountQuickReplyCustomVariableInput {
50
+ if (!('label' in value) || value['label'] === undefined) return false;
51
+ if (!('type' in value) || value['type'] === undefined) return false;
52
+ return true;
53
+ }
54
+
55
+ export function AccountQuickReplyCustomVariableInputFromJSON(json: any): AccountQuickReplyCustomVariableInput {
56
+ return AccountQuickReplyCustomVariableInputFromJSONTyped(json, false);
57
+ }
58
+
59
+ export function AccountQuickReplyCustomVariableInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountQuickReplyCustomVariableInput {
60
+ if (json == null) {
61
+ return json;
62
+ }
63
+ return {
64
+
65
+ 'label': json['label'],
66
+ 'type': QuickReplyCustomVariableTypeEnumFromJSON(json['type']),
67
+ };
68
+ }
69
+
70
+ export function AccountQuickReplyCustomVariableInputToJSON(json: any): AccountQuickReplyCustomVariableInput {
71
+ return AccountQuickReplyCustomVariableInputToJSONTyped(json, false);
72
+ }
73
+
74
+ export function AccountQuickReplyCustomVariableInputToJSONTyped(value?: AccountQuickReplyCustomVariableInput | null, ignoreDiscriminator: boolean = false): any {
75
+ if (value == null) {
76
+ return value;
77
+ }
78
+
79
+ return {
80
+
81
+ 'label': value['label'],
82
+ 'type': QuickReplyCustomVariableTypeEnumToJSON(value['type']),
83
+ };
84
+ }
85
+
@@ -0,0 +1,74 @@
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 { AccountQuickReplyCustomVariableDto } from './AccountQuickReplyCustomVariableDto';
17
+ import {
18
+ AccountQuickReplyCustomVariableDtoFromJSON,
19
+ AccountQuickReplyCustomVariableDtoFromJSONTyped,
20
+ AccountQuickReplyCustomVariableDtoToJSON,
21
+ AccountQuickReplyCustomVariableDtoToJSONTyped,
22
+ } from './AccountQuickReplyCustomVariableDto';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface AccountQuickReplyCustomVariableListDto
28
+ */
29
+ export interface AccountQuickReplyCustomVariableListDto {
30
+ /**
31
+ * Custom variables of the account, sorted by label.
32
+ * @type {Array<AccountQuickReplyCustomVariableDto>}
33
+ * @memberof AccountQuickReplyCustomVariableListDto
34
+ */
35
+ data: Array<AccountQuickReplyCustomVariableDto>;
36
+ }
37
+
38
+ /**
39
+ * Check if a given object implements the AccountQuickReplyCustomVariableListDto interface.
40
+ */
41
+ export function instanceOfAccountQuickReplyCustomVariableListDto(value: object): value is AccountQuickReplyCustomVariableListDto {
42
+ if (!('data' in value) || value['data'] === undefined) return false;
43
+ return true;
44
+ }
45
+
46
+ export function AccountQuickReplyCustomVariableListDtoFromJSON(json: any): AccountQuickReplyCustomVariableListDto {
47
+ return AccountQuickReplyCustomVariableListDtoFromJSONTyped(json, false);
48
+ }
49
+
50
+ export function AccountQuickReplyCustomVariableListDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): AccountQuickReplyCustomVariableListDto {
51
+ if (json == null) {
52
+ return json;
53
+ }
54
+ return {
55
+
56
+ 'data': ((json['data'] as Array<any>).map(AccountQuickReplyCustomVariableDtoFromJSON)),
57
+ };
58
+ }
59
+
60
+ export function AccountQuickReplyCustomVariableListDtoToJSON(json: any): AccountQuickReplyCustomVariableListDto {
61
+ return AccountQuickReplyCustomVariableListDtoToJSONTyped(json, false);
62
+ }
63
+
64
+ export function AccountQuickReplyCustomVariableListDtoToJSONTyped(value?: AccountQuickReplyCustomVariableListDto | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'data': ((value['data'] as Array<any>).map(AccountQuickReplyCustomVariableDtoToJSON)),
72
+ };
73
+ }
74
+
@@ -196,7 +196,7 @@ export interface IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetails
196
196
  */
197
197
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
198
198
  /**
199
- * Whether the lead can be closed by the seller
199
+ * 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.
200
200
  * @type {boolean}
201
201
  * @memberof IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto
202
202
  */
@@ -189,7 +189,7 @@ export interface LeadDto {
189
189
  */
190
190
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
191
191
  /**
192
- * Whether the lead can be closed by the seller
192
+ * 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.
193
193
  * @type {boolean}
194
194
  * @memberof LeadDto
195
195
  */
@@ -13,6 +13,13 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { QuickReplyCustomVariableDto } from './QuickReplyCustomVariableDto';
17
+ import {
18
+ QuickReplyCustomVariableDtoFromJSON,
19
+ QuickReplyCustomVariableDtoFromJSONTyped,
20
+ QuickReplyCustomVariableDtoToJSON,
21
+ QuickReplyCustomVariableDtoToJSONTyped,
22
+ } from './QuickReplyCustomVariableDto';
16
23
  import type { QuickReplyVariableEnum } from './QuickReplyVariableEnum';
17
24
  import {
18
25
  QuickReplyVariableEnumFromJSON,
@@ -40,7 +47,7 @@ export interface LeadQuickReplyDto {
40
47
  */
41
48
  name: string;
42
49
  /**
43
- * Message with the variables replaced by the values of the lead.
50
+ * Message with the variables replaced by the values of the lead. The {{custom.key}} tokens are kept.
44
51
  * @type {string}
45
52
  * @memberof LeadQuickReplyDto
46
53
  */
@@ -51,6 +58,12 @@ export interface LeadQuickReplyDto {
51
58
  * @memberof LeadQuickReplyDto
52
59
  */
53
60
  missingVariables: Array<QuickReplyVariableEnum>;
61
+ /**
62
+ * Variables the seller fills in when using the reply.
63
+ * @type {Array<QuickReplyCustomVariableDto>}
64
+ * @memberof LeadQuickReplyDto
65
+ */
66
+ customVariables: Array<QuickReplyCustomVariableDto>;
54
67
  }
55
68
 
56
69
  /**
@@ -61,6 +74,7 @@ export function instanceOfLeadQuickReplyDto(value: object): value is LeadQuickRe
61
74
  if (!('name' in value) || value['name'] === undefined) return false;
62
75
  if (!('message' in value) || value['message'] === undefined) return false;
63
76
  if (!('missingVariables' in value) || value['missingVariables'] === undefined) return false;
77
+ if (!('customVariables' in value) || value['customVariables'] === undefined) return false;
64
78
  return true;
65
79
  }
66
80
 
@@ -78,6 +92,7 @@ export function LeadQuickReplyDtoFromJSONTyped(json: any, ignoreDiscriminator: b
78
92
  'name': json['name'],
79
93
  'message': json['message'],
80
94
  'missingVariables': ((json['missingVariables'] as Array<any>).map(QuickReplyVariableEnumFromJSON)),
95
+ 'customVariables': ((json['customVariables'] as Array<any>).map(QuickReplyCustomVariableDtoFromJSON)),
81
96
  };
82
97
  }
83
98
 
@@ -96,6 +111,7 @@ export function LeadQuickReplyDtoToJSONTyped(value?: LeadQuickReplyDto | null, i
96
111
  'name': value['name'],
97
112
  'message': value['message'],
98
113
  'missingVariables': ((value['missingVariables'] as Array<any>).map(QuickReplyVariableEnumToJSON)),
114
+ 'customVariables': ((value['customVariables'] as Array<any>).map(QuickReplyCustomVariableDtoToJSON)),
99
115
  };
100
116
  }
101
117
 
@@ -33,6 +33,18 @@ export interface LeadQuickReplyListDto {
33
33
  * @memberof LeadQuickReplyListDto
34
34
  */
35
35
  data: Array<LeadQuickReplyDto>;
36
+ /**
37
+ * Locale of the buyer, to format the custom variables in.
38
+ * @type {string}
39
+ * @memberof LeadQuickReplyListDto
40
+ */
41
+ buyerLocale: string;
42
+ /**
43
+ * Currency of the domain, for the price custom variables.
44
+ * @type {string}
45
+ * @memberof LeadQuickReplyListDto
46
+ */
47
+ currencyCode: string;
36
48
  }
37
49
 
38
50
  /**
@@ -40,6 +52,8 @@ export interface LeadQuickReplyListDto {
40
52
  */
41
53
  export function instanceOfLeadQuickReplyListDto(value: object): value is LeadQuickReplyListDto {
42
54
  if (!('data' in value) || value['data'] === undefined) return false;
55
+ if (!('buyerLocale' in value) || value['buyerLocale'] === undefined) return false;
56
+ if (!('currencyCode' in value) || value['currencyCode'] === undefined) return false;
43
57
  return true;
44
58
  }
45
59
 
@@ -54,6 +68,8 @@ export function LeadQuickReplyListDtoFromJSONTyped(json: any, ignoreDiscriminato
54
68
  return {
55
69
 
56
70
  'data': ((json['data'] as Array<any>).map(LeadQuickReplyDtoFromJSON)),
71
+ 'buyerLocale': json['buyerLocale'],
72
+ 'currencyCode': json['currencyCode'],
57
73
  };
58
74
  }
59
75
 
@@ -69,6 +85,8 @@ export function LeadQuickReplyListDtoToJSONTyped(value?: LeadQuickReplyListDto |
69
85
  return {
70
86
 
71
87
  'data': ((value['data'] as Array<any>).map(LeadQuickReplyDtoToJSON)),
88
+ 'buyerLocale': value['buyerLocale'],
89
+ 'currencyCode': value['currencyCode'],
72
90
  };
73
91
  }
74
92
 
@@ -196,7 +196,7 @@ export interface ListLeadsResultItem {
196
196
  */
197
197
  leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
198
198
  /**
199
- * Whether the lead can be closed by the seller
199
+ * 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.
200
200
  * @type {boolean}
201
201
  * @memberof ListLeadsResultItem
202
202
  */
@@ -0,0 +1,94 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { QuickReplyCustomVariableTypeEnum } from './QuickReplyCustomVariableTypeEnum';
17
+ import {
18
+ QuickReplyCustomVariableTypeEnumFromJSON,
19
+ QuickReplyCustomVariableTypeEnumFromJSONTyped,
20
+ QuickReplyCustomVariableTypeEnumToJSON,
21
+ QuickReplyCustomVariableTypeEnumToJSONTyped,
22
+ } from './QuickReplyCustomVariableTypeEnum';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface QuickReplyCustomVariableDto
28
+ */
29
+ export interface QuickReplyCustomVariableDto {
30
+ /**
31
+ * Key of the variable in its {{custom.key}} token.
32
+ * @type {string}
33
+ * @memberof QuickReplyCustomVariableDto
34
+ */
35
+ key: string;
36
+ /**
37
+ * Name the seller gave to the variable.
38
+ * @type {string}
39
+ * @memberof QuickReplyCustomVariableDto
40
+ */
41
+ label: string;
42
+ /**
43
+ * Kind of value the variable takes.
44
+ * @type {QuickReplyCustomVariableTypeEnum}
45
+ * @memberof QuickReplyCustomVariableDto
46
+ */
47
+ type: QuickReplyCustomVariableTypeEnum;
48
+ }
49
+
50
+
51
+
52
+ /**
53
+ * Check if a given object implements the QuickReplyCustomVariableDto interface.
54
+ */
55
+ export function instanceOfQuickReplyCustomVariableDto(value: object): value is QuickReplyCustomVariableDto {
56
+ if (!('key' in value) || value['key'] === undefined) return false;
57
+ if (!('label' in value) || value['label'] === undefined) return false;
58
+ if (!('type' in value) || value['type'] === undefined) return false;
59
+ return true;
60
+ }
61
+
62
+ export function QuickReplyCustomVariableDtoFromJSON(json: any): QuickReplyCustomVariableDto {
63
+ return QuickReplyCustomVariableDtoFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function QuickReplyCustomVariableDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuickReplyCustomVariableDto {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'key': json['key'],
73
+ 'label': json['label'],
74
+ 'type': QuickReplyCustomVariableTypeEnumFromJSON(json['type']),
75
+ };
76
+ }
77
+
78
+ export function QuickReplyCustomVariableDtoToJSON(json: any): QuickReplyCustomVariableDto {
79
+ return QuickReplyCustomVariableDtoToJSONTyped(json, false);
80
+ }
81
+
82
+ export function QuickReplyCustomVariableDtoToJSONTyped(value?: QuickReplyCustomVariableDto | null, ignoreDiscriminator: boolean = false): any {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+
87
+ return {
88
+
89
+ 'key': value['key'],
90
+ 'label': value['label'],
91
+ 'type': QuickReplyCustomVariableTypeEnumToJSON(value['type']),
92
+ };
93
+ }
94
+
@@ -0,0 +1,94 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Nameshift
5
+ * Nameshift domain marketplace and management API. ## Authentication - **Bearer JWT** — Seller and buyer sessions obtained via login endpoints. - **API key** — Pass the `apikey` header for programmatic seller access. ## Audiences - **(public)** tags — Unauthenticated or buyer-facing endpoints. - **Accounts / Domains / Leads / Buyers** — Seller or buyer resources. - **Partner** — Partner integrations.
6
+ *
7
+ * The version of the OpenAPI document: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+ import { mapValues } from '../runtime';
16
+ import type { QuickReplyCustomVariableTypeEnum } from './QuickReplyCustomVariableTypeEnum';
17
+ import {
18
+ QuickReplyCustomVariableTypeEnumFromJSON,
19
+ QuickReplyCustomVariableTypeEnumFromJSONTyped,
20
+ QuickReplyCustomVariableTypeEnumToJSON,
21
+ QuickReplyCustomVariableTypeEnumToJSONTyped,
22
+ } from './QuickReplyCustomVariableTypeEnum';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface QuickReplyCustomVariableInput
28
+ */
29
+ export interface QuickReplyCustomVariableInput {
30
+ /**
31
+ * Key of the variable in its {{custom.key}} token.
32
+ * @type {string}
33
+ * @memberof QuickReplyCustomVariableInput
34
+ */
35
+ key: string;
36
+ /**
37
+ * Name the seller gives to the variable.
38
+ * @type {string}
39
+ * @memberof QuickReplyCustomVariableInput
40
+ */
41
+ label: string;
42
+ /**
43
+ * Kind of value the variable takes.
44
+ * @type {QuickReplyCustomVariableTypeEnum}
45
+ * @memberof QuickReplyCustomVariableInput
46
+ */
47
+ type: QuickReplyCustomVariableTypeEnum;
48
+ }
49
+
50
+
51
+
52
+ /**
53
+ * Check if a given object implements the QuickReplyCustomVariableInput interface.
54
+ */
55
+ export function instanceOfQuickReplyCustomVariableInput(value: object): value is QuickReplyCustomVariableInput {
56
+ if (!('key' in value) || value['key'] === undefined) return false;
57
+ if (!('label' in value) || value['label'] === undefined) return false;
58
+ if (!('type' in value) || value['type'] === undefined) return false;
59
+ return true;
60
+ }
61
+
62
+ export function QuickReplyCustomVariableInputFromJSON(json: any): QuickReplyCustomVariableInput {
63
+ return QuickReplyCustomVariableInputFromJSONTyped(json, false);
64
+ }
65
+
66
+ export function QuickReplyCustomVariableInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuickReplyCustomVariableInput {
67
+ if (json == null) {
68
+ return json;
69
+ }
70
+ return {
71
+
72
+ 'key': json['key'],
73
+ 'label': json['label'],
74
+ 'type': QuickReplyCustomVariableTypeEnumFromJSON(json['type']),
75
+ };
76
+ }
77
+
78
+ export function QuickReplyCustomVariableInputToJSON(json: any): QuickReplyCustomVariableInput {
79
+ return QuickReplyCustomVariableInputToJSONTyped(json, false);
80
+ }
81
+
82
+ export function QuickReplyCustomVariableInputToJSONTyped(value?: QuickReplyCustomVariableInput | null, ignoreDiscriminator: boolean = false): any {
83
+ if (value == null) {
84
+ return value;
85
+ }
86
+
87
+ return {
88
+
89
+ 'key': value['key'],
90
+ 'label': value['label'],
91
+ 'type': QuickReplyCustomVariableTypeEnumToJSON(value['type']),
92
+ };
93
+ }
94
+
@@ -0,0 +1,54 @@
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 variable takes.
18
+ * @export
19
+ */
20
+ export const QuickReplyCustomVariableTypeEnum = {
21
+ TEXT: 'text',
22
+ NUMBER: 'number',
23
+ PRICE: 'price'
24
+ } as const;
25
+ export type QuickReplyCustomVariableTypeEnum = typeof QuickReplyCustomVariableTypeEnum[keyof typeof QuickReplyCustomVariableTypeEnum];
26
+
27
+
28
+ export function instanceOfQuickReplyCustomVariableTypeEnum(value: any): boolean {
29
+ for (const key in QuickReplyCustomVariableTypeEnum) {
30
+ if (Object.prototype.hasOwnProperty.call(QuickReplyCustomVariableTypeEnum, key)) {
31
+ if (QuickReplyCustomVariableTypeEnum[key as keyof typeof QuickReplyCustomVariableTypeEnum] === value) {
32
+ return true;
33
+ }
34
+ }
35
+ }
36
+ return false;
37
+ }
38
+
39
+ export function QuickReplyCustomVariableTypeEnumFromJSON(json: any): QuickReplyCustomVariableTypeEnum {
40
+ return QuickReplyCustomVariableTypeEnumFromJSONTyped(json, false);
41
+ }
42
+
43
+ export function QuickReplyCustomVariableTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuickReplyCustomVariableTypeEnum {
44
+ return json as QuickReplyCustomVariableTypeEnum;
45
+ }
46
+
47
+ export function QuickReplyCustomVariableTypeEnumToJSON(value?: QuickReplyCustomVariableTypeEnum | null): any {
48
+ return value as any;
49
+ }
50
+
51
+ export function QuickReplyCustomVariableTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): QuickReplyCustomVariableTypeEnum {
52
+ return value as QuickReplyCustomVariableTypeEnum;
53
+ }
54
+