feat(api-key): Add CRUD functionalities to the api key module

This commit is contained in:
Stevche Radevski
2024-02-21 11:19:22 +01:00
parent e0750bae40
commit c99ca5cc22
14 changed files with 812 additions and 42 deletions

View 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",
}

View File

@@ -0,0 +1 @@
export * from "./api-key-type"

View File

@@ -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"

View File

@@ -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")