attlaz-client 1.27.3 → 1.28.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.
@@ -0,0 +1,3 @@
1
+ export declare class AttlazResource {
2
+ convertToAttlazObject(data: any, opts: any): void;
3
+ }
@@ -0,0 +1,4 @@
1
+ export class AttlazResource {
2
+ convertToAttlazObject(data, opts) {
3
+ }
4
+ }
@@ -1,6 +1,6 @@
1
1
  import { CursorPagination } from '../Model/Pagination/CursorPagination.js';
2
2
  export class LoadAllHelper {
3
- static async loadAll(call, limit = 25) {
3
+ static async loadAll(call, limit = 100) {
4
4
  const totalResult = [];
5
5
  let hasMore = true;
6
6
  let lastRef = null;
@@ -47,11 +47,17 @@ export class QueryString {
47
47
  }
48
48
  const output = [];
49
49
  for (const parameter of this.parameters) {
50
- let { value } = parameter;
50
+ const { value } = parameter;
51
51
  if (Array.isArray(value)) {
52
- value = value.join(',');
52
+ /** Legacy way **/
53
+ // output.push(parameter.parameter + '=' + encodeURIComponent(value.join(',')));
54
+ for (const subValue of value) {
55
+ output.push(parameter.parameter + '=' + encodeURIComponent(subValue));
56
+ }
57
+ }
58
+ else {
59
+ output.push(parameter.parameter + '=' + encodeURIComponent(value));
53
60
  }
54
- output.push(parameter.parameter + '=' + encodeURIComponent(value));
55
61
  }
56
62
  if (this.command.includes('?')) {
57
63
  return this.command + '&' + output.join('&');
@@ -0,0 +1,2 @@
1
+ export declare class ResourceNamespace {
2
+ }
@@ -0,0 +1,2 @@
1
+ export class ResourceNamespace {
2
+ }
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.27.2";
1
+ export declare const VERSION = "1.27.3";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.27.2";
1
+ export const VERSION = "1.27.3";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.27.3",
3
+ "version": "1.28.0",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "types": "./dist/index.d.ts",
6
6
  "main": "./dist/index.js",
@@ -43,20 +43,20 @@
43
43
  "registry": "https://registry.npmjs.org"
44
44
  },
45
45
  "dependencies": {
46
- "axios": "^1.8.1",
46
+ "axios": "^1.8.4",
47
47
  "axios-oauth-client": "^2.2.0"
48
48
  },
49
49
  "devDependencies": {
50
50
  "@types/jest": "^29.5.14",
51
- "@types/node": "^22.13.9",
51
+ "@types/node": "^22.13.11",
52
52
  "@typescript-eslint/eslint-plugin": "^8.1.0",
53
53
  "@typescript-eslint/parser": "^8.1.0",
54
54
  "dotenv": "^16.4.7",
55
- "eslint": "^9.21.0",
55
+ "eslint": "^9.23.0",
56
56
  "eslint-config-attlaz-base": "^1.2.0",
57
- "eslint-import-resolver-typescript": "^3.8.3",
57
+ "eslint-import-resolver-typescript": "^4.2.2",
58
58
  "eslint-plugin-import": "^2.31.0",
59
- "eslint-plugin-jsdoc": "^50.6.3",
59
+ "eslint-plugin-jsdoc": "^50.6.8",
60
60
  "eslint-plugin-prefer-arrow": "^1.2.3",
61
61
  "eslint-plugin-promise": "^7.2.1",
62
62
  "jest": "^29.7.0",