Skip to content

Commit 80a39a4

Browse files
committed
Add functions for Resource Bundles and Translations
1 parent e33b55c commit 80a39a4

25 files changed

+1290
-131
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Bloomreach Content Management APIs
22

3-
Bloomreach Content Management APIs provides a collection of functions for interacting with the [Bloomreach Content Management APIs]()
3+
This library provides a collection of functions for interacting with the [Bloomreach Content Management APIs](https://documentation.bloomreach.com/content/reference/management-apis)
44
for JavaScript-based applications.
55

66
## Get Started
@@ -32,7 +32,7 @@ The following code snippet demonstrates how to copy a component from one environ
3232
import { getComponent, putComponent } from 'bloomreach-content-management-apis';
3333

3434
const compontentGroup = 'brx-reference-spa';
35-
const componentName = 'Reference SPA Content';
35+
const componentName = 'referencespa-content';
3636

3737
// Source environment variables
3838
const sourceEnvironment = 'test-customer';

docs/assets/highlight.css

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,16 @@
55
--dark-hl-1: #D4D4D4;
66
--light-hl-2: #001080;
77
--dark-hl-2: #9CDCFE;
8-
--light-hl-3: #A31515;
9-
--dark-hl-3: #CE9178;
10-
--light-hl-4: #0000FF;
11-
--dark-hl-4: #569CD6;
8+
--light-hl-3: #0000FF;
9+
--dark-hl-3: #569CD6;
10+
--light-hl-4: #A31515;
11+
--dark-hl-4: #CE9178;
12+
--light-hl-5: #0070C1;
13+
--dark-hl-5: #4FC1FF;
14+
--light-hl-6: #AF00DB;
15+
--dark-hl-6: #C586C0;
16+
--light-hl-7: #008000;
17+
--dark-hl-7: #6A9955;
1218
--light-code-background: #F5F5F5;
1319
--dark-code-background: #1E1E1E;
1420
}
@@ -19,6 +25,9 @@
1925
--hl-2: var(--light-hl-2);
2026
--hl-3: var(--light-hl-3);
2127
--hl-4: var(--light-hl-4);
28+
--hl-5: var(--light-hl-5);
29+
--hl-6: var(--light-hl-6);
30+
--hl-7: var(--light-hl-7);
2231
--code-background: var(--light-code-background);
2332
} }
2433

@@ -28,6 +37,9 @@
2837
--hl-2: var(--dark-hl-2);
2938
--hl-3: var(--dark-hl-3);
3039
--hl-4: var(--dark-hl-4);
40+
--hl-5: var(--dark-hl-5);
41+
--hl-6: var(--dark-hl-6);
42+
--hl-7: var(--dark-hl-7);
3143
--code-background: var(--dark-code-background);
3244
} }
3345

@@ -37,6 +49,9 @@ body.light {
3749
--hl-2: var(--light-hl-2);
3850
--hl-3: var(--light-hl-3);
3951
--hl-4: var(--light-hl-4);
52+
--hl-5: var(--light-hl-5);
53+
--hl-6: var(--light-hl-6);
54+
--hl-7: var(--light-hl-7);
4055
--code-background: var(--light-code-background);
4156
}
4257

@@ -46,6 +61,9 @@ body.dark {
4661
--hl-2: var(--dark-hl-2);
4762
--hl-3: var(--dark-hl-3);
4863
--hl-4: var(--dark-hl-4);
64+
--hl-5: var(--dark-hl-5);
65+
--hl-6: var(--dark-hl-6);
66+
--hl-7: var(--dark-hl-7);
4967
--code-background: var(--dark-code-background);
5068
}
5169

@@ -54,4 +72,7 @@ body.dark {
5472
.hl-2 { color: var(--hl-2); }
5573
.hl-3 { color: var(--hl-3); }
5674
.hl-4 { color: var(--hl-4); }
75+
.hl-5 { color: var(--hl-5); }
76+
.hl-6 { color: var(--hl-6); }
77+
.hl-7 { color: var(--hl-7); }
5778
pre, code { background: var(--code-background); }

docs/assets/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 38 additions & 4 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Container | bloomreach-content-management-apis - v1.0.4</title><meta name="description" content="Documentation for bloomreach-content-management-apis - v1.0.4"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">bloomreach-content-management-apis - v1.0.4</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">bloomreach-content-management-apis - v1.0.4</a></li><li><a href="../modules/Internals.html">Internals</a></li><li><a href="Internals.Container.html">Container</a></li></ul><h1>Interface Container </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">Container</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Container.html#components" class="tsd-kind-icon">components</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Container.html#path" class="tsd-kind-icon">path</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="components" class="tsd-anchor"></a><h3 class="tsd-anchor-link">components<a href="#components" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">components<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span><span class="tsd-signature-symbol">[]</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="path" class="tsd-anchor"></a><h3 class="tsd-anchor-link">path<a href="#path" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">path<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Modules</a></li><li class="current tsd-kind-module"><a href="../modules/Internals.html">Internals</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface tsd-parent-kind-module"><a href="Internals.Container.html" class="tsd-kind-icon">Container</a><ul><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Container.html#components" class="tsd-kind-icon">components</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Container.html#path" class="tsd-kind-icon">path</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<!DOCTYPE html><html class="default"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>Page | bloomreach-content-management-apis - v1.0.4</title><meta name="description" content="Documentation for bloomreach-content-management-apis - v1.0.4"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><script async src="../assets/search.js" id="search-script"></script></head><body><script>document.body.classList.add(localStorage.getItem("tsd-theme") || "os")</script><header><div class="tsd-page-toolbar"><div class="container"><div class="table-wrap"><div class="table-cell" id="tsd-search" data-base=".."><div class="field"><label for="tsd-search-field" class="tsd-widget search no-caption">Search</label><input type="text" id="tsd-search-field"/></div><ul class="results"><li class="state loading">Preparing search index...</li><li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">bloomreach-content-management-apis - v1.0.4</a></div><div class="table-cell" id="tsd-widgets"><div id="tsd-filter"><a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a><div class="tsd-filter-group"><div class="tsd-select" id="tsd-filter-visibility"><span class="tsd-select-label">All</span><ul class="tsd-select-list"><li data-value="public">Public</li><li data-value="protected">Public/Protected</li><li data-value="private" class="selected">All</li></ul></div> <input type="checkbox" id="tsd-filter-inherited" checked/><label class="tsd-widget" for="tsd-filter-inherited">Inherited</label></div></div><a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a></div></div></div></div><div class="tsd-page-title"><div class="container"><ul class="tsd-breadcrumb"><li><a href="../modules.html">bloomreach-content-management-apis - v1.0.4</a></li><li><a href="../modules/Internals.html">Internals</a></li><li><a href="Internals.Page.html">Page</a></li></ul><h1>Interface Page </h1></div></div></header><div class="container container-main"><div class="row"><div class="col-8 col-content"><section class="tsd-panel tsd-hierarchy"><h3>Hierarchy</h3><ul class="tsd-hierarchy"><li><span class="target">Page</span></li></ul></section><section class="tsd-panel-group tsd-index-group"><h2>Index</h2><section class="tsd-panel tsd-index-panel"><div class="tsd-index-content"><section class="tsd-index-section "><h3>Properties</h3><ul class="tsd-index-list"><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Page.html#containers" class="tsd-kind-icon">containers</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Page.html#displayName" class="tsd-kind-icon">display<wbr/>Name</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Page.html#document" class="tsd-kind-icon">document</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Page.html#layout" class="tsd-kind-icon">layout</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Page.html#name" class="tsd-kind-icon">name</a></li></ul></section></div></section></section><section class="tsd-panel-group tsd-member-group "><h2>Properties</h2><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="containers" class="tsd-anchor"></a><h3 class="tsd-anchor-link">containers<a href="#containers" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">containers<span class="tsd-signature-symbol">:</span> <a href="Internals.Container.html" class="tsd-signature-type" data-tsd-kind="Interface">Container</a><span class="tsd-signature-symbol">[]</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="displayName" class="tsd-anchor"></a><h3 class="tsd-anchor-link">display<wbr/>Name<a href="#displayName" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">display<wbr/>Name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="document" class="tsd-anchor"></a><h3 class="tsd-anchor-link">document<a href="#document" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">document<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">object</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="layout" class="tsd-anchor"></a><h3 class="tsd-anchor-link">layout<a href="#layout" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">layout<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section><section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface"><a id="name" class="tsd-anchor"></a><h3 class="tsd-anchor-link">name<a href="#name" aria-label="Permalink" class="tsd-anchor-icon"><svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-link" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"></path><path d="M10 14a3.5 3.5 0 0 0 5 0l4 -4a3.5 3.5 0 0 0 -5 -5l-.5 .5"></path><path d="M14 10a3.5 3.5 0 0 0 -5 0l-4 4a3.5 3.5 0 0 0 5 5l.5 -.5"></path></svg></a></h3><div class="tsd-signature tsd-kind-icon">name<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">string</span></div></section></section></div><div class="col-4 col-menu menu-sticky-wrap menu-highlight"><nav class="tsd-navigation primary"><ul><li class=""><a href="../modules.html">Modules</a></li><li class="current tsd-kind-module"><a href="../modules/Internals.html">Internals</a></li></ul></nav><nav class="tsd-navigation secondary menu-sticky"><ul><li class="current tsd-kind-interface tsd-parent-kind-module"><a href="Internals.Page.html" class="tsd-kind-icon">Page</a><ul><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Page.html#containers" class="tsd-kind-icon">containers</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Page.html#displayName" class="tsd-kind-icon">display<wbr/>Name</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Page.html#document" class="tsd-kind-icon">document</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Page.html#layout" class="tsd-kind-icon">layout</a></li><li class="tsd-kind-property tsd-parent-kind-interface"><a href="Internals.Page.html#name" class="tsd-kind-icon">name</a></li></ul></li></ul></nav></div></div></div><footer class=""><div class="container"><h2>Legend</h2><div class="tsd-legend-group"><ul class="tsd-legend"><li class="tsd-kind-interface"><span class="tsd-kind-icon">Interface</span></li><li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li></ul></div><h2>Settings</h2><p>Theme <select id="theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></p></div></footer><div class="overlay"></div><script src="../assets/main.js"></script></body></html>

0 commit comments

Comments
 (0)