@relyio/sdk 0.17.0 → 0.19.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.
- package/CHANGELOG.md +35 -0
- package/dist/automations/index.cjs +71 -0
- package/dist/automations/index.d.cts +1590 -0
- package/dist/automations/index.d.ts +1590 -0
- package/dist/automations/index.js +6 -0
- package/dist/{chunk-RSHMA4KT.cjs → chunk-2SPPU2WG.cjs} +68 -68
- package/dist/{chunk-VS2DEUTN.js → chunk-356SF5Y2.js} +463 -26
- package/dist/chunk-5F3YYPLZ.cjs +19237 -0
- package/dist/chunk-7I3SC7SV.cjs +40 -0
- package/dist/chunk-DBYMG6MQ.cjs +535 -0
- package/dist/chunk-DI6KFDBO.js +43 -0
- package/dist/chunk-HDHBYYEY.js +36 -0
- package/dist/chunk-L6DXCKVQ.cjs +50 -0
- package/dist/{chunk-TZL374LS.cjs → chunk-M7MWNV3Q.cjs} +21 -21
- package/dist/{chunk-H6IBQSMM.js → chunk-NJQK5STK.js} +3 -3
- package/dist/chunk-NN45CSPZ.cjs +872 -0
- package/dist/{chunk-6E22GYPB.cjs → chunk-P23G5NXD.cjs} +781 -337
- package/dist/chunk-PZCDJFMA.js +19195 -0
- package/dist/chunk-T7LGREB3.js +848 -0
- package/dist/{chunk-BBUB7C2Z.js → chunk-W2A4OTCI.js} +3 -3
- package/dist/chunk-W2GRVXDG.js +520 -0
- package/dist/{chunk-5UMY6CS4.js → chunk-ZAKEY6DY.js} +3 -3
- package/dist/{chunk-LSRPMNPT.cjs → chunk-ZO6QDYJG.cjs} +7 -7
- package/dist/client/index.cjs +8 -7
- package/dist/client/index.d.cts +4 -3
- package/dist/client/index.d.ts +4 -3
- package/dist/client/index.js +6 -5
- package/dist/{define-content-type-AuL9-oz6.d.cts → define-content-type-BZ6X8GvL.d.cts} +4547 -842
- package/dist/{define-content-type-BGoQxqLf.d.ts → define-content-type-C12jh8cY.d.ts} +4547 -842
- package/dist/{define-schema-DgCX9YB7.d.ts → define-schema-BPlZl4a2.d.cts} +258 -10
- package/dist/{define-schema-DkXwpp0I.d.cts → define-schema-CK7TtYot.d.ts} +258 -10
- package/dist/dev-handshake/index.cjs +9 -9
- package/dist/dev-handshake/index.js +2 -2
- package/dist/extensions/index.cjs +100 -0
- package/dist/extensions/index.d.cts +6 -0
- package/dist/extensions/index.d.ts +6 -0
- package/dist/extensions/index.js +96 -0
- package/dist/functions/index.cjs +71 -0
- package/dist/functions/index.d.cts +6 -0
- package/dist/functions/index.d.ts +6 -0
- package/dist/functions/index.js +62 -0
- package/dist/{index-BBp8_tn9.d.ts → index-BxNnlc5D.d.ts} +167 -494
- package/dist/{index-DaMZ4FQ_.d.ts → index-C-MymZTe.d.ts} +1 -1
- package/dist/{index-DxRmKPrR.d.cts → index-D5jyIeQ5.d.cts} +167 -494
- package/dist/{index-Bp4AiNT3.d.cts → index-DN0l8RHw.d.cts} +1 -1
- package/dist/index.cjs +208 -185
- package/dist/index.d.cts +147 -17
- package/dist/index.d.ts +147 -17
- package/dist/index.js +11 -16
- package/dist/markdown/index.cjs +382 -382
- package/dist/markdown/index.js +1 -1
- package/dist/preview/index.cjs +11 -10
- package/dist/preview/index.js +3 -2
- package/dist/register-BiMQKVp-.d.ts +693 -0
- package/dist/register-DeMsaurp.d.cts +693 -0
- package/dist/rich-text/index.cjs +12 -12
- package/dist/rich-text/index.d.cts +2 -2
- package/dist/rich-text/index.d.ts +2 -2
- package/dist/rich-text/index.js +2 -2
- package/dist/schema/index.cjs +63 -34
- package/dist/schema/index.d.cts +14 -5
- package/dist/schema/index.d.ts +14 -5
- package/dist/schema/index.js +3 -2
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/utils/index.cjs +20 -20
- package/dist/utils/index.js +2 -2
- package/package.json +23 -5
- package/dist/chunk-6PTRZP5U.cjs +0 -433
- package/dist/chunk-DIZY6CKM.js +0 -950
- package/dist/chunk-GHYB6IZK.cjs +0 -983
- package/dist/chunk-MWMSFIWN.cjs +0 -17
- package/dist/chunk-OVMIHAYK.js +0 -411
- package/dist/chunk-XQ4QHWZE.js +0 -13
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
/* RelyIO SDK - Built with ❤️ by the RelyIO Team */
|
|
4
|
+
var __create = Object.create;
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
7
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
12
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
13
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
14
|
+
}) : x)(function(x) {
|
|
15
|
+
if (typeof require !== "undefined") return require.apply(this, arguments);
|
|
16
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
17
|
+
});
|
|
18
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
19
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
20
|
+
};
|
|
21
|
+
var __export = (target, all) => {
|
|
22
|
+
for (var name in all)
|
|
23
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
24
|
+
};
|
|
25
|
+
var __copyProps = (to, from, except, desc) => {
|
|
26
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
27
|
+
for (let key of __getOwnPropNames(from))
|
|
28
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
29
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
30
|
+
}
|
|
31
|
+
return to;
|
|
32
|
+
};
|
|
33
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
34
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
35
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
36
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
37
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
38
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
39
|
+
mod
|
|
40
|
+
));
|
|
41
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
42
|
+
|
|
43
|
+
exports.__commonJS = __commonJS;
|
|
44
|
+
exports.__export = __export;
|
|
45
|
+
exports.__name = __name;
|
|
46
|
+
exports.__publicField = __publicField;
|
|
47
|
+
exports.__require = __require;
|
|
48
|
+
exports.__toESM = __toESM;
|
|
49
|
+
//# sourceMappingURL=chunk-L6DXCKVQ.cjs.map
|
|
50
|
+
//# sourceMappingURL=chunk-L6DXCKVQ.cjs.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkL6DXCKVQ_cjs = require('./chunk-L6DXCKVQ.cjs');
|
|
4
4
|
|
|
5
5
|
/* RelyIO SDK - Built with ❤️ by the RelyIO Team */
|
|
6
6
|
|
|
@@ -8,11 +8,11 @@ var chunkMWMSFIWN_cjs = require('./chunk-MWMSFIWN.cjs');
|
|
|
8
8
|
function isBrowser() {
|
|
9
9
|
return typeof window !== "undefined" && typeof window.document !== "undefined";
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
chunkL6DXCKVQ_cjs.__name(isBrowser, "isBrowser");
|
|
12
12
|
function isNode() {
|
|
13
13
|
return typeof process !== "undefined" && process.versions?.node != null;
|
|
14
14
|
}
|
|
15
|
-
|
|
15
|
+
chunkL6DXCKVQ_cjs.__name(isNode, "isNode");
|
|
16
16
|
function deepClone(obj) {
|
|
17
17
|
if (obj === null || typeof obj !== "object") return obj;
|
|
18
18
|
if (obj instanceof Date) return new Date(obj.getTime());
|
|
@@ -26,7 +26,7 @@ function deepClone(obj) {
|
|
|
26
26
|
}
|
|
27
27
|
return obj;
|
|
28
28
|
}
|
|
29
|
-
|
|
29
|
+
chunkL6DXCKVQ_cjs.__name(deepClone, "deepClone");
|
|
30
30
|
function debounce(func, wait) {
|
|
31
31
|
let timeout;
|
|
32
32
|
return (...args) => {
|
|
@@ -34,7 +34,7 @@ function debounce(func, wait) {
|
|
|
34
34
|
timeout = setTimeout(() => func(...args), wait);
|
|
35
35
|
};
|
|
36
36
|
}
|
|
37
|
-
|
|
37
|
+
chunkL6DXCKVQ_cjs.__name(debounce, "debounce");
|
|
38
38
|
function throttle(func, limit) {
|
|
39
39
|
let inThrottle;
|
|
40
40
|
return (...args) => {
|
|
@@ -45,7 +45,7 @@ function throttle(func, limit) {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
|
|
48
|
+
chunkL6DXCKVQ_cjs.__name(throttle, "throttle");
|
|
49
49
|
function createDeferred() {
|
|
50
50
|
let resolve;
|
|
51
51
|
let reject;
|
|
@@ -55,11 +55,11 @@ function createDeferred() {
|
|
|
55
55
|
});
|
|
56
56
|
return { promise, resolve, reject };
|
|
57
57
|
}
|
|
58
|
-
|
|
58
|
+
chunkL6DXCKVQ_cjs.__name(createDeferred, "createDeferred");
|
|
59
59
|
function sleep(ms) {
|
|
60
60
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
61
61
|
}
|
|
62
|
-
|
|
62
|
+
chunkL6DXCKVQ_cjs.__name(sleep, "sleep");
|
|
63
63
|
async function retry(fn, options = {}) {
|
|
64
64
|
const {
|
|
65
65
|
maxAttempts = 3,
|
|
@@ -85,7 +85,7 @@ async function retry(fn, options = {}) {
|
|
|
85
85
|
}
|
|
86
86
|
throw lastError;
|
|
87
87
|
}
|
|
88
|
-
|
|
88
|
+
chunkL6DXCKVQ_cjs.__name(retry, "retry");
|
|
89
89
|
function toSafeString(value) {
|
|
90
90
|
if (value === null) return "null";
|
|
91
91
|
if (value === void 0) return "undefined";
|
|
@@ -97,11 +97,11 @@ function toSafeString(value) {
|
|
|
97
97
|
return "[object Object]";
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
chunkL6DXCKVQ_cjs.__name(toSafeString, "toSafeString");
|
|
101
101
|
function generateId() {
|
|
102
102
|
return Math.random().toString(36).substring(2) + Date.now().toString(36);
|
|
103
103
|
}
|
|
104
|
-
|
|
104
|
+
chunkL6DXCKVQ_cjs.__name(generateId, "generateId");
|
|
105
105
|
function isPlainObject(value) {
|
|
106
106
|
if (typeof value !== "object" || value === null) return false;
|
|
107
107
|
if (Object.prototype.toString.call(value) !== "[object Object]") return false;
|
|
@@ -112,7 +112,7 @@ function isPlainObject(value) {
|
|
|
112
112
|
}
|
|
113
113
|
return Object.getPrototypeOf(value) === proto;
|
|
114
114
|
}
|
|
115
|
-
|
|
115
|
+
chunkL6DXCKVQ_cjs.__name(isPlainObject, "isPlainObject");
|
|
116
116
|
function mergeDeep(target, ...sources) {
|
|
117
117
|
if (!sources.length) return target;
|
|
118
118
|
const source = sources.shift();
|
|
@@ -132,7 +132,7 @@ function mergeDeep(target, ...sources) {
|
|
|
132
132
|
}
|
|
133
133
|
return mergeDeep(target, ...sources);
|
|
134
134
|
}
|
|
135
|
-
|
|
135
|
+
chunkL6DXCKVQ_cjs.__name(mergeDeep, "mergeDeep");
|
|
136
136
|
function pick(obj, keys) {
|
|
137
137
|
const result = {};
|
|
138
138
|
for (const key of keys) {
|
|
@@ -142,7 +142,7 @@ function pick(obj, keys) {
|
|
|
142
142
|
}
|
|
143
143
|
return result;
|
|
144
144
|
}
|
|
145
|
-
|
|
145
|
+
chunkL6DXCKVQ_cjs.__name(pick, "pick");
|
|
146
146
|
function omit(obj, keys) {
|
|
147
147
|
const result = { ...obj };
|
|
148
148
|
for (const key of keys) {
|
|
@@ -150,20 +150,20 @@ function omit(obj, keys) {
|
|
|
150
150
|
}
|
|
151
151
|
return result;
|
|
152
152
|
}
|
|
153
|
-
|
|
153
|
+
chunkL6DXCKVQ_cjs.__name(omit, "omit");
|
|
154
154
|
function camelToSnake(str) {
|
|
155
155
|
return str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`);
|
|
156
156
|
}
|
|
157
|
-
|
|
157
|
+
chunkL6DXCKVQ_cjs.__name(camelToSnake, "camelToSnake");
|
|
158
158
|
function snakeToCamel(str) {
|
|
159
159
|
return str.replace(/_([a-z])/g, (_, letter) => letter.toUpperCase());
|
|
160
160
|
}
|
|
161
|
-
|
|
161
|
+
chunkL6DXCKVQ_cjs.__name(snakeToCamel, "snakeToCamel");
|
|
162
162
|
function isValidEmail(email) {
|
|
163
163
|
const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
|
|
164
164
|
return emailRegex.test(email);
|
|
165
165
|
}
|
|
166
|
-
|
|
166
|
+
chunkL6DXCKVQ_cjs.__name(isValidEmail, "isValidEmail");
|
|
167
167
|
function isValidUrl(url) {
|
|
168
168
|
try {
|
|
169
169
|
new URL(url);
|
|
@@ -172,7 +172,7 @@ function isValidUrl(url) {
|
|
|
172
172
|
return false;
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
|
-
|
|
175
|
+
chunkL6DXCKVQ_cjs.__name(isValidUrl, "isValidUrl");
|
|
176
176
|
|
|
177
177
|
exports.camelToSnake = camelToSnake;
|
|
178
178
|
exports.createDeferred = createDeferred;
|
|
@@ -192,5 +192,5 @@ exports.sleep = sleep;
|
|
|
192
192
|
exports.snakeToCamel = snakeToCamel;
|
|
193
193
|
exports.throttle = throttle;
|
|
194
194
|
exports.toSafeString = toSafeString;
|
|
195
|
-
//# sourceMappingURL=chunk-
|
|
196
|
-
//# sourceMappingURL=chunk-
|
|
195
|
+
//# sourceMappingURL=chunk-M7MWNV3Q.cjs.map
|
|
196
|
+
//# sourceMappingURL=chunk-M7MWNV3Q.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __name } from './chunk-
|
|
1
|
+
import { __name } from './chunk-DI6KFDBO.js';
|
|
2
2
|
|
|
3
3
|
/* RelyIO SDK - Built with ❤️ by the RelyIO Team */
|
|
4
4
|
|
|
@@ -173,5 +173,5 @@ function isValidUrl(url) {
|
|
|
173
173
|
__name(isValidUrl, "isValidUrl");
|
|
174
174
|
|
|
175
175
|
export { camelToSnake, createDeferred, debounce, deepClone, generateId, isBrowser, isNode, isPlainObject, isValidEmail, isValidUrl, mergeDeep, omit, pick, retry, sleep, snakeToCamel, throttle, toSafeString };
|
|
176
|
-
//# sourceMappingURL=chunk-
|
|
177
|
-
//# sourceMappingURL=chunk-
|
|
176
|
+
//# sourceMappingURL=chunk-NJQK5STK.js.map
|
|
177
|
+
//# sourceMappingURL=chunk-NJQK5STK.js.map
|