ec.fdk 0.2.4 → 0.2.6
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/README.hbs +1 -1
- package/README.md +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +23 -23
- package/dist/lib/api.d.mts +10 -2
- package/dist/lib/api.d.mts.map +1 -1
- package/package.json +2 -2
- package/jsdoc.config.json +0 -11
package/README.hbs
CHANGED
|
@@ -11,7 +11,7 @@ npm i ec.fdk
|
|
|
11
11
|
|
|
12
12
|
# API
|
|
13
13
|
|
|
14
|
-
Start by calling `sdk` with your environment (`stage` | `
|
|
14
|
+
Start by calling `sdk` with your environment (`stage` | `live`), then method chain your way to success:
|
|
15
15
|
|
|
16
16
|
```js
|
|
17
17
|
import { sdk } from "ec.fdk";
|
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@ npm i ec.fdk
|
|
|
11
11
|
|
|
12
12
|
# API
|
|
13
13
|
|
|
14
|
-
Start by calling `sdk` with your environment (`stage` | `
|
|
14
|
+
Start by calling `sdk` with your environment (`stage` | `live`), then method chain your way to success:
|
|
15
15
|
|
|
16
16
|
```js
|
|
17
17
|
import { sdk } from "ec.fdk";
|
|
@@ -54,7 +54,7 @@ Now what follows is the autogenerated doc from source:
|
|
|
54
54
|
* [.getEntry(entryID)](#module_api.Sdk+getEntry) ⇒ <code>object</code>
|
|
55
55
|
* [.assets([options])](#module_api.Sdk+assets) ⇒ <code>Object</code>
|
|
56
56
|
* [.createAsset([options])](#module_api.Sdk+createAsset) ⇒ <code>Object</code>
|
|
57
|
-
* [.getAsset(assetID)](#module_api.Sdk+getAsset) ⇒ <code>
|
|
57
|
+
* [.getAsset(assetID)](#module_api.Sdk+getAsset) ⇒ [<code>Promise.<AssetResource></code>](#AssetResource)
|
|
58
58
|
* [.createEntry(value)](#module_api.Sdk+createEntry) ⇒ <code>object</code>
|
|
59
59
|
* [.editEntry(entryID, value)](#module_api.Sdk+editEntry) ⇒ <code>object</code>
|
|
60
60
|
* [.deleteEntry(entryID)](#module_api.Sdk+deleteEntry) ⇒ <code>object</code>
|
|
@@ -157,7 +157,7 @@ const upload = await sdk("stage")
|
|
|
157
157
|
```
|
|
158
158
|
<a name="module_api.Sdk+getAsset"></a>
|
|
159
159
|
|
|
160
|
-
#### sdk.getAsset(assetID) ⇒ <code>
|
|
160
|
+
#### sdk.getAsset(assetID) ⇒ [<code>Promise.<AssetResource></code>](#AssetResource)
|
|
161
161
|
<p>Loads a single asset. Expects <code>dmShortID</code> / <code>assetGroup</code> to be set.
|
|
162
162
|
If the asset group is not public, you also need to provide a <code>token</code>.</p>
|
|
163
163
|
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var M=Object.defineProperty,
|
|
1
|
+
"use strict";var M=Object.defineProperty,v=Object.defineProperties;var F=Object.getOwnPropertyDescriptors;var b=Object.getOwnPropertySymbols;var G=Object.prototype.hasOwnProperty,H=Object.prototype.propertyIsEnumerable;var T=(n,t,e)=>t in n?M(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,c=(n,t)=>{for(var e in t||(t={}))G.call(t,e)&&T(n,e,t[e]);if(b)for(var e of b(t))H.call(t,e)&&T(n,e,t[e]);return n},d=(n,t)=>v(n,F(t));var r=(n,t,e)=>new Promise((s,o)=>{var a=u=>{try{g(e.next(u))}catch(f){o(f)}},i=u=>{try{g(e.throw(u))}catch(f){o(f)}},g=u=>u.done?s(u.value):Promise.resolve(u.value).then(a,i);g((e=e.apply(n,t)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function l(s){return r(this,arguments,function*(n,t={},e={}){const{token:o,rawRes:a}=t;o&&(e.headers=d(c({},e.headers||{}),{Authorization:`Bearer ${o}`}));const i=yield fetch(n,e);if(!i.ok)throw new Error(i.statusText);return a?i:yield i.json()})}const P={live:"https://datamanager.entrecode.de/",stage:"https://datamanager.cachena.entrecode.de/"};function y(n,t="stage"){const e=P[t];if(!e)throw new Error(`env "${t}" not found. Try one of ${Object.keys(P).join(", ")}`);return e+n}function p(n,t=!0){return Object.entries(n).sort((e,s)=>e[0].localeCompare(s[0])).map(([e,s])=>`${e}=${s}`).join("&")}function h(n){Object.entries(n).forEach(([t,e])=>{if(e===void 0)throw new Error(`expected ${t} to be set!`)})}const m={stage:"https://accounts.cachena.entrecode.de/",live:"https://accounts.entrecode.de/"};function O(n){return r(this,null,function*(){let{env:t,dmShortID:e,email:s,password:o}=n;h({env:t,dmShortID:e,email:s,password:o});const a=y(`api/${e}/_auth/login?clientID=rest`,t);return yield l(a,{},{method:"POST",body:JSON.stringify({email:s,password:o}),headers:{"Content-Type":"application/json"}})})}function j(n){return r(this,null,function*(){let{env:t,email:e,password:s}=n;h({env:t,email:e,password:s});const o=`${m[t]}auth/login?clientID=rest`;return yield l(o,{},{method:"POST",body:JSON.stringify({email:e,password:s}),headers:{"Content-Type":"application/json"}})})}function _(n){return r(this,null,function*(){let{dmShortID:t,env:e,token:s}=n;h({dmShortID:t,env:e,token:s});const o=y(`api/${t}/_auth/logout?clientID=rest&token=${s}`,e);return yield l(o,{dmShortID:t,rawRes:!0},{method:"POST"})})}function L(n){return r(this,null,function*(){let{env:t,token:e}=n;h({env:t,token:e});const s=`${m[t]}auth/logout?clientID=rest`;return yield l(s,{rawRes:!0,token:e},{method:"POST"})})}function S({dmShortID:n}){return h({dmShortID:n}),n}function B({env:n}){return h({env:n}),n}function K(n){return r(this,null,function*(){let{env:t,dmShortID:e,model:s,options:o={}}=n;h({env:t,dmShortID:e,model:s}),o=c({size:50,page:1,_list:!0},o);const a=p(o),i=y(`api/${e}/${s}?${a}`,t),{count:g,total:u,_embedded:f}=yield l(i,n),E=f?f[`${e}:${s}`]:[];return{count:g,total:u,items:E}})}function q({env:n,dmShortID:t,model:e,entryID:s,token:o}){h({env:n,dmShortID:t,model:e,entryID:s});const a=p({_id:s}),i=y(`api/${t}/${e}?${a}`,n);return l(i,{dmShortID:t,token:o})}function C(a){return r(this,arguments,function*({env:n,dmShortID:t,model:e,value:s,token:o}){h({env:n,dmShortID:t,model:e,value:s}),console.log("create entry",t,e,s);const i=y(`api/${t}/${e}`,n);return console.log("url",i),yield l(i,{env:n,dmShortID:t,token:o},{method:"POST",body:JSON.stringify(s),headers:{"Content-Type":"application/json"}})})}function R(i){return r(this,arguments,function*({env:n,dmShortID:t,model:e,entryID:s,value:o,token:a}){h({env:n,dmShortID:t,model:e,entryID:s,value:o});const g=y(`api/${t}/${e}?_id=${s}`,n);return yield l(g,{token:a},{method:"PUT",body:JSON.stringify(o),headers:{"Content-Type":"application/json"}})})}function x(a){return r(this,arguments,function*({env:n,dmShortID:t,model:e,entryID:s,token:o}){h({env:n,dmShortID:t,model:e,entryID:s});const i=y(`api/${t}/${e}?_id=${s}`,n);return yield l(i,{token:o,rawRes:!0},{method:"DELETE",headers:{"Content-Type":"application/json"}})})}function z(a){return r(this,arguments,function*({env:n,dmShortID:t,assetGroup:e,assetID:s,token:o}){h({env:n,dmShortID:t,assetGroup:e,assetID:s});const i=p({assetID:s}),g=y(`a/${t}/${e}?${i}`,n);return(yield l(g,{dmShortID:t,token:o}))._embedded["ec:dm-asset"]})}function J(n){return r(this,null,function*(){let{env:t,dmShortID:e,assetGroup:s,token:o,options:a={}}=n;h({env:t,dmShortID:e,assetGroup:s}),a=c({size:50,page:1,_list:!0},a);const i=p(a),g=y(`a/${e}/${s}?${i}`,t),{count:u,total:f,_embedded:E}=yield l(g,{dmShortID:e,token:o}),U=E?E["ec:dm-asset"]:[];return{count:u,total:f,items:U}})}function N(i){return r(this,arguments,function*({env:n,dmShortID:t,assetGroup:e,token:s,file:o,name:a}){h({env:n,dmShortID:t,assetGroup:e,file:o});const g=y(`a/${t}/${e}`,n),u=new FormData;return u.append("file",o,a),(yield l(g,{token:s},{method:"POST",body:u}))._embedded["ec:dm-asset"]})}const $=Object.freeze(Object.defineProperty({__proto__:null,assetList:J,createAsset:N,createEntry:C,deleteEntry:x,editEntry:R,entryList:K,getAsset:z,getEcAuthKey:B,getEntry:q,getPublicAuthKey:S,loginEc:j,loginPublic:O,logoutEc:L,logoutPublic:_},Symbol.toStringTag,{value:"Module"})),{entryList:Q,getEntry:V,getAsset:W,assetList:X,createAsset:Y,createEntry:Z,editEntry:D,deleteEntry:I,loginPublic:tt,loginEc:et,logoutEc:nt,logoutPublic:st,getEcAuthKey:w,getPublicAuthKey:A}=$;function ot(n){const{action:t}=n;if(h({action:t}),!$[t])throw new Error(`"${t}" does not exist! try one of ${Object.keys($).join(", ")}`);return $[t](n)}class k{constructor(t){this.config=t}set(t){return new k(c(c({},this.config),t))}entries(){return r(this,arguments,function*(t={}){const e=yield this.getBestToken();return Q(d(c({},this.config),{options:t,token:e}))})}entryList(t){return r(this,null,function*(){return this.entries(t)})}getEntry(t){return r(this,null,function*(){const e=yield this.getBestToken();return V(d(c({},this.config),{entryID:t,token:e}))})}assets(t){return r(this,null,function*(){const e=yield this.getBestToken();return X(d(c({},this.config),{options:t,token:e}))})}assetList(t){return r(this,null,function*(){return this.assets(t)})}createAsset(){return r(this,arguments,function*({file:t,name:e}={}){const s=yield this.getBestToken();return Y(d(c({},this.config),{file:t,name:e,token:s}))})}getAsset(t){return r(this,null,function*(){const e=yield this.getBestToken();return W(d(c({},this.config),{assetID:t,token:e}))})}createEntry(t){return r(this,null,function*(){const e=yield this.getBestToken();return Z(d(c({},this.config),{token:e,value:t}))})}editEntry(t,e){return r(this,null,function*(){const s=yield this.getBestToken();return D(d(c({},this.config),{entryID:t,token:s,value:e}))})}deleteEntry(t){return r(this,null,function*(){const e=yield this.getBestToken();return I(d(c({},this.config),{token:e,entryID:t}))})}authAdapter(t){return this.set({authAdapter:t})}setAuth(t){return e=>{if(!this.config.authAdapter)throw new Error("cannot setAuth: no authAdapter defined!");const{set:s}=this.config.authAdapter;return s(t,e.token),e}}unsetAuth(t){return e=>{if(console.log("unset auth",e),!this.config.authAdapter)throw new Error("cannot unsetAuth: no authAdapter defined!");const{remove:s}=this.config.authAdapter;return s(t),e}}getAuth(t){if(!this.config.authAdapter)throw new Error("cannot getAuth: no authAdapter defined!");const{get:e}=this.config.authAdapter;return e(t)}loginEc(t){return et(c(c({},this.config),t)).then(this.setAuth(w(this.config)))}loginPublic(t){return tt(c(c({},this.config),t)).then(this.setAuth(A(this.config)))}logoutPublic(){const t=this.getPublicToken();return console.log("token",t),st(d(c({},this.config),{token:t})).then(this.unsetAuth(A(this.config)))}logoutEc(){const t=this.getEcToken();return console.log("token",t),nt(d(c({},this.config),{token:t})).then(this.unsetAuth(w(this.config)))}getPublicToken(){return this.config.token||this.getAuth(A(this.config))}getEcToken(){return this.config.token||this.getAuth(w(this.config))}hasPublicToken(){return!!this.getPublicToken()}hasEcToken(){return!!this.getEcToken()}hasAnyToken(){return!!this.getEcToken()||!!this.getPublicToken()}getBestToken(){try{return this.getEcToken()||this.getPublicToken()}catch(t){return}}model(t){return this.set({model:t})}token(t){return this.set({token:t})}dmShortID(t){return this.set({dmShortID:t})}dm(t){return this.dmShortID(t)}assetGroup(t){return this.set({assetGroup:t})}assetgroup(t){return this.assetGroup(t)}}const rt=n=>new k({env:n});exports.Sdk=k;exports.act=ot;exports.apiURL=y;exports.assetList=J;exports.createAsset=N;exports.createEntry=C;exports.deleteEntry=x;exports.editEntry=R;exports.entryList=K;exports.expect=h;exports.fetcher=l;exports.getAsset=z;exports.getEcAuthKey=B;exports.getEntry=q;exports.getPublicAuthKey=S;exports.loginEc=j;exports.loginPublic=O;exports.logoutEc=L;exports.logoutPublic=_;exports.query=p;exports.sdk=rt;
|
package/dist/index.mjs
CHANGED
|
@@ -39,7 +39,7 @@ function d(s) {
|
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
41
|
const P = {
|
|
42
|
-
|
|
42
|
+
live: "https://datamanager.entrecode.de/",
|
|
43
43
|
stage: "https://datamanager.cachena.entrecode.de/"
|
|
44
44
|
};
|
|
45
45
|
function y(n, t = "stage") {
|
|
@@ -61,7 +61,7 @@ function g(n) {
|
|
|
61
61
|
}
|
|
62
62
|
const m = {
|
|
63
63
|
stage: "https://accounts.cachena.entrecode.de/",
|
|
64
|
-
|
|
64
|
+
live: "https://accounts.entrecode.de/"
|
|
65
65
|
};
|
|
66
66
|
function S(n) {
|
|
67
67
|
return r(this, null, function* () {
|
|
@@ -216,7 +216,7 @@ function M(a) {
|
|
|
216
216
|
return (yield d(h, { dmShortID: t, token: o }))._embedded["ec:dm-asset"];
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
|
-
function
|
|
219
|
+
function v(n) {
|
|
220
220
|
return r(this, null, function* () {
|
|
221
221
|
let { env: t, dmShortID: e, assetGroup: s, token: o, options: a = {} } = n;
|
|
222
222
|
g({ env: t, dmShortID: e, assetGroup: s }), a = c({ size: 50, page: 1, _list: !0 }, a);
|
|
@@ -224,7 +224,7 @@ function H(n) {
|
|
|
224
224
|
return { count: u, total: f, items: O };
|
|
225
225
|
});
|
|
226
226
|
}
|
|
227
|
-
function
|
|
227
|
+
function H(i) {
|
|
228
228
|
return r(this, arguments, function* ({
|
|
229
229
|
env: n,
|
|
230
230
|
dmShortID: t,
|
|
@@ -247,8 +247,8 @@ function Q(i) {
|
|
|
247
247
|
}
|
|
248
248
|
const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
249
249
|
__proto__: null,
|
|
250
|
-
assetList:
|
|
251
|
-
createAsset:
|
|
250
|
+
assetList: v,
|
|
251
|
+
createAsset: H,
|
|
252
252
|
createEntry: U,
|
|
253
253
|
deleteEntry: G,
|
|
254
254
|
editEntry: F,
|
|
@@ -262,13 +262,13 @@ const E = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
262
262
|
logoutEc: x,
|
|
263
263
|
logoutPublic: q
|
|
264
264
|
}, Symbol.toStringTag, { value: "Module" })), {
|
|
265
|
-
entryList:
|
|
266
|
-
getEntry:
|
|
267
|
-
getAsset:
|
|
268
|
-
assetList:
|
|
269
|
-
createAsset:
|
|
270
|
-
createEntry:
|
|
271
|
-
editEntry:
|
|
265
|
+
entryList: Q,
|
|
266
|
+
getEntry: V,
|
|
267
|
+
getAsset: W,
|
|
268
|
+
assetList: X,
|
|
269
|
+
createAsset: Y,
|
|
270
|
+
createEntry: Z,
|
|
271
|
+
editEntry: D,
|
|
272
272
|
deleteEntry: I,
|
|
273
273
|
loginPublic: tt,
|
|
274
274
|
loginEc: et,
|
|
@@ -310,7 +310,7 @@ class A {
|
|
|
310
310
|
entries() {
|
|
311
311
|
return r(this, arguments, function* (t = {}) {
|
|
312
312
|
const e = yield this.getBestToken();
|
|
313
|
-
return
|
|
313
|
+
return Q(l(c({}, this.config), { options: t, token: e }));
|
|
314
314
|
});
|
|
315
315
|
}
|
|
316
316
|
entryList(t) {
|
|
@@ -330,7 +330,7 @@ class A {
|
|
|
330
330
|
getEntry(t) {
|
|
331
331
|
return r(this, null, function* () {
|
|
332
332
|
const e = yield this.getBestToken();
|
|
333
|
-
return
|
|
333
|
+
return V(l(c({}, this.config), { entryID: t, token: e }));
|
|
334
334
|
});
|
|
335
335
|
}
|
|
336
336
|
/**
|
|
@@ -349,7 +349,7 @@ class A {
|
|
|
349
349
|
assets(t) {
|
|
350
350
|
return r(this, null, function* () {
|
|
351
351
|
const e = yield this.getBestToken();
|
|
352
|
-
return
|
|
352
|
+
return X(l(c({}, this.config), { options: t, token: e }));
|
|
353
353
|
});
|
|
354
354
|
}
|
|
355
355
|
assetList(t) {
|
|
@@ -381,7 +381,7 @@ class A {
|
|
|
381
381
|
createAsset() {
|
|
382
382
|
return r(this, arguments, function* ({ file: t, name: e } = {}) {
|
|
383
383
|
const s = yield this.getBestToken();
|
|
384
|
-
return
|
|
384
|
+
return Y(l(c({}, this.config), { file: t, name: e, token: s }));
|
|
385
385
|
});
|
|
386
386
|
}
|
|
387
387
|
/**
|
|
@@ -389,14 +389,14 @@ class A {
|
|
|
389
389
|
* If the asset group is not public, you also need to provide a `token`.
|
|
390
390
|
*
|
|
391
391
|
* @param {string} assetID
|
|
392
|
-
* @returns {
|
|
392
|
+
* @returns {Promise<AssetResource>}
|
|
393
393
|
* @example
|
|
394
394
|
* const asset = await sdk("stage").dm("83cc6374").assetgroup("test").getAsset("tP-ZxpZZTGmbPnET-wArAQ")
|
|
395
395
|
*/
|
|
396
396
|
getAsset(t) {
|
|
397
397
|
return r(this, null, function* () {
|
|
398
398
|
const e = yield this.getBestToken();
|
|
399
|
-
return
|
|
399
|
+
return W(l(c({}, this.config), { assetID: t, token: e }));
|
|
400
400
|
});
|
|
401
401
|
}
|
|
402
402
|
/**
|
|
@@ -411,7 +411,7 @@ class A {
|
|
|
411
411
|
createEntry(t) {
|
|
412
412
|
return r(this, null, function* () {
|
|
413
413
|
const e = yield this.getBestToken();
|
|
414
|
-
return
|
|
414
|
+
return Z(l(c({}, this.config), { token: e, value: t }));
|
|
415
415
|
});
|
|
416
416
|
}
|
|
417
417
|
/**
|
|
@@ -427,7 +427,7 @@ class A {
|
|
|
427
427
|
editEntry(t, e) {
|
|
428
428
|
return r(this, null, function* () {
|
|
429
429
|
const s = yield this.getBestToken();
|
|
430
|
-
return
|
|
430
|
+
return D(l(c({}, this.config), { entryID: t, token: s, value: e }));
|
|
431
431
|
});
|
|
432
432
|
}
|
|
433
433
|
/**
|
|
@@ -569,8 +569,8 @@ export {
|
|
|
569
569
|
A as Sdk,
|
|
570
570
|
rt as act,
|
|
571
571
|
y as apiURL,
|
|
572
|
-
|
|
573
|
-
|
|
572
|
+
v as assetList,
|
|
573
|
+
H as createAsset,
|
|
574
574
|
U as createEntry,
|
|
575
575
|
G as deleteEntry,
|
|
576
576
|
F as editEntry,
|
package/dist/lib/api.d.mts
CHANGED
|
@@ -94,11 +94,11 @@ export class Sdk {
|
|
|
94
94
|
* If the asset group is not public, you also need to provide a `token`.
|
|
95
95
|
*
|
|
96
96
|
* @param {string} assetID
|
|
97
|
-
* @returns {
|
|
97
|
+
* @returns {Promise<AssetResource>}
|
|
98
98
|
* @example
|
|
99
99
|
* const asset = await sdk("stage").dm("83cc6374").assetgroup("test").getAsset("tP-ZxpZZTGmbPnET-wArAQ")
|
|
100
100
|
*/
|
|
101
|
-
getAsset(assetID: string):
|
|
101
|
+
getAsset(assetID: string): Promise<AssetResource>;
|
|
102
102
|
/**
|
|
103
103
|
* Creates a new entry. Expects `dmShortID` / `model` to be set.
|
|
104
104
|
* If model POST is not public, you also need to provide a `token`.
|
|
@@ -182,4 +182,12 @@ export class Sdk {
|
|
|
182
182
|
assetgroup(assetGroup: string): Sdk;
|
|
183
183
|
}
|
|
184
184
|
export function sdk(env: any): Sdk;
|
|
185
|
+
export type AssetResource = {
|
|
186
|
+
assetID: string;
|
|
187
|
+
created: Date;
|
|
188
|
+
files: Array<any>;
|
|
189
|
+
tags: Array<string | any>;
|
|
190
|
+
title: string;
|
|
191
|
+
type: string;
|
|
192
|
+
};
|
|
185
193
|
//# sourceMappingURL=api.d.mts.map
|
package/dist/lib/api.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api.d.mts","sourceRoot":"","sources":["../../src/lib/api.mjs"],"names":[],"mappings":"AAwBA,sCAWC;;AAED;;GAEG;AACH;IACE,yBAEC;IADC,YAAoB;IAGtB,mBAGC;IAED;;;;;;;;;;;;OAYG;IACH,kBATW,MAAM,eACJ;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAW7D;IACD;eAZsB,MAAM;eAAS,MAAM;eAAS,MAAM,EAAE;OAc3D;IACD;;;;;;;;OAQG;IACH,kBALW,MAAM,GACJ,MAAM,CAOlB;IACD;;;;;;;;;;;;OAYG;IACH,iBATW,MAAM,eACJ;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAW7D;IACD;eAZsB,MAAM;eAAS,MAAM;eAAS,MAAM,EAAE;OAc3D;IACD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,6BAjBW,MAAM,eACJ;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAmB7D;IACD;;;;;;;;OAQG;IACH,kBALW,MAAM,GACJ,
|
|
1
|
+
{"version":3,"file":"api.d.mts","sourceRoot":"","sources":["../../src/lib/api.mjs"],"names":[],"mappings":"AAwBA,sCAWC;;AAED;;GAEG;AACH;IACE,yBAEC;IADC,YAAoB;IAGtB,mBAGC;IAED;;;;;;;;;;;;OAYG;IACH,kBATW,MAAM,eACJ;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAW7D;IACD;eAZsB,MAAM;eAAS,MAAM;eAAS,MAAM,EAAE;OAc3D;IACD;;;;;;;;OAQG;IACH,kBALW,MAAM,GACJ,MAAM,CAOlB;IACD;;;;;;;;;;;;OAYG;IACH,iBATW,MAAM,eACJ;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAW7D;IACD;eAZsB,MAAM;eAAS,MAAM;eAAS,MAAM,EAAE;OAc3D;IACD;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,6BAjBW,MAAM,eACJ;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,EAAE,CAAA;KAAE,CAmB7D;IACD;;;;;;;;OAQG;IACH,kBALW,MAAM,GACJ,QAAQ,aAAa,CAAC,CAOlC;IAED;;;;;;;;OAQG;IACH,mBALW,MAAM,GACJ,MAAM,CAOlB;IACD;;;;;;;;;OASG;IACH,mBANW,MAAM,SACN,MAAM,GACJ,MAAM,CAOlB;IACD;;;;;;;;OAQG;IACH,qBALW,MAAM,GACJ,MAAM,CAOlB;IAID,mCAGC;IAED,sCASC;IACD,wCAUC;IACD,uBAMC;IAED,mCAIC;IACD,uCAKC;IAED,6BAMC;IAED,yBAMC;IAED,sBAEC;IACD,kBAEC;IACD,0BAEC;IACD,sBAEC;IACD,uBAEC;IACD,oBAMC;IACD;;;;OAIG;IACH,aAHW,MAAM,OAKhB;IACD;;;;OAIG;IACH,aAHW,MAAM,OAKhB;IACD;;;;OAIG;IACH,qBAHW,MAAM,OAKhB;IACD;;;;OAIG;IACH,cAHW,MAAM,OAKhB;IACD;;;;OAIG;IACH,uBAHW,MAAM,OAKhB;IACD;;;;OAIG;IACH,uBAHW,MAAM,OAKhB;CACF;AAEM,mCAAqC;;aAI9B,MAAM;aACN,IAAI;WACJ,MAAM,GAAG,CAAC;UACV,MAAM,MAAM,GAAG,GAAG,CAAC;WACnB,MAAM;UACN,MAAM"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ec.fdk",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "ec frontend sdk",
|
|
5
5
|
"main": "dist/index.cjs",
|
|
6
6
|
"directories": {
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"homepage": "https://github.com/entrecode/ec.fdk#readme",
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@nanostores/persistent": "^0.9.1",
|
|
24
|
-
"jsdoc-json": "^2.0.2",
|
|
25
24
|
"nanostores": "^0.9.3"
|
|
26
25
|
},
|
|
27
26
|
"devDependencies": {
|
|
27
|
+
"jsdoc-json": "^2.0.2",
|
|
28
28
|
"jsdoc": "^4.0.2",
|
|
29
29
|
"jsdoc-to-markdown": "^8.0.0",
|
|
30
30
|
"typescript": "^5.3.3",
|