@vendure/common 2.1.4 → 2.2.0-next.0
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.
|
@@ -10,6 +10,7 @@ export declare const CUSTOMER_ROLE_CODE = "__customer_role__";
|
|
|
10
10
|
export declare const CUSTOMER_ROLE_DESCRIPTION = "Customer";
|
|
11
11
|
export declare const ROOT_COLLECTION_NAME = "__root_collection__";
|
|
12
12
|
export declare const DEFAULT_AUTH_TOKEN_HEADER_KEY = "vendure-auth-token";
|
|
13
|
+
export declare const DEFAULT_COOKIE_NAME = "session";
|
|
13
14
|
export declare const DEFAULT_CHANNEL_TOKEN_KEY = "vendure-token";
|
|
14
15
|
export type CREATING_VENDURE_APP = 'CREATING_VENDURE_APP';
|
|
15
16
|
export declare const CREATING_VENDURE_APP: CREATING_VENDURE_APP;
|
package/lib/shared-constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CREATING_VENDURE_APP = exports.DEFAULT_CHANNEL_TOKEN_KEY = exports.DEFAULT_AUTH_TOKEN_HEADER_KEY = exports.ROOT_COLLECTION_NAME = exports.CUSTOMER_ROLE_DESCRIPTION = exports.CUSTOMER_ROLE_CODE = exports.SUPER_ADMIN_USER_PASSWORD = exports.SUPER_ADMIN_USER_IDENTIFIER = exports.SUPER_ADMIN_ROLE_DESCRIPTION = exports.SUPER_ADMIN_ROLE_CODE = exports.DEFAULT_CHANNEL_CODE = exports.SHOP_API_PATH = exports.ADMIN_API_PATH = exports.API_PORT = void 0;
|
|
3
|
+
exports.CREATING_VENDURE_APP = exports.DEFAULT_CHANNEL_TOKEN_KEY = exports.DEFAULT_COOKIE_NAME = exports.DEFAULT_AUTH_TOKEN_HEADER_KEY = exports.ROOT_COLLECTION_NAME = exports.CUSTOMER_ROLE_DESCRIPTION = exports.CUSTOMER_ROLE_CODE = exports.SUPER_ADMIN_USER_PASSWORD = exports.SUPER_ADMIN_USER_IDENTIFIER = exports.SUPER_ADMIN_ROLE_DESCRIPTION = exports.SUPER_ADMIN_ROLE_CODE = exports.DEFAULT_CHANNEL_CODE = exports.SHOP_API_PATH = exports.ADMIN_API_PATH = exports.API_PORT = void 0;
|
|
4
4
|
/*
|
|
5
5
|
* This file contains constants which are shared between more than one sub-module
|
|
6
6
|
* e.g. values required by both the server and admin-ui.
|
|
@@ -17,6 +17,7 @@ exports.CUSTOMER_ROLE_CODE = '__customer_role__';
|
|
|
17
17
|
exports.CUSTOMER_ROLE_DESCRIPTION = 'Customer';
|
|
18
18
|
exports.ROOT_COLLECTION_NAME = '__root_collection__';
|
|
19
19
|
exports.DEFAULT_AUTH_TOKEN_HEADER_KEY = 'vendure-auth-token';
|
|
20
|
+
exports.DEFAULT_COOKIE_NAME = 'session';
|
|
20
21
|
exports.DEFAULT_CHANNEL_TOKEN_KEY = 'vendure-token';
|
|
21
22
|
exports.CREATING_VENDURE_APP = 'CREATING_VENDURE_APP';
|
|
22
23
|
//# sourceMappingURL=shared-constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shared-constants.js","sourceRoot":"","sources":["../src/shared-constants.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,cAAc,GAAG,WAAW,CAAC;AAC7B,QAAA,aAAa,GAAG,UAAU,CAAC;AAC3B,QAAA,oBAAoB,GAAG,qBAAqB,CAAC;AAC7C,QAAA,qBAAqB,GAAG,sBAAsB,CAAC;AAC/C,QAAA,4BAA4B,GAAG,YAAY,CAAC;AAC5C,QAAA,2BAA2B,GAAG,YAAY,CAAC;AAC3C,QAAA,yBAAyB,GAAG,YAAY,CAAC;AACzC,QAAA,kBAAkB,GAAG,mBAAmB,CAAC;AACzC,QAAA,yBAAyB,GAAG,UAAU,CAAC;AACvC,QAAA,oBAAoB,GAAG,qBAAqB,CAAC;AAC7C,QAAA,6BAA6B,GAAG,oBAAoB,CAAC;AACrD,QAAA,yBAAyB,GAAG,eAAe,
|
|
1
|
+
{"version":3,"file":"shared-constants.js","sourceRoot":"","sources":["../src/shared-constants.ts"],"names":[],"mappings":";;;AAAA;;;GAGG;AACU,QAAA,QAAQ,GAAG,IAAI,CAAC;AAChB,QAAA,cAAc,GAAG,WAAW,CAAC;AAC7B,QAAA,aAAa,GAAG,UAAU,CAAC;AAC3B,QAAA,oBAAoB,GAAG,qBAAqB,CAAC;AAC7C,QAAA,qBAAqB,GAAG,sBAAsB,CAAC;AAC/C,QAAA,4BAA4B,GAAG,YAAY,CAAC;AAC5C,QAAA,2BAA2B,GAAG,YAAY,CAAC;AAC3C,QAAA,yBAAyB,GAAG,YAAY,CAAC;AACzC,QAAA,kBAAkB,GAAG,mBAAmB,CAAC;AACzC,QAAA,yBAAyB,GAAG,UAAU,CAAC;AACvC,QAAA,oBAAoB,GAAG,qBAAqB,CAAC;AAC7C,QAAA,6BAA6B,GAAG,oBAAoB,CAAC;AACrD,QAAA,mBAAmB,GAAG,SAAS,CAAC;AAChC,QAAA,yBAAyB,GAAG,eAAe,CAAC;AAM5C,QAAA,oBAAoB,GAAyB,sBAAsB,CAAC"}
|
package/lib/shared-types.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export type ID = string | number;
|
|
|
61
61
|
* string | varchar | String
|
|
62
62
|
* localeString | varchar | String
|
|
63
63
|
* text | longtext(m), text(p,s) | String
|
|
64
|
-
*
|
|
64
|
+
* localeText | longtext(m), text(p,s) | String
|
|
65
65
|
* int | int | Int
|
|
66
66
|
* float | double precision | Float
|
|
67
67
|
* boolean | tinyint (m), bool (p), boolean (s) | Boolean
|
|
@@ -231,9 +231,12 @@ export interface AdminUiConfig {
|
|
|
231
231
|
/**
|
|
232
232
|
* @description
|
|
233
233
|
* The default locale for the Admin UI. The locale affects the formatting of
|
|
234
|
-
* currencies & dates.
|
|
234
|
+
* currencies & dates. Must be one of the items specified
|
|
235
|
+
* in the `availableLocales` property.
|
|
235
236
|
*
|
|
236
237
|
* If not set, the browser default locale will be used.
|
|
238
|
+
*
|
|
239
|
+
* @since 2.2.0
|
|
237
240
|
*/
|
|
238
241
|
defaultLocale?: string;
|
|
239
242
|
/**
|
|
@@ -241,6 +244,13 @@ export interface AdminUiConfig {
|
|
|
241
244
|
* An array of languages for which translations exist for the Admin UI.
|
|
242
245
|
*/
|
|
243
246
|
availableLanguages: LanguageCode[];
|
|
247
|
+
/**
|
|
248
|
+
* @description
|
|
249
|
+
* An array of locales to be used on Admin UI.
|
|
250
|
+
*
|
|
251
|
+
* @since 2.2.0
|
|
252
|
+
*/
|
|
253
|
+
availableLocales: string[];
|
|
244
254
|
/**
|
|
245
255
|
* @description
|
|
246
256
|
* If you are using an external {@link AuthenticationStrategy} for the Admin API, you can configure
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vendure/common",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0-next.0",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"scripts": {
|
|
@@ -22,5 +22,5 @@
|
|
|
22
22
|
"rimraf": "^3.0.2",
|
|
23
23
|
"typescript": "4.9.5"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "3a37a1d245adc88390aa955d4bc621338b737b5f"
|
|
26
26
|
}
|