@frontstackdev/cli 0.0.0-canary-20250210213726 → 0.0.0-canary-20250211180607
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.
|
@@ -177,7 +177,7 @@ const client = {
|
|
|
177
177
|
*/
|
|
178
178
|
contextList: async (
|
|
179
179
|
token?: ContextToken
|
|
180
|
-
): Promise<[
|
|
180
|
+
): Promise<[ContextOption[], ContextToken]> => {
|
|
181
181
|
let endpoint: string = `${servers[0].url}/context`;
|
|
182
182
|
|
|
183
183
|
const requestHeaders: Record<string, string> = {}
|
|
@@ -38,7 +38,7 @@ type RequestOptions = {
|
|
|
38
38
|
{{#if @first}}{{else}}
|
|
39
39
|
{{/if}}
|
|
40
40
|
/**
|
|
41
|
-
* @description {{description}}
|
|
41
|
+
* @description {{description}}
|
|
42
42
|
*/
|
|
43
43
|
{{@key}}{{#unless (stringInArray @key ../required)}}?{{/unless}}: {{{getSchemaType this}}};
|
|
44
44
|
{{/each}}
|
|
@@ -121,6 +121,25 @@ declare global {
|
|
|
121
121
|
export type ContextToken = string
|
|
122
122
|
|
|
123
123
|
export type Context = {
|
|
124
|
+
/**
|
|
125
|
+
* The region of the context - e.g. 'uk'
|
|
126
|
+
*/
|
|
127
|
+
region: string
|
|
128
|
+
/**
|
|
129
|
+
* The locale of the context - e.g. 'en-gb'
|
|
130
|
+
*/
|
|
131
|
+
locale: string
|
|
132
|
+
/**
|
|
133
|
+
* The scope of the context - e.g. 'b2c'
|
|
134
|
+
*/
|
|
135
|
+
scope: string
|
|
136
|
+
/**
|
|
137
|
+
* The identifier of the context
|
|
138
|
+
*/
|
|
139
|
+
token: ContextToken
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type ContextOption = {
|
|
124
143
|
/**
|
|
125
144
|
* The region of the context - e.g. 'uk'
|
|
126
145
|
*/
|
package/dist/version
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.0-canary-
|
|
1
|
+
0.0.0-canary-20250211180607
|