@mintlify/http-client 0.0.4 → 0.0.7
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/LICENSE +93 -0
- package/README.md +16 -16
- package/dist/client/baseClient.d.ts +64 -63
- package/dist/client/baseClient.d.ts.map +1 -0
- package/dist/client/baseClient.js +94 -89
- package/dist/client/baseClient.js.map +1 -0
- package/dist/client/clientError.d.ts +33 -32
- package/dist/client/clientError.d.ts.map +1 -0
- package/dist/client/clientError.js +89 -81
- package/dist/client/clientError.js.map +1 -0
- package/dist/client/index.d.ts +7 -6
- package/dist/client/index.d.ts.map +1 -0
- package/dist/client/index.js +8 -3
- package/dist/client/index.js.map +1 -0
- package/dist/client/interfaces.d.ts +94 -93
- package/dist/client/interfaces.d.ts.map +1 -0
- package/dist/client/interfaces.js +3 -1
- package/dist/client/interfaces.js.map +1 -0
- package/dist/client/types.d.ts +10 -9
- package/dist/client/types.d.ts.map +1 -0
- package/dist/client/types.js +3 -1
- package/dist/client/types.js.map +1 -0
- package/dist/index.d.ts +8 -7
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +19 -2
- package/dist/index.js.map +1 -0
- package/dist/leaves-client/constants.d.ts +22 -18
- package/dist/leaves-client/constants.d.ts.map +1 -0
- package/dist/leaves-client/constants.js +20 -13
- package/dist/leaves-client/constants.js.map +1 -0
- package/dist/leaves-client/index.d.ts +6 -5
- package/dist/leaves-client/index.d.ts.map +1 -0
- package/dist/leaves-client/index.js +24 -3
- package/dist/leaves-client/index.js.map +1 -0
- package/dist/leaves-client/interfaces.d.ts +19 -16
- package/dist/leaves-client/interfaces.d.ts.map +1 -0
- package/dist/leaves-client/interfaces.js +3 -1
- package/dist/leaves-client/interfaces.js.map +1 -0
- package/dist/leaves-client/leavesClient.d.ts +8 -7
- package/dist/leaves-client/leavesClient.d.ts.map +1 -0
- package/dist/leaves-client/leavesClient.js +96 -88
- package/dist/leaves-client/leavesClient.js.map +1 -0
- package/dist/leaves-client/types.d.ts +8 -11
- package/dist/leaves-client/types.d.ts.map +1 -0
- package/dist/leaves-client/types.js +3 -1
- package/dist/leaves-client/types.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +78 -78
- package/dist/setup-jest.d.ts +0 -1
- package/dist/setup-jest.js +0 -5
- package/dist/src/client/baseClient.d.ts +0 -63
- package/dist/src/client/baseClient.js +0 -180
- package/dist/src/client/clientError.d.ts +0 -32
- package/dist/src/client/clientError.js +0 -160
- package/dist/src/client/index.d.ts +0 -6
- package/dist/src/client/index.js +0 -7
- package/dist/src/client/interfaces.d.ts +0 -93
- package/dist/src/client/interfaces.js +0 -2
- package/dist/src/client/types.d.ts +0 -9
- package/dist/src/client/types.js +0 -2
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.js +0 -18
- package/dist/src/leaves-client/constants.d.ts +0 -18
- package/dist/src/leaves-client/constants.js +0 -16
- package/dist/src/leaves-client/index.d.ts +0 -4
- package/dist/src/leaves-client/index.js +0 -8
- package/dist/src/leaves-client/interfaces.d.ts +0 -15
- package/dist/src/leaves-client/interfaces.js +0 -2
- package/dist/src/leaves-client/leavesClient.d.ts +0 -7
- package/dist/src/leaves-client/leavesClient.js +0 -157
- package/dist/src/leaves-client/types.d.ts +0 -11
- package/dist/src/leaves-client/types.js +0 -2
|
@@ -1,3 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
18
|
+
};
|
|
19
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
+
exports.getLeavesClient = void 0;
|
|
21
|
+
const leavesClient_1 = __importDefault(require("./leavesClient"));
|
|
22
|
+
exports.getLeavesClient = leavesClient_1.default;
|
|
23
|
+
__exportStar(require("./constants"), exports);
|
|
24
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/leaves-client/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AACA,kEAA6C;AAEpC,0BAFF,sBAAe,CAEE;AACxB,8CAA4B"}
|
|
@@ -1,16 +1,19 @@
|
|
|
1
|
-
import { DeploymentType, SnippetType, CustomerPageType, NavGroups } from '@mintlify/models';
|
|
2
|
-
import { IBaseClient } from '../client';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
readonly
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
import { DeploymentType, SnippetType, CustomerPageType, NavGroups, OrgType } from '@mintlify/models';
|
|
2
|
+
import { IBaseClient } from '../client';
|
|
3
|
+
export interface ILeavesClient extends IBaseClient {
|
|
4
|
+
readonly subdomain: string;
|
|
5
|
+
readonly isPasswordProtected: boolean;
|
|
6
|
+
getDeployment(): Promise<DeploymentType>;
|
|
7
|
+
getNavigation(): Promise<NavGroups>;
|
|
8
|
+
getOrg(): Promise<OrgType>;
|
|
9
|
+
getPlan(): Promise<string>;
|
|
10
|
+
getOrgById(id: string): Promise<OrgType>;
|
|
11
|
+
getPlanById(id: string): Promise<string>;
|
|
12
|
+
getSnippets(): Promise<SnippetType[]>;
|
|
13
|
+
getPage(path: string, basePath?: string, ...fields: (keyof CustomerPageType)[]): Promise<CustomerPageType>;
|
|
14
|
+
getPages(basePath?: string, ...fields: (keyof CustomerPageType)[]): Promise<CustomerPageType[]>;
|
|
15
|
+
getHostingLocation(): Promise<string>;
|
|
16
|
+
getHiddenPages(): Promise<string[]>;
|
|
17
|
+
getPaths(): Promise<string[]>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=interfaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/leaves-client/interfaces.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,cAAc,EACd,WAAW,EACX,gBAAgB,EAChB,SAAS,EACT,OAAO,EACR,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAExC,MAAM,WAAW,aAAc,SAAQ,WAAW;IAChD,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,mBAAmB,EAAE,OAAO,CAAC;IAEtC,aAAa,IAAI,OAAO,CAAC,cAAc,CAAC,CAAC;IAEzC,aAAa,IAAI,OAAO,CAAC,SAAS,CAAC,CAAC;IAEpC,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,CAAC;IAE3B,OAAO,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAE3B,UAAU,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;IAEzC,WAAW,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IAEzC,WAAW,IAAI,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;IAEtC,OAAO,CACL,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,MAAM,EACjB,GAAG,MAAM,EAAE,CAAC,MAAM,gBAAgB,CAAC,EAAE,GACpC,OAAO,CAAC,gBAAgB,CAAC,CAAC;IAE7B,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAAC,MAAM,gBAAgB,CAAC,EAAE,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAAC;IAEhG,kBAAkB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;IAEtC,cAAc,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAEpC,QAAQ,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CAC/B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/leaves-client/interfaces.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { ILeavesClient } from './interfaces';
|
|
2
|
-
export declare const getLeavesClient: (subdomain: string, isPasswordProtected?: boolean, host?: string, reqInit?: {
|
|
3
|
-
headers: {
|
|
4
|
-
Authorization: string;
|
|
5
|
-
} | undefined;
|
|
6
|
-
}) => ILeavesClient;
|
|
7
|
-
export default getLeavesClient;
|
|
1
|
+
import { ILeavesClient } from './interfaces';
|
|
2
|
+
export declare const getLeavesClient: (subdomain: string, isPasswordProtected?: boolean, host?: string, reqInit?: {
|
|
3
|
+
headers: {
|
|
4
|
+
Authorization: string;
|
|
5
|
+
} | undefined;
|
|
6
|
+
}) => ILeavesClient;
|
|
7
|
+
export default getLeavesClient;
|
|
8
|
+
//# sourceMappingURL=leavesClient.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leavesClient.d.ts","sourceRoot":"","sources":["../../src/leaves-client/leavesClient.ts"],"names":[],"mappings":"AAyBA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAuH7C,eAAO,MAAM,eAAe,cACf,MAAM;;;;MAIhB,aAAgF,CAAC;AAEpF,eAAe,eAAe,CAAC"}
|
|
@@ -1,88 +1,96 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
return this.
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
return this.entity("
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
const
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
const
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
this.
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLeavesClient = void 0;
|
|
4
|
+
const client_1 = require("../client");
|
|
5
|
+
const clientError_1 = require("../client/clientError");
|
|
6
|
+
const constants_1 = require("./constants");
|
|
7
|
+
class LeavesClient extends client_1.BaseClient {
|
|
8
|
+
constructor(subdomain, isPasswordProtected, host, reqInit = undefined) {
|
|
9
|
+
super(host, reqInit);
|
|
10
|
+
this.isPasswordProtected = isPasswordProtected;
|
|
11
|
+
this.subdomain = constants_1.SUBDOMAIN ?? subdomain;
|
|
12
|
+
const isAccessDenied = constants_1.SUBDOMAIN !== subdomain && this.isPasswordProtected;
|
|
13
|
+
clientError_1.handleAccess.bind(this)(!isAccessDenied);
|
|
14
|
+
}
|
|
15
|
+
getDeployment() {
|
|
16
|
+
return this.entity("deployment" /* ENTITY_TYPE.DEPLOYMENT */);
|
|
17
|
+
}
|
|
18
|
+
getNavigation() {
|
|
19
|
+
const path = this.getPath(constants_1.NAVIGATION_ROUTE, this.subdomain);
|
|
20
|
+
return this.json(path);
|
|
21
|
+
}
|
|
22
|
+
getSnippets() {
|
|
23
|
+
return this.entity("snippet" /* ENTITY_TYPE.SNIPPET */);
|
|
24
|
+
}
|
|
25
|
+
getOrg() {
|
|
26
|
+
return this.entity("org" /* ENTITY_TYPE.ORG */);
|
|
27
|
+
}
|
|
28
|
+
getPlan() {
|
|
29
|
+
const route = this.getRoute("org" /* ENTITY_TYPE.ORG */);
|
|
30
|
+
const path = this.getPath(route, this.subdomain, constants_1.PLAN_ROUTE);
|
|
31
|
+
return this.text(path);
|
|
32
|
+
}
|
|
33
|
+
getOrgById(orgId) {
|
|
34
|
+
const route = this.getRoute("org" /* ENTITY_TYPE.ORG */);
|
|
35
|
+
const path = this.getPath(route, constants_1.ORG_BY_ID_ROUTE, orgId);
|
|
36
|
+
return this.json(path);
|
|
37
|
+
}
|
|
38
|
+
getPlanById(orgId) {
|
|
39
|
+
const route = this.getRoute("org" /* ENTITY_TYPE.ORG */);
|
|
40
|
+
const path = this.getPath(route, constants_1.PLAN_BY_ID_ROUTE, orgId);
|
|
41
|
+
return this.text(path);
|
|
42
|
+
}
|
|
43
|
+
getPage(path, basePath, ...fields) {
|
|
44
|
+
return this.entity("page" /* ENTITY_TYPE.PAGE */, {
|
|
45
|
+
path,
|
|
46
|
+
...this.getFields(fields),
|
|
47
|
+
...(basePath ? { basePath } : {}),
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
getPages(basePath, ...fields) {
|
|
51
|
+
const route = this.getRoute("page" /* ENTITY_TYPE.PAGE */);
|
|
52
|
+
const path = this.getPath(route, this.subdomain, 'list');
|
|
53
|
+
return this.json(path, {
|
|
54
|
+
...this.getFields(fields),
|
|
55
|
+
...(basePath ? { basePath } : {}),
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
getHiddenPages() {
|
|
59
|
+
const route = this.getRoute("page" /* ENTITY_TYPE.PAGE */);
|
|
60
|
+
const path = this.getPath(route, this.subdomain, constants_1.HIDDEN_PAGES_ROUTE);
|
|
61
|
+
return this.json(path);
|
|
62
|
+
}
|
|
63
|
+
getPaths() {
|
|
64
|
+
const route = this.getRoute("page" /* ENTITY_TYPE.PAGE */);
|
|
65
|
+
const path = this.getPath(route, this.subdomain, constants_1.PATHS_ROUTE);
|
|
66
|
+
return this.json(path);
|
|
67
|
+
}
|
|
68
|
+
getHostingLocation() {
|
|
69
|
+
const route = this.getRoute("deployment" /* ENTITY_TYPE.DEPLOYMENT */);
|
|
70
|
+
const path = this.getPath(route, this.subdomain, constants_1.HOSTING_LOCATION_ROUTE);
|
|
71
|
+
return this.text(path);
|
|
72
|
+
}
|
|
73
|
+
getRoute(type) {
|
|
74
|
+
switch (type) {
|
|
75
|
+
case "deployment" /* ENTITY_TYPE.DEPLOYMENT */:
|
|
76
|
+
case "snippet" /* ENTITY_TYPE.SNIPPET */:
|
|
77
|
+
case "page" /* ENTITY_TYPE.PAGE */:
|
|
78
|
+
case "org" /* ENTITY_TYPE.ORG */:
|
|
79
|
+
return type.toLowerCase();
|
|
80
|
+
default:
|
|
81
|
+
throw new Error(`ENTITY_TYPE: ${type} is not supported.`);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
entity(type, query, init) {
|
|
85
|
+
const route = this.getRoute(type);
|
|
86
|
+
const path = this.getPath(route, this.subdomain);
|
|
87
|
+
return this.json(path, query, init);
|
|
88
|
+
}
|
|
89
|
+
getFields(fields) {
|
|
90
|
+
return (fields?.length ?? 0) > 0 ? { fields: JSON.stringify(fields) } : {};
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
const getLeavesClient = (subdomain, isPasswordProtected = constants_1.IS_PASSWORD_PROTECTED, host = constants_1.ENDPOINT, reqInit = { headers: constants_1.HEADERS }) => new LeavesClient(subdomain, isPasswordProtected, host, reqInit);
|
|
94
|
+
exports.getLeavesClient = getLeavesClient;
|
|
95
|
+
exports.default = exports.getLeavesClient;
|
|
96
|
+
//# sourceMappingURL=leavesClient.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leavesClient.js","sourceRoot":"","sources":["../../src/leaves-client/leavesClient.ts"],"names":[],"mappings":";;;AAUA,sCAAuC;AACvC,uDAAqD;AACrD,2CAYqB;AAGrB,MAAM,YAAa,SAAQ,mBAAU;IAInC,YACE,SAAiB,EACjB,mBAA4B,EAC5B,IAAY,EACZ,UAAmC,SAAS;QAE5C,KAAK,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QACrB,IAAI,CAAC,mBAAmB,GAAG,mBAAmB,CAAC;QAC/C,IAAI,CAAC,SAAS,GAAG,qBAAS,IAAI,SAAS,CAAC;QAExC,MAAM,cAAc,GAAG,qBAAS,KAAK,SAAS,IAAI,IAAI,CAAC,mBAAmB,CAAC;QAE3E,0BAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,cA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erPageType & DeploymentType & {
|
|
3
|
-
redirect?: {
|
|
4
|
-
destination: string;
|
|
5
|
-
permanent: boolean;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
data?: PagePropsResponseType;
|
|
10
|
-
status: number;
|
|
11
|
-
};
|
|
1
|
+
import { CustomerPageType, DeploymentType } from '@mintlify/models';
|
|
2
|
+
export type PagePropsResponseType = CustomerPageType & DeploymentType & {
|
|
3
|
+
redirect?: {
|
|
4
|
+
destination: string;
|
|
5
|
+
permanent: boolean;
|
|
6
|
+
};
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/leaves-client/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAEpE,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAClD,cAAc,GAAG;IACf,QAAQ,CAAC,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;CACxD,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/leaves-client/types.ts"],"names":[],"mappings":""}
|