@allthings/sdk 6.7.0 → 7.0.1

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.
@@ -1,9 +1,14 @@
1
- export { DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore, parameterStore, } from './aws';
2
1
  export { default as createTokenStore } from './oauth/createTokenStore';
2
+ export { IOAuthToken } from './oauth/types';
3
3
  export { EnumCommunicationPreferenceChannel, EnumUnitObjectType, EnumUnitType, EnumUserPermissionObjectType, EnumUserPermissionRole, EnumUserRelationType, EnumUtilisationPeriodType, default as restClient, } from './rest';
4
4
  export { IApp } from './rest/methods/app';
5
+ export { IFile } from './rest/methods/file';
6
+ export { MethodGetGroups } from './rest/methods/group';
7
+ export { MethodGetProperties } from './rest/methods/property';
5
8
  export { IProperty } from './rest/methods/property';
9
+ export { IServiceProvider } from './rest/methods/serviceProvider';
6
10
  export { ITicket } from './rest/methods/ticket';
7
- export { IUser } from './rest/methods/user';
11
+ export { MethodGetUnits } from './rest/methods/unit';
12
+ export { IUser, IUserPermission } from './rest/methods/user';
8
13
  export { IUtilisationPeriod } from './rest/methods/utilisationPeriod';
9
14
  export { EnumCommunicationMethodType, EnumCountryCode, EnumInputChannel, EnumLocale, EnumLookupUserType, EnumResource, EnumServiceProviderType, EnumTimezone, IAllthingsRestClient, IAllthingsRestClientOptions, } from './rest/types';
@@ -5,6 +5,7 @@ export type CreateUserAndClientResult = Promise<{
5
5
  readonly client: IAllthingsRestClient;
6
6
  readonly user: IUser;
7
7
  }>;
8
+ export declare const generateId: () => string;
8
9
  export declare function createUserAndClient(): CreateUserAndClientResult;
9
10
  export declare function createUtilisationPeriod(): Promise<IUtilisationPeriod>;
10
11
  export declare function createUserWithUtilizationPeriod(): CreateUserAndClientResult;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@allthings/sdk",
3
- "version": "6.7.0",
3
+ "version": "7.0.1",
4
4
  "description": "",
5
5
  "author": "Allthings GmbH",
6
6
  "keywords": [
@@ -52,7 +52,6 @@
52
52
  "test:authorization-code": "open http://localhost:3333/test/fixtures/authorization-code?clientId=$ALLTHINGS_OAUTH_CLIENT_ID&clientSecret=$ALLTHINGS_OAUTH_CLIENT_SECRET"
53
53
  },
54
54
  "dependencies": {
55
- "@aws-sdk/client-ssm": "3.665.0",
56
55
  "bottleneck": "2.19.5",
57
56
  "cross-fetch": "4.0.0",
58
57
  "query-string": "7.1.3"
@@ -61,27 +60,26 @@
61
60
  "@allthings/eslint-config": "1.1.0",
62
61
  "@commitlint/cli": "19.5.0",
63
62
  "@commitlint/config-conventional": "19.5.0",
64
- "@rollup/plugin-commonjs": "28.0.0",
63
+ "@rollup/plugin-commonjs": "28.0.1",
65
64
  "@rollup/plugin-json": "6.1.0",
66
65
  "@rollup/plugin-node-resolve": "15.3.0",
67
66
  "@rollup/plugin-replace": "6.0.1",
68
67
  "@rollup/plugin-terser": "0.4.4",
69
- "@types/form-data": "2.5.0",
68
+ "@types/form-data": "2.5.2",
70
69
  "@types/jest": "26.0.24",
71
- "@types/node": "18.19.54",
70
+ "@types/node": "22.9.0",
72
71
  "@types/query-string": "6.3.0",
73
- "aws-sdk-client-mock": "4.0.2",
72
+ "aws-sdk-client-mock": "4.1.0",
74
73
  "coveralls": "3.1.1",
75
74
  "eslint": "8.57.1",
76
- "form-data": "4.0.0",
75
+ "form-data": "4.0.1",
77
76
  "husky": "9.1.6",
78
77
  "jest": "26.6.3",
79
78
  "jest-environment-jsdom": "26.6.2",
80
79
  "lint-staged": "15.2.10",
81
- "nanoid": "3.3.7",
82
80
  "prettier": "3.3.3",
83
81
  "rimraf": "5.0.10",
84
- "rollup": "4.24.0",
82
+ "rollup": "4.27.2",
85
83
  "rollup-plugin-hashbang": "2.2.2",
86
84
  "semantic-release": "19.0.5",
87
85
  "ts-jest": "26.5.6",
@@ -1,2 +0,0 @@
1
- import parameterStore, { DEFAULT_CLIENT_CONFIG as DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore } from './parameterStore';
2
- export { DEFAULT_PARAMETER_STORE_CLIENT_CONFIG, IParameterStore, parameterStore, };
@@ -1,16 +0,0 @@
1
- import { SSMClient, SSMClientConfig } from '@aws-sdk/client-ssm';
2
- export interface IParameterStore {
3
- clientConfig?: SSMClientConfig;
4
- endpoint?: string;
5
- logger?: (message: string) => void;
6
- onlyDefault?: boolean;
7
- prefix?: string;
8
- }
9
- export declare const DEFAULT_CLIENT_CONFIG: IParameterStore;
10
- declare const getSecrets: (ssm: SSMClient, config: IParameterStore, params: string[], defaultValue: string) => Promise<string[]>;
11
- declare const getSecret: (ssm: SSMClient, config: IParameterStore, param: string, defaultValue: string) => Promise<string>;
12
- declare const parameterStore: (userConfig: IParameterStore) => {
13
- getSecret: (param: string, defaultValue?: string) => Promise<string>;
14
- getSecrets: (params: string[], defaultValue?: string) => Promise<string[]>;
15
- };
16
- export default parameterStore;
@@ -1 +0,0 @@
1
- export {};