@randock/nameshift-api-client 0.0.561 → 0.0.563

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 (54) hide show
  1. package/.openapi-generator/FILES +12 -0
  2. package/README.md +3 -3
  3. package/dist/apis/BuyersApi.d.ts +14 -1
  4. package/dist/apis/BuyersApi.js +57 -0
  5. package/dist/apis/BuyersPublicApi.d.ts +100 -1
  6. package/dist/apis/BuyersPublicApi.js +426 -0
  7. package/dist/apis/LeadsPublicApi.d.ts +5 -5
  8. package/dist/apis/LeadsPublicApi.js +6 -4
  9. package/dist/models/BuyerCheckoutProfileDto.d.ts +116 -0
  10. package/dist/models/BuyerCheckoutProfileDto.js +107 -0
  11. package/dist/models/BuyerCheckoutProfileSummaryDto.d.ts +74 -0
  12. package/dist/models/BuyerCheckoutProfileSummaryDto.js +79 -0
  13. package/dist/models/BuyerLandingSessionOutput.d.ts +68 -0
  14. package/dist/models/BuyerLandingSessionOutput.js +75 -0
  15. package/dist/models/BuyerSessionEstablishTicketOutput.d.ts +32 -0
  16. package/dist/models/BuyerSessionEstablishTicketOutput.js +51 -0
  17. package/dist/models/BuyerSessionPurchaseTypeEnum.d.ts +26 -0
  18. package/dist/models/BuyerSessionPurchaseTypeEnum.js +52 -0
  19. package/dist/models/CreateBuyerSessionEstablishTicketInput.d.ts +38 -0
  20. package/dist/models/CreateBuyerSessionEstablishTicketInput.js +55 -0
  21. package/dist/models/CreateBuyerSessionFromPurchaseInput.d.ts +39 -0
  22. package/dist/models/CreateBuyerSessionFromPurchaseInput.js +56 -0
  23. package/dist/models/CreateDashboardBuyerSessionInput.d.ts +32 -0
  24. package/dist/models/CreateDashboardBuyerSessionInput.js +51 -0
  25. package/dist/models/ExchangeBuyerSessionCodeInput.d.ts +38 -0
  26. package/dist/models/ExchangeBuyerSessionCodeInput.js +55 -0
  27. package/dist/models/LeadEmailVerificationResultOutput.d.ts +33 -0
  28. package/dist/models/LeadEmailVerificationResultOutput.js +52 -0
  29. package/dist/models/LeadPhoneVerificationResultOutput.d.ts +47 -0
  30. package/dist/models/LeadPhoneVerificationResultOutput.js +62 -0
  31. package/dist/models/PrivateAccountGetMeResponse.d.ts +6 -0
  32. package/dist/models/PrivateAccountGetMeResponse.js +4 -0
  33. package/dist/models/VerifyBuyerSessionEmailOtpInput.d.ts +32 -0
  34. package/dist/models/VerifyBuyerSessionEmailOtpInput.js +51 -0
  35. package/dist/models/index.d.ts +12 -0
  36. package/dist/models/index.js +12 -0
  37. package/package.json +1 -1
  38. package/src/apis/BuyersApi.ts +56 -0
  39. package/src/apis/BuyersPublicApi.ts +378 -0
  40. package/src/apis/LeadsPublicApi.ts +14 -7
  41. package/src/models/BuyerCheckoutProfileDto.ts +192 -0
  42. package/src/models/BuyerCheckoutProfileSummaryDto.ts +129 -0
  43. package/src/models/BuyerLandingSessionOutput.ts +120 -0
  44. package/src/models/BuyerSessionEstablishTicketOutput.ts +66 -0
  45. package/src/models/BuyerSessionPurchaseTypeEnum.ts +54 -0
  46. package/src/models/CreateBuyerSessionEstablishTicketInput.ts +75 -0
  47. package/src/models/CreateBuyerSessionFromPurchaseInput.ts +85 -0
  48. package/src/models/CreateDashboardBuyerSessionInput.ts +66 -0
  49. package/src/models/ExchangeBuyerSessionCodeInput.ts +75 -0
  50. package/src/models/LeadEmailVerificationResultOutput.ts +74 -0
  51. package/src/models/LeadPhoneVerificationResultOutput.ts +106 -0
  52. package/src/models/PrivateAccountGetMeResponse.ts +9 -0
  53. package/src/models/VerifyBuyerSessionEmailOtpInput.ts +66 -0
  54. package/src/models/index.ts +12 -0
@@ -0,0 +1,107 @@
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.instanceOfBuyerCheckoutProfileDto = instanceOfBuyerCheckoutProfileDto;
17
+ exports.BuyerCheckoutProfileDtoFromJSON = BuyerCheckoutProfileDtoFromJSON;
18
+ exports.BuyerCheckoutProfileDtoFromJSONTyped = BuyerCheckoutProfileDtoFromJSONTyped;
19
+ exports.BuyerCheckoutProfileDtoToJSON = BuyerCheckoutProfileDtoToJSON;
20
+ exports.BuyerCheckoutProfileDtoToJSONTyped = BuyerCheckoutProfileDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BuyerCheckoutProfileDto interface.
23
+ */
24
+ function instanceOfBuyerCheckoutProfileDto(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('firstName' in value) || value['firstName'] === undefined)
28
+ return false;
29
+ if (!('lastName' in value) || value['lastName'] === undefined)
30
+ return false;
31
+ if (!('addressLine1' in value) || value['addressLine1'] === undefined)
32
+ return false;
33
+ if (!('addressLine2' in value) || value['addressLine2'] === undefined)
34
+ return false;
35
+ if (!('addressPostalCode' in value) || value['addressPostalCode'] === undefined)
36
+ return false;
37
+ if (!('addressCity' in value) || value['addressCity'] === undefined)
38
+ return false;
39
+ if (!('addressStateCode' in value) || value['addressStateCode'] === undefined)
40
+ return false;
41
+ if (!('addressCountryCode' in value) || value['addressCountryCode'] === undefined)
42
+ return false;
43
+ if (!('companyName' in value) || value['companyName'] === undefined)
44
+ return false;
45
+ if (!('companyId' in value) || value['companyId'] === undefined)
46
+ return false;
47
+ if (!('companyTaxIdType' in value) || value['companyTaxIdType'] === undefined)
48
+ return false;
49
+ if (!('companyTaxIdValue' in value) || value['companyTaxIdValue'] === undefined)
50
+ return false;
51
+ if (!('companyTaxIdCountryCode' in value) || value['companyTaxIdCountryCode'] === undefined)
52
+ return false;
53
+ if (!('selfDeclaredTaxCountry' in value) || value['selfDeclaredTaxCountry'] === undefined)
54
+ return false;
55
+ return true;
56
+ }
57
+ function BuyerCheckoutProfileDtoFromJSON(json) {
58
+ return BuyerCheckoutProfileDtoFromJSONTyped(json, false);
59
+ }
60
+ function BuyerCheckoutProfileDtoFromJSONTyped(json, ignoreDiscriminator) {
61
+ if (json == null) {
62
+ return json;
63
+ }
64
+ return {
65
+ 'id': json['id'],
66
+ 'firstName': json['firstName'],
67
+ 'lastName': json['lastName'],
68
+ 'addressLine1': json['addressLine1'],
69
+ 'addressLine2': json['addressLine2'],
70
+ 'addressPostalCode': json['addressPostalCode'],
71
+ 'addressCity': json['addressCity'],
72
+ 'addressStateCode': json['addressStateCode'],
73
+ 'addressCountryCode': json['addressCountryCode'],
74
+ 'companyName': json['companyName'],
75
+ 'companyId': json['companyId'],
76
+ 'companyTaxIdType': json['companyTaxIdType'],
77
+ 'companyTaxIdValue': json['companyTaxIdValue'],
78
+ 'companyTaxIdCountryCode': json['companyTaxIdCountryCode'],
79
+ 'selfDeclaredTaxCountry': json['selfDeclaredTaxCountry'],
80
+ };
81
+ }
82
+ function BuyerCheckoutProfileDtoToJSON(json) {
83
+ return BuyerCheckoutProfileDtoToJSONTyped(json, false);
84
+ }
85
+ function BuyerCheckoutProfileDtoToJSONTyped(value, ignoreDiscriminator) {
86
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
87
+ if (value == null) {
88
+ return value;
89
+ }
90
+ return {
91
+ 'id': value['id'],
92
+ 'firstName': value['firstName'],
93
+ 'lastName': value['lastName'],
94
+ 'addressLine1': value['addressLine1'],
95
+ 'addressLine2': value['addressLine2'],
96
+ 'addressPostalCode': value['addressPostalCode'],
97
+ 'addressCity': value['addressCity'],
98
+ 'addressStateCode': value['addressStateCode'],
99
+ 'addressCountryCode': value['addressCountryCode'],
100
+ 'companyName': value['companyName'],
101
+ 'companyId': value['companyId'],
102
+ 'companyTaxIdType': value['companyTaxIdType'],
103
+ 'companyTaxIdValue': value['companyTaxIdValue'],
104
+ 'companyTaxIdCountryCode': value['companyTaxIdCountryCode'],
105
+ 'selfDeclaredTaxCountry': value['selfDeclaredTaxCountry'],
106
+ };
107
+ }
@@ -0,0 +1,74 @@
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
+ *
14
+ * @export
15
+ * @interface BuyerCheckoutProfileSummaryDto
16
+ */
17
+ export interface BuyerCheckoutProfileSummaryDto {
18
+ /**
19
+ * Profile identifier.
20
+ * @type {string}
21
+ * @memberof BuyerCheckoutProfileSummaryDto
22
+ */
23
+ id: string;
24
+ /**
25
+ * First name on the profile.
26
+ * @type {string}
27
+ * @memberof BuyerCheckoutProfileSummaryDto
28
+ */
29
+ firstName: string;
30
+ /**
31
+ * Last name on the profile.
32
+ * @type {string}
33
+ * @memberof BuyerCheckoutProfileSummaryDto
34
+ */
35
+ lastName: string;
36
+ /**
37
+ * Company name, for a company profile.
38
+ * @type {string}
39
+ * @memberof BuyerCheckoutProfileSummaryDto
40
+ */
41
+ companyName: string | null;
42
+ /**
43
+ * City of the billing address.
44
+ * @type {string}
45
+ * @memberof BuyerCheckoutProfileSummaryDto
46
+ */
47
+ city: string;
48
+ /**
49
+ * ISO 3166-1 alpha-2 country of the billing address.
50
+ * @type {string}
51
+ * @memberof BuyerCheckoutProfileSummaryDto
52
+ */
53
+ countryCode: string;
54
+ /**
55
+ * Last four characters of the company tax ID.
56
+ * @type {string}
57
+ * @memberof BuyerCheckoutProfileSummaryDto
58
+ */
59
+ taxIdEnding: string | null;
60
+ /**
61
+ * When the buyer last paid with it.
62
+ * @type {Date}
63
+ * @memberof BuyerCheckoutProfileSummaryDto
64
+ */
65
+ lastUsedAt: Date;
66
+ }
67
+ /**
68
+ * Check if a given object implements the BuyerCheckoutProfileSummaryDto interface.
69
+ */
70
+ export declare function instanceOfBuyerCheckoutProfileSummaryDto(value: object): value is BuyerCheckoutProfileSummaryDto;
71
+ export declare function BuyerCheckoutProfileSummaryDtoFromJSON(json: any): BuyerCheckoutProfileSummaryDto;
72
+ export declare function BuyerCheckoutProfileSummaryDtoFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerCheckoutProfileSummaryDto;
73
+ export declare function BuyerCheckoutProfileSummaryDtoToJSON(json: any): BuyerCheckoutProfileSummaryDto;
74
+ export declare function BuyerCheckoutProfileSummaryDtoToJSONTyped(value?: BuyerCheckoutProfileSummaryDto | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,79 @@
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.instanceOfBuyerCheckoutProfileSummaryDto = instanceOfBuyerCheckoutProfileSummaryDto;
17
+ exports.BuyerCheckoutProfileSummaryDtoFromJSON = BuyerCheckoutProfileSummaryDtoFromJSON;
18
+ exports.BuyerCheckoutProfileSummaryDtoFromJSONTyped = BuyerCheckoutProfileSummaryDtoFromJSONTyped;
19
+ exports.BuyerCheckoutProfileSummaryDtoToJSON = BuyerCheckoutProfileSummaryDtoToJSON;
20
+ exports.BuyerCheckoutProfileSummaryDtoToJSONTyped = BuyerCheckoutProfileSummaryDtoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BuyerCheckoutProfileSummaryDto interface.
23
+ */
24
+ function instanceOfBuyerCheckoutProfileSummaryDto(value) {
25
+ if (!('id' in value) || value['id'] === undefined)
26
+ return false;
27
+ if (!('firstName' in value) || value['firstName'] === undefined)
28
+ return false;
29
+ if (!('lastName' in value) || value['lastName'] === undefined)
30
+ return false;
31
+ if (!('companyName' in value) || value['companyName'] === undefined)
32
+ return false;
33
+ if (!('city' in value) || value['city'] === undefined)
34
+ return false;
35
+ if (!('countryCode' in value) || value['countryCode'] === undefined)
36
+ return false;
37
+ if (!('taxIdEnding' in value) || value['taxIdEnding'] === undefined)
38
+ return false;
39
+ if (!('lastUsedAt' in value) || value['lastUsedAt'] === undefined)
40
+ return false;
41
+ return true;
42
+ }
43
+ function BuyerCheckoutProfileSummaryDtoFromJSON(json) {
44
+ return BuyerCheckoutProfileSummaryDtoFromJSONTyped(json, false);
45
+ }
46
+ function BuyerCheckoutProfileSummaryDtoFromJSONTyped(json, ignoreDiscriminator) {
47
+ if (json == null) {
48
+ return json;
49
+ }
50
+ return {
51
+ 'id': json['id'],
52
+ 'firstName': json['firstName'],
53
+ 'lastName': json['lastName'],
54
+ 'companyName': json['companyName'],
55
+ 'city': json['city'],
56
+ 'countryCode': json['countryCode'],
57
+ 'taxIdEnding': json['taxIdEnding'],
58
+ 'lastUsedAt': (new Date(json['lastUsedAt'])),
59
+ };
60
+ }
61
+ function BuyerCheckoutProfileSummaryDtoToJSON(json) {
62
+ return BuyerCheckoutProfileSummaryDtoToJSONTyped(json, false);
63
+ }
64
+ function BuyerCheckoutProfileSummaryDtoToJSONTyped(value, ignoreDiscriminator) {
65
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
66
+ if (value == null) {
67
+ return value;
68
+ }
69
+ return {
70
+ 'id': value['id'],
71
+ 'firstName': value['firstName'],
72
+ 'lastName': value['lastName'],
73
+ 'companyName': value['companyName'],
74
+ 'city': value['city'],
75
+ 'countryCode': value['countryCode'],
76
+ 'taxIdEnding': value['taxIdEnding'],
77
+ 'lastUsedAt': ((value['lastUsedAt']).toISOString()),
78
+ };
79
+ }
@@ -0,0 +1,68 @@
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
+ *
14
+ * @export
15
+ * @interface BuyerLandingSessionOutput
16
+ */
17
+ export interface BuyerLandingSessionOutput {
18
+ /**
19
+ * Bearer token of the buyer session for the landing that received it.
20
+ * @type {string}
21
+ * @memberof BuyerLandingSessionOutput
22
+ */
23
+ token: string;
24
+ /**
25
+ * Email of the buyer.
26
+ * @type {string}
27
+ * @memberof BuyerLandingSessionOutput
28
+ */
29
+ email: string;
30
+ /**
31
+ * Whether the buyer proved the email in this session.
32
+ * @type {boolean}
33
+ * @memberof BuyerLandingSessionOutput
34
+ */
35
+ emailVerified: boolean;
36
+ /**
37
+ * First name the buyer gave on their latest offer.
38
+ * @type {string}
39
+ * @memberof BuyerLandingSessionOutput
40
+ */
41
+ firstName: string | null;
42
+ /**
43
+ * Last name the buyer gave on their latest offer.
44
+ * @type {string}
45
+ * @memberof BuyerLandingSessionOutput
46
+ */
47
+ lastName: string | null;
48
+ /**
49
+ * Company name the buyer gave on their latest offer.
50
+ * @type {string}
51
+ * @memberof BuyerLandingSessionOutput
52
+ */
53
+ companyName: string | null;
54
+ /**
55
+ * Phone number the buyer proved with a code, or else gave on their latest offer, in E.164.
56
+ * @type {string}
57
+ * @memberof BuyerLandingSessionOutput
58
+ */
59
+ phoneNumber: string | null;
60
+ }
61
+ /**
62
+ * Check if a given object implements the BuyerLandingSessionOutput interface.
63
+ */
64
+ export declare function instanceOfBuyerLandingSessionOutput(value: object): value is BuyerLandingSessionOutput;
65
+ export declare function BuyerLandingSessionOutputFromJSON(json: any): BuyerLandingSessionOutput;
66
+ export declare function BuyerLandingSessionOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerLandingSessionOutput;
67
+ export declare function BuyerLandingSessionOutputToJSON(json: any): BuyerLandingSessionOutput;
68
+ export declare function BuyerLandingSessionOutputToJSONTyped(value?: BuyerLandingSessionOutput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,75 @@
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.instanceOfBuyerLandingSessionOutput = instanceOfBuyerLandingSessionOutput;
17
+ exports.BuyerLandingSessionOutputFromJSON = BuyerLandingSessionOutputFromJSON;
18
+ exports.BuyerLandingSessionOutputFromJSONTyped = BuyerLandingSessionOutputFromJSONTyped;
19
+ exports.BuyerLandingSessionOutputToJSON = BuyerLandingSessionOutputToJSON;
20
+ exports.BuyerLandingSessionOutputToJSONTyped = BuyerLandingSessionOutputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BuyerLandingSessionOutput interface.
23
+ */
24
+ function instanceOfBuyerLandingSessionOutput(value) {
25
+ if (!('token' in value) || value['token'] === undefined)
26
+ return false;
27
+ if (!('email' in value) || value['email'] === undefined)
28
+ return false;
29
+ if (!('emailVerified' in value) || value['emailVerified'] === undefined)
30
+ return false;
31
+ if (!('firstName' in value) || value['firstName'] === undefined)
32
+ return false;
33
+ if (!('lastName' in value) || value['lastName'] === undefined)
34
+ return false;
35
+ if (!('companyName' in value) || value['companyName'] === undefined)
36
+ return false;
37
+ if (!('phoneNumber' in value) || value['phoneNumber'] === undefined)
38
+ return false;
39
+ return true;
40
+ }
41
+ function BuyerLandingSessionOutputFromJSON(json) {
42
+ return BuyerLandingSessionOutputFromJSONTyped(json, false);
43
+ }
44
+ function BuyerLandingSessionOutputFromJSONTyped(json, ignoreDiscriminator) {
45
+ if (json == null) {
46
+ return json;
47
+ }
48
+ return {
49
+ 'token': json['token'],
50
+ 'email': json['email'],
51
+ 'emailVerified': json['emailVerified'],
52
+ 'firstName': json['firstName'],
53
+ 'lastName': json['lastName'],
54
+ 'companyName': json['companyName'],
55
+ 'phoneNumber': json['phoneNumber'],
56
+ };
57
+ }
58
+ function BuyerLandingSessionOutputToJSON(json) {
59
+ return BuyerLandingSessionOutputToJSONTyped(json, false);
60
+ }
61
+ function BuyerLandingSessionOutputToJSONTyped(value, ignoreDiscriminator) {
62
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'token': value['token'],
68
+ 'email': value['email'],
69
+ 'emailVerified': value['emailVerified'],
70
+ 'firstName': value['firstName'],
71
+ 'lastName': value['lastName'],
72
+ 'companyName': value['companyName'],
73
+ 'phoneNumber': value['phoneNumber'],
74
+ };
75
+ }
@@ -0,0 +1,32 @@
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
+ *
14
+ * @export
15
+ * @interface BuyerSessionEstablishTicketOutput
16
+ */
17
+ export interface BuyerSessionEstablishTicketOutput {
18
+ /**
19
+ * One-time ticket to open GET /buyers/session/establish with.
20
+ * @type {string}
21
+ * @memberof BuyerSessionEstablishTicketOutput
22
+ */
23
+ ticket: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the BuyerSessionEstablishTicketOutput interface.
27
+ */
28
+ export declare function instanceOfBuyerSessionEstablishTicketOutput(value: object): value is BuyerSessionEstablishTicketOutput;
29
+ export declare function BuyerSessionEstablishTicketOutputFromJSON(json: any): BuyerSessionEstablishTicketOutput;
30
+ export declare function BuyerSessionEstablishTicketOutputFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSessionEstablishTicketOutput;
31
+ export declare function BuyerSessionEstablishTicketOutputToJSON(json: any): BuyerSessionEstablishTicketOutput;
32
+ export declare function BuyerSessionEstablishTicketOutputToJSONTyped(value?: BuyerSessionEstablishTicketOutput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,51 @@
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.instanceOfBuyerSessionEstablishTicketOutput = instanceOfBuyerSessionEstablishTicketOutput;
17
+ exports.BuyerSessionEstablishTicketOutputFromJSON = BuyerSessionEstablishTicketOutputFromJSON;
18
+ exports.BuyerSessionEstablishTicketOutputFromJSONTyped = BuyerSessionEstablishTicketOutputFromJSONTyped;
19
+ exports.BuyerSessionEstablishTicketOutputToJSON = BuyerSessionEstablishTicketOutputToJSON;
20
+ exports.BuyerSessionEstablishTicketOutputToJSONTyped = BuyerSessionEstablishTicketOutputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the BuyerSessionEstablishTicketOutput interface.
23
+ */
24
+ function instanceOfBuyerSessionEstablishTicketOutput(value) {
25
+ if (!('ticket' in value) || value['ticket'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function BuyerSessionEstablishTicketOutputFromJSON(json) {
30
+ return BuyerSessionEstablishTicketOutputFromJSONTyped(json, false);
31
+ }
32
+ function BuyerSessionEstablishTicketOutputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'ticket': json['ticket'],
38
+ };
39
+ }
40
+ function BuyerSessionEstablishTicketOutputToJSON(json) {
41
+ return BuyerSessionEstablishTicketOutputToJSONTyped(json, false);
42
+ }
43
+ function BuyerSessionEstablishTicketOutputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'ticket': value['ticket'],
50
+ };
51
+ }
@@ -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 purchase the buyer just paid.
14
+ * @export
15
+ */
16
+ export declare const BuyerSessionPurchaseTypeEnum: {
17
+ readonly ORDER: "order";
18
+ readonly SUBSCRIPTION: "subscription";
19
+ readonly DOMAIN_APPRAISAL_REQUEST: "domain_appraisal_request";
20
+ };
21
+ export type BuyerSessionPurchaseTypeEnum = typeof BuyerSessionPurchaseTypeEnum[keyof typeof BuyerSessionPurchaseTypeEnum];
22
+ export declare function instanceOfBuyerSessionPurchaseTypeEnum(value: any): boolean;
23
+ export declare function BuyerSessionPurchaseTypeEnumFromJSON(json: any): BuyerSessionPurchaseTypeEnum;
24
+ export declare function BuyerSessionPurchaseTypeEnumFromJSONTyped(json: any, ignoreDiscriminator: boolean): BuyerSessionPurchaseTypeEnum;
25
+ export declare function BuyerSessionPurchaseTypeEnumToJSON(value?: BuyerSessionPurchaseTypeEnum | null): any;
26
+ export declare function BuyerSessionPurchaseTypeEnumToJSONTyped(value: any, ignoreDiscriminator: boolean): BuyerSessionPurchaseTypeEnum;
@@ -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.BuyerSessionPurchaseTypeEnum = void 0;
17
+ exports.instanceOfBuyerSessionPurchaseTypeEnum = instanceOfBuyerSessionPurchaseTypeEnum;
18
+ exports.BuyerSessionPurchaseTypeEnumFromJSON = BuyerSessionPurchaseTypeEnumFromJSON;
19
+ exports.BuyerSessionPurchaseTypeEnumFromJSONTyped = BuyerSessionPurchaseTypeEnumFromJSONTyped;
20
+ exports.BuyerSessionPurchaseTypeEnumToJSON = BuyerSessionPurchaseTypeEnumToJSON;
21
+ exports.BuyerSessionPurchaseTypeEnumToJSONTyped = BuyerSessionPurchaseTypeEnumToJSONTyped;
22
+ /**
23
+ * Kind of purchase the buyer just paid.
24
+ * @export
25
+ */
26
+ exports.BuyerSessionPurchaseTypeEnum = {
27
+ ORDER: 'order',
28
+ SUBSCRIPTION: 'subscription',
29
+ DOMAIN_APPRAISAL_REQUEST: 'domain_appraisal_request'
30
+ };
31
+ function instanceOfBuyerSessionPurchaseTypeEnum(value) {
32
+ for (var key in exports.BuyerSessionPurchaseTypeEnum) {
33
+ if (Object.prototype.hasOwnProperty.call(exports.BuyerSessionPurchaseTypeEnum, key)) {
34
+ if (exports.BuyerSessionPurchaseTypeEnum[key] === value) {
35
+ return true;
36
+ }
37
+ }
38
+ }
39
+ return false;
40
+ }
41
+ function BuyerSessionPurchaseTypeEnumFromJSON(json) {
42
+ return BuyerSessionPurchaseTypeEnumFromJSONTyped(json, false);
43
+ }
44
+ function BuyerSessionPurchaseTypeEnumFromJSONTyped(json, ignoreDiscriminator) {
45
+ return json;
46
+ }
47
+ function BuyerSessionPurchaseTypeEnumToJSON(value) {
48
+ return value;
49
+ }
50
+ function BuyerSessionPurchaseTypeEnumToJSONTyped(value, ignoreDiscriminator) {
51
+ return value;
52
+ }
@@ -0,0 +1,38 @@
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
+ *
14
+ * @export
15
+ * @interface CreateBuyerSessionEstablishTicketInput
16
+ */
17
+ export interface CreateBuyerSessionEstablishTicketInput {
18
+ /**
19
+ * Domain whose landing the browser returns to.
20
+ * @type {string}
21
+ * @memberof CreateBuyerSessionEstablishTicketInput
22
+ */
23
+ domainName: string;
24
+ /**
25
+ * Locale of the landing page.
26
+ * @type {string}
27
+ * @memberof CreateBuyerSessionEstablishTicketInput
28
+ */
29
+ locale: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the CreateBuyerSessionEstablishTicketInput interface.
33
+ */
34
+ export declare function instanceOfCreateBuyerSessionEstablishTicketInput(value: object): value is CreateBuyerSessionEstablishTicketInput;
35
+ export declare function CreateBuyerSessionEstablishTicketInputFromJSON(json: any): CreateBuyerSessionEstablishTicketInput;
36
+ export declare function CreateBuyerSessionEstablishTicketInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): CreateBuyerSessionEstablishTicketInput;
37
+ export declare function CreateBuyerSessionEstablishTicketInputToJSON(json: any): CreateBuyerSessionEstablishTicketInput;
38
+ export declare function CreateBuyerSessionEstablishTicketInputToJSONTyped(value?: CreateBuyerSessionEstablishTicketInput | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
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.instanceOfCreateBuyerSessionEstablishTicketInput = instanceOfCreateBuyerSessionEstablishTicketInput;
17
+ exports.CreateBuyerSessionEstablishTicketInputFromJSON = CreateBuyerSessionEstablishTicketInputFromJSON;
18
+ exports.CreateBuyerSessionEstablishTicketInputFromJSONTyped = CreateBuyerSessionEstablishTicketInputFromJSONTyped;
19
+ exports.CreateBuyerSessionEstablishTicketInputToJSON = CreateBuyerSessionEstablishTicketInputToJSON;
20
+ exports.CreateBuyerSessionEstablishTicketInputToJSONTyped = CreateBuyerSessionEstablishTicketInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateBuyerSessionEstablishTicketInput interface.
23
+ */
24
+ function instanceOfCreateBuyerSessionEstablishTicketInput(value) {
25
+ if (!('domainName' in value) || value['domainName'] === undefined)
26
+ return false;
27
+ if (!('locale' in value) || value['locale'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ function CreateBuyerSessionEstablishTicketInputFromJSON(json) {
32
+ return CreateBuyerSessionEstablishTicketInputFromJSONTyped(json, false);
33
+ }
34
+ function CreateBuyerSessionEstablishTicketInputFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'domainName': json['domainName'],
40
+ 'locale': json['locale'],
41
+ };
42
+ }
43
+ function CreateBuyerSessionEstablishTicketInputToJSON(json) {
44
+ return CreateBuyerSessionEstablishTicketInputToJSONTyped(json, false);
45
+ }
46
+ function CreateBuyerSessionEstablishTicketInputToJSONTyped(value, ignoreDiscriminator) {
47
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
48
+ if (value == null) {
49
+ return value;
50
+ }
51
+ return {
52
+ 'domainName': value['domainName'],
53
+ 'locale': value['locale'],
54
+ };
55
+ }