@getpara/user-management-client 2.0.0-dev.0 → 2.0.0-dev.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/dist/cjs/client.js +964 -0
- package/dist/cjs/consts.js +36 -0
- package/dist/cjs/error.js +41 -0
- package/dist/cjs/index.js +12 -1185
- package/dist/cjs/package.json +3 -0
- package/dist/cjs/types/auth.js +112 -0
- package/dist/cjs/types/email.js +31 -0
- package/dist/cjs/types/index.js +29 -0
- package/dist/cjs/types/onRamp.js +63 -0
- package/dist/cjs/types/partner.js +15 -0
- package/dist/cjs/types/wallet.js +112 -0
- package/dist/cjs/utils.js +282 -0
- package/dist/esm/chunk-BBZEL7EG.js +58 -0
- package/dist/esm/client.js +887 -0
- package/dist/esm/consts.js +11 -0
- package/dist/esm/error.js +19 -0
- package/dist/esm/index.js +8 -1152
- package/dist/esm/package.json +4 -0
- package/dist/esm/types/auth.js +81 -0
- package/dist/esm/types/email.js +9 -0
- package/dist/esm/types/index.js +5 -0
- package/dist/esm/types/onRamp.js +38 -0
- package/dist/esm/types/partner.js +0 -0
- package/dist/esm/types/wallet.js +79 -0
- package/dist/esm/utils.js +215 -0
- package/dist/types/client.d.ts +122 -49
- package/dist/types/index.d.ts +1 -0
- package/dist/types/types/auth.d.ts +157 -5
- package/dist/types/types/email.d.ts +5 -0
- package/dist/types/types/onRamp.d.ts +5 -4
- package/dist/types/types/partner.d.ts +3 -1
- package/dist/types/types/wallet.d.ts +23 -7
- package/dist/types/utils.d.ts +26 -3
- package/package.json +22 -23
- package/dist/cjs/index.js.br +0 -0
- package/dist/cjs/index.js.gz +0 -0
- package/dist/esm/index.js.br +0 -0
- package/dist/esm/index.js.gz +0 -0
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var consts_exports = {};
|
|
19
|
+
__export(consts_exports, {
|
|
20
|
+
API_KEY_HEADER_NAME: () => API_KEY_HEADER_NAME,
|
|
21
|
+
PARTNER_ID_HEADER_NAME: () => PARTNER_ID_HEADER_NAME,
|
|
22
|
+
SESSION_COOKIE_HEADER_NAME: () => SESSION_COOKIE_HEADER_NAME,
|
|
23
|
+
VERSION_HEADER_NAME: () => VERSION_HEADER_NAME
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(consts_exports);
|
|
26
|
+
const SESSION_COOKIE_HEADER_NAME = "x-capsule-sid";
|
|
27
|
+
const VERSION_HEADER_NAME = "x-para-version";
|
|
28
|
+
const PARTNER_ID_HEADER_NAME = "x-partner-id";
|
|
29
|
+
const API_KEY_HEADER_NAME = "X-External-API-Key";
|
|
30
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
+
0 && (module.exports = {
|
|
32
|
+
API_KEY_HEADER_NAME,
|
|
33
|
+
PARTNER_ID_HEADER_NAME,
|
|
34
|
+
SESSION_COOKIE_HEADER_NAME,
|
|
35
|
+
VERSION_HEADER_NAME
|
|
36
|
+
});
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
var error_exports = {};
|
|
19
|
+
__export(error_exports, {
|
|
20
|
+
ParaApiError: () => ParaApiError
|
|
21
|
+
});
|
|
22
|
+
module.exports = __toCommonJS(error_exports);
|
|
23
|
+
function ParaApiError(message, code, status, responseURL) {
|
|
24
|
+
Error.call(this);
|
|
25
|
+
if (Error.captureStackTrace) {
|
|
26
|
+
Error.captureStackTrace(this, this.constructor);
|
|
27
|
+
} else {
|
|
28
|
+
this.stack = new Error().stack;
|
|
29
|
+
}
|
|
30
|
+
this.message = message;
|
|
31
|
+
this.name = "ParaApiError";
|
|
32
|
+
code && (this.code = code);
|
|
33
|
+
status && (this.status = status);
|
|
34
|
+
responseURL && (this.responseURL = responseURL);
|
|
35
|
+
}
|
|
36
|
+
const prototype = ParaApiError.prototype;
|
|
37
|
+
Object.defineProperty(prototype, "isParaApiError", { value: true });
|
|
38
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
39
|
+
0 && (module.exports = {
|
|
40
|
+
ParaApiError
|
|
41
|
+
});
|