@arrowsphere/api-client 3.240.0-rc-jpb.3 → 3.240.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
4
4
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
5
5
 
6
+ ## [3.240.0] - 2026.02.02
7
+
8
+ ### Added
9
+
10
+ - [partners] add ability to create, retrieve, and delete API keys for users
11
+
6
12
  ## [3.239.0] - 2026.01.30
7
13
 
8
14
  ### Added
@@ -28,7 +28,6 @@ import { ConsumptionDailyPrediction } from '../consumption';
28
28
  import { GetScheduledTasksResult } from './entities/schedule/getScheduledTasksResult';
29
29
  import { GetScheduleTaskResult } from './entities/schedule/getScheduleTaskResult';
30
30
  import { LicenceCouponCodeHistoryResult } from './entities/history/licenceCouponCodeHistoryResult';
31
- import { GetLicenseAttachmentsResult } from './entities/attachment/GetLicenseAttachmentsResult';
32
31
  /**
33
32
  * Parameters passable to the request for refining search.
34
33
  */
@@ -139,10 +138,6 @@ export declare type BaseParameters<LicenseType, OfferType, endCustomerOrganizati
139
138
  offer?: OfferType;
140
139
  endCustomerOrganizationUnit?: endCustomerOrganizationUnitType;
141
140
  };
142
- export declare type AttachFileToLicenseParameters = {
143
- name: string;
144
- fileEncoded: string;
145
- };
146
141
  export declare type LicenseSortParameters = BaseParameters<LicenceFindDataSortParameters, OfferFindResultDataSortParameters, EndCustomerOrganizationUnitSortParameters>;
147
142
  export declare type LicenseCompareParameters = {
148
143
  [field: string]: unknown;
@@ -402,10 +397,6 @@ export declare class LicensesClient extends AbstractRestfulClient {
402
397
  *
403
398
  */
404
399
  find(postData?: LicenseFindPayload, perPage?: number, page?: number, parameters?: Parameters): Promise<FindResult>;
405
- findAttachments(licenseReference: string, perPage?: number, page?: number, parameters?: Parameters): Promise<GetResult<GetLicenseAttachmentsResult>>;
406
- attachFileToLicense(licenseReference: string, parameters: AttachFileToLicenseParameters): Promise<any>;
407
- removeLicenseAttachment(licenseReference: string, documentName: string): Promise<void>;
408
- getScheduledTasks(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetScheduledTasksResult>>;
409
400
  getConfigsRaw(reference: string): Promise<FindConfig>;
410
401
  getConfigs(reference: string): AsyncGenerator<ConfigFindResultData>;
411
402
  /**
@@ -433,6 +424,7 @@ export declare class LicensesClient extends AbstractRestfulClient {
433
424
  getCredentials(licenseReference: string, parameters?: Parameters): Promise<GetResult<CredentialsResult>>;
434
425
  setPricingRate(licenseReference: string, payload: LicensePricingRate, parameters?: Parameters): Promise<void>;
435
426
  scheduleTasks(licenseReference: string, payload: ScheduleTasks, parameters?: Parameters): Promise<GetResult<ScheduleTasksResult>>;
427
+ getScheduledTasks(licenseReference: string, parameters?: Parameters): Promise<GetResult<GetScheduledTasksResult>>;
436
428
  updateScheduledTask(licenseReference: string, scheduledTaskId: number, payload: UpdateScheduledTaskRequestType, parameters?: Parameters): Promise<void>;
437
429
  getScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters): Promise<GetResult<GetScheduleTaskResult>>;
438
430
  deleteScheduledTask(licenseReference: string, scheduledTaskId: number, parameters?: Parameters, payload?: DeleteScheduledTaskType): Promise<void>;
@@ -22,7 +22,6 @@ const consumption_1 = require("../consumption");
22
22
  const getScheduledTasksResult_1 = require("./entities/schedule/getScheduledTasksResult");
23
23
  const getScheduleTaskResult_1 = require("./entities/schedule/getScheduleTaskResult");
24
24
  const licenceCouponCodeHistoryResult_1 = require("./entities/history/licenceCouponCodeHistoryResult");
25
- const GetLicenseAttachmentsResult_1 = require("./entities/attachment/GetLicenseAttachmentsResult");
26
25
  /**
27
26
  * Parameters passable to the request for refining search.
28
27
  */
@@ -317,25 +316,6 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
317
316
  const response = await this.findRaw(rawLicensePayload, parameters);
318
317
  return new findResult_1.FindResult(response, this, rawLicensePayload, parameters);
319
318
  }
320
- async findAttachments(licenseReference, perPage = 100, page = 1, parameters = {}) {
321
- this.setPerPage(perPage);
322
- this.setPage(page);
323
- this.path = `/${licenseReference}/attachment`;
324
- return new getResult_1.GetResult(GetLicenseAttachmentsResult_1.GetLicenseAttachmentsResult, await this.get(parameters));
325
- }
326
- async attachFileToLicense(licenseReference, parameters) {
327
- this.path = `/${licenseReference}/attachment`;
328
- return await this.post(parameters);
329
- }
330
- async removeLicenseAttachment(licenseReference, documentName) {
331
- this.path = `/${licenseReference}/attachment/${documentName}`;
332
- return await this.delete();
333
- }
334
- async getScheduledTasks(licenseReference, parameters = {}) {
335
- this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
336
- const response = await this.get(parameters);
337
- return new getResult_1.GetResult(getScheduledTasksResult_1.GetScheduledTasksResult, response);
338
- }
339
319
  getConfigsRaw(reference) {
340
320
  this.path = `/${reference}${this.CONFIGS_PATH}`;
341
321
  return this.get();
@@ -494,6 +474,11 @@ class LicensesClient extends abstractRestfulClient_1.AbstractRestfulClient {
494
474
  this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
495
475
  return new getResult_1.GetResult(scheduleTasksResult_1.ScheduleTasksResult, await this.post(payload, parameters));
496
476
  }
477
+ async getScheduledTasks(licenseReference, parameters = {}) {
478
+ this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}`;
479
+ const response = await this.get(parameters);
480
+ return new getResult_1.GetResult(getScheduledTasksResult_1.GetScheduledTasksResult, response);
481
+ }
497
482
  async updateScheduledTask(licenseReference, scheduledTaskId, payload, parameters = {}) {
498
483
  this.path = `/${licenseReference}${this.SCHEDULE_TASKS_PATH}/${scheduledTaskId}`;
499
484
  return await this.patch(payload, parameters);
@@ -1,5 +1,8 @@
1
1
  import { AbstractRestfulClient, Parameters } from '../abstractRestfulClient';
2
+ import { CreateUserApiKeyResult } from './types/createUserApiKeyResult';
3
+ import { CreateUserApiKeyPayload } from './types/userApiKey';
2
4
  import { GetResult } from '../getResult';
5
+ import { GetUserApiKeysResult } from './types/getUserApiKeysResult';
3
6
  import { GetUserImpersonationsResult } from './types/getUserImpersonationsResult';
4
7
  import { UpdateScopeUserPayload } from './types/updateUserTypes';
5
8
  import { DataPartner } from './entities/dataPartner';
@@ -55,6 +58,13 @@ export declare enum PartnerCompanyPayloadFields {
55
58
  COLUMN_REGISTRATION_NUMBER = "registrationNumber",
56
59
  COLUMN_VAT_NUMBER = "vatNumber"
57
60
  }
61
+ export declare enum GetUserApiKeysFiltersFields {
62
+ COLUMN_PARTNER_REFERENCE = "partnerReference",
63
+ COLUMN_USER_REFERENCE = "userReference",
64
+ COLUMN_USER_LOGIN = "userLogin",
65
+ COLUMN_NAME = "name",
66
+ COLUMN_IS_ACTIVE = "isActive"
67
+ }
58
68
  export declare type PatchUserPayload = {
59
69
  [PatchUserPayloadFields.COLUMN_FIRSTNAME]?: string;
60
70
  [PatchUserPayloadFields.COLUMN_LASTNAME]?: string;
@@ -106,6 +116,13 @@ export declare type PostPartnerPayload = {
106
116
  [PartnerFields.COLUMN_COMPANY]?: PartnerCompanyPayload;
107
117
  [PartnerFields.COLUMN_RECAPTCHA_TOKEN]: string;
108
118
  };
119
+ export declare type GetUserApiKeysFilters = {
120
+ [GetUserApiKeysFiltersFields.COLUMN_PARTNER_REFERENCE]?: string;
121
+ [GetUserApiKeysFiltersFields.COLUMN_USER_REFERENCE]?: string;
122
+ [GetUserApiKeysFiltersFields.COLUMN_USER_LOGIN]?: string;
123
+ [GetUserApiKeysFiltersFields.COLUMN_NAME]?: string;
124
+ [GetUserApiKeysFiltersFields.COLUMN_IS_ACTIVE]?: string;
125
+ };
109
126
  export declare class PartnerClient extends AbstractRestfulClient {
110
127
  protected basePath: string;
111
128
  deletePartner(partnerReference: string, parameters?: Parameters): Promise<void>;
@@ -121,4 +138,7 @@ export declare class PartnerClient extends AbstractRestfulClient {
121
138
  updateScopeUser(partnerReference: string, userReference: string, payload: UpdateScopeUserPayload, parameters?: Parameters): Promise<void>;
122
139
  getUserImpersonations(partnerReference: string, userReference: string, parameters?: Parameters): Promise<GetResult<GetUserImpersonationsResult>>;
123
140
  postPartner(payload: PostPartnerPayload, parameters?: Parameters): Promise<GetResult<DataPartner>>;
141
+ getUserApiKeys(filters?: GetUserApiKeysFilters, parameters?: Parameters): Promise<GetResult<GetUserApiKeysResult>>;
142
+ deleteUserApiKey(partnerReference: string, userReference: string, apikeyReference: string, parameters?: Parameters): Promise<void>;
143
+ createUserApiKey(partnerReference: string, userReference: string, payload: CreateUserApiKeyPayload, parameters?: Parameters): Promise<GetResult<CreateUserApiKeyResult>>;
124
144
  }
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PartnerClient = exports.PartnerCompanyPayloadFields = exports.PartnerAddressFields = exports.PartnerContactPayloadFields = exports.PartnerUserPayloadFields = exports.PartnerFields = exports.PatchUserPayloadFields = void 0;
3
+ exports.PartnerClient = exports.GetUserApiKeysFiltersFields = exports.PartnerCompanyPayloadFields = exports.PartnerAddressFields = exports.PartnerContactPayloadFields = exports.PartnerUserPayloadFields = exports.PartnerFields = exports.PatchUserPayloadFields = void 0;
4
4
  const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
+ const createUserApiKeyResult_1 = require("./types/createUserApiKeyResult");
5
6
  const getResult_1 = require("../getResult");
7
+ const getUserApiKeysResult_1 = require("./types/getUserApiKeysResult");
6
8
  const getUserImpersonationsResult_1 = require("./types/getUserImpersonationsResult");
7
9
  const updateUserTypes_1 = require("./types/updateUserTypes");
8
10
  const dataPartner_1 = require("./entities/dataPartner");
@@ -64,6 +66,14 @@ var PartnerCompanyPayloadFields;
64
66
  PartnerCompanyPayloadFields["COLUMN_REGISTRATION_NUMBER"] = "registrationNumber";
65
67
  PartnerCompanyPayloadFields["COLUMN_VAT_NUMBER"] = "vatNumber";
66
68
  })(PartnerCompanyPayloadFields = exports.PartnerCompanyPayloadFields || (exports.PartnerCompanyPayloadFields = {}));
69
+ var GetUserApiKeysFiltersFields;
70
+ (function (GetUserApiKeysFiltersFields) {
71
+ GetUserApiKeysFiltersFields["COLUMN_PARTNER_REFERENCE"] = "partnerReference";
72
+ GetUserApiKeysFiltersFields["COLUMN_USER_REFERENCE"] = "userReference";
73
+ GetUserApiKeysFiltersFields["COLUMN_USER_LOGIN"] = "userLogin";
74
+ GetUserApiKeysFiltersFields["COLUMN_NAME"] = "name";
75
+ GetUserApiKeysFiltersFields["COLUMN_IS_ACTIVE"] = "isActive";
76
+ })(GetUserApiKeysFiltersFields = exports.GetUserApiKeysFiltersFields || (exports.GetUserApiKeysFiltersFields = {}));
67
77
  class PartnerClient extends abstractRestfulClient_1.AbstractRestfulClient {
68
78
  constructor() {
69
79
  super(...arguments);
@@ -116,6 +126,22 @@ class PartnerClient extends abstractRestfulClient_1.AbstractRestfulClient {
116
126
  this.path = `/v1/register`;
117
127
  return new getResult_1.GetResult(dataPartner_1.DataPartner, await this.post(payload, parameters));
118
128
  }
129
+ async getUserApiKeys(filters = {}, parameters = {}) {
130
+ this.path = `/apikeys`;
131
+ const queryParameters = {
132
+ ...parameters,
133
+ ...filters,
134
+ };
135
+ return new getResult_1.GetResult(getUserApiKeysResult_1.GetUserApiKeysResult, await this.get(queryParameters));
136
+ }
137
+ async deleteUserApiKey(partnerReference, userReference, apikeyReference, parameters = {}) {
138
+ this.path = `/${partnerReference}/users/${userReference}/apikeys/${apikeyReference}`;
139
+ return this.delete(parameters);
140
+ }
141
+ async createUserApiKey(partnerReference, userReference, payload, parameters = {}) {
142
+ this.path = `/${partnerReference}/users/${userReference}/apikeys`;
143
+ return new getResult_1.GetResult(createUserApiKeyResult_1.CreateUserApiKeyResult, await this.post(payload, parameters));
144
+ }
119
145
  }
120
146
  exports.PartnerClient = PartnerClient;
121
147
  //# sourceMappingURL=partnerClient.js.map
@@ -0,0 +1,29 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ import { UserApiKeyFields } from './userApiKey';
3
+ export declare type CreateUserApiKeyResultData = {
4
+ [UserApiKeyFields.CONTACT_NAME]?: string;
5
+ [UserApiKeyFields.COLUMN_EXPIRATION_DATE]?: string;
6
+ [UserApiKeyFields.COLUMN_IS_ACTIVE]?: boolean;
7
+ [UserApiKeyFields.COLUMN_KEY]?: string;
8
+ [UserApiKeyFields.COLUMN_LAST_CHARACTERS]?: string;
9
+ [UserApiKeyFields.COLUMN_NAME]?: string;
10
+ [UserApiKeyFields.COLUMN_REFERENCE]?: string;
11
+ [UserApiKeyFields.COLUMN_SINCE]?: string;
12
+ [UserApiKeyFields.COLUMN_USED_AT]?: string;
13
+ [UserApiKeyFields.COLUMN_USER_LOGIN]?: string;
14
+ };
15
+ export declare class CreateUserApiKeyResult extends AbstractEntity<CreateUserApiKeyResultData> {
16
+ #private;
17
+ constructor(dataInput: CreateUserApiKeyResultData);
18
+ get contactName(): string | undefined;
19
+ get expirationDate(): string | undefined;
20
+ get isActive(): boolean | undefined;
21
+ get key(): string | undefined;
22
+ get lastCharacters(): string | undefined;
23
+ get name(): string | undefined;
24
+ get reference(): string | undefined;
25
+ get since(): string | undefined;
26
+ get usedAt(): string | undefined;
27
+ get userLogin(): string | undefined;
28
+ toJSON(): CreateUserApiKeyResultData;
29
+ }
@@ -0,0 +1,89 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _CreateUserApiKeyResult_contactName, _CreateUserApiKeyResult_expirationDate, _CreateUserApiKeyResult_isActive, _CreateUserApiKeyResult_key, _CreateUserApiKeyResult_lastCharacters, _CreateUserApiKeyResult_name, _CreateUserApiKeyResult_reference, _CreateUserApiKeyResult_since, _CreateUserApiKeyResult_usedAt, _CreateUserApiKeyResult_userLogin;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.CreateUserApiKeyResult = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ const userApiKey_1 = require("./userApiKey");
18
+ class CreateUserApiKeyResult extends abstractEntity_1.AbstractEntity {
19
+ constructor(dataInput) {
20
+ super(dataInput);
21
+ _CreateUserApiKeyResult_contactName.set(this, void 0);
22
+ _CreateUserApiKeyResult_expirationDate.set(this, void 0);
23
+ _CreateUserApiKeyResult_isActive.set(this, void 0);
24
+ _CreateUserApiKeyResult_key.set(this, void 0);
25
+ _CreateUserApiKeyResult_lastCharacters.set(this, void 0);
26
+ _CreateUserApiKeyResult_name.set(this, void 0);
27
+ _CreateUserApiKeyResult_reference.set(this, void 0);
28
+ _CreateUserApiKeyResult_since.set(this, void 0);
29
+ _CreateUserApiKeyResult_usedAt.set(this, void 0);
30
+ _CreateUserApiKeyResult_userLogin.set(this, void 0);
31
+ __classPrivateFieldSet(this, _CreateUserApiKeyResult_contactName, dataInput[userApiKey_1.UserApiKeyFields.CONTACT_NAME], "f");
32
+ __classPrivateFieldSet(this, _CreateUserApiKeyResult_expirationDate, dataInput[userApiKey_1.UserApiKeyFields.COLUMN_EXPIRATION_DATE], "f");
33
+ __classPrivateFieldSet(this, _CreateUserApiKeyResult_isActive, dataInput[userApiKey_1.UserApiKeyFields.COLUMN_IS_ACTIVE], "f");
34
+ __classPrivateFieldSet(this, _CreateUserApiKeyResult_key, dataInput[userApiKey_1.UserApiKeyFields.COLUMN_KEY], "f");
35
+ __classPrivateFieldSet(this, _CreateUserApiKeyResult_lastCharacters, dataInput[userApiKey_1.UserApiKeyFields.COLUMN_LAST_CHARACTERS], "f");
36
+ __classPrivateFieldSet(this, _CreateUserApiKeyResult_name, dataInput[userApiKey_1.UserApiKeyFields.COLUMN_NAME], "f");
37
+ __classPrivateFieldSet(this, _CreateUserApiKeyResult_reference, dataInput[userApiKey_1.UserApiKeyFields.COLUMN_REFERENCE], "f");
38
+ __classPrivateFieldSet(this, _CreateUserApiKeyResult_since, dataInput[userApiKey_1.UserApiKeyFields.COLUMN_SINCE], "f");
39
+ __classPrivateFieldSet(this, _CreateUserApiKeyResult_usedAt, dataInput[userApiKey_1.UserApiKeyFields.COLUMN_USED_AT], "f");
40
+ __classPrivateFieldSet(this, _CreateUserApiKeyResult_userLogin, dataInput[userApiKey_1.UserApiKeyFields.COLUMN_USER_LOGIN], "f");
41
+ }
42
+ get contactName() {
43
+ return __classPrivateFieldGet(this, _CreateUserApiKeyResult_contactName, "f");
44
+ }
45
+ get expirationDate() {
46
+ return __classPrivateFieldGet(this, _CreateUserApiKeyResult_expirationDate, "f");
47
+ }
48
+ get isActive() {
49
+ return __classPrivateFieldGet(this, _CreateUserApiKeyResult_isActive, "f");
50
+ }
51
+ get key() {
52
+ return __classPrivateFieldGet(this, _CreateUserApiKeyResult_key, "f");
53
+ }
54
+ get lastCharacters() {
55
+ return __classPrivateFieldGet(this, _CreateUserApiKeyResult_lastCharacters, "f");
56
+ }
57
+ get name() {
58
+ return __classPrivateFieldGet(this, _CreateUserApiKeyResult_name, "f");
59
+ }
60
+ get reference() {
61
+ return __classPrivateFieldGet(this, _CreateUserApiKeyResult_reference, "f");
62
+ }
63
+ get since() {
64
+ return __classPrivateFieldGet(this, _CreateUserApiKeyResult_since, "f");
65
+ }
66
+ get usedAt() {
67
+ return __classPrivateFieldGet(this, _CreateUserApiKeyResult_usedAt, "f");
68
+ }
69
+ get userLogin() {
70
+ return __classPrivateFieldGet(this, _CreateUserApiKeyResult_userLogin, "f");
71
+ }
72
+ toJSON() {
73
+ return {
74
+ [userApiKey_1.UserApiKeyFields.CONTACT_NAME]: this.contactName,
75
+ [userApiKey_1.UserApiKeyFields.COLUMN_EXPIRATION_DATE]: this.expirationDate,
76
+ [userApiKey_1.UserApiKeyFields.COLUMN_IS_ACTIVE]: this.isActive,
77
+ [userApiKey_1.UserApiKeyFields.COLUMN_KEY]: this.key,
78
+ [userApiKey_1.UserApiKeyFields.COLUMN_LAST_CHARACTERS]: this.lastCharacters,
79
+ [userApiKey_1.UserApiKeyFields.COLUMN_NAME]: this.name,
80
+ [userApiKey_1.UserApiKeyFields.COLUMN_REFERENCE]: this.reference,
81
+ [userApiKey_1.UserApiKeyFields.COLUMN_SINCE]: this.since,
82
+ [userApiKey_1.UserApiKeyFields.COLUMN_USED_AT]: this.usedAt,
83
+ [userApiKey_1.UserApiKeyFields.COLUMN_USER_LOGIN]: this.userLogin,
84
+ };
85
+ }
86
+ }
87
+ exports.CreateUserApiKeyResult = CreateUserApiKeyResult;
88
+ _CreateUserApiKeyResult_contactName = new WeakMap(), _CreateUserApiKeyResult_expirationDate = new WeakMap(), _CreateUserApiKeyResult_isActive = new WeakMap(), _CreateUserApiKeyResult_key = new WeakMap(), _CreateUserApiKeyResult_lastCharacters = new WeakMap(), _CreateUserApiKeyResult_name = new WeakMap(), _CreateUserApiKeyResult_reference = new WeakMap(), _CreateUserApiKeyResult_since = new WeakMap(), _CreateUserApiKeyResult_usedAt = new WeakMap(), _CreateUserApiKeyResult_userLogin = new WeakMap();
89
+ //# sourceMappingURL=createUserApiKeyResult.js.map
@@ -0,0 +1,9 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ import { UserApiKey, UserApiKeyData } from './userApiKey';
3
+ export declare type GetUserApiKeysResultData = UserApiKeyData[];
4
+ export declare class GetUserApiKeysResult extends AbstractEntity<GetUserApiKeysResultData> {
5
+ #private;
6
+ constructor(dataInput: GetUserApiKeysResultData);
7
+ get apiKeys(): UserApiKey[];
8
+ toJSON(): GetUserApiKeysResultData;
9
+ }
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _GetUserApiKeysResult_apiKeys;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.GetUserApiKeysResult = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ const userApiKey_1 = require("./userApiKey");
18
+ class GetUserApiKeysResult extends abstractEntity_1.AbstractEntity {
19
+ constructor(dataInput) {
20
+ var _a;
21
+ super(dataInput);
22
+ _GetUserApiKeysResult_apiKeys.set(this, void 0);
23
+ __classPrivateFieldSet(this, _GetUserApiKeysResult_apiKeys, (_a = dataInput === null || dataInput === void 0 ? void 0 : dataInput.map((result) => new userApiKey_1.UserApiKey(result))) !== null && _a !== void 0 ? _a : [], "f");
24
+ }
25
+ get apiKeys() {
26
+ return __classPrivateFieldGet(this, _GetUserApiKeysResult_apiKeys, "f");
27
+ }
28
+ toJSON() {
29
+ return this.apiKeys.map((result) => result.toJSON());
30
+ }
31
+ }
32
+ exports.GetUserApiKeysResult = GetUserApiKeysResult;
33
+ _GetUserApiKeysResult_apiKeys = new WeakMap();
34
+ //# sourceMappingURL=getUserApiKeysResult.js.map
@@ -0,0 +1,45 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ export declare enum UserApiKeyFields {
3
+ CONTACT_NAME = "contactName",
4
+ COLUMN_DISABLE_EXPIRATION_DATE = "disableExpirationDate",
5
+ COLUMN_EXPIRATION_DATE = "expiration_date",
6
+ COLUMN_IS_ACTIVE = "isActive",
7
+ COLUMN_KEY = "key",
8
+ COLUMN_LAST_CHARACTERS = "lastCharacters",
9
+ COLUMN_NAME = "name",
10
+ COLUMN_REFERENCE = "reference",
11
+ COLUMN_SINCE = "since",
12
+ COLUMN_USER_LOGIN = "userLogin",
13
+ COLUMN_USED_AT = "usedAt"
14
+ }
15
+ export declare type CreateUserApiKeyPayload = {
16
+ [UserApiKeyFields.COLUMN_NAME]: string;
17
+ [UserApiKeyFields.COLUMN_EXPIRATION_DATE]: string;
18
+ };
19
+ export declare type UserApiKeyData = {
20
+ [UserApiKeyFields.COLUMN_NAME]?: string;
21
+ [UserApiKeyFields.COLUMN_DISABLE_EXPIRATION_DATE]?: boolean;
22
+ [UserApiKeyFields.COLUMN_EXPIRATION_DATE]?: string;
23
+ [UserApiKeyFields.COLUMN_IS_ACTIVE]?: boolean;
24
+ [UserApiKeyFields.COLUMN_LAST_CHARACTERS]?: string;
25
+ [UserApiKeyFields.CONTACT_NAME]?: string;
26
+ [UserApiKeyFields.COLUMN_REFERENCE]?: string;
27
+ [UserApiKeyFields.COLUMN_SINCE]?: string;
28
+ [UserApiKeyFields.COLUMN_USER_LOGIN]?: string;
29
+ [UserApiKeyFields.COLUMN_USED_AT]?: string;
30
+ };
31
+ export declare class UserApiKey extends AbstractEntity<UserApiKeyData> {
32
+ #private;
33
+ constructor(dataInput: UserApiKeyData);
34
+ get contactName(): string | undefined;
35
+ get disableExpirationDate(): boolean | undefined;
36
+ get expirationDate(): string | undefined;
37
+ get isActive(): boolean | undefined;
38
+ get lastCharacters(): string | undefined;
39
+ get name(): string | undefined;
40
+ get reference(): string | undefined;
41
+ get since(): string | undefined;
42
+ get userLogin(): string | undefined;
43
+ get usedAt(): string | undefined;
44
+ toJSON(): UserApiKeyData;
45
+ }
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
+ if (kind === "m") throw new TypeError("Private method is not writable");
4
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
+ };
8
+ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
+ if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
+ };
13
+ var _UserApiKey_contactName, _UserApiKey_disableExpirationDate, _UserApiKey_expirationDate, _UserApiKey_isActive, _UserApiKey_lastCharacters, _UserApiKey_name, _UserApiKey_reference, _UserApiKey_since, _UserApiKey_userLogin, _UserApiKey_usedAt;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.UserApiKey = exports.UserApiKeyFields = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ var UserApiKeyFields;
18
+ (function (UserApiKeyFields) {
19
+ UserApiKeyFields["CONTACT_NAME"] = "contactName";
20
+ UserApiKeyFields["COLUMN_DISABLE_EXPIRATION_DATE"] = "disableExpirationDate";
21
+ UserApiKeyFields["COLUMN_EXPIRATION_DATE"] = "expiration_date";
22
+ UserApiKeyFields["COLUMN_IS_ACTIVE"] = "isActive";
23
+ UserApiKeyFields["COLUMN_KEY"] = "key";
24
+ UserApiKeyFields["COLUMN_LAST_CHARACTERS"] = "lastCharacters";
25
+ UserApiKeyFields["COLUMN_NAME"] = "name";
26
+ UserApiKeyFields["COLUMN_REFERENCE"] = "reference";
27
+ UserApiKeyFields["COLUMN_SINCE"] = "since";
28
+ UserApiKeyFields["COLUMN_USER_LOGIN"] = "userLogin";
29
+ UserApiKeyFields["COLUMN_USED_AT"] = "usedAt";
30
+ })(UserApiKeyFields = exports.UserApiKeyFields || (exports.UserApiKeyFields = {}));
31
+ class UserApiKey extends abstractEntity_1.AbstractEntity {
32
+ constructor(dataInput) {
33
+ super(dataInput);
34
+ _UserApiKey_contactName.set(this, void 0);
35
+ _UserApiKey_disableExpirationDate.set(this, void 0);
36
+ _UserApiKey_expirationDate.set(this, void 0);
37
+ _UserApiKey_isActive.set(this, void 0);
38
+ _UserApiKey_lastCharacters.set(this, void 0);
39
+ _UserApiKey_name.set(this, void 0);
40
+ _UserApiKey_reference.set(this, void 0);
41
+ _UserApiKey_since.set(this, void 0);
42
+ _UserApiKey_userLogin.set(this, void 0);
43
+ _UserApiKey_usedAt.set(this, void 0);
44
+ __classPrivateFieldSet(this, _UserApiKey_contactName, dataInput[UserApiKeyFields.CONTACT_NAME], "f");
45
+ __classPrivateFieldSet(this, _UserApiKey_disableExpirationDate, dataInput[UserApiKeyFields.COLUMN_DISABLE_EXPIRATION_DATE], "f");
46
+ __classPrivateFieldSet(this, _UserApiKey_expirationDate, dataInput[UserApiKeyFields.COLUMN_EXPIRATION_DATE], "f");
47
+ __classPrivateFieldSet(this, _UserApiKey_isActive, dataInput[UserApiKeyFields.COLUMN_IS_ACTIVE], "f");
48
+ __classPrivateFieldSet(this, _UserApiKey_lastCharacters, dataInput[UserApiKeyFields.COLUMN_LAST_CHARACTERS], "f");
49
+ __classPrivateFieldSet(this, _UserApiKey_name, dataInput[UserApiKeyFields.COLUMN_NAME], "f");
50
+ __classPrivateFieldSet(this, _UserApiKey_reference, dataInput[UserApiKeyFields.COLUMN_REFERENCE], "f");
51
+ __classPrivateFieldSet(this, _UserApiKey_since, dataInput[UserApiKeyFields.COLUMN_SINCE], "f");
52
+ __classPrivateFieldSet(this, _UserApiKey_userLogin, dataInput[UserApiKeyFields.COLUMN_USER_LOGIN], "f");
53
+ __classPrivateFieldSet(this, _UserApiKey_usedAt, dataInput[UserApiKeyFields.COLUMN_USED_AT], "f");
54
+ }
55
+ get contactName() {
56
+ return __classPrivateFieldGet(this, _UserApiKey_contactName, "f");
57
+ }
58
+ get disableExpirationDate() {
59
+ return __classPrivateFieldGet(this, _UserApiKey_disableExpirationDate, "f");
60
+ }
61
+ get expirationDate() {
62
+ return __classPrivateFieldGet(this, _UserApiKey_expirationDate, "f");
63
+ }
64
+ get isActive() {
65
+ return __classPrivateFieldGet(this, _UserApiKey_isActive, "f");
66
+ }
67
+ get lastCharacters() {
68
+ return __classPrivateFieldGet(this, _UserApiKey_lastCharacters, "f");
69
+ }
70
+ get name() {
71
+ return __classPrivateFieldGet(this, _UserApiKey_name, "f");
72
+ }
73
+ get reference() {
74
+ return __classPrivateFieldGet(this, _UserApiKey_reference, "f");
75
+ }
76
+ get since() {
77
+ return __classPrivateFieldGet(this, _UserApiKey_since, "f");
78
+ }
79
+ get userLogin() {
80
+ return __classPrivateFieldGet(this, _UserApiKey_userLogin, "f");
81
+ }
82
+ get usedAt() {
83
+ return __classPrivateFieldGet(this, _UserApiKey_usedAt, "f");
84
+ }
85
+ toJSON() {
86
+ return {
87
+ [UserApiKeyFields.CONTACT_NAME]: this.contactName,
88
+ [UserApiKeyFields.COLUMN_DISABLE_EXPIRATION_DATE]: this
89
+ .disableExpirationDate,
90
+ [UserApiKeyFields.COLUMN_EXPIRATION_DATE]: this.expirationDate,
91
+ [UserApiKeyFields.COLUMN_IS_ACTIVE]: this.isActive,
92
+ [UserApiKeyFields.COLUMN_LAST_CHARACTERS]: this.lastCharacters,
93
+ [UserApiKeyFields.COLUMN_NAME]: this.name,
94
+ [UserApiKeyFields.COLUMN_REFERENCE]: this.reference,
95
+ [UserApiKeyFields.COLUMN_SINCE]: this.since,
96
+ [UserApiKeyFields.COLUMN_USER_LOGIN]: this.userLogin,
97
+ [UserApiKeyFields.COLUMN_USED_AT]: this.usedAt,
98
+ };
99
+ }
100
+ }
101
+ exports.UserApiKey = UserApiKey;
102
+ _UserApiKey_contactName = new WeakMap(), _UserApiKey_disableExpirationDate = new WeakMap(), _UserApiKey_expirationDate = new WeakMap(), _UserApiKey_isActive = new WeakMap(), _UserApiKey_lastCharacters = new WeakMap(), _UserApiKey_name = new WeakMap(), _UserApiKey_reference = new WeakMap(), _UserApiKey_since = new WeakMap(), _UserApiKey_userLogin = new WeakMap(), _UserApiKey_usedAt = new WeakMap();
103
+ //# sourceMappingURL=userApiKey.js.map
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/ArrowSphere/nodejs-api-client.git"
6
6
  },
7
- "version": "3.240.0-rc-jpb.3",
7
+ "version": "3.240.0",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",
@@ -1,22 +0,0 @@
1
- import { AbstractEntity } from '../../../abstractEntity';
2
- export declare enum GetLicenseAttachmentResultFields {
3
- COLUMN_NAME = "name",
4
- COLUMN_LAST_MODIFIED = "lastModified",
5
- COLUMN_URL = "url",
6
- COLUMN_METADATA = "metadata"
7
- }
8
- export declare type GetLicenseAttachmentResultData = {
9
- [GetLicenseAttachmentResultFields.COLUMN_NAME]: string;
10
- [GetLicenseAttachmentResultFields.COLUMN_LAST_MODIFIED]: string;
11
- [GetLicenseAttachmentResultFields.COLUMN_URL]: string;
12
- [GetLicenseAttachmentResultFields.COLUMN_METADATA]?: Record<string, string>;
13
- };
14
- export declare class GetLicenseAttachmentResult extends AbstractEntity<GetLicenseAttachmentResultData> {
15
- #private;
16
- constructor(input: GetLicenseAttachmentResultData);
17
- get name(): string;
18
- get lastModified(): string;
19
- get url(): string;
20
- get metadata(): Record<string, string> | undefined;
21
- toJSON(): GetLicenseAttachmentResultData;
22
- }
@@ -1,60 +0,0 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _GetLicenseAttachmentResult_name, _GetLicenseAttachmentResult_lastModified, _GetLicenseAttachmentResult_url, _GetLicenseAttachmentResult_metadata;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.GetLicenseAttachmentResult = exports.GetLicenseAttachmentResultFields = void 0;
16
- const abstractEntity_1 = require("../../../abstractEntity");
17
- var GetLicenseAttachmentResultFields;
18
- (function (GetLicenseAttachmentResultFields) {
19
- GetLicenseAttachmentResultFields["COLUMN_NAME"] = "name";
20
- GetLicenseAttachmentResultFields["COLUMN_LAST_MODIFIED"] = "lastModified";
21
- GetLicenseAttachmentResultFields["COLUMN_URL"] = "url";
22
- GetLicenseAttachmentResultFields["COLUMN_METADATA"] = "metadata";
23
- })(GetLicenseAttachmentResultFields = exports.GetLicenseAttachmentResultFields || (exports.GetLicenseAttachmentResultFields = {}));
24
- class GetLicenseAttachmentResult extends abstractEntity_1.AbstractEntity {
25
- constructor(input) {
26
- super(input);
27
- _GetLicenseAttachmentResult_name.set(this, void 0);
28
- _GetLicenseAttachmentResult_lastModified.set(this, void 0);
29
- _GetLicenseAttachmentResult_url.set(this, void 0);
30
- _GetLicenseAttachmentResult_metadata.set(this, void 0);
31
- __classPrivateFieldSet(this, _GetLicenseAttachmentResult_name, input[GetLicenseAttachmentResultFields.COLUMN_NAME], "f");
32
- __classPrivateFieldSet(this, _GetLicenseAttachmentResult_lastModified, input[GetLicenseAttachmentResultFields.COLUMN_LAST_MODIFIED], "f");
33
- __classPrivateFieldSet(this, _GetLicenseAttachmentResult_url, input[GetLicenseAttachmentResultFields.COLUMN_URL], "f");
34
- __classPrivateFieldSet(this, _GetLicenseAttachmentResult_metadata, input[GetLicenseAttachmentResultFields.COLUMN_METADATA], "f");
35
- }
36
- get name() {
37
- return __classPrivateFieldGet(this, _GetLicenseAttachmentResult_name, "f");
38
- }
39
- get lastModified() {
40
- return __classPrivateFieldGet(this, _GetLicenseAttachmentResult_lastModified, "f");
41
- }
42
- get url() {
43
- return __classPrivateFieldGet(this, _GetLicenseAttachmentResult_url, "f");
44
- }
45
- get metadata() {
46
- return __classPrivateFieldGet(this, _GetLicenseAttachmentResult_metadata, "f");
47
- }
48
- toJSON() {
49
- return {
50
- [GetLicenseAttachmentResultFields.COLUMN_NAME]: this.name,
51
- [GetLicenseAttachmentResultFields.COLUMN_LAST_MODIFIED]: this
52
- .lastModified,
53
- [GetLicenseAttachmentResultFields.COLUMN_URL]: this.url,
54
- [GetLicenseAttachmentResultFields.COLUMN_METADATA]: this.metadata,
55
- };
56
- }
57
- }
58
- exports.GetLicenseAttachmentResult = GetLicenseAttachmentResult;
59
- _GetLicenseAttachmentResult_name = new WeakMap(), _GetLicenseAttachmentResult_lastModified = new WeakMap(), _GetLicenseAttachmentResult_url = new WeakMap(), _GetLicenseAttachmentResult_metadata = new WeakMap();
60
- //# sourceMappingURL=GetLicenseAttachmentResult.js.map
@@ -1,14 +0,0 @@
1
- import { AbstractEntity } from '../../../abstractEntity';
2
- import { GetLicenseAttachmentResult, GetLicenseAttachmentResultData } from './GetLicenseAttachmentResult';
3
- export declare enum GetLicenseAttachmentsResultFields {
4
- COLUMN_ATTACHMENTS = "attachements"
5
- }
6
- export declare type GetLicenseAttachmentsResultData = {
7
- [GetLicenseAttachmentsResultFields.COLUMN_ATTACHMENTS]: GetLicenseAttachmentResultData[];
8
- };
9
- export declare class GetLicenseAttachmentsResult extends AbstractEntity<GetLicenseAttachmentsResultData> {
10
- #private;
11
- constructor(input: GetLicenseAttachmentsResultData);
12
- getLicenseAttachments(): GetLicenseAttachmentResult[];
13
- toJSON(): GetLicenseAttachmentsResultData;
14
- }
@@ -1,39 +0,0 @@
1
- "use strict";
2
- var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
- if (kind === "m") throw new TypeError("Private method is not writable");
4
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
5
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
6
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7
- };
8
- var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) {
9
- if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
10
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
- };
13
- var _GetLicenseAttachmentsResult_attachments;
14
- Object.defineProperty(exports, "__esModule", { value: true });
15
- exports.GetLicenseAttachmentsResult = exports.GetLicenseAttachmentsResultFields = void 0;
16
- const abstractEntity_1 = require("../../../abstractEntity");
17
- const GetLicenseAttachmentResult_1 = require("./GetLicenseAttachmentResult");
18
- var GetLicenseAttachmentsResultFields;
19
- (function (GetLicenseAttachmentsResultFields) {
20
- GetLicenseAttachmentsResultFields["COLUMN_ATTACHMENTS"] = "attachements";
21
- })(GetLicenseAttachmentsResultFields = exports.GetLicenseAttachmentsResultFields || (exports.GetLicenseAttachmentsResultFields = {}));
22
- class GetLicenseAttachmentsResult extends abstractEntity_1.AbstractEntity {
23
- constructor(input) {
24
- super(input);
25
- _GetLicenseAttachmentsResult_attachments.set(this, void 0);
26
- __classPrivateFieldSet(this, _GetLicenseAttachmentsResult_attachments, input[GetLicenseAttachmentsResultFields.COLUMN_ATTACHMENTS].map((result) => new GetLicenseAttachmentResult_1.GetLicenseAttachmentResult(result)), "f");
27
- }
28
- getLicenseAttachments() {
29
- return __classPrivateFieldGet(this, _GetLicenseAttachmentsResult_attachments, "f");
30
- }
31
- toJSON() {
32
- return {
33
- [GetLicenseAttachmentsResultFields.COLUMN_ATTACHMENTS]: __classPrivateFieldGet(this, _GetLicenseAttachmentsResult_attachments, "f").map((result) => result.toJSON()),
34
- };
35
- }
36
- }
37
- exports.GetLicenseAttachmentsResult = GetLicenseAttachmentsResult;
38
- _GetLicenseAttachmentsResult_attachments = new WeakMap();
39
- //# sourceMappingURL=GetLicenseAttachmentsResult.js.map