feat(api-key): Add CRUD functionalities to the api key module
This commit is contained in:
15
packages/utils/src/api-key/api-key-type.ts
Normal file
15
packages/utils/src/api-key/api-key-type.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
/**
|
||||
* @enum
|
||||
*
|
||||
* The API key's type.
|
||||
*/
|
||||
export enum ApiKeyType {
|
||||
/**
|
||||
* Publishable key that is tied to eg. a sales channel
|
||||
*/
|
||||
PUBLISHABLE = "publishable",
|
||||
/**
|
||||
* Secret key that allows access to the admin API
|
||||
*/
|
||||
SECRET = "secret",
|
||||
}
|
||||
1
packages/utils/src/api-key/index.ts
Normal file
1
packages/utils/src/api-key/index.ts
Normal file
@@ -0,0 +1 @@
|
||||
export * from "./api-key-type"
|
||||
@@ -11,3 +11,4 @@ export * as ProductUtils from "./product"
|
||||
export * as PromotionUtils from "./promotion"
|
||||
export * as SearchUtils from "./search"
|
||||
export * as ShippingProfileUtils from "./shipping"
|
||||
export * as ApiKeyUtils from "./api-key"
|
||||
|
||||
@@ -19,5 +19,6 @@ export * from "./search"
|
||||
export * from "./shipping"
|
||||
export * from "./totals"
|
||||
export * from "./totals/big-number"
|
||||
export * from "./api-key"
|
||||
|
||||
export const MedusaModuleType = Symbol.for("MedusaModule")
|
||||
|
||||
Reference in New Issue
Block a user