@vendure/common 2.0.4 → 2.0.6

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,5 +10,6 @@ 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_CHANNEL_TOKEN_KEY = "vendure-token";
13
14
  export type CREATING_VENDURE_APP = 'CREATING_VENDURE_APP';
14
15
  export declare const CREATING_VENDURE_APP: CREATING_VENDURE_APP;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CREATING_VENDURE_APP = 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_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,5 +17,6 @@ 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_CHANNEL_TOKEN_KEY = 'vendure-token';
20
21
  exports.CREATING_VENDURE_APP = 'CREATING_VENDURE_APP';
21
22
  //# 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;AAMrD,QAAA,oBAAoB,GAAyB,sBAAsB,CAAC"}
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,CAAA;AAM3C,QAAA,oBAAoB,GAAyB,sBAAsB,CAAC"}
@@ -207,12 +207,19 @@ export interface AdminUiConfig {
207
207
  /**
208
208
  * @description
209
209
  * The header used when using the 'bearer' auth method. Should match the
210
- * setting of the server's `authOptions.authTokenHeaderKey` config
211
- * option.
210
+ * setting of the server's `authOptions.authTokenHeaderKey` config option.
212
211
  *
213
212
  * @default 'vendure-auth-token'
214
213
  */
215
214
  authTokenHeaderKey: string;
215
+ /**
216
+ * @description
217
+ * The name of the header which contains the channel token. Should match the
218
+ * setting of the server's `apiOptions.channelTokenKey` config option.
219
+ *
220
+ * @default 'vendure-token'
221
+ */
222
+ channelTokenKey: string;
216
223
  /**
217
224
  * @description
218
225
  * The default language for the Admin UI. Must be one of the
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vendure/common",
3
- "version": "2.0.4",
3
+ "version": "2.0.6",
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": "e1713e8c0fd9e32708f7cbe7ac00a5964c3348af"
25
+ "gitHead": "5de11d84fdb3fc081fc9b9e632734703f6f12926"
26
26
  }