@ctx-core/auth0-management 7.0.4 → 7.0.9

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
@@ -1,5 +1,60 @@
1
1
  # @ctx-core/auth0-management
2
2
 
3
+ ## 7.0.9
4
+
5
+ ### Patch Changes
6
+
7
+ - fix: error TS6059: \* is not under 'rootDir': package.json: types: ./dist/index.d.ts
8
+ - Updated dependencies
9
+ - @ctx-core/auth0@27.0.9
10
+ - @ctx-core/fetch@11.0.101
11
+ - @ctx-core/object@22.0.8
12
+ - @ctx-core/store@27.0.55
13
+
14
+ ## 7.0.8
15
+
16
+ ### Patch Changes
17
+
18
+ - tsconfig.json: "target": "ES2021"
19
+ - Updated dependencies
20
+ - @ctx-core/auth0@27.0.8
21
+ - @ctx-core/fetch@11.0.100
22
+ - @ctx-core/object@22.0.7
23
+ - @ctx-core/store@27.0.54
24
+
25
+ ## 7.0.7
26
+
27
+ ### Patch Changes
28
+
29
+ - package.json: "types": "./src/index.ts": better editing experience
30
+ - Updated dependencies
31
+ - @ctx-core/auth0@27.0.7
32
+ - @ctx-core/fetch@11.0.99
33
+ - @ctx-core/object@22.0.6
34
+ - @ctx-core/store@27.0.53
35
+
36
+ ## 7.0.6
37
+
38
+ ### Patch Changes
39
+
40
+ - fix: build
41
+ - Updated dependencies
42
+ - @ctx-core/auth0@27.0.6
43
+ - @ctx-core/fetch@11.0.98
44
+ - @ctx-core/object@22.0.5
45
+ - @ctx-core/store@27.0.52
46
+
47
+ ## 7.0.5
48
+
49
+ ### Patch Changes
50
+
51
+ - \*.d.ts export
52
+ - Updated dependencies
53
+ - @ctx-core/auth0@27.0.5
54
+ - @ctx-core/fetch@11.0.97
55
+ - @ctx-core/object@22.0.4
56
+ - @ctx-core/store@27.0.51
57
+
3
58
  ## 7.0.4
4
59
 
5
60
  ### Patch Changes
package/COMMIT_EDITMSG ADDED
@@ -0,0 +1,2 @@
1
+
2
+
@@ -0,0 +1,3 @@
1
+ import { B } from '@ctx-core/object';
2
+ export declare const auth0_audience__b: B<auth0_audience__T>;
3
+ export declare type auth0_audience__T = () => string;
@@ -0,0 +1,7 @@
1
+ import { ManagementClient } from 'auth0';
2
+ export declare function auth0_management_(params?: auth0_management_params_I): ManagementClient<import("auth0").AppMetadata, import("auth0").UserMetadata>;
3
+ export interface auth0_management_params_I {
4
+ domain?: string;
5
+ clientId?: string;
6
+ clientSecret?: string;
7
+ }
@@ -0,0 +1,4 @@
1
+ import type { post_auth0_oauth_token_body_I } from '@ctx-core/auth0';
2
+ import { B } from '@ctx-core/object';
3
+ export declare const auth0_management_client_credentials_body__b: B<auth0_management_client_credentials_body__T>;
4
+ export declare type auth0_management_client_credentials_body__T = () => post_auth0_oauth_token_body_I;
@@ -0,0 +1,4 @@
1
+ import { auth0_token_T } from '@ctx-core/auth0';
2
+ import { B } from '@ctx-core/object';
3
+ export declare const auth0_management_token__b: B<auth0_management_token__T>;
4
+ export declare type auth0_management_token__T = () => Promise<auth0_token_T>;
@@ -0,0 +1,7 @@
1
+ import { B } from '@ctx-core/object';
2
+ export declare const get_auth0_v2_client_grants_b: B<get_auth0_v2_client_grants_T>;
3
+ export interface get_auth0_v2_client_grants_params_I {
4
+ query?: string;
5
+ json?: any;
6
+ }
7
+ export declare type get_auth0_v2_client_grants_T = (params: get_auth0_v2_client_grants_params_I) => Promise<Response>;
@@ -0,0 +1,7 @@
1
+ import { B } from '@ctx-core/object';
2
+ export declare const get_auth0_v2_user_b: B<get_auth0_v2_user_T>;
3
+ export interface get_auth0_v2_user_params_T {
4
+ AUTH0_DOMAIN: string;
5
+ user_id: string;
6
+ }
7
+ export declare type get_auth0_v2_user_T = (params: get_auth0_v2_user_params_T) => Promise<Response>;
@@ -0,0 +1,9 @@
1
+ import type { Auth0UserProfile } from 'auth0-js';
2
+ import { B } from '@ctx-core/object';
3
+ export declare const get_auth0_v2_users_by_email_b: B<get_auth0_v2_users_by_email_T>;
4
+ export declare type get_auth0_v2_users_by_email_params_I = {
5
+ email: string;
6
+ AUTH0_DOMAIN?: string;
7
+ };
8
+ export declare type get_auth0_v2_users_by_email_T = (params: get_auth0_v2_users_by_email_params_I) => Promise<Response>;
9
+ export declare type get_auth0_v2_users_by_email_response_T = Auth0UserProfile[];
@@ -0,0 +1,9 @@
1
+ export * from './auth0_audience__b.js';
2
+ export * from './auth0_management_.js';
3
+ export * from './auth0_management_client_credentials_body__b.js';
4
+ export * from './auth0_management_token__b.js';
5
+ export * from './get_auth0_v2_client_grants_b.js';
6
+ export * from './get_auth0_v2_user_b.js';
7
+ export * from './get_auth0_v2_users_by_email_b.js';
8
+ export * from './patch_auth0_v2_client_b.js';
9
+ export * from './patch_auth0_v2_user_b.js';
@@ -0,0 +1,8 @@
1
+ import { B } from '@ctx-core/object';
2
+ export declare const patch_auth0_v2_client_b: B<patch_auth0_v2_client_T>;
3
+ export interface patch_auth0_v2_client_params_T {
4
+ client_id?: string;
5
+ body?: string;
6
+ json?: unknown;
7
+ }
8
+ export declare type patch_auth0_v2_client_T = (params: patch_auth0_v2_client_params_T) => Promise<Response>;
@@ -0,0 +1,7 @@
1
+ import type { Auth0UserProfile } from 'auth0-js';
2
+ import { B } from '@ctx-core/object';
3
+ export declare const patch_auth0_v2_user_b: B<patch_auth0_v2_user_T>;
4
+ export interface patch_auth0_v2_user_data_I extends Partial<Auth0UserProfile> {
5
+ password?: string;
6
+ }
7
+ export declare type patch_auth0_v2_user_T = (user_id: string, data: patch_auth0_v2_user_data_I) => Promise<Response>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ctx-core/auth0-management",
3
- "version": "7.0.4",
3
+ "version": "7.0.9",
4
4
  "description": "ctx-core auth0 management api",
5
5
  "keywords": [
6
6
  "ctx-core",
@@ -17,10 +17,10 @@
17
17
  "license": "Apache-2.0",
18
18
  "author": "Brian Takita",
19
19
  "type": "module",
20
+ "types": "./dist/index.d.ts",
20
21
  "exports": {
21
22
  ".": {
22
- "import": "./dist/index.js",
23
- "types": "./src/index.ts"
23
+ "import": "./dist/index.js"
24
24
  },
25
25
  "./package.json": "./package.json"
26
26
  },
@@ -30,15 +30,15 @@
30
30
  "getAll-client-grants-auth0": "./bin/getAll-client-grants-auth0.mjs"
31
31
  },
32
32
  "dependencies": {
33
- "@ctx-core/auth0": "^27.0.4",
34
- "@ctx-core/fetch": "^11.0.96",
35
- "@ctx-core/object": "^22.0.3",
36
- "@ctx-core/store": "^27.0.50",
33
+ "@ctx-core/auth0": "^27.0.9",
34
+ "@ctx-core/fetch": "^11.0.101",
35
+ "@ctx-core/object": "^22.0.8",
36
+ "@ctx-core/store": "^27.0.55",
37
37
  "auth0": "^2.37.0",
38
38
  "svelte": "^3.44.3"
39
39
  },
40
40
  "devDependencies": {
41
- "@ctx-core/uri": "^12.0.29",
41
+ "@ctx-core/uri": "^12.0.34",
42
42
  "@swc/cli": "^0.1.55",
43
43
  "@swc/core": "^1.2.120",
44
44
  "rimraf": "^3.0.2",
@@ -51,8 +51,11 @@
51
51
  "svelte": "./dist/index.js",
52
52
  "scripts": {
53
53
  "build": "npm run compile",
54
- "clean": "rimraf dist",
55
- "compile": "swc src --out-dir dist --copy-files --source-maps --config-file .swcrc",
54
+ "clean": "rimraf dist && npm run clean_tsbuildinfo",
55
+ "clean_tsbuildinfo": "rm -f tsconfig.tsbuildinfo && rm -f dist/**/*.d.ts",
56
+ "compile": "npm run compile_source && npm run compile_declaration",
57
+ "compile_source": "swc src --out-dir dist --copy-files --source-maps --config-file .swcrc",
58
+ "compile_declaration": "npm run clean_tsbuildinfo && tsc --declaration --emitDeclarationOnly --declarationDir dist",
56
59
  "exec": "$@"
57
60
  }
58
61
  }
package/tsconfig.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "compileOnSave": true,
3
3
  "compilerOptions": {
4
- "target": "ES2020",
4
+ "target": "ES2021",
5
5
  "composite": true,
6
6
  "declaration": true,
7
7
  "sourceMap": true,
@@ -21,9 +21,8 @@
21
21
  "../../node_modules/@types",
22
22
  "node_modules/@types"
23
23
  ],
24
- "rootDir": ".",
24
+ "rootDir": "src",
25
25
  "outDir": "dist",
26
- "mapRoot": "",
27
26
  "declarationDir": "dist",
28
27
  "lib": ["dom", "ESNext"],
29
28
  "importsNotUsedAsValues": "error",