@api7/portal-sdk 0.0.2 → 0.0.3
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/api_product.d.ts +1 -1
- package/dist/api_product.d.ts.map +1 -1
- package/dist/application.d.ts +1 -1
- package/dist/application.d.ts.map +1 -1
- package/dist/browser.cjs +1 -1
- package/dist/browser.d.ts +2 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +11 -11
- package/dist/credential.d.ts +1 -1
- package/dist/credential.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +22 -21
- package/dist/miscellaneous.d.ts +1 -1
- package/dist/miscellaneous.d.ts.map +1 -1
- package/dist/subscription.d.ts +1 -1
- package/dist/subscription.d.ts.map +1 -1
- package/dist/unstable/typing.d.ts +2 -0
- package/dist/unstable/typing.d.ts.map +1 -0
- package/dist/unstable-types.cjs +1 -0
- package/dist/unstable-types.js +1 -0
- package/package.json +4 -1
package/dist/api_product.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Client } from './generated/client/types.gen.js';
|
|
2
|
-
import {
|
|
2
|
+
import { ApiProduct, CreateApiProductSubscriptionReq, ListApiProductsData, ListApiProductsResponses } from './generated/index.js';
|
|
3
3
|
export declare class APIProductAPI {
|
|
4
4
|
private readonly client;
|
|
5
5
|
constructor(client: Client);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api_product.d.ts","sourceRoot":"","sources":["../src/api_product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,
|
|
1
|
+
{"version":3,"file":"api_product.d.ts","sourceRoot":"","sources":["../src/api_product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EACL,KAAK,UAAU,EACf,KAAK,+BAA+B,EACpC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAI9B,MAAM,sBAAsB,CAAC;AAG9B,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAE3C;;;;;OAKG;IACU,IAAI,CACf,KAAK,CAAC,EAAE,mBAAmB,CAAC,OAAO,CAAC,GACnC,OAAO,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;IAM3C;;;;;OAKG;IACU,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IASjD;;;;;OAKG;IACU,SAAS,CACpB,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,+BAA+B,GACpC,OAAO,CAAC,IAAI,CAAC;CASjB"}
|
package/dist/application.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { CreateDeveloperApplicationReq, DeveloperApplication, ListDeveloperApplicationsData, ListDeveloperApplicationsResponses, GetApiCallsData, GetApiCallsResponses } from './generated/index.js';
|
|
2
1
|
import { ApplicationCredentialAPI } from './credential.js';
|
|
3
2
|
import { Client } from './generated/client/types.gen.js';
|
|
3
|
+
import { CreateDeveloperApplicationReq, DeveloperApplication, GetApiCallsData, GetApiCallsResponses, ListDeveloperApplicationsData, ListDeveloperApplicationsResponses } from './generated/index.js';
|
|
4
4
|
export declare class ApplicationAPI {
|
|
5
5
|
private readonly client;
|
|
6
6
|
readonly credential: ApplicationCredentialAPI;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../src/application.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"application.d.ts","sourceRoot":"","sources":["../src/application.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAC3D,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EACL,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EAOxC,MAAM,sBAAsB,CAAC;AAG9B,qBAAa,cAAc;IAGb,OAAO,CAAC,QAAQ,CAAC,MAAM;IAFnC,SAAgB,UAAU,EAAE,wBAAwB,CAAC;gBAExB,MAAM,EAAE,MAAM;IAI3C;;;;;OAKG;IACU,MAAM,CACjB,IAAI,EAAE,6BAA6B,GAClC,OAAO,CAAC,oBAAoB,CAAC;IAShC;;;;;OAKG;IACU,IAAI,CACf,KAAK,CAAC,EAAE,6BAA6B,CAAC,OAAO,CAAC,GAC7C,OAAO,CAAC,kCAAkC,CAAC,KAAK,CAAC,CAAC;IAMrD;;;;;OAKG;IACU,GAAG,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,oBAAoB,CAAC;IAStE;;;;;;OAMG;IACU,MAAM,CACjB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,6BAA6B,GAClC,OAAO,CAAC,oBAAoB,CAAC;IAUhC;;;;OAIG;IACU,MAAM,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;IASzD;;;;;OAKG;IACU,OAAO,CAClB,KAAK,EAAE,eAAe,CAAC,OAAO,CAAC,GAC9B,OAAO,CAAC,oBAAoB,CAAC,KAAK,CAAC,CAAC;CAQxC"}
|
package/dist/browser.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("axios"),e=require("./subscription-ukRySaBq.cjs");class n{apiProduct;application;credential;dcrProvider;developer;misc;subscription;systemSetting;constructor(i){const r=i?.axios??s.create();!r.defaults?.baseURL&&i?.endpoint&&(r.defaults.baseURL=i?.endpoint);const t=e.createClient({axios:r});this.apiProduct=new e.APIProductAPI(t),this.application=new e.ApplicationAPI(t),this.credential=new e.CredentialAPI(t),this.dcrProvider=new e.DCRProviderAPI(t),this.developer=new e.DeveloperAPI(t),this.misc=new e.MiscellaneousAPI(t),this.subscription=new e.SubscriptionAPI(t),this.systemSetting=new e.SystemSettingAPI(t)}}exports.APIError=e.APIError;exports.API7Portal=n;
|
package/dist/browser.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { AxiosInstance } from 'axios';
|
|
1
2
|
import { ApplicationAPI } from './application.js';
|
|
2
3
|
import { CredentialAPI } from './credential.js';
|
|
3
4
|
import { DCRProviderAPI, MiscellaneousAPI, SystemSettingAPI } from './miscellaneous.js';
|
|
@@ -6,6 +7,7 @@ import { APIProductAPI } from './api_product.js';
|
|
|
6
7
|
import { SubscriptionAPI } from './subscription.js';
|
|
7
8
|
export { APIError } from './utils.js';
|
|
8
9
|
export type Options = {
|
|
10
|
+
axios?: AxiosInstance;
|
|
9
11
|
endpoint?: string;
|
|
10
12
|
};
|
|
11
13
|
export declare class API7Portal {
|
package/dist/browser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"browser.d.ts","sourceRoot":"","sources":["../src/browser.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAC7C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,OAAO,GAAG;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,qBAAa,UAAU;IACrB,SAAgB,UAAU,EAAE,aAAa,CAAC;IAC1C,SAAgB,WAAW,EAAE,cAAc,CAAC;IAC5C,SAAgB,UAAU,EAAE,aAAa,CAAC;IAC1C,SAAgB,WAAW,EAAE,cAAc,CAAC;IAC5C,SAAgB,SAAS,EAAE,YAAY,CAAC;IACxC,SAAgB,IAAI,EAAE,gBAAgB,CAAC;IACvC,SAAgB,YAAY,EAAE,eAAe,CAAC;IAC9C,SAAgB,aAAa,EAAE,gBAAgB,CAAC;gBAEpC,IAAI,CAAC,EAAE,OAAO;CAe3B"}
|
package/dist/browser.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { c as
|
|
3
|
-
import { e as
|
|
4
|
-
class
|
|
1
|
+
import s from "axios";
|
|
2
|
+
import { c as r, A as a, a as n, C as o, D as c, b as d, M as p, S as P, d as l } from "./subscription-DPb2gn6N.js";
|
|
3
|
+
import { e as b } from "./subscription-DPb2gn6N.js";
|
|
4
|
+
class u {
|
|
5
5
|
apiProduct;
|
|
6
6
|
application;
|
|
7
7
|
credential;
|
|
@@ -10,14 +10,14 @@ class m {
|
|
|
10
10
|
misc;
|
|
11
11
|
subscription;
|
|
12
12
|
systemSetting;
|
|
13
|
-
constructor(
|
|
14
|
-
const
|
|
15
|
-
|
|
16
|
-
});
|
|
17
|
-
this.apiProduct = new
|
|
13
|
+
constructor(i) {
|
|
14
|
+
const t = i?.axios ?? s.create();
|
|
15
|
+
!t.defaults?.baseURL && i?.endpoint && (t.defaults.baseURL = i?.endpoint);
|
|
16
|
+
const e = r({ axios: t });
|
|
17
|
+
this.apiProduct = new a(e), this.application = new n(e), this.credential = new o(e), this.dcrProvider = new c(e), this.developer = new d(e), this.misc = new p(e), this.subscription = new P(e), this.systemSetting = new l(e);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
u as API7Portal,
|
|
22
|
+
b as APIError
|
|
23
23
|
};
|
package/dist/credential.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateApplicationCredentialReq, UpdateApplicationCredentialReq, RegenerateApplicationCredentialReq, ApplicationCredential, ListDeveloperCredentialsResponses, ListDeveloperCredentialsData, ListCredentialsResponses, ListCredentialsData } from './generated/index.js';
|
|
2
1
|
import { Client } from './generated/client/types.gen.js';
|
|
2
|
+
import { ApplicationCredential, CreateApplicationCredentialReq, ListCredentialsData, ListCredentialsResponses, ListDeveloperCredentialsData, ListDeveloperCredentialsResponses, RegenerateApplicationCredentialReq, UpdateApplicationCredentialReq } from './generated/index.js';
|
|
3
3
|
export declare class ApplicationCredentialAPI {
|
|
4
4
|
private readonly client;
|
|
5
5
|
constructor(client: Client);
|
package/dist/credential.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential.d.ts","sourceRoot":"","sources":["../src/credential.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"credential.d.ts","sourceRoot":"","sources":["../src/credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACvC,KAAK,8BAA8B,EAQpC,MAAM,sBAAsB,CAAC;AAG9B,qBAAa,wBAAwB;IACvB,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAE3C;;;;;;OAMG;IACU,MAAM,CACjB,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,8BAA8B,GACnC,OAAO,CAAC,qBAAqB,CAAC;IAUjC;;;;;;OAMG;IACU,IAAI,CACf,aAAa,EAAE,MAAM,EACrB,KAAK,EAAE,4BAA4B,CAAC,OAAO,CAAC,GAC3C,OAAO,CAAC,iCAAiC,CAAC,KAAK,CAAC,CAAC;IAUpD;;;;;;OAMG;IACU,GAAG,CACd,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,qBAAqB,CAAC;IAYjC;;;;;;;OAOG;IACU,MAAM,CACjB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,8BAA8B,GACnC,OAAO,CAAC,qBAAqB,CAAC;IAajC;;;;;OAKG;IACU,MAAM,CACjB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,GACnB,OAAO,CAAC,IAAI,CAAC;IAYhB;;;;;;;OAOG;IACU,UAAU,CACrB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,kCAAkC,GACvC,OAAO,CAAC,qBAAqB,CAAC;CAYlC;AAED,qBAAa,aAAa;IACZ,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAE3C;;;;;OAKG;IACU,IAAI,CACf,KAAK,EAAE,mBAAmB,CAAC,OAAO,CAAC,GAClC,OAAO,CAAC,wBAAwB,CAAC,KAAK,CAAC,CAAC;CAQ5C"}
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("axios"),e=require("./subscription-ukRySaBq.cjs");class d{apiProduct;application;credential;dcrProvider;developer;misc;subscription;systemSetting;proxy;constructor(i){const s=i.axios??c.create();s.defaults?.baseURL||(s.defaults.baseURL=i.endpoint),s.interceptors.request.use(async r=>{r.headers=r.headers??{};const a="Authorization";r.headers[a]||(r.headers[a]=`Bearer ${i.token}`);const o="X-Portal-Developer-ID";if(!r.headers[o])try{r.headers[o]=await i.getDeveloperId()}catch(n){return Promise.reject(n)}return r});const t=e.createClient({axios:s});this.apiProduct=new e.APIProductAPI(t),this.application=new e.ApplicationAPI(t),this.credential=new e.CredentialAPI(t),this.dcrProvider=new e.DCRProviderAPI(t),this.developer=new e.DeveloperAPI(t),this.misc=new e.MiscellaneousAPI(t),this.subscription=new e.SubscriptionAPI(t),this.systemSetting=new e.SystemSettingAPI(t),this.proxy=r=>s.request(r)}}exports.APIError=e.APIError;exports.API7Portal=d;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
1
|
+
import { AxiosInstance, AxiosRequestConfig, AxiosResponse } from 'axios';
|
|
2
2
|
import { ApplicationAPI } from './application.js';
|
|
3
3
|
import { CredentialAPI } from './credential.js';
|
|
4
4
|
import { DCRProviderAPI, MiscellaneousAPI, SystemSettingAPI } from './miscellaneous.js';
|
|
@@ -7,6 +7,7 @@ import { APIProductAPI } from './api_product.js';
|
|
|
7
7
|
import { SubscriptionAPI } from './subscription.js';
|
|
8
8
|
export { APIError } from './utils.js';
|
|
9
9
|
export type Options = {
|
|
10
|
+
axios?: AxiosInstance;
|
|
10
11
|
endpoint: string;
|
|
11
12
|
token: string;
|
|
12
13
|
getDeveloperId: () => Promise<string>;
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAc,EAAE,aAAa,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAChF,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EACjB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAGpD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,MAAM,OAAO,GAAG;IACpB,KAAK,CAAC,EAAE,aAAa,CAAC;IAEtB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,cAAc,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAC;CACvC,CAAC;AAEF,qBAAa,UAAU;IACrB,SAAgB,UAAU,EAAE,aAAa,CAAC;IAC1C,SAAgB,WAAW,EAAE,cAAc,CAAC;IAC5C,SAAgB,UAAU,EAAE,aAAa,CAAC;IAC1C,SAAgB,WAAW,EAAE,cAAc,CAAC;IAC5C,SAAgB,SAAS,EAAE,YAAY,CAAC;IACxC,SAAgB,IAAI,EAAE,gBAAgB,CAAC;IACvC,SAAgB,YAAY,EAAE,eAAe,CAAC;IAC9C,SAAgB,aAAa,EAAE,gBAAgB,CAAC;IAChD,SAAgB,KAAK,EAAE,CAAC,GAAG,EAAE,kBAAkB,KAAK,OAAO,CAAC,aAAa,CAAC,CAAC;gBAE/D,IAAI,EAAE,OAAO;CAkC1B"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { c
|
|
3
|
-
import { e as
|
|
4
|
-
class
|
|
1
|
+
import n from "axios";
|
|
2
|
+
import { c, A as d, a as p, C as P, D as l, b as A, M as h, S as u, d as I } from "./subscription-DPb2gn6N.js";
|
|
3
|
+
import { e as y } from "./subscription-DPb2gn6N.js";
|
|
4
|
+
class v {
|
|
5
5
|
apiProduct;
|
|
6
6
|
application;
|
|
7
7
|
credential;
|
|
@@ -11,25 +11,26 @@ class w {
|
|
|
11
11
|
subscription;
|
|
12
12
|
systemSetting;
|
|
13
13
|
proxy;
|
|
14
|
-
constructor(
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
headers
|
|
14
|
+
constructor(s) {
|
|
15
|
+
const t = s.axios ?? n.create();
|
|
16
|
+
t.defaults?.baseURL || (t.defaults.baseURL = s.endpoint), t.interceptors.request.use(async (e) => {
|
|
17
|
+
e.headers = e.headers ?? {};
|
|
18
|
+
const a = "Authorization";
|
|
19
|
+
e.headers[a] || (e.headers[a] = `Bearer ${s.token}`);
|
|
20
|
+
const i = "X-Portal-Developer-ID";
|
|
21
|
+
if (!e.headers[i])
|
|
22
|
+
try {
|
|
23
|
+
e.headers[i] = await s.getDeveloperId();
|
|
24
|
+
} catch (o) {
|
|
25
|
+
return Promise.reject(o);
|
|
26
|
+
}
|
|
27
|
+
return e;
|
|
18
28
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
r.headers["X-Portal-Developer-ID"] = await t.getDeveloperId();
|
|
23
|
-
} catch (i) {
|
|
24
|
-
return Promise.reject(i);
|
|
25
|
-
}
|
|
26
|
-
return r;
|
|
27
|
-
});
|
|
28
|
-
const e = o({ axios: s });
|
|
29
|
-
this.apiProduct = new n(e), this.application = new c(e), this.credential = new p(e), this.dcrProvider = new d(e), this.developer = new P(e), this.misc = new l(e), this.subscription = new h(e), this.systemSetting = new u(e), this.proxy = (r) => s.request(r);
|
|
29
|
+
const r = c({ axios: t });
|
|
30
|
+
this.apiProduct = new d(r), this.application = new p(r), this.credential = new P(r), this.dcrProvider = new l(r), this.developer = new A(r), this.misc = new h(r), this.subscription = new u(r), this.systemSetting = new I(r), this.proxy = (e) => t.request(e);
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
33
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
34
|
+
v as API7Portal,
|
|
35
|
+
y as APIError
|
|
35
36
|
};
|
package/dist/miscellaneous.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { DeveloperPortalLabelResourceType, AllLabels, ListDcrProvidersData, ListDcrProvidersResponses } from './generated/index.js';
|
|
2
1
|
import { Client } from './generated/client/types.gen.js';
|
|
2
|
+
import { AllLabels, DeveloperPortalLabelResourceType, ListDcrProvidersData, ListDcrProvidersResponses } from './generated/index.js';
|
|
3
3
|
export declare class DCRProviderAPI {
|
|
4
4
|
private readonly client;
|
|
5
5
|
constructor(client: Client);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"miscellaneous.d.ts","sourceRoot":"","sources":["../src/miscellaneous.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"miscellaneous.d.ts","sourceRoot":"","sources":["../src/miscellaneous.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EACL,KAAK,SAAS,EACd,KAAK,gCAAgC,EACrC,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAI/B,MAAM,sBAAsB,CAAC;AAG9B,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAE3C;;;;OAIG;IACU,IAAI,CACf,KAAK,CAAC,EAAE,oBAAoB,CAAC,OAAO,CAAC,GACpC,OAAO,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC;CAK7C;AAED,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAE3C;;;;OAIG;IACU,eAAe,IAAI,OAAO,CAAC,OAAO,CAAC;CAKjD;AAED,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAE3C;;;;;OAKG;IACU,UAAU,CACrB,IAAI,EAAE,gCAAgC,GACrC,OAAO,CAAC,SAAS,CAAC;CAKtB"}
|
package/dist/subscription.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { CreateSubscriptionReq, ListSubscriptionsData, ListSubscriptionsResponses } from './generated/index.js';
|
|
2
1
|
import { Client } from './generated/client/types.gen.js';
|
|
2
|
+
import { CreateSubscriptionReq, ListSubscriptionsData, ListSubscriptionsResponses } from './generated/index.js';
|
|
3
3
|
export declare class SubscriptionAPI {
|
|
4
4
|
private readonly client;
|
|
5
5
|
constructor(client: Client);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../src/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../src/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,EACL,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,EAIhC,MAAM,sBAAsB,CAAC;AAG9B,qBAAa,eAAe;IACd,OAAO,CAAC,QAAQ,CAAC,MAAM;gBAAN,MAAM,EAAE,MAAM;IAE3C;;;;;OAKG;IACU,IAAI,CACf,KAAK,CAAC,EAAE,qBAAqB,CAAC,OAAO,CAAC,GACrC,OAAO,CAAC,0BAA0B,CAAC,KAAK,CAAC,CAAC;IAM7C;;;;;OAKG;IACU,aAAa,CAAC,IAAI,EAAE,qBAAqB,GAAG,OAAO,CAAC,IAAI,CAAC;IAMtE;;;;;OAKG;IACU,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAQpD"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { type ApiProduct, type CreateApiProductSubscriptionReq, type ListApiProductsData, type ListApiProductsResponses, type CreateDeveloperApplicationReq, type DeveloperApplication, type GetApiCallsData, type GetApiCallsResponses, type ListDeveloperApplicationsData, type ListDeveloperApplicationsResponses, type ApplicationCredential, type CreateApplicationCredentialReq, type ListCredentialsData, type ListCredentialsResponses, type ListDeveloperCredentialsData, type ListDeveloperCredentialsResponses, type RegenerateApplicationCredentialReq, type UpdateApplicationCredentialReq, type CreateDeveloperReq, type Developer, type ListDevelopersData, type ListDevelopersResponses, type AllLabels, type DeveloperPortalLabelResourceType, type ListDcrProvidersData, type ListDcrProvidersResponses, type CreateSubscriptionReq, type ListSubscriptionsData, type ListSubscriptionsResponses, } from '../generated/index.js';
|
|
2
|
+
//# sourceMappingURL=typing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"typing.d.ts","sourceRoot":"","sources":["../../src/unstable/typing.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,+BAA+B,EACpC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,6BAA6B,EAClC,KAAK,oBAAoB,EACzB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,6BAA6B,EAClC,KAAK,kCAAkC,EACvC,KAAK,qBAAqB,EAC1B,KAAK,8BAA8B,EACnC,KAAK,mBAAmB,EACxB,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,iCAAiC,EACtC,KAAK,kCAAkC,EACvC,KAAK,8BAA8B,EACnC,KAAK,kBAAkB,EACvB,KAAK,SAAS,EACd,KAAK,kBAAkB,EACvB,KAAK,uBAAuB,EAC5B,KAAK,SAAS,EACd,KAAK,gCAAgC,EACrC,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,0BAA0B,GAChC,MAAM,uBAAuB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@api7/portal-sdk",
|
|
3
3
|
"description": "API7 Portal JavaScript SDK",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.3",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"url": "https://github.com/api7/portal-sdk-typescript",
|
|
@@ -24,6 +24,9 @@
|
|
|
24
24
|
"import": "./dist/browser.js",
|
|
25
25
|
"require": "./dist/browser.cjs",
|
|
26
26
|
"default": "./dist/browser.js"
|
|
27
|
+
},
|
|
28
|
+
"./unstable-types": {
|
|
29
|
+
"types": "./dist/unstable/typing.d.ts"
|
|
27
30
|
}
|
|
28
31
|
},
|
|
29
32
|
"files": [
|