@antlur/backstage 1.0.5 → 1.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/dist/client.js +14 -6
- package/dist/config.js +7 -2
- package/dist/constants/google-events.js +5 -2
- package/dist/endpoints/alerts.js +7 -3
- package/dist/endpoints/events.js +13 -7
- package/dist/endpoints/locations.js +10 -5
- package/dist/endpoints/menus.js +13 -7
- package/dist/endpoints/navigation.js +13 -7
- package/dist/endpoints/pages.js +16 -9
- package/dist/endpoints/press.js +7 -3
- package/dist/endpoints/website.js +7 -3
- package/dist/index.js +31 -11
- package/dist/types/alert.js +2 -1
- package/dist/types/api.js +2 -1
- package/dist/types/event.js +2 -0
- package/dist/types/index.js +29 -13
- package/dist/types/location.js +2 -0
- package/dist/types/media-item.js +2 -1
- package/dist/types/menu-category-item.js +2 -1
- package/dist/types/menu-category.js +2 -1
- package/dist/types/menu-item.js +2 -1
- package/dist/types/menu.js +2 -0
- package/dist/types/navigation.js +2 -1
- package/dist/types/page.js +2 -1
- package/dist/types/press.js +2 -1
- package/dist/types/website.js +2 -0
- package/package.json +3 -3
- package/dist/types/Event.js +0 -1
- package/dist/types/Location.js +0 -1
- package/dist/types/MediaItem.d.ts +0 -10
- package/dist/types/MediaItem.js +0 -1
- package/dist/types/Menu.js +0 -1
- package/dist/types/MenuCategory.d.ts +0 -14
- package/dist/types/MenuCategory.js +0 -1
- package/dist/types/MenuCategoryItem.d.ts +0 -17
- package/dist/types/MenuCategoryItem.js +0 -1
- package/dist/types/MenuItem.d.ts +0 -15
- package/dist/types/MenuItem.js +0 -1
- package/dist/types/Website.js +0 -1
- /package/dist/types/{Event.d.ts → event.d.ts} +0 -0
- /package/dist/types/{Location.d.ts → location.d.ts} +0 -0
- /package/dist/types/{Menu.d.ts → menu.d.ts} +0 -0
- /package/dist/types/{Website.d.ts → website.d.ts} +0 -0
package/dist/client.js
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.client = exports.BackstageClient = void 0;
|
|
7
|
+
const axios_1 = __importDefault(require("axios"));
|
|
8
|
+
const config_1 = require("./config");
|
|
9
|
+
class BackstageClient {
|
|
4
10
|
constructor(config) {
|
|
5
11
|
// If no config is passed, try to get from the global config
|
|
6
|
-
const globalConfig = getGlobalConfig();
|
|
12
|
+
const globalConfig = (0, config_1.getGlobalConfig)();
|
|
7
13
|
const finalConfig = config || globalConfig;
|
|
8
14
|
if (!finalConfig) {
|
|
9
15
|
throw new Error("No Backstage config found. Please call defineConfig() or pass config to BackstageClient.");
|
|
@@ -16,7 +22,7 @@ export class BackstageClient {
|
|
|
16
22
|
throw new Error("No accountId found in the Backstage config. Please provide an accountId.");
|
|
17
23
|
}
|
|
18
24
|
const { baseURL, token, onError } = finalConfig;
|
|
19
|
-
this.instance =
|
|
25
|
+
this.instance = axios_1.default.create({
|
|
20
26
|
baseURL,
|
|
21
27
|
headers: {
|
|
22
28
|
Authorization: `Bearer ${token}`,
|
|
@@ -73,6 +79,8 @@ export class BackstageClient {
|
|
|
73
79
|
return this.instance;
|
|
74
80
|
}
|
|
75
81
|
}
|
|
76
|
-
|
|
82
|
+
exports.BackstageClient = BackstageClient;
|
|
83
|
+
const client = function (config) {
|
|
77
84
|
return new BackstageClient(config);
|
|
78
85
|
};
|
|
86
|
+
exports.client = client;
|
package/dist/config.js
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getGlobalConfig = exports.defineConfig = void 0;
|
|
1
4
|
const ROOT = process.cwd();
|
|
2
5
|
const CONFIG_PATH = process.env.BACKSTAGE_CONFIG_PATH || "./backstage.config";
|
|
3
6
|
const DEFAULT_BASE_URL = "https://bckstg.app/api";
|
|
@@ -6,14 +9,16 @@ let globalConfig = {
|
|
|
6
9
|
token: process.env.BACKSTAGE_API_KEY ?? undefined,
|
|
7
10
|
accountId: process.env.BACKSTAGE_ACCOUNT_ID ?? undefined,
|
|
8
11
|
};
|
|
9
|
-
|
|
12
|
+
function defineConfig(config) {
|
|
10
13
|
globalConfig = {
|
|
11
14
|
...globalConfig,
|
|
12
15
|
...config,
|
|
13
16
|
};
|
|
14
17
|
return globalConfig;
|
|
15
18
|
}
|
|
16
|
-
|
|
19
|
+
exports.defineConfig = defineConfig;
|
|
20
|
+
function getGlobalConfig() {
|
|
17
21
|
// read the config from the project root
|
|
18
22
|
return globalConfig;
|
|
19
23
|
}
|
|
24
|
+
exports.getGlobalConfig = getGlobalConfig;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GALocations = exports.GAEvents = void 0;
|
|
4
|
+
exports.GAEvents = {
|
|
2
5
|
CLICK_TO_MAP: "click_to_map",
|
|
3
6
|
CLICK_TO_CALL: "click_to_call",
|
|
4
7
|
CLICK_TO_SOCIAL: "click_to_social",
|
|
@@ -6,7 +9,7 @@ export const GAEvents = {
|
|
|
6
9
|
FIND_LOCATION: "find_location",
|
|
7
10
|
CLICK_TO_ORDER: "click_to_order",
|
|
8
11
|
};
|
|
9
|
-
|
|
12
|
+
exports.GALocations = {
|
|
10
13
|
LOCATION_CARD: "location_card",
|
|
11
14
|
TOPBAR: "topbar",
|
|
12
15
|
};
|
package/dist/endpoints/alerts.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAlerts = void 0;
|
|
4
|
+
const client_1 = require("../client");
|
|
5
|
+
async function getAlerts() {
|
|
6
|
+
const { data } = await (0, client_1.client)().get("/alerts");
|
|
4
7
|
return data;
|
|
5
8
|
}
|
|
9
|
+
exports.getAlerts = getAlerts;
|
package/dist/endpoints/events.js
CHANGED
|
@@ -1,16 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getEventBySlug = exports.getEvent = exports.getEvents = void 0;
|
|
4
|
+
const client_1 = require("../client");
|
|
5
|
+
async function getEvents() {
|
|
6
|
+
const res = await (0, client_1.client)().get("/events");
|
|
4
7
|
const pages = res.data;
|
|
5
8
|
return pages;
|
|
6
9
|
}
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
exports.getEvents = getEvents;
|
|
11
|
+
async function getEvent(id) {
|
|
12
|
+
const res = await (0, client_1.client)().get("/events" + "?filter[id]=" + id);
|
|
9
13
|
const pages = res.data?.[0];
|
|
10
14
|
return pages;
|
|
11
15
|
}
|
|
12
|
-
|
|
13
|
-
|
|
16
|
+
exports.getEvent = getEvent;
|
|
17
|
+
async function getEventBySlug(slug) {
|
|
18
|
+
const res = await (0, client_1.client)().get("/events" + "?filter[slug]=" + slug);
|
|
14
19
|
const pages = res.data?.[0];
|
|
15
20
|
return pages;
|
|
16
21
|
}
|
|
22
|
+
exports.getEventBySlug = getEventBySlug;
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getLocationBySlug = exports.getLocations = void 0;
|
|
4
|
+
const client_1 = require("../client");
|
|
5
|
+
async function getLocations() {
|
|
6
|
+
const res = await (0, client_1.client)().get("/locations");
|
|
4
7
|
let locations = res.data;
|
|
5
8
|
locations = locations.sort((a, b) => {
|
|
6
9
|
if (a.name < b.name) {
|
|
@@ -10,11 +13,13 @@ export async function getLocations() {
|
|
|
10
13
|
});
|
|
11
14
|
return locations;
|
|
12
15
|
}
|
|
13
|
-
|
|
14
|
-
|
|
16
|
+
exports.getLocations = getLocations;
|
|
17
|
+
async function getLocationBySlug(slug) {
|
|
18
|
+
const res = await (0, client_1.client)().get(`/locations?filter[slug]=${slug}`);
|
|
15
19
|
const data = res.data;
|
|
16
20
|
if (Array.isArray(data) && data.length > 0) {
|
|
17
21
|
return data[0];
|
|
18
22
|
}
|
|
19
23
|
return data;
|
|
20
24
|
}
|
|
25
|
+
exports.getLocationBySlug = getLocationBySlug;
|
package/dist/endpoints/menus.js
CHANGED
|
@@ -1,22 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getMenuBySlug = exports.getMenu = exports.getMenus = void 0;
|
|
4
|
+
const client_1 = require("../client");
|
|
5
|
+
async function getMenus() {
|
|
6
|
+
const res = await (0, client_1.client)().get("/menus");
|
|
4
7
|
const menus = res.data;
|
|
5
8
|
return menus;
|
|
6
9
|
}
|
|
7
|
-
|
|
8
|
-
|
|
10
|
+
exports.getMenus = getMenus;
|
|
11
|
+
async function getMenu(id) {
|
|
12
|
+
const res = await (0, client_1.client)().get(`/menus?filter[id]=${id}&include=categories.items`);
|
|
9
13
|
const data = res.data;
|
|
10
14
|
if (Array.isArray(data) && data.length > 0) {
|
|
11
15
|
return data[0];
|
|
12
16
|
}
|
|
13
17
|
return data;
|
|
14
18
|
}
|
|
15
|
-
|
|
16
|
-
|
|
19
|
+
exports.getMenu = getMenu;
|
|
20
|
+
async function getMenuBySlug(slug) {
|
|
21
|
+
const res = await (0, client_1.client)().get(`/menus?filter[slug]=${slug}&include=categories.items`);
|
|
17
22
|
const data = res.data;
|
|
18
23
|
if (Array.isArray(data) && data.length > 0) {
|
|
19
24
|
return data[0];
|
|
20
25
|
}
|
|
21
26
|
return data;
|
|
22
27
|
}
|
|
28
|
+
exports.getMenuBySlug = getMenuBySlug;
|
|
@@ -1,18 +1,23 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getNavigation = exports.getNavigations = exports.getDefaultNavigation = void 0;
|
|
4
|
+
const client_1 = require("../client");
|
|
5
|
+
async function getDefaultNavigation() {
|
|
3
6
|
const navigations = await getNavigations();
|
|
4
7
|
return navigations[0];
|
|
5
8
|
}
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
exports.getDefaultNavigation = getDefaultNavigation;
|
|
10
|
+
async function getNavigations() {
|
|
11
|
+
const res = await (0, client_1.client)().get("/navigations");
|
|
8
12
|
const navigations = res.data;
|
|
9
13
|
return Promise.all(navigations.map(async (navigation) => {
|
|
10
|
-
const res = await client().get("/navigations/" + navigation.id);
|
|
14
|
+
const res = await (0, client_1.client)().get("/navigations/" + navigation.id);
|
|
11
15
|
return res.data[0];
|
|
12
16
|
}));
|
|
13
17
|
}
|
|
14
|
-
|
|
15
|
-
|
|
18
|
+
exports.getNavigations = getNavigations;
|
|
19
|
+
async function getNavigation(id) {
|
|
20
|
+
const res = await (0, client_1.client)().get(`/navigations/${id}`);
|
|
16
21
|
const navigation = res.data;
|
|
17
22
|
const topLevelItems = navigation.items.filter((item) => item.parent_id === null);
|
|
18
23
|
topLevelItems.forEach((item) => {
|
|
@@ -21,3 +26,4 @@ export async function getNavigation(id) {
|
|
|
21
26
|
navigation.items = topLevelItems;
|
|
22
27
|
return navigation;
|
|
23
28
|
}
|
|
29
|
+
exports.getNavigation = getNavigation;
|
package/dist/endpoints/pages.js
CHANGED
|
@@ -1,17 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPageBySlug = exports.getHomePage = exports.getPages = exports.getPage = void 0;
|
|
4
|
+
const client_1 = require("../client");
|
|
5
|
+
async function getPage(slug) {
|
|
6
|
+
const res = await (0, client_1.client)().get(`/pages/?filter[slug]=${slug}`);
|
|
4
7
|
return res.data[0];
|
|
5
8
|
}
|
|
6
|
-
|
|
7
|
-
|
|
9
|
+
exports.getPage = getPage;
|
|
10
|
+
async function getPages() {
|
|
11
|
+
const { data } = await (0, client_1.client)().get("/pages");
|
|
8
12
|
return data;
|
|
9
13
|
}
|
|
10
|
-
|
|
11
|
-
|
|
14
|
+
exports.getPages = getPages;
|
|
15
|
+
async function getHomePage() {
|
|
16
|
+
const res = await (0, client_1.client)().get("/pages?filter[slug]=/");
|
|
12
17
|
return res.data[0];
|
|
13
18
|
}
|
|
14
|
-
|
|
15
|
-
|
|
19
|
+
exports.getHomePage = getHomePage;
|
|
20
|
+
async function getPageBySlug(slug) {
|
|
21
|
+
const res = await (0, client_1.client)().get("/pages?filter[slug]=" + slug);
|
|
16
22
|
return res.data[0];
|
|
17
23
|
}
|
|
24
|
+
exports.getPageBySlug = getPageBySlug;
|
package/dist/endpoints/press.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPress = void 0;
|
|
4
|
+
const client_1 = require("../client");
|
|
5
|
+
async function getPress() {
|
|
6
|
+
const { data } = await (0, client_1.client)().get("/press");
|
|
4
7
|
return data;
|
|
5
8
|
}
|
|
9
|
+
exports.getPress = getPress;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getWebsite = void 0;
|
|
4
|
+
const client_1 = require("../client");
|
|
5
|
+
async function getWebsite() {
|
|
6
|
+
const res = await (0, client_1.client)().get("/websites");
|
|
4
7
|
return res.data[0];
|
|
5
8
|
}
|
|
9
|
+
exports.getWebsite = getWebsite;
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,35 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.BackstageClient = exports.getGlobalConfig = exports.defineConfig = void 0;
|
|
1
18
|
// Re-export config
|
|
2
|
-
|
|
19
|
+
var config_1 = require("./config");
|
|
20
|
+
Object.defineProperty(exports, "defineConfig", { enumerable: true, get: function () { return config_1.defineConfig; } });
|
|
21
|
+
Object.defineProperty(exports, "getGlobalConfig", { enumerable: true, get: function () { return config_1.getGlobalConfig; } });
|
|
3
22
|
// Re-export the client class
|
|
4
|
-
|
|
23
|
+
var client_1 = require("./client");
|
|
24
|
+
Object.defineProperty(exports, "BackstageClient", { enumerable: true, get: function () { return client_1.BackstageClient; } });
|
|
5
25
|
// Re-export endpoints
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
26
|
+
__exportStar(require("./endpoints/alerts"), exports);
|
|
27
|
+
__exportStar(require("./endpoints/events"), exports);
|
|
28
|
+
__exportStar(require("./endpoints/locations"), exports);
|
|
29
|
+
__exportStar(require("./endpoints/menus"), exports);
|
|
30
|
+
__exportStar(require("./endpoints/navigation"), exports);
|
|
31
|
+
__exportStar(require("./endpoints/pages"), exports);
|
|
32
|
+
__exportStar(require("./endpoints/press"), exports);
|
|
33
|
+
__exportStar(require("./endpoints/website"), exports);
|
|
14
34
|
// Re-export domain types
|
|
15
|
-
|
|
35
|
+
__exportStar(require("./types"), exports);
|
package/dist/types/alert.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/types/api.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/types/index.js
CHANGED
|
@@ -1,13 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./alert"), exports);
|
|
18
|
+
__exportStar(require("./api"), exports);
|
|
19
|
+
__exportStar(require("./event"), exports);
|
|
20
|
+
__exportStar(require("./location"), exports);
|
|
21
|
+
__exportStar(require("./media-item"), exports);
|
|
22
|
+
__exportStar(require("./menu-category-item"), exports);
|
|
23
|
+
__exportStar(require("./menu-category"), exports);
|
|
24
|
+
__exportStar(require("./menu-item"), exports);
|
|
25
|
+
__exportStar(require("./menu"), exports);
|
|
26
|
+
__exportStar(require("./navigation"), exports);
|
|
27
|
+
__exportStar(require("./page"), exports);
|
|
28
|
+
__exportStar(require("./press"), exports);
|
|
29
|
+
__exportStar(require("./website"), exports);
|
package/dist/types/media-item.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/types/menu-item.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/types/navigation.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/types/page.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/dist/types/press.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@antlur/backstage",
|
|
3
3
|
"author": "Anthony Holmes",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.7",
|
|
5
5
|
"description": "A simple client for Backstage CMS",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
|
+
"type": "module",
|
|
8
9
|
"scripts": {
|
|
9
10
|
"build": "tsc",
|
|
10
11
|
"watch": "tsc -w",
|
|
11
12
|
"test": "echo \"No tests yet\" && exit 0",
|
|
12
|
-
"
|
|
13
|
-
"prepublishOnly": "npm test",
|
|
13
|
+
"prepublishOnly": "npm run build && npm test",
|
|
14
14
|
"lint": "tsc --noEmit",
|
|
15
15
|
"clean": "rm -rf dist"
|
|
16
16
|
},
|
package/dist/types/Event.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/Location.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/MediaItem.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/Menu.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import MenuCategoryItem from "./MenuCategoryItem";
|
|
2
|
-
export default interface MenuCategory {
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
subtitle: string | null;
|
|
6
|
-
description: string | null;
|
|
7
|
-
after_description: string | null;
|
|
8
|
-
column_count: number | null;
|
|
9
|
-
menu_id: string;
|
|
10
|
-
order: number;
|
|
11
|
-
created_at: string;
|
|
12
|
-
updated_at: string;
|
|
13
|
-
items: MenuCategoryItem[];
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import MenuItem from "./MenuItem";
|
|
2
|
-
export interface MenuCategoryItem {
|
|
3
|
-
id: string;
|
|
4
|
-
menu_category_id: string;
|
|
5
|
-
menu_item_id: string;
|
|
6
|
-
title: string;
|
|
7
|
-
post_title: string | null;
|
|
8
|
-
subtitle: string | null;
|
|
9
|
-
description: string | null;
|
|
10
|
-
price: number | null;
|
|
11
|
-
order: number;
|
|
12
|
-
price2: number | null;
|
|
13
|
-
image_id: string | null;
|
|
14
|
-
created_at: string;
|
|
15
|
-
updated_at: string;
|
|
16
|
-
menu_item: MenuItem;
|
|
17
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/MenuItem.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export default interface MenuItem {
|
|
2
|
-
id: string;
|
|
3
|
-
account_id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
post_title: string | null;
|
|
6
|
-
subtitle: string | null;
|
|
7
|
-
description: string | null;
|
|
8
|
-
price: number | null;
|
|
9
|
-
price2: number | null;
|
|
10
|
-
image_id: string | null;
|
|
11
|
-
type: string | null;
|
|
12
|
-
overrides: string | null;
|
|
13
|
-
created_at: string;
|
|
14
|
-
updated_at: string;
|
|
15
|
-
}
|
package/dist/types/MenuItem.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
package/dist/types/Website.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|