@medusajs/link-modules 0.2.12-snapshot-20240704130951 → 0.2.12-snapshot-20240711053716
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/definitions/cart-payment-collection.d.ts +1 -0
- package/dist/definitions/cart-payment-collection.d.ts.map +1 -0
- package/dist/definitions/cart-promotion.d.ts +1 -0
- package/dist/definitions/cart-promotion.d.ts.map +1 -0
- package/dist/definitions/fulfillment-set-location.d.ts +1 -0
- package/dist/definitions/fulfillment-set-location.d.ts.map +1 -0
- package/dist/definitions/index.d.ts +1 -0
- package/dist/definitions/index.d.ts.map +1 -0
- package/dist/definitions/order-cart.d.ts +1 -0
- package/dist/definitions/order-cart.d.ts.map +1 -0
- package/dist/definitions/order-claim-payment-collection.d.ts +1 -0
- package/dist/definitions/order-claim-payment-collection.d.ts.map +1 -0
- package/dist/definitions/order-exchange-payment-collection.d.ts +1 -0
- package/dist/definitions/order-exchange-payment-collection.d.ts.map +1 -0
- package/dist/definitions/order-fulfillment.d.ts +1 -0
- package/dist/definitions/order-fulfillment.d.ts.map +1 -0
- package/dist/definitions/order-payment-collection.d.ts +1 -0
- package/dist/definitions/order-payment-collection.d.ts.map +1 -0
- package/dist/definitions/order-promotion.d.ts +1 -0
- package/dist/definitions/order-promotion.d.ts.map +1 -0
- package/dist/definitions/product-sales-channel.d.ts +1 -0
- package/dist/definitions/product-sales-channel.d.ts.map +1 -0
- package/dist/definitions/product-variant-inventory-item.d.ts +1 -0
- package/dist/definitions/product-variant-inventory-item.d.ts.map +1 -0
- package/dist/definitions/product-variant-price-set.d.ts +1 -0
- package/dist/definitions/product-variant-price-set.d.ts.map +1 -0
- package/dist/definitions/publishable-api-key-sales-channel.d.ts +1 -0
- package/dist/definitions/publishable-api-key-sales-channel.d.ts.map +1 -0
- package/dist/definitions/readonly/cart-customer.d.ts +1 -0
- package/dist/definitions/readonly/cart-customer.d.ts.map +1 -0
- package/dist/definitions/readonly/cart-product.d.ts +1 -0
- package/dist/definitions/readonly/cart-product.d.ts.map +1 -0
- package/dist/definitions/readonly/cart-region.d.ts +1 -0
- package/dist/definitions/readonly/cart-region.d.ts.map +1 -0
- package/dist/definitions/readonly/cart-sales-channel.d.ts +1 -0
- package/dist/definitions/readonly/cart-sales-channel.d.ts.map +1 -0
- package/dist/definitions/readonly/index.d.ts +1 -0
- package/dist/definitions/readonly/index.d.ts.map +1 -0
- package/dist/definitions/readonly/inventory-level-stock-location.d.ts +1 -0
- package/dist/definitions/readonly/inventory-level-stock-location.d.ts.map +1 -0
- package/dist/definitions/readonly/line-item-adjustment-promotion.d.ts +1 -0
- package/dist/definitions/readonly/line-item-adjustment-promotion.d.ts.map +1 -0
- package/dist/definitions/readonly/order-customer.d.ts +1 -0
- package/dist/definitions/readonly/order-customer.d.ts.map +1 -0
- package/dist/definitions/readonly/order-product.d.ts +1 -0
- package/dist/definitions/readonly/order-product.d.ts.map +1 -0
- package/dist/definitions/readonly/order-region.d.ts +1 -0
- package/dist/definitions/readonly/order-region.d.ts.map +1 -0
- package/dist/definitions/readonly/order-sales-channel.d.ts +1 -0
- package/dist/definitions/readonly/order-sales-channel.d.ts.map +1 -0
- package/dist/definitions/readonly/store-currency.d.ts +1 -0
- package/dist/definitions/readonly/store-currency.d.ts.map +1 -0
- package/dist/definitions/region-payment-provider.d.ts +1 -0
- package/dist/definitions/region-payment-provider.d.ts.map +1 -0
- package/dist/definitions/sales-channel-location.d.ts +1 -0
- package/dist/definitions/sales-channel-location.d.ts.map +1 -0
- package/dist/definitions/shipping-option-price-set.d.ts +1 -0
- package/dist/definitions/shipping-option-price-set.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/initialize/index.d.ts +1 -0
- package/dist/initialize/index.d.ts.map +1 -0
- package/dist/initialize/module-definition.d.ts +1 -0
- package/dist/initialize/module-definition.d.ts.map +1 -0
- package/dist/loaders/connection.d.ts +1 -0
- package/dist/loaders/connection.d.ts.map +1 -0
- package/dist/loaders/container.d.ts +1 -0
- package/dist/loaders/container.d.ts.map +1 -0
- package/dist/loaders/index.d.ts +1 -0
- package/dist/loaders/index.d.ts.map +1 -0
- package/dist/migration/index.d.ts +1 -0
- package/dist/migration/index.d.ts.map +1 -0
- package/dist/migration/index.js +3 -1
- package/dist/repositories/index.d.ts +1 -0
- package/dist/repositories/index.d.ts.map +1 -0
- package/dist/repositories/link.d.ts +1 -0
- package/dist/repositories/link.d.ts.map +1 -0
- package/dist/services/dynamic-service-class.d.ts +1 -0
- package/dist/services/dynamic-service-class.d.ts.map +1 -0
- package/dist/services/index.d.ts +1 -0
- package/dist/services/index.d.ts.map +1 -0
- package/dist/services/link-module-service.d.ts +1 -0
- package/dist/services/link-module-service.d.ts.map +1 -0
- package/dist/services/link.d.ts +1 -0
- package/dist/services/link.d.ts.map +1 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/utils/compose-link-name.d.ts +1 -0
- package/dist/utils/compose-link-name.d.ts.map +1 -0
- package/dist/utils/generate-entity.d.ts +1 -0
- package/dist/utils/generate-entity.d.ts.map +1 -0
- package/dist/utils/generate-schema.d.ts +1 -0
- package/dist/utils/generate-schema.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -0
- package/package.json +4 -4
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-payment-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/cart-payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,qBAAqB,EAAE,kBA8DnC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-promotion.d.ts","sourceRoot":"","sources":["../../src/definitions/cart-promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,aAAa,EAAE,kBAmD3B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"fulfillment-set-location.d.ts","sourceRoot":"","sources":["../../src/definitions/fulfillment-set-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,sBAAsB,EAAE,kBAgEpC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/definitions/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA;AACzC,cAAc,kBAAkB,CAAA;AAChC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,cAAc,CAAA;AAC5B,cAAc,qBAAqB,CAAA;AACnC,cAAc,4BAA4B,CAAA;AAC1C,cAAc,mBAAmB,CAAA;AACjC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kCAAkC,CAAA;AAChD,cAAc,6BAA6B,CAAA;AAC3C,cAAc,qCAAqC,CAAA;AACnD,cAAc,YAAY,CAAA;AAC1B,cAAc,2BAA2B,CAAA;AACzC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6BAA6B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-cart.d.ts","sourceRoot":"","sources":["../../src/definitions/order-cart.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,SAAS,EAAE,kBA8DvB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-claim-payment-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/order-claim-payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,2BAA2B,EAAE,kBAoEzC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-exchange-payment-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/order-exchange-payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,8BAA8B,EAAE,kBAoE5C,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-fulfillment.d.ts","sourceRoot":"","sources":["../../src/definitions/order-fulfillment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,gBAAgB,EAAE,kBA6D9B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-payment-collection.d.ts","sourceRoot":"","sources":["../../src/definitions/order-payment-collection.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,sBAAsB,EAAE,kBAiEpC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-promotion.d.ts","sourceRoot":"","sources":["../../src/definitions/order-promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,cAAc,EAAE,kBA2D5B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-sales-channel.d.ts","sourceRoot":"","sources":["../../src/definitions/product-sales-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,mBAAmB,EAAE,kBA6DjC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-variant-inventory-item.d.ts","sourceRoot":"","sources":["../../src/definitions/product-variant-inventory-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,2BAA2B,EAAE,kBA0EzC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"product-variant-price-set.d.ts","sourceRoot":"","sources":["../../src/definitions/product-variant-price-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,sBAAsB,EAAE,kBAoEpC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"publishable-api-key-sales-channel.d.ts","sourceRoot":"","sources":["../../src/definitions/publishable-api-key-sales-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,6BAA6B,EAAE,kBAgE3C,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-customer.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/cart-customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,YAAY,EAAE,kBA8B1B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-product.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/cart-product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,WAAW,EAAE,kBA0CzB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-region.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/cart-region.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,UAAU,EAAE,kBA8BxB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cart-sales-channel.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/cart-sales-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,gBAAgB,EAAE,kBA8B9B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,eAAe,CAAA;AAC7B,cAAc,sBAAsB,CAAA;AACpC,cAAc,kCAAkC,CAAA;AAChD,cAAc,kCAAkC,CAAA;AAChD,cAAc,kBAAkB,CAAA;AAChC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,cAAc,uBAAuB,CAAA;AACrC,cAAc,kBAAkB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"inventory-level-stock-location.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/inventory-level-stock-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,2BAA2B,EAAE,kBAkBzC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"line-item-adjustment-promotion.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/line-item-adjustment-promotion.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,2BAA2B,EAAE,kBAiBzC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-customer.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/order-customer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,aAAa,EAAE,kBA8B3B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-product.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/order-product.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,YAAY,EAAE,kBA0C1B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-region.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/order-region.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,WAAW,EAAE,kBA8BzB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"order-sales-channel.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/order-sales-channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,iBAAiB,EAAE,kBA8B/B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"store-currency.d.ts","sourceRoot":"","sources":["../../../src/definitions/readonly/store-currency.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,eAAe,EAAE,kBAiB7B,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"region-payment-provider.d.ts","sourceRoot":"","sources":["../../src/definitions/region-payment-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,qBAAqB,EAAE,kBA8DnC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"sales-channel-location.d.ts","sourceRoot":"","sources":["../../src/definitions/sales-channel-location.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,oBAAoB,EAAE,kBAgElC,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"shipping-option-price-set.d.ts","sourceRoot":"","sources":["../../src/definitions/shipping-option-price-set.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGpD,eAAO,MAAM,sBAAsB,EAAE,kBAsEpC,CAAA"}
|
package/dist/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA;AAC5B,cAAc,SAAS,CAAA;AACvB,cAAc,WAAW,CAAA;AACzB,cAAc,YAAY,CAAA;AAC1B,cAAc,2BAA2B,CAAA"}
|
@@ -6,3 +6,4 @@ export declare const initialize: (options?: ModuleServiceInitializeOptions | Mod
|
|
6
6
|
}>;
|
7
7
|
export declare function runMigrations({ options, logger, }: Omit<LoaderOptions<ModuleServiceInitializeOptions>, "container">, modulesDefinition?: ModuleJoinerConfig[]): Promise<void>;
|
8
8
|
export declare function revertMigrations({ options, logger, }: Omit<LoaderOptions<ModuleServiceInitializeOptions>, "container">, modulesDefinition?: ModuleJoinerConfig[]): Promise<void>;
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/initialize/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EAI1B,MAAM,uBAAuB,CAAA;AAC9B,OAAO,EACL,yBAAyB,EACzB,WAAW,EAEX,aAAa,EAEb,kBAAkB,EAClB,6CAA6C,EAC7C,8BAA8B,EAC/B,MAAM,iBAAiB,CAAA;AAWxB,OAAO,EAAE,sCAAsC,EAAE,MAAM,UAAU,CAAA;AAQjE,eAAO,MAAM,UAAU,aAEjB,8BAA8B,GAC9B,6CAA6C,GAC7C,yBAAyB,GACzB,yBAAyB,sBACT,kBAAkB,EAAE,yBACjB,sCAAsC,KAC5D,QAAQ;IAAE,CAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAA;CAAE,CAgJzC,CAAA;AA6DD,wBAAsB,aAAa,CACjC,EACE,OAAO,EACP,MAAM,GACP,EAAE,IAAI,CAAC,aAAa,CAAC,8BAA8B,CAAC,EAAE,WAAW,CAAC,EACnE,iBAAiB,CAAC,EAAE,kBAAkB,EAAE,iBAGzC;AAED,wBAAsB,gBAAgB,CACpC,EACE,OAAO,EACP,MAAM,GACP,EAAE,IAAI,CAAC,aAAa,CAAC,8BAA8B,CAAC,EAAE,WAAW,CAAC,EACnE,iBAAiB,CAAC,EAAE,kBAAkB,EAAE,iBAGzC"}
|
@@ -1,2 +1,3 @@
|
|
1
1
|
import { JoinerRelationship, ModuleExports, ModuleJoinerConfig } from "@medusajs/types";
|
2
2
|
export declare function getLinkModuleDefinition(joinerConfig: ModuleJoinerConfig, primary: JoinerRelationship, foreign: JoinerRelationship): ModuleExports;
|
3
|
+
//# sourceMappingURL=module-definition.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"module-definition.d.ts","sourceRoot":"","sources":["../../src/initialize/module-definition.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EACnB,MAAM,iBAAiB,CAAA;AAIxB,wBAAgB,uBAAuB,CACrC,YAAY,EAAE,kBAAkB,EAChC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,kBAAkB,GAC1B,aAAa,CAWf"}
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import { InternalModuleDeclaration, LoaderOptions, ModuleServiceInitializeCustomDataLayerOptions, ModuleServiceInitializeOptions } from "@medusajs/modules-sdk";
|
2
2
|
import { EntitySchema } from "@mikro-orm/core";
|
3
3
|
export declare function connectionLoader(entity: EntitySchema): ({ options, container, logger, }: LoaderOptions<ModuleServiceInitializeOptions | ModuleServiceInitializeCustomDataLayerOptions>, moduleDeclaration?: InternalModuleDeclaration) => Promise<void>;
|
4
|
+
//# sourceMappingURL=connection.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["../../src/loaders/connection.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,yBAAyB,EACzB,aAAa,EACb,6CAA6C,EAC7C,8BAA8B,EAC/B,MAAM,uBAAuB,CAAA;AAG9B,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAE9C,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,YAAY,qCAM9C,cACC,8BAA8B,GAC9B,6CAA6C,CAChD,sBACmB,yBAAyB,KAC5C,QAAQ,IAAI,CAAC,CAajB"}
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import { LoaderOptions } from "@medusajs/modules-sdk";
|
2
2
|
import { InternalModuleDeclaration, ModuleJoinerConfig, ModulesSdkTypes } from "@medusajs/types";
|
3
3
|
export declare function containerLoader(entity: any, joinerConfig: ModuleJoinerConfig): ({ options, container, }: LoaderOptions<ModulesSdkTypes.ModuleServiceInitializeOptions | ModulesSdkTypes.ModuleServiceInitializeCustomDataLayerOptions>, moduleDeclaration?: InternalModuleDeclaration) => Promise<void>;
|
4
|
+
//# sourceMappingURL=container.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../src/loaders/container.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,OAAO,EACL,yBAAyB,EACzB,kBAAkB,EAClB,eAAe,EAChB,MAAM,iBAAiB,CAAA;AAKxB,wBAAgB,eAAe,CAAC,MAAM,KAAA,EAAE,YAAY,EAAE,kBAAkB,6BAKjE,cACC,gBAAgB,8BAA8B,GAC9C,gBAAgB,6CAA6C,CAChE,sBACmB,yBAAyB,KAC5C,QAAQ,IAAI,CAAC,CA2CjB"}
|
package/dist/loaders/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/loaders/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,kBAAkB,EAClB,oBAAoB,EACrB,MAAM,iBAAiB,CAAA;AAMxB,wBAAgB,UAAU,CAAC,EACzB,YAAY,EACZ,OAAO,EACP,OAAO,GACR,EAAE;IACD,YAAY,EAAE,kBAAkB,CAAA;IAChC,OAAO,EAAE,kBAAkB,CAAA;IAC3B,OAAO,EAAE,kBAAkB,CAAA;CAC5B,GAAG,oBAAoB,EAAE,CAOzB"}
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import { JoinerRelationship, LoaderOptions, ModuleJoinerConfig, ModuleServiceInitializeOptions } from "@medusajs/types";
|
2
2
|
export declare function getMigration(joinerConfig: ModuleJoinerConfig, serviceName: string, primary: JoinerRelationship, foreign: JoinerRelationship): ({ options, logger, }?: Pick<LoaderOptions<ModuleServiceInitializeOptions>, "options" | "logger">) => Promise<void>;
|
3
3
|
export declare function getRevertMigration(joinerConfig: ModuleJoinerConfig, serviceName: string, primary: JoinerRelationship, foreign: JoinerRelationship): ({ options, logger, }?: Pick<LoaderOptions<ModuleServiceInitializeOptions>, "options" | "logger">) => Promise<void>;
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migration/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAClB,aAAa,EAEb,kBAAkB,EAClB,8BAA8B,EAC/B,MAAM,iBAAiB,CAAA;AAKxB,wBAAgB,YAAY,CAC1B,YAAY,EAAE,kBAAkB,EAChC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,kBAAkB,2BAMtB,KACD,cAAc,8BAA8B,CAAC,EAC7C,SAAS,GAAG,QAAQ,CACrB,mBAkEJ;AAED,wBAAgB,kBAAkB,CAChC,YAAY,EAAE,kBAAkB,EAChC,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,kBAAkB,2BAMtB,KACD,cAAc,8BAA8B,CAAC,EAC7C,SAAS,GAAG,QAAQ,CACrB,mBA4BJ"}
|
package/dist/migration/index.js
CHANGED
@@ -13,7 +13,9 @@ function getMigration(joinerConfig, serviceName, primary, foreign) {
|
|
13
13
|
const tableName = entity.meta.collection;
|
14
14
|
let hasTable = false;
|
15
15
|
try {
|
16
|
-
await orm.em
|
16
|
+
await orm.em
|
17
|
+
.getConnection()
|
18
|
+
.execute(`SELECT 1 FROM "${tableName}" LIMIT 0`);
|
17
19
|
hasTable = true;
|
18
20
|
}
|
19
21
|
catch { }
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/repositories/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,IAAI,cAAc,EAAE,MAAM,iBAAiB,CAAA;AAC1E,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../src/repositories/link.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAQ9C,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,YAAY;2BAInB;QAAE,YAAY,EAAE,kBAAkB,CAAA;KAAE;gCAF1C,kBAAkB;qBAQvB,GAAG,YAAW,OAAO,GAAQ,QAAQ,IAAI,CAAC;qBAY1C,MAAM,EAAE,YAAW,OAAO,GAAQ,QAAQ,MAAM,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBzE"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"dynamic-service-class.d.ts","sourceRoot":"","sources":["../../src/services/dynamic-service-class.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAI9E,wBAAgB,gBAAgB,CAC9B,YAAY,EAAE,kBAAkB,GAC/B,WAAW,CAAC,WAAW,CAAC,CAmB1B;AAED,wBAAgB,wBAAwB,CAAC,YAAY,EAAE,kBAAkB;;0BAEnD,kBAAkB;;EAIvC"}
|
package/dist/services/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAA;AACvC,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,QAAQ,CAAA;AAC/C,OAAO,EAAE,OAAO,IAAI,iBAAiB,EAAE,MAAM,uBAAuB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"link-module-service.d.ts","sourceRoot":"","sources":["../../src/services/link-module-service.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,GAAG,EACH,UAAU,EACV,sBAAsB,EACtB,WAAW,EACX,yBAAyB,EACzB,kBAAkB,EAClB,aAAa,EACb,gBAAgB,EACjB,MAAM,iBAAiB,CAAA;AAYxB,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAA;AAGvC,KAAK,oBAAoB,GAAG;IAC1B,cAAc,EAAE,GAAG,CAAC,iBAAiB,CAAA;IACrC,WAAW,EAAE,WAAW,CAAC,GAAG,CAAC,CAAA;IAC7B,qBAAqB,CAAC,EAAE,sBAAsB,CAAA;IAC9C,UAAU,EAAE,MAAM,GAAG,MAAM,EAAE,CAAA;IAC7B,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,EAAE,CAAA;IACrB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;CACpB,CAAA;AAED,MAAM,CAAC,OAAO,OAAO,iBAAiB,C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OAAY,GAC3C,OAAO,CAAC,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;CAmBjD"}
|
package/dist/types/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAA;AAExC,MAAM,MAAM,sCAAsC,GAAG;IACnD,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"compose-link-name.d.ts","sourceRoot":"","sources":["../../src/utils/compose-link-name.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,4BAE3B,CAAA;AAED,eAAO,MAAM,gBAAgB,4BAE5B,CAAA"}
|
@@ -1,3 +1,4 @@
|
|
1
1
|
import { JoinerRelationship, ModuleJoinerConfig } from "@medusajs/types";
|
2
2
|
import { EntitySchema } from "@mikro-orm/core";
|
3
3
|
export declare function generateEntity(joinerConfig: ModuleJoinerConfig, primary: JoinerRelationship, foreign: JoinerRelationship): EntitySchema<any, never>;
|
4
|
+
//# sourceMappingURL=generate-entity.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generate-entity.d.ts","sourceRoot":"","sources":["../../src/utils/generate-entity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAOxE,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAA;AAa9C,wBAAgB,cAAc,CAC5B,YAAY,EAAE,kBAAkB,EAChC,OAAO,EAAE,kBAAkB,EAC3B,OAAO,EAAE,kBAAkB,4BA6F5B"}
|
@@ -2,3 +2,4 @@ import { ModuleJoinerConfig, ModuleJoinerRelationship } from "@medusajs/types";
|
|
2
2
|
export declare function generateGraphQLSchema(joinerConfig: ModuleJoinerConfig, primary: ModuleJoinerRelationship, foreign: ModuleJoinerRelationship, { logger }?: {
|
3
3
|
logger: any;
|
4
4
|
}): string;
|
5
|
+
//# sourceMappingURL=generate-schema.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generate-schema.d.ts","sourceRoot":"","sources":["../../src/utils/generate-schema.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AAI9E,wBAAgB,qBAAqB,CACnC,YAAY,EAAE,kBAAkB,EAChC,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE,wBAAwB,EACjC,EAAE,MAAM,EAAE,GAAE;IAAE,MAAM,MAAA;CAAwB,UAiH7C"}
|
package/dist/utils/index.d.ts
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/utils/index.ts"],"names":[],"mappings":"AAEA,cAAc,qBAAqB,CAAA;AACnC,cAAc,mBAAmB,CAAA;AACjC,cAAc,mBAAmB,CAAA;AAEjC,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,GAAG,GAAG,OAAO,CAE3D;AAED,wBAAgB,qBAAqB,IAAI,OAAO,CAE/C"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@medusajs/link-modules",
|
3
|
-
"version": "0.2.12-snapshot-
|
3
|
+
"version": "0.2.12-snapshot-20240711053716",
|
4
4
|
"description": "Medusa Default Link Modules Package and Definitions",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -29,7 +29,7 @@
|
|
29
29
|
"test:integration": "jest --passWithNoTests"
|
30
30
|
},
|
31
31
|
"devDependencies": {
|
32
|
-
"@medusajs/types": "1.12.0-snapshot-
|
32
|
+
"@medusajs/types": "1.12.0-snapshot-20240711053716",
|
33
33
|
"cross-env": "^5.2.1",
|
34
34
|
"jest": "^29.7.0",
|
35
35
|
"pg-god": "^1.0.12",
|
@@ -39,8 +39,8 @@
|
|
39
39
|
"typescript": "^5.1.6"
|
40
40
|
},
|
41
41
|
"dependencies": {
|
42
|
-
"@medusajs/modules-sdk": "1.13.0-snapshot-
|
43
|
-
"@medusajs/utils": "1.12.0-snapshot-
|
42
|
+
"@medusajs/modules-sdk": "1.13.0-snapshot-20240711053716",
|
43
|
+
"@medusajs/utils": "1.12.0-snapshot-20240711053716",
|
44
44
|
"@mikro-orm/core": "5.9.7",
|
45
45
|
"@mikro-orm/postgresql": "5.9.7",
|
46
46
|
"awilix": "^8.0.0"
|