@randock/nameshift-api-client 0.0.474 → 0.0.475

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/AdminApi.d.ts +57 -1
  4. package/dist/apis/AdminApi.js +230 -0
  5. package/dist/apis/CustomerSuccessApi.d.ts +57 -1
  6. package/dist/apis/CustomerSuccessApi.js +230 -0
  7. package/dist/models/AccountNoteAuthorDto.d.ts +50 -0
  8. package/dist/models/AccountNoteAuthorDto.js +63 -0
  9. package/dist/models/AccountNoteDto.d.ts +63 -0
  10. package/dist/models/AccountNoteDto.js +72 -0
  11. package/dist/models/AccountNoteListDto.d.ts +33 -0
  12. package/dist/models/AccountNoteListDto.js +52 -0
  13. package/dist/models/AdminListAccountDto.d.ts +12 -0
  14. package/dist/models/AdminListAccountDto.js +8 -0
  15. package/dist/models/CreateAccountNoteInput.d.ts +32 -0
  16. package/dist/models/CreateAccountNoteInput.js +51 -0
  17. package/dist/models/CustomerSuccessListAccountDto.d.ts +12 -0
  18. package/dist/models/CustomerSuccessListAccountDto.js +8 -0
  19. package/dist/models/ForbiddenException.d.ts +44 -0
  20. package/dist/models/ForbiddenException.js +59 -0
  21. package/dist/models/UpdateAccountNoteInput.d.ts +32 -0
  22. package/dist/models/UpdateAccountNoteInput.js +51 -0
  23. package/dist/models/index.d.ts +6 -0
  24. package/dist/models/index.js +6 -0
  25. package/package.json +1 -1
  26. package/src/apis/AccountsApi.ts +3 -0
  27. package/src/apis/AdminApi.ts +235 -0
  28. package/src/apis/BuyersApi.ts +3 -0
  29. package/src/apis/CustomerSuccessApi.ts +238 -0
  30. package/src/apis/DomainsApi.ts +3 -0
  31. package/src/models/AccountNoteAuthorDto.ts +93 -0
  32. package/src/models/AccountNoteDto.ts +119 -0
  33. package/src/models/AccountNoteListDto.ts +74 -0
  34. package/src/models/AdminListAccountDto.ts +18 -0
  35. package/src/models/CreateAccountNoteInput.ts +66 -0
  36. package/src/models/CustomerSuccessListAccountDto.ts +18 -0
  37. package/src/models/ForbiddenException.ts +84 -0
  38. package/src/models/UpdateAccountNoteInput.ts +66 -0
  39. package/src/models/index.ts +6 -0
@@ -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.instanceOfCreateAccountNoteInput = instanceOfCreateAccountNoteInput;
17
+ exports.CreateAccountNoteInputFromJSON = CreateAccountNoteInputFromJSON;
18
+ exports.CreateAccountNoteInputFromJSONTyped = CreateAccountNoteInputFromJSONTyped;
19
+ exports.CreateAccountNoteInputToJSON = CreateAccountNoteInputToJSON;
20
+ exports.CreateAccountNoteInputToJSONTyped = CreateAccountNoteInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the CreateAccountNoteInput interface.
23
+ */
24
+ function instanceOfCreateAccountNoteInput(value) {
25
+ if (!('body' in value) || value['body'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function CreateAccountNoteInputFromJSON(json) {
30
+ return CreateAccountNoteInputFromJSONTyped(json, false);
31
+ }
32
+ function CreateAccountNoteInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'body': json['body'],
38
+ };
39
+ }
40
+ function CreateAccountNoteInputToJSON(json) {
41
+ return CreateAccountNoteInputToJSONTyped(json, false);
42
+ }
43
+ function CreateAccountNoteInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'body': value['body'],
50
+ };
51
+ }
@@ -31,6 +31,18 @@ export interface CustomerSuccessListAccountDto {
31
31
  * @memberof CustomerSuccessListAccountDto
32
32
  */
33
33
  identifier: string;
34
+ /**
35
+ * Number of private notes written about the account.
36
+ * @type {number}
37
+ * @memberof CustomerSuccessListAccountDto
38
+ */
39
+ notesNumber: number;
40
+ /**
41
+ * When any of the account notes was last written or edited. Null when there are none.
42
+ * @type {Date}
43
+ * @memberof CustomerSuccessListAccountDto
44
+ */
45
+ notesLastUpdatedAt: Date | null;
34
46
  /**
35
47
  * Account creation date.
36
48
  * @type {Date}
@@ -53,6 +53,10 @@ function instanceOfCustomerSuccessListAccountDto(value) {
53
53
  return false;
54
54
  if (!('identifier' in value) || value['identifier'] === undefined)
55
55
  return false;
56
+ if (!('notesNumber' in value) || value['notesNumber'] === undefined)
57
+ return false;
58
+ if (!('notesLastUpdatedAt' in value) || value['notesLastUpdatedAt'] === undefined)
59
+ return false;
56
60
  if (!('createdAt' in value) || value['createdAt'] === undefined)
57
61
  return false;
58
62
  if (!('name' in value) || value['name'] === undefined)
@@ -97,6 +101,8 @@ function CustomerSuccessListAccountDtoFromJSONTyped(json, ignoreDiscriminator) {
97
101
  return {
98
102
  'id': json['id'],
99
103
  'identifier': json['identifier'],
104
+ 'notesNumber': json['notesNumber'],
105
+ 'notesLastUpdatedAt': (json['notesLastUpdatedAt'] == null ? null : new Date(json['notesLastUpdatedAt'])),
100
106
  'createdAt': (new Date(json['createdAt'])),
101
107
  'name': json['name'],
102
108
  'type': json['type'],
@@ -126,6 +132,8 @@ function CustomerSuccessListAccountDtoToJSONTyped(value, ignoreDiscriminator) {
126
132
  return {
127
133
  'id': value['id'],
128
134
  'identifier': value['identifier'],
135
+ 'notesNumber': value['notesNumber'],
136
+ 'notesLastUpdatedAt': (value['notesLastUpdatedAt'] == null ? null : value['notesLastUpdatedAt'].toISOString()),
129
137
  'createdAt': ((value['createdAt']).toISOString()),
130
138
  'name': value['name'],
131
139
  'type': value['type'],
@@ -0,0 +1,44 @@
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 ForbiddenException
16
+ */
17
+ export interface ForbiddenException {
18
+ /**
19
+ * Exception name.
20
+ * @type {string}
21
+ * @memberof ForbiddenException
22
+ */
23
+ name: string;
24
+ /**
25
+ * HTTP status code.
26
+ * @type {number}
27
+ * @memberof ForbiddenException
28
+ */
29
+ statusCode: number;
30
+ /**
31
+ * error message
32
+ * @type {string}
33
+ * @memberof ForbiddenException
34
+ */
35
+ message: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ForbiddenException interface.
39
+ */
40
+ export declare function instanceOfForbiddenException(value: object): value is ForbiddenException;
41
+ export declare function ForbiddenExceptionFromJSON(json: any): ForbiddenException;
42
+ export declare function ForbiddenExceptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): ForbiddenException;
43
+ export declare function ForbiddenExceptionToJSON(json: any): ForbiddenException;
44
+ export declare function ForbiddenExceptionToJSONTyped(value?: ForbiddenException | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,59 @@
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.instanceOfForbiddenException = instanceOfForbiddenException;
17
+ exports.ForbiddenExceptionFromJSON = ForbiddenExceptionFromJSON;
18
+ exports.ForbiddenExceptionFromJSONTyped = ForbiddenExceptionFromJSONTyped;
19
+ exports.ForbiddenExceptionToJSON = ForbiddenExceptionToJSON;
20
+ exports.ForbiddenExceptionToJSONTyped = ForbiddenExceptionToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ForbiddenException interface.
23
+ */
24
+ function instanceOfForbiddenException(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('statusCode' in value) || value['statusCode'] === undefined)
28
+ return false;
29
+ if (!('message' in value) || value['message'] === undefined)
30
+ return false;
31
+ return true;
32
+ }
33
+ function ForbiddenExceptionFromJSON(json) {
34
+ return ForbiddenExceptionFromJSONTyped(json, false);
35
+ }
36
+ function ForbiddenExceptionFromJSONTyped(json, ignoreDiscriminator) {
37
+ if (json == null) {
38
+ return json;
39
+ }
40
+ return {
41
+ 'name': json['name'],
42
+ 'statusCode': json['statusCode'],
43
+ 'message': json['message'],
44
+ };
45
+ }
46
+ function ForbiddenExceptionToJSON(json) {
47
+ return ForbiddenExceptionToJSONTyped(json, false);
48
+ }
49
+ function ForbiddenExceptionToJSONTyped(value, ignoreDiscriminator) {
50
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
51
+ if (value == null) {
52
+ return value;
53
+ }
54
+ return {
55
+ 'name': value['name'],
56
+ 'statusCode': value['statusCode'],
57
+ 'message': value['message'],
58
+ };
59
+ }
@@ -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 UpdateAccountNoteInput
16
+ */
17
+ export interface UpdateAccountNoteInput {
18
+ /**
19
+ * New note body as HTML. It is sanitized before being stored.
20
+ * @type {string}
21
+ * @memberof UpdateAccountNoteInput
22
+ */
23
+ body: string;
24
+ }
25
+ /**
26
+ * Check if a given object implements the UpdateAccountNoteInput interface.
27
+ */
28
+ export declare function instanceOfUpdateAccountNoteInput(value: object): value is UpdateAccountNoteInput;
29
+ export declare function UpdateAccountNoteInputFromJSON(json: any): UpdateAccountNoteInput;
30
+ export declare function UpdateAccountNoteInputFromJSONTyped(json: any, ignoreDiscriminator: boolean): UpdateAccountNoteInput;
31
+ export declare function UpdateAccountNoteInputToJSON(json: any): UpdateAccountNoteInput;
32
+ export declare function UpdateAccountNoteInputToJSONTyped(value?: UpdateAccountNoteInput | 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.instanceOfUpdateAccountNoteInput = instanceOfUpdateAccountNoteInput;
17
+ exports.UpdateAccountNoteInputFromJSON = UpdateAccountNoteInputFromJSON;
18
+ exports.UpdateAccountNoteInputFromJSONTyped = UpdateAccountNoteInputFromJSONTyped;
19
+ exports.UpdateAccountNoteInputToJSON = UpdateAccountNoteInputToJSON;
20
+ exports.UpdateAccountNoteInputToJSONTyped = UpdateAccountNoteInputToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the UpdateAccountNoteInput interface.
23
+ */
24
+ function instanceOfUpdateAccountNoteInput(value) {
25
+ if (!('body' in value) || value['body'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function UpdateAccountNoteInputFromJSON(json) {
30
+ return UpdateAccountNoteInputFromJSONTyped(json, false);
31
+ }
32
+ function UpdateAccountNoteInputFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'body': json['body'],
38
+ };
39
+ }
40
+ function UpdateAccountNoteInputToJSON(json) {
41
+ return UpdateAccountNoteInputToJSONTyped(json, false);
42
+ }
43
+ function UpdateAccountNoteInputToJSONTyped(value, ignoreDiscriminator) {
44
+ if (ignoreDiscriminator === void 0) { ignoreDiscriminator = false; }
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'body': value['body'],
50
+ };
51
+ }
@@ -15,6 +15,9 @@ export * from './AccountNameshiftCommissionByTypeDto';
15
15
  export * from './AccountNameshiftCommissionItemDto';
16
16
  export * from './AccountNameshiftCommissionReasonDto';
17
17
  export * from './AccountNameshiftCommissionSubtypeCurrentDto';
18
+ export * from './AccountNoteAuthorDto';
19
+ export * from './AccountNoteDto';
20
+ export * from './AccountNoteListDto';
18
21
  export * from './AccountNotificationDto';
19
22
  export * from './AccountNotificationReadStatusDto';
20
23
  export * from './AccountOnboardingDto';
@@ -166,6 +169,7 @@ export * from './CommissionsStatsDto';
166
169
  export * from './CompanyInformationDto';
167
170
  export * from './CompanyTaxIdDto';
168
171
  export * from './ConflictException';
172
+ export * from './CreateAccountNoteInput';
169
173
  export * from './CreateAccountPaymentInput';
170
174
  export * from './CreateAccountPaymentManualTransactionInput';
171
175
  export * from './CreateApiKeyInput';
@@ -242,6 +246,7 @@ export * from './FixedCommissionPayloadDto';
242
246
  export * from './FixedCommissionPayloadInput';
243
247
  export * from './FixedCommissionPayloadSimulationInput';
244
248
  export * from './FixedCommissionReasonPayloadDto';
249
+ export * from './ForbiddenException';
245
250
  export * from './ForgotPasswordRequestInput';
246
251
  export * from './GetAccountChallengeRewardUsagesListDto';
247
252
  export * from './GetAccountNameshiftCommissionsResponseDto';
@@ -516,6 +521,7 @@ export * from './TranslateDomainSearchInput';
516
521
  export * from './UkBankAccountDetails';
517
522
  export * from './UpdateAccountBillingInformationInput';
518
523
  export * from './UpdateAccountChallengeRewardBalanceInput';
524
+ export * from './UpdateAccountNoteInput';
519
525
  export * from './UpdateApiKeyInput';
520
526
  export * from './UpdateAuctionMuteStatusInput';
521
527
  export * from './UpdateBuyerDomainTransferBuyerInfoInput';
@@ -33,6 +33,9 @@ __exportStar(require("./AccountNameshiftCommissionByTypeDto"), exports);
33
33
  __exportStar(require("./AccountNameshiftCommissionItemDto"), exports);
34
34
  __exportStar(require("./AccountNameshiftCommissionReasonDto"), exports);
35
35
  __exportStar(require("./AccountNameshiftCommissionSubtypeCurrentDto"), exports);
36
+ __exportStar(require("./AccountNoteAuthorDto"), exports);
37
+ __exportStar(require("./AccountNoteDto"), exports);
38
+ __exportStar(require("./AccountNoteListDto"), exports);
36
39
  __exportStar(require("./AccountNotificationDto"), exports);
37
40
  __exportStar(require("./AccountNotificationReadStatusDto"), exports);
38
41
  __exportStar(require("./AccountOnboardingDto"), exports);
@@ -184,6 +187,7 @@ __exportStar(require("./CommissionsStatsDto"), exports);
184
187
  __exportStar(require("./CompanyInformationDto"), exports);
185
188
  __exportStar(require("./CompanyTaxIdDto"), exports);
186
189
  __exportStar(require("./ConflictException"), exports);
190
+ __exportStar(require("./CreateAccountNoteInput"), exports);
187
191
  __exportStar(require("./CreateAccountPaymentInput"), exports);
188
192
  __exportStar(require("./CreateAccountPaymentManualTransactionInput"), exports);
189
193
  __exportStar(require("./CreateApiKeyInput"), exports);
@@ -260,6 +264,7 @@ __exportStar(require("./FixedCommissionPayloadDto"), exports);
260
264
  __exportStar(require("./FixedCommissionPayloadInput"), exports);
261
265
  __exportStar(require("./FixedCommissionPayloadSimulationInput"), exports);
262
266
  __exportStar(require("./FixedCommissionReasonPayloadDto"), exports);
267
+ __exportStar(require("./ForbiddenException"), exports);
263
268
  __exportStar(require("./ForgotPasswordRequestInput"), exports);
264
269
  __exportStar(require("./GetAccountChallengeRewardUsagesListDto"), exports);
265
270
  __exportStar(require("./GetAccountNameshiftCommissionsResponseDto"), exports);
@@ -534,6 +539,7 @@ __exportStar(require("./TranslateDomainSearchInput"), exports);
534
539
  __exportStar(require("./UkBankAccountDetails"), exports);
535
540
  __exportStar(require("./UpdateAccountBillingInformationInput"), exports);
536
541
  __exportStar(require("./UpdateAccountChallengeRewardBalanceInput"), exports);
542
+ __exportStar(require("./UpdateAccountNoteInput"), exports);
537
543
  __exportStar(require("./UpdateApiKeyInput"), exports);
538
544
  __exportStar(require("./UpdateAuctionMuteStatusInput"), exports);
539
545
  __exportStar(require("./UpdateBuyerDomainTransferBuyerInfoInput"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@randock/nameshift-api-client",
3
- "version": "0.0.474",
3
+ "version": "0.0.475",
4
4
  "description": "OpenAPI client for @randock/nameshift-api-client",
5
5
  "author": "OpenAPI-Generator",
6
6
  "repository": {
@@ -23,6 +23,7 @@ import type {
23
23
  BadRequestException,
24
24
  CreateAccountPaymentInput,
25
25
  CreateAccountPaymentManualTransactionInput,
26
+ ForbiddenException,
26
27
  GetAccountNameshiftCommissionsResponseDto,
27
28
  GetAllAffiliateCommissions200Response,
28
29
  GetAllReferrals200Response,
@@ -52,6 +53,8 @@ import {
52
53
  CreateAccountPaymentInputToJSON,
53
54
  CreateAccountPaymentManualTransactionInputFromJSON,
54
55
  CreateAccountPaymentManualTransactionInputToJSON,
56
+ ForbiddenExceptionFromJSON,
57
+ ForbiddenExceptionToJSON,
55
58
  GetAccountNameshiftCommissionsResponseDtoFromJSON,
56
59
  GetAccountNameshiftCommissionsResponseDtoToJSON,
57
60
  GetAllAffiliateCommissions200ResponseFromJSON,