@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.
- package/.openapi-generator/FILES +6 -0
- package/README.md +3 -3
- package/dist/apis/LeadsApi.d.ts +4 -4
- package/dist/apis/LeadsApi.js +4 -4
- package/dist/apis/QuickRepliesApi.d.ts +66 -3
- package/dist/apis/QuickRepliesApi.js +319 -2
- package/dist/models/AccountQuickReplyCustomVariableDto.d.ts +51 -0
- package/dist/models/AccountQuickReplyCustomVariableDto.js +64 -0
- package/dist/models/AccountQuickReplyCustomVariableInput.d.ts +39 -0
- package/dist/models/AccountQuickReplyCustomVariableInput.js +56 -0
- package/dist/models/AccountQuickReplyCustomVariableListDto.d.ts +33 -0
- package/dist/models/AccountQuickReplyCustomVariableListDto.js +52 -0
- package/dist/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.d.ts +1 -1
- package/dist/models/LeadDto.d.ts +1 -1
- package/dist/models/LeadQuickReplyDto.d.ts +8 -1
- package/dist/models/LeadQuickReplyDto.js +5 -0
- package/dist/models/LeadQuickReplyListDto.d.ts +12 -0
- package/dist/models/LeadQuickReplyListDto.js +8 -0
- package/dist/models/ListLeadsResultItem.d.ts +1 -1
- package/dist/models/QuickReplyCustomVariableDto.d.ts +45 -0
- package/dist/models/QuickReplyCustomVariableDto.js +60 -0
- package/dist/models/QuickReplyCustomVariableInput.d.ts +45 -0
- package/dist/models/QuickReplyCustomVariableInput.js +60 -0
- package/dist/models/QuickReplyCustomVariableTypeEnum.d.ts +26 -0
- package/dist/models/QuickReplyCustomVariableTypeEnum.js +52 -0
- package/dist/models/QuickReplyDto.d.ts +8 -1
- package/dist/models/QuickReplyDto.js +5 -0
- package/dist/models/QuickReplyInput.d.ts +8 -1
- package/dist/models/QuickReplyInput.js +3 -0
- package/dist/models/SellerLeadDetails.d.ts +1 -1
- package/dist/models/index.d.ts +6 -0
- package/dist/models/index.js +6 -0
- package/package.json +1 -1
- package/src/apis/LeadsApi.ts +4 -4
- package/src/apis/QuickRepliesApi.ts +268 -2
- package/src/models/AccountQuickReplyCustomVariableDto.ts +103 -0
- package/src/models/AccountQuickReplyCustomVariableInput.ts +85 -0
- package/src/models/AccountQuickReplyCustomVariableListDto.ts +74 -0
- package/src/models/IntersectionLeadDtoWithLeadDetailsDtoWithManualLeadBuyerDetailsDto.ts +1 -1
- package/src/models/LeadDto.ts +1 -1
- package/src/models/LeadQuickReplyDto.ts +17 -1
- package/src/models/LeadQuickReplyListDto.ts +18 -0
- package/src/models/ListLeadsResultItem.ts +1 -1
- package/src/models/QuickReplyCustomVariableDto.ts +94 -0
- package/src/models/QuickReplyCustomVariableInput.ts +94 -0
- package/src/models/QuickReplyCustomVariableTypeEnum.ts +54 -0
- package/src/models/QuickReplyDto.ts +17 -1
- package/src/models/QuickReplyInput.ts +17 -1
- package/src/models/SellerLeadDetails.ts +1 -1
- package/src/models/index.ts +6 -0
|
@@ -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
|
|
|
@@ -203,7 +203,7 @@ export interface SellerLeadDetails {
|
|
|
203
203
|
*/
|
|
204
204
|
leadOfferExpirationConfiguration: LeadOfferExpirationConfigurationDto;
|
|
205
205
|
/**
|
|
206
|
-
* Whether the lead can be closed
|
|
206
|
+
* 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.
|
|
207
207
|
* @type {boolean}
|
|
208
208
|
* @memberof SellerLeadDetails
|
|
209
209
|
*/
|
package/src/models/index.ts
CHANGED
|
@@ -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';
|