@randock/nameshift-api-client 0.0.520 → 0.0.521

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 (39) hide show
  1. package/.openapi-generator/FILES +6 -0
  2. package/README.md +3 -3
  3. package/dist/apis/QuickRepliesApi.d.ts +66 -3
  4. package/dist/apis/QuickRepliesApi.js +319 -2
  5. package/dist/models/AccountQuickReplyCustomVariableDto.d.ts +51 -0
  6. package/dist/models/AccountQuickReplyCustomVariableDto.js +64 -0
  7. package/dist/models/AccountQuickReplyCustomVariableInput.d.ts +39 -0
  8. package/dist/models/AccountQuickReplyCustomVariableInput.js +56 -0
  9. package/dist/models/AccountQuickReplyCustomVariableListDto.d.ts +33 -0
  10. package/dist/models/AccountQuickReplyCustomVariableListDto.js +52 -0
  11. package/dist/models/LeadQuickReplyDto.d.ts +8 -1
  12. package/dist/models/LeadQuickReplyDto.js +5 -0
  13. package/dist/models/LeadQuickReplyListDto.d.ts +12 -0
  14. package/dist/models/LeadQuickReplyListDto.js +8 -0
  15. package/dist/models/QuickReplyCustomVariableDto.d.ts +45 -0
  16. package/dist/models/QuickReplyCustomVariableDto.js +60 -0
  17. package/dist/models/QuickReplyCustomVariableInput.d.ts +45 -0
  18. package/dist/models/QuickReplyCustomVariableInput.js +60 -0
  19. package/dist/models/QuickReplyCustomVariableTypeEnum.d.ts +26 -0
  20. package/dist/models/QuickReplyCustomVariableTypeEnum.js +52 -0
  21. package/dist/models/QuickReplyDto.d.ts +8 -1
  22. package/dist/models/QuickReplyDto.js +5 -0
  23. package/dist/models/QuickReplyInput.d.ts +8 -1
  24. package/dist/models/QuickReplyInput.js +3 -0
  25. package/dist/models/index.d.ts +6 -0
  26. package/dist/models/index.js +6 -0
  27. package/package.json +1 -1
  28. package/src/apis/QuickRepliesApi.ts +268 -2
  29. package/src/models/AccountQuickReplyCustomVariableDto.ts +103 -0
  30. package/src/models/AccountQuickReplyCustomVariableInput.ts +85 -0
  31. package/src/models/AccountQuickReplyCustomVariableListDto.ts +74 -0
  32. package/src/models/LeadQuickReplyDto.ts +17 -1
  33. package/src/models/LeadQuickReplyListDto.ts +18 -0
  34. package/src/models/QuickReplyCustomVariableDto.ts +94 -0
  35. package/src/models/QuickReplyCustomVariableInput.ts +94 -0
  36. package/src/models/QuickReplyCustomVariableTypeEnum.ts +54 -0
  37. package/src/models/QuickReplyDto.ts +17 -1
  38. package/src/models/QuickReplyInput.ts +17 -1
  39. package/src/models/index.ts +6 -0
@@ -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
+
@@ -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
 
@@ -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
+
@@ -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 QuickReplyDto {
40
47
  */
41
48
  name: string;
42
49
  /**
43
- * Message template, plain text with {{variable}} tokens.
50
+ * Message template, plain text with {{variable}} and {{custom.key}} tokens.
44
51
  * @type {string}
45
52
  * @memberof QuickReplyDto
46
53
  */
@@ -51,6 +58,12 @@ export interface QuickReplyDto {
51
58
  * @memberof QuickReplyDto
52
59
  */
53
60
  variables: Array<QuickReplyVariableEnum>;
61
+ /**
62
+ * Variables the seller fills in when using the reply.
63
+ * @type {Array<QuickReplyCustomVariableDto>}
64
+ * @memberof QuickReplyDto
65
+ */
66
+ customVariables: Array<QuickReplyCustomVariableDto>;
54
67
  /**
55
68
  * When the quick reply was created.
56
69
  * @type {Date}
@@ -73,6 +86,7 @@ export function instanceOfQuickReplyDto(value: object): value is QuickReplyDto {
73
86
  if (!('name' in value) || value['name'] === undefined) return false;
74
87
  if (!('message' in value) || value['message'] === undefined) return false;
75
88
  if (!('variables' in value) || value['variables'] === undefined) return false;
89
+ if (!('customVariables' in value) || value['customVariables'] === undefined) return false;
76
90
  if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
77
91
  if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
78
92
  return true;
@@ -92,6 +106,7 @@ export function QuickReplyDtoFromJSONTyped(json: any, ignoreDiscriminator: boole
92
106
  'name': json['name'],
93
107
  'message': json['message'],
94
108
  'variables': ((json['variables'] as Array<any>).map(QuickReplyVariableEnumFromJSON)),
109
+ 'customVariables': ((json['customVariables'] as Array<any>).map(QuickReplyCustomVariableDtoFromJSON)),
95
110
  'createdAt': (new Date(json['createdAt'])),
96
111
  'updatedAt': (new Date(json['updatedAt'])),
97
112
  };
@@ -112,6 +127,7 @@ export function QuickReplyDtoToJSONTyped(value?: QuickReplyDto | null, ignoreDis
112
127
  'name': value['name'],
113
128
  'message': value['message'],
114
129
  'variables': ((value['variables'] as Array<any>).map(QuickReplyVariableEnumToJSON)),
130
+ 'customVariables': ((value['customVariables'] as Array<any>).map(QuickReplyCustomVariableDtoToJSON)),
115
131
  'createdAt': ((value['createdAt']).toISOString()),
116
132
  'updatedAt': ((value['updatedAt']).toISOString()),
117
133
  };
@@ -13,6 +13,14 @@
13
13
  */
14
14
 
15
15
  import { mapValues } from '../runtime';
16
+ import type { QuickReplyCustomVariableInput } from './QuickReplyCustomVariableInput';
17
+ import {
18
+ QuickReplyCustomVariableInputFromJSON,
19
+ QuickReplyCustomVariableInputFromJSONTyped,
20
+ QuickReplyCustomVariableInputToJSON,
21
+ QuickReplyCustomVariableInputToJSONTyped,
22
+ } from './QuickReplyCustomVariableInput';
23
+
16
24
  /**
17
25
  *
18
26
  * @export
@@ -26,11 +34,17 @@ export interface QuickReplyInput {
26
34
  */
27
35
  name: string;
28
36
  /**
29
- * Message template, plain text with {{variable}} tokens.
37
+ * Message template, plain text with {{variable}} and {{custom.key}} tokens.
30
38
  * @type {string}
31
39
  * @memberof QuickReplyInput
32
40
  */
33
41
  message: string;
42
+ /**
43
+ * Variables the seller fills in when using the reply.
44
+ * @type {Array<QuickReplyCustomVariableInput>}
45
+ * @memberof QuickReplyInput
46
+ */
47
+ customVariables?: Array<QuickReplyCustomVariableInput>;
34
48
  }
35
49
 
36
50
  /**
@@ -54,6 +68,7 @@ export function QuickReplyInputFromJSONTyped(json: any, ignoreDiscriminator: boo
54
68
 
55
69
  'name': json['name'],
56
70
  'message': json['message'],
71
+ 'customVariables': json['customVariables'] == null ? undefined : ((json['customVariables'] as Array<any>).map(QuickReplyCustomVariableInputFromJSON)),
57
72
  };
58
73
  }
59
74
 
@@ -70,6 +85,7 @@ export function QuickReplyInputToJSONTyped(value?: QuickReplyInput | null, ignor
70
85
 
71
86
  'name': value['name'],
72
87
  'message': value['message'],
88
+ 'customVariables': value['customVariables'] == null ? undefined : ((value['customVariables'] as Array<any>).map(QuickReplyCustomVariableInputToJSON)),
73
89
  };
74
90
  }
75
91
 
@@ -29,6 +29,9 @@ export * from './AccountPaymentDto';
29
29
  export * from './AccountPaymentMethodDto';
30
30
  export * from './AccountPaymentMethodProfileDto';
31
31
  export * from './AccountPayoutDto';
32
+ export * from './AccountQuickReplyCustomVariableDto';
33
+ export * from './AccountQuickReplyCustomVariableInput';
34
+ export * from './AccountQuickReplyCustomVariableListDto';
32
35
  export * from './AccountSettingsAffiliateCommissionDto';
33
36
  export * from './AccountSettingsAffiliateCommissionReferralDuration';
34
37
  export * from './AccountSettingsAffiliateDto';
@@ -481,6 +484,9 @@ export * from './PublicSaleDto';
481
484
  export * from './PublicSalesDto';
482
485
  export * from './PutBuyerLeadOfferInput';
483
486
  export * from './PutLeadOfferInput';
487
+ export * from './QuickReplyCustomVariableDto';
488
+ export * from './QuickReplyCustomVariableInput';
489
+ export * from './QuickReplyCustomVariableTypeEnum';
484
490
  export * from './QuickReplyDto';
485
491
  export * from './QuickReplyInput';
486
492
  export * from './QuickReplyVariableEnum';