@plusauth/plusauth-rest-js
Advanced tools
Comparing version 0.7.0-beta.0 to 0.7.0
@@ -1,2 +0,1 @@ | ||
/** | ||
@@ -1158,2 +1157,3 @@ * Service for interacting with API's defined in PlusAuth | ||
OTP = "otp", | ||
FINGER_VEIN = "fv", | ||
SMS = "sms" | ||
@@ -1175,2 +1175,12 @@ } | ||
/** Deeply omit members of an interface or type, making all members optional. */ | ||
declare type PartialDeepOmit<T, K> = T extends Primitive ? T : Partial<{ | ||
[P in Exclude<keyof T, K>]: T[P] extends infer TP ? TP extends Primitive ? TP : TP extends any[] ? PartialDeepOmitArray<TP, K> : PartialDeepOmit<TP, K> : never; | ||
}>; | ||
/** Deeply omit members of an array of interface or array of type, making all members optional. */ | ||
declare type PartialDeepOmitArray<T extends any[], K> = Partial<{ | ||
[P in Partial<keyof T>]: Partial<PartialDeepOmit<T[P], K>>; | ||
}>; | ||
/** | ||
@@ -1244,2 +1254,5 @@ * | ||
/** Union of primitives to skip with deep omit utilities. */ | ||
declare type Primitive = string | Function | number | boolean | Symbol | undefined | null; | ||
/** | ||
@@ -1750,5 +1763,5 @@ * Service for interacting PlusAuth roleGroups. | ||
get(userId: string): Promise<IUser>; | ||
create(userObject: Partial<Omit<IUser, 'id'>>): Promise<IUser>; | ||
create(userObject: PartialDeepOmit<IUser, 'id' | 'user_id'>): Promise<IUser>; | ||
remove(userId: string): Promise<void>; | ||
update(userId: string, user: Partial<Omit<IUser, 'id'>>): Promise<IUser>; | ||
update(userId: string, user: PartialDeepOmit<IUser, 'id' | 'user_id'>): Promise<IUser>; | ||
getSessions(userId: string): Promise<IUserSession[]>; | ||
@@ -1755,0 +1768,0 @@ endSession(userId: string, sessionId: string): Promise<void>; |
{ | ||
"name": "@plusauth/plusauth-rest-js", | ||
"version": "0.7.0-beta.0", | ||
"version": "0.7.0", | ||
"description": "PlusAuth JavaScript Rest Client", | ||
@@ -29,20 +29,20 @@ "main": "dist/plusauth-rest-js.cjs.js", | ||
"devDependencies": { | ||
"@babel/core": "^7.14.3", | ||
"@babel/plugin-proposal-class-properties": "^7.13.0", | ||
"@babel/preset-env": "^7.14.2", | ||
"@commitlint/cli": "^12.1.4", | ||
"@commitlint/config-conventional": "^12.1.4", | ||
"@microsoft/api-extractor": "^7.15.2", | ||
"@release-it/conventional-changelog": "^2.0.1", | ||
"@babel/core": "^7.15.0", | ||
"@babel/plugin-proposal-class-properties": "^7.14.5", | ||
"@babel/preset-env": "^7.15.0", | ||
"@commitlint/cli": "^13.1.0", | ||
"@commitlint/config-conventional": "^13.1.0", | ||
"@microsoft/api-extractor": "^7.18.4", | ||
"@release-it/conventional-changelog": "^3.0.1", | ||
"@rollup/plugin-babel": "^5.3.0", | ||
"@rollup/plugin-commonjs": "^19.0.0", | ||
"@rollup/plugin-node-resolve": "^13.0.0", | ||
"@types/chai": "^4.2.18", | ||
"@types/mocha": "^8.2.2", | ||
"@types/node-fetch": "^2.5.10", | ||
"@types/sinon": "^10.0.0", | ||
"@typescript-eslint/eslint-plugin": "^4.24.0", | ||
"@typescript-eslint/parser": "^4.24.0", | ||
"@rollup/plugin-commonjs": "^20.0.0", | ||
"@rollup/plugin-node-resolve": "^13.0.4", | ||
"@types/chai": "^4.2.21", | ||
"@types/mocha": "^8.2.3", | ||
"@types/node-fetch": "^2.5.12", | ||
"@types/sinon": "^10.0.2", | ||
"@typescript-eslint/eslint-plugin": "^4.29.0", | ||
"@typescript-eslint/parser": "^4.29.0", | ||
"chai": "^4.3.4", | ||
"core-js": "^3.11.3", | ||
"core-js": "^3.16.1", | ||
"cross-env": "^7.0.3", | ||
@@ -52,18 +52,18 @@ "eslint": "^7.27.0", | ||
"fetch-mock": "^9.11.0", | ||
"husky": "^6.0.0", | ||
"lint-staged": "^10.5.4", | ||
"husky": "^7.0.1", | ||
"lint-staged": "^11.1.2", | ||
"mocha": "^8.4.0", | ||
"moment": "^2.29.1", | ||
"nock": "^13.0.11", | ||
"release-it": "^14.6.2", | ||
"nock": "^13.1.1", | ||
"release-it": "^14.11.0", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.49.0", | ||
"rollup": "^2.56.1", | ||
"rollup-plugin-terser": "^7.0.2", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"sinon": "^10.0.0", | ||
"standard-version": "^9.3.0", | ||
"ts-node": "^10.0.0", | ||
"typedoc": "^0.20.36", | ||
"typedoc-plugin-merge-modules": "^2.0.0", | ||
"typescript": "4.2.4" | ||
"sinon": "^10.0.1", | ||
"standard-version": "^9.3.1", | ||
"ts-node": "^10.2.0", | ||
"typedoc": "^0.21.5", | ||
"typedoc-plugin-merge-modules": "^3.0.1", | ||
"typescript": "4.3.5" | ||
}, | ||
@@ -70,0 +70,0 @@ "commitlint": { |
@@ -9,2 +9,3 @@ # @plusauth/plusauth-rest-js | ||
3. [Docs](#docs) | ||
4. [Examples](#examples) | ||
@@ -16,3 +17,3 @@ | ||
<!-- Latest release --> | ||
<script src="https://unpkg.com/@plusauth/plusauth-rest-js@0.2.1/dist/plusauth-rest-js.min.js"></script> | ||
<script src="https://unpkg.com/@plusauth/plusauth-rest-js@0.7.0-beta.0/dist/plusauth-rest-js.min.js"></script> | ||
``` | ||
@@ -86,1 +87,3 @@ | ||
# Examples | ||
For more examples have a look at [examples](/examples) folder in this directory. |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10968
87
401995
9