@mintlify/http-client 0.0.3 → 0.0.5

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.
Files changed (46) hide show
  1. package/dist/client/baseClient.d.ts +1 -0
  2. package/dist/client/baseClient.d.ts.map +1 -0
  3. package/dist/client/baseClient.js +53 -136
  4. package/dist/client/baseClient.js.map +1 -0
  5. package/dist/client/clientError.d.ts +1 -0
  6. package/dist/client/clientError.d.ts.map +1 -0
  7. package/dist/client/clientError.js +35 -99
  8. package/dist/client/clientError.js.map +1 -0
  9. package/dist/client/index.d.ts +1 -0
  10. package/dist/client/index.d.ts.map +1 -0
  11. package/dist/client/index.js +8 -3
  12. package/dist/client/index.js.map +1 -0
  13. package/dist/client/interfaces.d.ts +1 -0
  14. package/dist/client/interfaces.d.ts.map +1 -0
  15. package/dist/client/interfaces.js +3 -1
  16. package/dist/client/interfaces.js.map +1 -0
  17. package/dist/client/types.d.ts +1 -0
  18. package/dist/client/types.d.ts.map +1 -0
  19. package/dist/client/types.js +3 -1
  20. package/dist/client/types.js.map +1 -0
  21. package/dist/index.d.ts +1 -0
  22. package/dist/index.d.ts.map +1 -0
  23. package/dist/index.js +19 -2
  24. package/dist/index.js.map +1 -0
  25. package/dist/leaves-client/constants.d.ts +1 -0
  26. package/dist/leaves-client/constants.d.ts.map +1 -0
  27. package/dist/leaves-client/constants.js +17 -13
  28. package/dist/leaves-client/constants.js.map +1 -0
  29. package/dist/leaves-client/index.d.ts +1 -0
  30. package/dist/leaves-client/index.d.ts.map +1 -0
  31. package/dist/leaves-client/index.js +24 -3
  32. package/dist/leaves-client/index.js.map +1 -0
  33. package/dist/leaves-client/interfaces.d.ts +1 -0
  34. package/dist/leaves-client/interfaces.d.ts.map +1 -0
  35. package/dist/leaves-client/interfaces.js +3 -1
  36. package/dist/leaves-client/interfaces.js.map +1 -0
  37. package/dist/leaves-client/leavesClient.d.ts +1 -0
  38. package/dist/leaves-client/leavesClient.d.ts.map +1 -0
  39. package/dist/leaves-client/leavesClient.js +78 -154
  40. package/dist/leaves-client/leavesClient.js.map +1 -0
  41. package/dist/leaves-client/types.d.ts +1 -0
  42. package/dist/leaves-client/types.d.ts.map +1 -0
  43. package/dist/leaves-client/types.js +3 -1
  44. package/dist/leaves-client/types.js.map +1 -0
  45. package/dist/tsconfig.tsbuildinfo +1 -1
  46. package/package.json +1 -2
@@ -1,3 +1,24 @@
1
- import getLeavesClient from './leavesClient';
2
- export { getLeavesClient };
3
- export * from './constants';
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"}
@@ -14,3 +14,4 @@ export interface ILeavesClient extends IBaseClient {
14
14
  getPageProps(path: string, basePath?: string): Promise<GetPagePropsReturnType>;
15
15
  getPaths(): Promise<string[]>;
16
16
  }
17
+ //# 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,EAAE,cAAc,EAAE,WAAW,EAAE,gBAAgB,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAE5F,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,sBAAsB,EAAE,MAAM,SAAS,CAAC;AAEjD,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,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,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,sBAAsB,CAAC,CAAC;IAE/E,QAAQ,IAAI,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;CAC/B"}
@@ -1 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=interfaces.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../src/leaves-client/interfaces.ts"],"names":[],"mappings":""}
@@ -5,3 +5,4 @@ export declare const getLeavesClient: (subdomain: string, isPasswordProtected?:
5
5
  } | undefined;
6
6
  }) => ILeavesClient;
7
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":"AAqBA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAoH7C,eAAO,MAAM,eAAe,cACf,MAAM;;;;MAIhB,aAAgF,CAAC;AAEpF,eAAe,eAAe,CAAC"}
@@ -1,169 +1,93 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- var __assign = (this && this.__assign) || function () {
17
- __assign = Object.assign || function(t) {
18
- for (var s, i = 1, n = arguments.length; i < n; i++) {
19
- s = arguments[i];
20
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
21
- t[p] = s[p];
22
- }
23
- return t;
24
- };
25
- return __assign.apply(this, arguments);
26
- };
27
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
28
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
29
- return new (P || (P = Promise))(function (resolve, reject) {
30
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
31
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
32
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
33
- step((generator = generator.apply(thisArg, _arguments || [])).next());
34
- });
35
- };
36
- var __generator = (this && this.__generator) || function (thisArg, body) {
37
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
38
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
39
- function verb(n) { return function (v) { return step([n, v]); }; }
40
- function step(op) {
41
- if (f) throw new TypeError("Generator is already executing.");
42
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
43
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
44
- if (y = 0, t) op = [op[0] & 2, t.value];
45
- switch (op[0]) {
46
- case 0: case 1: t = op; break;
47
- case 4: _.label++; return { value: op[1], done: false };
48
- case 5: _.label++; y = op[1]; op = [0]; continue;
49
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
50
- default:
51
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
52
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
53
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
54
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
55
- if (t[2]) _.ops.pop();
56
- _.trys.pop(); continue;
57
- }
58
- op = body.call(thisArg, _);
59
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
60
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
61
- }
62
- };
63
- import { BaseClient } from '../client';
64
- import { handleAccess } from '../client/clientError';
65
- import { ENDPOINT, HEADERS, HIDDEN_PAGES_ROUTE, HOSTING_LOCATION_ROUTE, IS_PASSWORD_PROTECTED, NAVIGATION_ROUTE, PATHS_ROUTE, SUBDOMAIN, } from './constants';
66
- var LeavesClient = /** @class */ (function (_super) {
67
- __extends(LeavesClient, _super);
68
- function LeavesClient(subdomain, isPasswordProtected, host, reqInit) {
69
- if (reqInit === void 0) { reqInit = undefined; }
70
- var _this = _super.call(this, host, reqInit) || this;
71
- _this.isPasswordProtected = isPasswordProtected;
72
- _this.subdomain = SUBDOMAIN !== null && SUBDOMAIN !== void 0 ? SUBDOMAIN : subdomain;
73
- var isAccessDenied = SUBDOMAIN !== subdomain && _this.isPasswordProtected;
74
- handleAccess.bind(_this)(!isAccessDenied);
75
- return _this;
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);
76
14
  }
77
- LeavesClient.prototype.getDeployment = function () {
15
+ getDeployment() {
78
16
  return this.entity("deployment" /* ENTITY_TYPE.DEPLOYMENT */);
79
- };
80
- LeavesClient.prototype.getNavigation = function () {
81
- var path = this.getPath(NAVIGATION_ROUTE, this.subdomain);
17
+ }
18
+ getNavigation() {
19
+ const path = this.getPath(constants_1.NAVIGATION_ROUTE, this.subdomain);
82
20
  return this.json(path);
83
- };
84
- LeavesClient.prototype.getSnippets = function () {
21
+ }
22
+ getSnippets() {
85
23
  return this.entity("snippet" /* ENTITY_TYPE.SNIPPET */);
86
- };
87
- LeavesClient.prototype.getPage = function (path, basePath) {
88
- var fields = [];
89
- for (var _i = 2; _i < arguments.length; _i++) {
90
- fields[_i - 2] = arguments[_i];
91
- }
92
- return this.entity("page" /* ENTITY_TYPE.PAGE */, __assign(__assign({ path: path }, this.getFields(fields)), (basePath ? { basePath: basePath } : {})));
93
- };
94
- LeavesClient.prototype.getPages = function (basePath) {
95
- var fields = [];
96
- for (var _i = 1; _i < arguments.length; _i++) {
97
- fields[_i - 1] = arguments[_i];
98
- }
99
- var route = this.getRoute("page" /* ENTITY_TYPE.PAGE */);
100
- var path = this.getPath(route, this.subdomain, 'list');
101
- return this.json(path, __assign(__assign({}, this.getFields(fields)), (basePath ? { basePath: basePath } : {})));
102
- };
103
- LeavesClient.prototype.getHiddenPages = function () {
104
- var route = this.getRoute("page" /* ENTITY_TYPE.PAGE */);
105
- var path = this.getPath(route, this.subdomain, HIDDEN_PAGES_ROUTE);
24
+ }
25
+ getPage(path, basePath, ...fields) {
26
+ return this.entity("page" /* ENTITY_TYPE.PAGE */, {
27
+ path,
28
+ ...this.getFields(fields),
29
+ ...(basePath ? { basePath } : {}),
30
+ });
31
+ }
32
+ getPages(basePath, ...fields) {
33
+ const route = this.getRoute("page" /* ENTITY_TYPE.PAGE */);
34
+ const path = this.getPath(route, this.subdomain, 'list');
35
+ return this.json(path, {
36
+ ...this.getFields(fields),
37
+ ...(basePath ? { basePath } : {}),
38
+ });
39
+ }
40
+ getHiddenPages() {
41
+ const route = this.getRoute("page" /* ENTITY_TYPE.PAGE */);
42
+ const path = this.getPath(route, this.subdomain, constants_1.HIDDEN_PAGES_ROUTE);
106
43
  return this.json(path);
107
- };
108
- LeavesClient.prototype.getPaths = function () {
109
- var route = this.getRoute("page" /* ENTITY_TYPE.PAGE */);
110
- var path = this.getPath(route, this.subdomain, PATHS_ROUTE);
44
+ }
45
+ getPaths() {
46
+ const route = this.getRoute("page" /* ENTITY_TYPE.PAGE */);
47
+ const path = this.getPath(route, this.subdomain, constants_1.PATHS_ROUTE);
111
48
  return this.json(path);
112
- };
113
- LeavesClient.prototype.getHostingLocation = function () {
114
- var route = this.getRoute("deployment" /* ENTITY_TYPE.DEPLOYMENT */);
115
- var path = this.getPath(route, this.subdomain, HOSTING_LOCATION_ROUTE);
49
+ }
50
+ getHostingLocation() {
51
+ const route = this.getRoute("deployment" /* ENTITY_TYPE.DEPLOYMENT */);
52
+ const path = this.getPath(route, this.subdomain, constants_1.HOSTING_LOCATION_ROUTE);
116
53
  return this.text(path);
117
- };
118
- LeavesClient.prototype.getPageProps = function (path, basePath) {
119
- var _a;
120
- return __awaiter(this, void 0, void 0, function () {
121
- var promises, _b, deployment, page, isProtectedEqual;
122
- return __generator(this, function (_c) {
123
- switch (_c.label) {
124
- case 0:
125
- promises = [
126
- this.getDeployment(),
127
- this.getPage(path, basePath),
128
- ];
129
- return [4 /*yield*/, Promise.all(promises)];
130
- case 1:
131
- _b = _c.sent(), deployment = _b[0], page = _b[1];
132
- isProtectedEqual = this.isPasswordProtected === ((_a = deployment.isPasswordProtected) !== null && _a !== void 0 ? _a : false);
133
- handleAccess.bind(this)(isProtectedEqual);
134
- return [2 /*return*/, {
135
- data: __assign(__assign({}, deployment), page),
136
- status: 200,
137
- }];
138
- }
139
- });
140
- });
141
- };
142
- LeavesClient.prototype.getRoute = function (type) {
54
+ }
55
+ async getPageProps(path, basePath) {
56
+ const promises = [
57
+ this.getDeployment(),
58
+ this.getPage(path, basePath),
59
+ ];
60
+ const [deployment, page] = await Promise.all(promises);
61
+ const isProtectedEqual = this.isPasswordProtected === (deployment.isPasswordProtected ?? false);
62
+ clientError_1.handleAccess.bind(this)(isProtectedEqual);
63
+ return {
64
+ data: {
65
+ ...deployment,
66
+ ...page,
67
+ },
68
+ status: 200,
69
+ };
70
+ }
71
+ getRoute(type) {
143
72
  switch (type) {
144
73
  case "deployment" /* ENTITY_TYPE.DEPLOYMENT */:
145
74
  case "snippet" /* ENTITY_TYPE.SNIPPET */:
146
75
  case "page" /* ENTITY_TYPE.PAGE */:
147
76
  return type.toLowerCase();
148
77
  default:
149
- throw new Error("ENTITY_TYPE: ".concat(type, " is not supported."));
78
+ throw new Error(`ENTITY_TYPE: ${type} is not supported.`);
150
79
  }
151
- };
152
- LeavesClient.prototype.entity = function (type, query, init) {
153
- var route = this.getRoute(type);
154
- var path = this.getPath(route, this.subdomain);
80
+ }
81
+ entity(type, query, init) {
82
+ const route = this.getRoute(type);
83
+ const path = this.getPath(route, this.subdomain);
155
84
  return this.json(path, query, init);
156
- };
157
- LeavesClient.prototype.getFields = function (fields) {
158
- var _a;
159
- return ((_a = fields === null || fields === void 0 ? void 0 : fields.length) !== null && _a !== void 0 ? _a : 0) > 0 ? { fields: JSON.stringify(fields) } : {};
160
- };
161
- return LeavesClient;
162
- }(BaseClient));
163
- export var getLeavesClient = function (subdomain, isPasswordProtected, host, reqInit) {
164
- if (isPasswordProtected === void 0) { isPasswordProtected = IS_PASSWORD_PROTECTED; }
165
- if (host === void 0) { host = ENDPOINT; }
166
- if (reqInit === void 0) { reqInit = { headers: HEADERS }; }
167
- return new LeavesClient(subdomain, isPasswordProtected, host, reqInit);
168
- };
169
- export default getLeavesClient;
85
+ }
86
+ getFields(fields) {
87
+ return (fields?.length ?? 0) > 0 ? { fields: JSON.stringify(fields) } : {};
88
+ }
89
+ }
90
+ const getLeavesClient = (subdomain, isPasswordProtected = constants_1.IS_PASSWORD_PROTECTED, host = constants_1.ENDPOINT, reqInit = { headers: constants_1.HEADERS }) => new LeavesClient(subdomain, isPasswordProtected, host, reqInit);
91
+ exports.getLeavesClient = getLeavesClient;
92
+ exports.default = exports.getLeavesClient;
93
+ //# sourceMappingURL=leavesClient.js.map
@@ -0,0 +1 @@
1
+ {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mBAAO,EAAE,EACf,EAAE,CAAC,IAAI,YAAY,CAAC,SAAS,EAAE,mBAAmB,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;AALvE,QAAA,eAAe,mBAKwD;AAEpF,kBAAe,uBAAe,CAAC"}
@@ -9,3 +9,4 @@ export type GetPagePropsReturnType = {
9
9
  data?: PagePropsResponseType;
10
10
  status: number;
11
11
  };
12
+ //# 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;AAEJ,MAAM,MAAM,sBAAsB,GAAG;IACnC,IAAI,CAAC,EAAE,qBAAqB,CAAC;IAC7B,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC"}
@@ -1 +1,3 @@
1
- export {};
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/leaves-client/types.ts"],"names":[],"mappings":""}