@arrowsphere/api-client 3.354.0 → 3.355.0-rc.fdi.2

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,11 @@
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.355.0] - 2026.03.30
7
+
8
+ ### Added
9
+ - [Customer] Add endpoint to active invitation
10
+
6
11
  ## [3.354.0] - 2026.03.30
7
12
 
8
13
  ### Added
@@ -128,6 +128,20 @@ class AxiosSingleton {
128
128
  else if (typeof value === 'object' && value !== null) {
129
129
  sanitizedCopy[key] = AxiosSingleton.sanitizeObject(value, fieldsToObfuscate, seen); // 🔄 Récursion avec WeakMap
130
130
  }
131
+ else if (typeof value === 'string') {
132
+ try {
133
+ const parsed = JSON.parse(value);
134
+ if (parsed && typeof parsed === 'object') {
135
+ sanitizedCopy[key] = JSON.stringify(AxiosSingleton.sanitizeObject(parsed, fieldsToObfuscate, seen));
136
+ }
137
+ else {
138
+ sanitizedCopy[key] = value;
139
+ }
140
+ }
141
+ catch (_a) {
142
+ sanitizedCopy[key] = value;
143
+ }
144
+ }
131
145
  else {
132
146
  sanitizedCopy[key] = value;
133
147
  }
@@ -11,6 +11,7 @@ import { ContactFields } from './entities/customers/contact/contact';
11
11
  import { CustomerProvision } from './entities/customerProvision';
12
12
  import { CustomerCredentials } from './entities/customerCredentials';
13
13
  import { CustomerAgreements } from './entities/customers/agreements/customerAgreements';
14
+ import { DataInvitationActivate } from './entities/dataInvitationActivate';
14
15
  export declare enum CustomerMigrationAttributeFields {
15
16
  NAME = "name",
16
17
  VALUE = "value"
@@ -106,6 +107,12 @@ export declare type PostCustomerInvitation = {
106
107
  [PostCustomerInvitationFields.COLUMN_CONTACT_ID]: number;
107
108
  [PostCustomerInvitationFields.COLUMN_POLICY]: string;
108
109
  };
110
+ export declare enum PostCustomerInvitationActivateFields {
111
+ COLUMN_PASSWORD = "password"
112
+ }
113
+ export declare type PostCustomerInvitationActivate = {
114
+ [PostCustomerInvitationActivateFields.COLUMN_PASSWORD]: string;
115
+ };
109
116
  export declare type APIResponseResourceCreated = {
110
117
  status: number;
111
118
  data: {
@@ -181,4 +188,5 @@ export declare class CustomersClient extends AbstractRestfulClient {
181
188
  getCheckMicrosoftCustomerAgreement(parameters?: {
182
189
  customerReference?: string;
183
190
  } & Parameters): Promise<GetResult<CustomerAgreements>>;
191
+ postCustomerInvitationActivate(code: string, payload: PostCustomerInvitationActivate, parameters?: Parameters): Promise<GetResult<DataInvitationActivate>>;
184
192
  }
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CustomersClient = exports.UploadAttachmentInputFields = exports.PostCustomerInvitationFields = exports.CustomersFilterInputFields = exports.ExportCustomersInputFields = exports.CustomerContactPayloadFields = exports.CustomerMigrationPayloadFields = exports.CustomerMigrationAttributeFields = void 0;
3
+ exports.CustomersClient = exports.UploadAttachmentInputFields = exports.PostCustomerInvitationActivateFields = exports.PostCustomerInvitationFields = exports.CustomersFilterInputFields = exports.ExportCustomersInputFields = exports.CustomerContactPayloadFields = exports.CustomerMigrationPayloadFields = exports.CustomerMigrationAttributeFields = void 0;
4
4
  const abstractRestfulClient_1 = require("../abstractRestfulClient");
5
5
  const getResult_1 = require("../getResult");
6
6
  const dataCustomers_1 = require("./entities/dataCustomers");
@@ -14,6 +14,7 @@ const contact_1 = require("./entities/customers/contact/contact");
14
14
  const customerProvision_1 = require("./entities/customerProvision");
15
15
  const customerCredentials_1 = require("./entities/customerCredentials");
16
16
  const customerAgreements_1 = require("./entities/customers/agreements/customerAgreements");
17
+ const dataInvitationActivate_1 = require("./entities/dataInvitationActivate");
17
18
  var CustomerMigrationAttributeFields;
18
19
  (function (CustomerMigrationAttributeFields) {
19
20
  CustomerMigrationAttributeFields["NAME"] = "name";
@@ -58,6 +59,10 @@ var PostCustomerInvitationFields;
58
59
  PostCustomerInvitationFields["COLUMN_CONTACT_ID"] = "contactId";
59
60
  PostCustomerInvitationFields["COLUMN_POLICY"] = "policy";
60
61
  })(PostCustomerInvitationFields = exports.PostCustomerInvitationFields || (exports.PostCustomerInvitationFields = {}));
62
+ var PostCustomerInvitationActivateFields;
63
+ (function (PostCustomerInvitationActivateFields) {
64
+ PostCustomerInvitationActivateFields["COLUMN_PASSWORD"] = "password";
65
+ })(PostCustomerInvitationActivateFields = exports.PostCustomerInvitationActivateFields || (exports.PostCustomerInvitationActivateFields = {}));
61
66
  var UploadAttachmentInputFields;
62
67
  (function (UploadAttachmentInputFields) {
63
68
  UploadAttachmentInputFields["COLUMN_FILE_ENCODED"] = "fileEncoded";
@@ -167,6 +172,10 @@ class CustomersClient extends abstractRestfulClient_1.AbstractRestfulClient {
167
172
  this.path = '/checkMicrosoftCustomerAgreement';
168
173
  return new getResult_1.GetResult(customerAgreements_1.CustomerAgreements, await this.get(parameters));
169
174
  }
175
+ async postCustomerInvitationActivate(code, payload, parameters = {}) {
176
+ this.path = `/invitations/${code}/activate`;
177
+ return new getResult_1.GetResult(dataInvitationActivate_1.DataInvitationActivate, await this.post(payload, parameters));
178
+ }
170
179
  }
171
180
  exports.CustomersClient = CustomersClient;
172
181
  //# sourceMappingURL=customersClient.js.map
@@ -0,0 +1,13 @@
1
+ import { AbstractEntity } from '../../abstractEntity';
2
+ export declare enum DataInvitationActivateFields {
3
+ COLUMN_USERNAME = "username"
4
+ }
5
+ export declare type DataInvitationActivateType = {
6
+ [DataInvitationActivateFields.COLUMN_USERNAME]: string;
7
+ };
8
+ export declare class DataInvitationActivate extends AbstractEntity<DataInvitationActivateType> {
9
+ #private;
10
+ constructor(getDataInvitationActivateInput: DataInvitationActivateType);
11
+ get username(): string;
12
+ toJSON(): DataInvitationActivateType;
13
+ }
@@ -0,0 +1,38 @@
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 _DataInvitationActivate_username;
14
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.DataInvitationActivate = exports.DataInvitationActivateFields = void 0;
16
+ const abstractEntity_1 = require("../../abstractEntity");
17
+ var DataInvitationActivateFields;
18
+ (function (DataInvitationActivateFields) {
19
+ DataInvitationActivateFields["COLUMN_USERNAME"] = "username";
20
+ })(DataInvitationActivateFields = exports.DataInvitationActivateFields || (exports.DataInvitationActivateFields = {}));
21
+ class DataInvitationActivate extends abstractEntity_1.AbstractEntity {
22
+ constructor(getDataInvitationActivateInput) {
23
+ super(getDataInvitationActivateInput);
24
+ _DataInvitationActivate_username.set(this, void 0);
25
+ __classPrivateFieldSet(this, _DataInvitationActivate_username, getDataInvitationActivateInput[DataInvitationActivateFields.COLUMN_USERNAME], "f");
26
+ }
27
+ get username() {
28
+ return __classPrivateFieldGet(this, _DataInvitationActivate_username, "f");
29
+ }
30
+ toJSON() {
31
+ return {
32
+ [DataInvitationActivateFields.COLUMN_USERNAME]: this.username,
33
+ };
34
+ }
35
+ }
36
+ exports.DataInvitationActivate = DataInvitationActivate;
37
+ _DataInvitationActivate_username = new WeakMap();
38
+ //# sourceMappingURL=dataInvitationActivate.js.map
@@ -12,3 +12,4 @@ export * from './entities/invitations/contact/invitationContact';
12
12
  export * from './entities/unknownLicenses/relation';
13
13
  export * from './entities/unknownLicenses/unknownLicense';
14
14
  export * from './entities/customerCredentials';
15
+ export * from './entities/dataInvitationActivate';
@@ -28,4 +28,5 @@ __exportStar(require("./entities/invitations/contact/invitationContact"), export
28
28
  __exportStar(require("./entities/unknownLicenses/relation"), exports);
29
29
  __exportStar(require("./entities/unknownLicenses/unknownLicense"), exports);
30
30
  __exportStar(require("./entities/customerCredentials"), exports);
31
+ __exportStar(require("./entities/dataInvitationActivate"), exports);
31
32
  //# sourceMappingURL=index.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.354.0",
7
+ "version": "3.355.0-rc.fdi.2",
8
8
  "description": "Node.js client for ArrowSphere's public API",
9
9
  "main": "build/index.js",
10
10
  "types": "build/index.d.ts",