@randock/nameshift-api-client 0.0.517 → 0.0.519

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.
@@ -0,0 +1,119 @@
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 { QuickReplyVariableEnum } from './QuickReplyVariableEnum';
17
+ import {
18
+ QuickReplyVariableEnumFromJSON,
19
+ QuickReplyVariableEnumFromJSONTyped,
20
+ QuickReplyVariableEnumToJSON,
21
+ QuickReplyVariableEnumToJSONTyped,
22
+ } from './QuickReplyVariableEnum';
23
+
24
+ /**
25
+ *
26
+ * @export
27
+ * @interface QuickReplyDto
28
+ */
29
+ export interface QuickReplyDto {
30
+ /**
31
+ * Quick reply id.
32
+ * @type {string}
33
+ * @memberof QuickReplyDto
34
+ */
35
+ id: string;
36
+ /**
37
+ * Name the seller recognises the reply by.
38
+ * @type {string}
39
+ * @memberof QuickReplyDto
40
+ */
41
+ name: string;
42
+ /**
43
+ * Message template, plain text with {{variable}} tokens.
44
+ * @type {string}
45
+ * @memberof QuickReplyDto
46
+ */
47
+ message: string;
48
+ /**
49
+ * Variables used in the message.
50
+ * @type {Array<QuickReplyVariableEnum>}
51
+ * @memberof QuickReplyDto
52
+ */
53
+ variables: Array<QuickReplyVariableEnum>;
54
+ /**
55
+ * When the quick reply was created.
56
+ * @type {Date}
57
+ * @memberof QuickReplyDto
58
+ */
59
+ createdAt: Date;
60
+ /**
61
+ * When the quick reply was last updated.
62
+ * @type {Date}
63
+ * @memberof QuickReplyDto
64
+ */
65
+ updatedAt: Date;
66
+ }
67
+
68
+ /**
69
+ * Check if a given object implements the QuickReplyDto interface.
70
+ */
71
+ export function instanceOfQuickReplyDto(value: object): value is QuickReplyDto {
72
+ if (!('id' in value) || value['id'] === undefined) return false;
73
+ if (!('name' in value) || value['name'] === undefined) return false;
74
+ if (!('message' in value) || value['message'] === undefined) return false;
75
+ if (!('variables' in value) || value['variables'] === undefined) return false;
76
+ if (!('createdAt' in value) || value['createdAt'] === undefined) return false;
77
+ if (!('updatedAt' in value) || value['updatedAt'] === undefined) return false;
78
+ return true;
79
+ }
80
+
81
+ export function QuickReplyDtoFromJSON(json: any): QuickReplyDto {
82
+ return QuickReplyDtoFromJSONTyped(json, false);
83
+ }
84
+
85
+ export function QuickReplyDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuickReplyDto {
86
+ if (json == null) {
87
+ return json;
88
+ }
89
+ return {
90
+
91
+ 'id': json['id'],
92
+ 'name': json['name'],
93
+ 'message': json['message'],
94
+ 'variables': ((json['variables'] as Array<any>).map(QuickReplyVariableEnumFromJSON)),
95
+ 'createdAt': (new Date(json['createdAt'])),
96
+ 'updatedAt': (new Date(json['updatedAt'])),
97
+ };
98
+ }
99
+
100
+ export function QuickReplyDtoToJSON(json: any): QuickReplyDto {
101
+ return QuickReplyDtoToJSONTyped(json, false);
102
+ }
103
+
104
+ export function QuickReplyDtoToJSONTyped(value?: QuickReplyDto | null, ignoreDiscriminator: boolean = false): any {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+
109
+ return {
110
+
111
+ 'id': value['id'],
112
+ 'name': value['name'],
113
+ 'message': value['message'],
114
+ 'variables': ((value['variables'] as Array<any>).map(QuickReplyVariableEnumToJSON)),
115
+ 'createdAt': ((value['createdAt']).toISOString()),
116
+ 'updatedAt': ((value['updatedAt']).toISOString()),
117
+ };
118
+ }
119
+
@@ -0,0 +1,75 @@
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
+ /**
17
+ *
18
+ * @export
19
+ * @interface QuickReplyInput
20
+ */
21
+ export interface QuickReplyInput {
22
+ /**
23
+ * Name the seller recognises the reply by.
24
+ * @type {string}
25
+ * @memberof QuickReplyInput
26
+ */
27
+ name: string;
28
+ /**
29
+ * Message template, plain text with {{variable}} tokens.
30
+ * @type {string}
31
+ * @memberof QuickReplyInput
32
+ */
33
+ message: string;
34
+ }
35
+
36
+ /**
37
+ * Check if a given object implements the QuickReplyInput interface.
38
+ */
39
+ export function instanceOfQuickReplyInput(value: object): value is QuickReplyInput {
40
+ if (!('name' in value) || value['name'] === undefined) return false;
41
+ if (!('message' in value) || value['message'] === undefined) return false;
42
+ return true;
43
+ }
44
+
45
+ export function QuickReplyInputFromJSON(json: any): QuickReplyInput {
46
+ return QuickReplyInputFromJSONTyped(json, false);
47
+ }
48
+
49
+ export function QuickReplyInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuickReplyInput {
50
+ if (json == null) {
51
+ return json;
52
+ }
53
+ return {
54
+
55
+ 'name': json['name'],
56
+ 'message': json['message'],
57
+ };
58
+ }
59
+
60
+ export function QuickReplyInputToJSON(json: any): QuickReplyInput {
61
+ return QuickReplyInputToJSONTyped(json, false);
62
+ }
63
+
64
+ export function QuickReplyInputToJSONTyped(value?: QuickReplyInput | null, ignoreDiscriminator: boolean = false): any {
65
+ if (value == null) {
66
+ return value;
67
+ }
68
+
69
+ return {
70
+
71
+ 'name': value['name'],
72
+ 'message': value['message'],
73
+ };
74
+ }
75
+
@@ -0,0 +1,55 @@
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
+ * Variables that have no value for the lead.
18
+ * @export
19
+ */
20
+ export const QuickReplyVariableEnum = {
21
+ DOMAIN_NAME: 'domain_name',
22
+ BUYER_NAME: 'buyer_name',
23
+ LAST_BUYER_OFFER: 'last_buyer_offer',
24
+ LAST_SELLER_OFFER: 'last_seller_offer'
25
+ } as const;
26
+ export type QuickReplyVariableEnum = typeof QuickReplyVariableEnum[keyof typeof QuickReplyVariableEnum];
27
+
28
+
29
+ export function instanceOfQuickReplyVariableEnum(value: any): boolean {
30
+ for (const key in QuickReplyVariableEnum) {
31
+ if (Object.prototype.hasOwnProperty.call(QuickReplyVariableEnum, key)) {
32
+ if (QuickReplyVariableEnum[key as keyof typeof QuickReplyVariableEnum] === value) {
33
+ return true;
34
+ }
35
+ }
36
+ }
37
+ return false;
38
+ }
39
+
40
+ export function QuickReplyVariableEnumFromJSON(json: any): QuickReplyVariableEnum {
41
+ return QuickReplyVariableEnumFromJSONTyped(json, false);
42
+ }
43
+
44
+ export function QuickReplyVariableEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): QuickReplyVariableEnum {
45
+ return json as QuickReplyVariableEnum;
46
+ }
47
+
48
+ export function QuickReplyVariableEnumToJSON(value?: QuickReplyVariableEnum | null): any {
49
+ return value as any;
50
+ }
51
+
52
+ export function QuickReplyVariableEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): QuickReplyVariableEnum {
53
+ return value as QuickReplyVariableEnum;
54
+ }
55
+
@@ -300,6 +300,7 @@ export * from './GetBuyerSubscriptions200Response';
300
300
  export * from './GetBuyerTransfers200Response';
301
301
  export * from './GetInvoices200Response';
302
302
  export * from './GetMarketingSales200Response';
303
+ export * from './GetQuickReplies200Response';
303
304
  export * from './GetSellerChallengesListDto';
304
305
  export * from './GetSellerChallengesListDtoChallengesInner';
305
306
  export * from './HistoricalMetrics';
@@ -363,6 +364,8 @@ export * from './LeadOfferExpirationConfigurationInput';
363
364
  export * from './LeadOfferExpirationDurationInput';
364
365
  export * from './LeadPriceNegotiatorAiAgentConfigurationDto';
365
366
  export * from './LeadPriceNegotiatorAiAgentConfigurationInput';
367
+ export * from './LeadQuickReplyDto';
368
+ export * from './LeadQuickReplyListDto';
366
369
  export * from './LeadRentConfigurationDto';
367
370
  export * from './LeadStatusDto';
368
371
  export * from './LeadVerificationInput';
@@ -478,6 +481,9 @@ export * from './PublicSaleDto';
478
481
  export * from './PublicSalesDto';
479
482
  export * from './PutBuyerLeadOfferInput';
480
483
  export * from './PutLeadOfferInput';
484
+ export * from './QuickReplyDto';
485
+ export * from './QuickReplyInput';
486
+ export * from './QuickReplyVariableEnum';
481
487
  export * from './ReauthenticateWithPasskeyInput';
482
488
  export * from './ReauthenticationDto';
483
489
  export * from './RecoveryCodesDto';