@mercurjs/framework 1.5.0 → 1.5.1

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.
@@ -1 +1 @@
1
- {"root":["../src/index.ts","../src/links/index.ts","../src/links/link-entrypoints.ts","../src/links/linkables.ts","../src/modules/index.ts","../src/types/index.ts","../src/types/algolia/algolia-entity.ts","../src/types/algolia/algolia-product.ts","../src/types/algolia/algolia-review.ts","../src/types/algolia/events.ts","../src/types/algolia/index-types.ts","../src/types/algolia/index.ts","../src/types/attribute/common.ts","../src/types/attribute/index.ts","../src/types/attribute/mutations.ts","../src/types/brand/index.ts","../src/types/brand/mutations.ts","../src/types/commission/common.ts","../src/types/commission/index.ts","../src/types/commission/mutations.ts","../src/types/configuration/common.ts","../src/types/configuration/index.ts","../src/types/configuration/mutations.ts","../src/types/marketplace/common.ts","../src/types/marketplace/events.ts","../src/types/marketplace/index.ts","../src/types/marketplace/mutations.ts","../src/types/order-return-request/common.ts","../src/types/order-return-request/index.ts","../src/types/order-return-request/mutations.ts","../src/types/payment-stripe-connect/index.ts","../src/types/payout/common.ts","../src/types/payout/events.ts","../src/types/payout/index.ts","../src/types/payout/mutations.ts","../src/types/payout/provider.ts","../src/types/requests/common.ts","../src/types/requests/events.ts","../src/types/requests/humanize_types.ts","../src/types/requests/index.ts","../src/types/requests/mutations.ts","../src/types/reviews/common.ts","../src/types/reviews/index.ts","../src/types/reviews/mutatations.ts","../src/types/seller/common.ts","../src/types/seller/events.ts","../src/types/seller/index.ts","../src/types/seller/mutations.ts","../src/types/split-order-payment/common.ts","../src/types/split-order-payment/index.ts","../src/types/split-order-payment/mutations.ts","../src/types/wishlist/common.ts","../src/types/wishlist/index.ts","../src/types/wishlist/mutations.ts","../src/utils/admin.ts","../src/utils/configuration.ts","../src/utils/hosts.ts","../src/utils/index.ts","../src/utils/money.ts","../src/utils/seller.ts","../src/utils/store.ts","../src/utils/middlewares/apply-reference-filter.ts","../src/utils/middlewares/check-customer-ownership.ts","../src/utils/middlewares/check-ownership.ts","../src/utils/middlewares/filter-by-seller-id.ts","../src/utils/middlewares/index.ts","../src/workflows/emit-multiple-events-step.ts","../src/workflows/index.ts","../src/workflows/update-product-status.ts"],"version":"5.9.3"}
1
+ {"root":["../src/index.ts","../src/links/index.ts","../src/links/link-entrypoints.ts","../src/links/linkables.ts","../src/modules/index.ts","../src/types/index.ts","../src/types/algolia/algolia-entity.ts","../src/types/algolia/algolia-product.ts","../src/types/algolia/algolia-review.ts","../src/types/algolia/events.ts","../src/types/algolia/index-types.ts","../src/types/algolia/index.ts","../src/types/algolia/module.ts","../src/types/attribute/common.ts","../src/types/attribute/index.ts","../src/types/attribute/mutations.ts","../src/types/brand/index.ts","../src/types/brand/mutations.ts","../src/types/commission/common.ts","../src/types/commission/index.ts","../src/types/commission/mutations.ts","../src/types/configuration/common.ts","../src/types/configuration/index.ts","../src/types/configuration/mutations.ts","../src/types/marketplace/common.ts","../src/types/marketplace/events.ts","../src/types/marketplace/index.ts","../src/types/marketplace/mutations.ts","../src/types/order-return-request/common.ts","../src/types/order-return-request/index.ts","../src/types/order-return-request/mutations.ts","../src/types/payment-stripe-connect/index.ts","../src/types/payout/common.ts","../src/types/payout/events.ts","../src/types/payout/index.ts","../src/types/payout/mutations.ts","../src/types/payout/provider.ts","../src/types/requests/common.ts","../src/types/requests/events.ts","../src/types/requests/humanize_types.ts","../src/types/requests/index.ts","../src/types/requests/mutations.ts","../src/types/reviews/common.ts","../src/types/reviews/index.ts","../src/types/reviews/mutatations.ts","../src/types/seller/common.ts","../src/types/seller/events.ts","../src/types/seller/index.ts","../src/types/seller/mutations.ts","../src/types/split-order-payment/common.ts","../src/types/split-order-payment/index.ts","../src/types/split-order-payment/mutations.ts","../src/types/wishlist/common.ts","../src/types/wishlist/index.ts","../src/types/wishlist/mutations.ts","../src/utils/admin.ts","../src/utils/configuration.ts","../src/utils/hosts.ts","../src/utils/index.ts","../src/utils/money.ts","../src/utils/seller.ts","../src/utils/store.ts","../src/utils/middlewares/apply-reference-filter.ts","../src/utils/middlewares/check-customer-ownership.ts","../src/utils/middlewares/check-ownership.ts","../src/utils/middlewares/filter-by-seller-id.ts","../src/utils/middlewares/index.ts","../src/workflows/emit-multiple-events-step.ts","../src/workflows/index.ts","../src/workflows/update-product-status.ts"],"version":"5.9.3"}
@@ -218,7 +218,7 @@ export declare const AlgoliaVariantValidator: z.ZodObject<{
218
218
  weight: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
219
219
  length: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
220
220
  height: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
221
- wifth: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
221
+ width: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
222
222
  variant_rank: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
223
223
  options: z.ZodArray<z.ZodObject<{
224
224
  id: z.ZodString;
@@ -303,10 +303,10 @@ export declare const AlgoliaVariantValidator: z.ZodObject<{
303
303
  mid_code?: string | null | undefined;
304
304
  weight?: number | null | undefined;
305
305
  height?: number | null | undefined;
306
+ width?: number | null | undefined;
306
307
  origin_country?: string | null | undefined;
307
308
  material?: string | null | undefined;
308
309
  ups?: string | null | undefined;
309
- wifth?: number | null | undefined;
310
310
  variant_rank?: number | null | undefined;
311
311
  }, {
312
312
  id: string;
@@ -338,10 +338,10 @@ export declare const AlgoliaVariantValidator: z.ZodObject<{
338
338
  mid_code?: string | null | undefined;
339
339
  weight?: number | null | undefined;
340
340
  height?: number | null | undefined;
341
+ width?: number | null | undefined;
341
342
  origin_country?: string | null | undefined;
342
343
  material?: string | null | undefined;
343
344
  ups?: string | null | undefined;
344
- wifth?: number | null | undefined;
345
345
  variant_rank?: number | null | undefined;
346
346
  }>;
347
347
  //# sourceMappingURL=algolia-product.d.ts.map
@@ -89,7 +89,7 @@ exports.AlgoliaVariantValidator = zod_1.z.object({
89
89
  weight: zod_1.z.number().nullish(),
90
90
  length: zod_1.z.number().nullish(),
91
91
  height: zod_1.z.number().nullish(),
92
- wifth: zod_1.z.number().nullish(),
92
+ width: zod_1.z.number().nullish(),
93
93
  variant_rank: zod_1.z.number().nullish(),
94
94
  options: zod_1.z.array(zod_1.z.object({
95
95
  id: zod_1.z.string(),
@@ -3,4 +3,5 @@ export * from './algolia-entity';
3
3
  export * from './algolia-product';
4
4
  export * from './algolia-review';
5
5
  export * from './events';
6
+ export * from './module';
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/algolia/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/algolia/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,kBAAkB,CAAA;AAChC,cAAc,UAAU,CAAA;AACxB,cAAc,UAAU,CAAA"}
@@ -19,4 +19,5 @@ __exportStar(require("./algolia-entity"), exports);
19
19
  __exportStar(require("./algolia-product"), exports);
20
20
  __exportStar(require("./algolia-review"), exports);
21
21
  __exportStar(require("./events"), exports);
22
+ __exportStar(require("./module"), exports);
22
23
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/algolia/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,mDAAgC;AAChC,oDAAiC;AACjC,mDAAgC;AAChC,2CAAwB"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/types/algolia/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,gDAA6B;AAC7B,mDAAgC;AAChC,oDAAiC;AACjC,mDAAgC;AAChC,2CAAwB;AACxB,2CAAwB"}
@@ -0,0 +1,22 @@
1
+ import { IndexType } from './index-types';
2
+ export declare const ALGOLIA_MODULE = "algolia";
3
+ export type AlgoliaSearchResult<T> = {
4
+ hits: T[];
5
+ nbHits: number;
6
+ page: number;
7
+ nbPages: number;
8
+ hitsPerPage: number;
9
+ facets?: Record<string, Record<string, number>>;
10
+ facets_stats?: Record<string, {
11
+ min: number;
12
+ max: number;
13
+ avg: number;
14
+ sum: number;
15
+ }>;
16
+ processingTimeMS: number;
17
+ query: string;
18
+ };
19
+ export interface IAlgoliaModuleService {
20
+ search<T = Record<string, unknown>>(indexName: IndexType, params: Record<string, unknown>): Promise<AlgoliaSearchResult<T>>;
21
+ }
22
+ //# sourceMappingURL=module.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../../../src/types/algolia/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAEzC,eAAO,MAAM,cAAc,YAAY,CAAA;AAEvC,MAAM,MAAM,mBAAmB,CAAC,CAAC,IAAI;IACnC,IAAI,EAAE,CAAC,EAAE,CAAA;IACT,MAAM,EAAE,MAAM,CAAA;IACd,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAC/C,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAA;IACrF,gBAAgB,EAAE,MAAM,CAAA;IACxB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,WAAW,qBAAqB;IACpC,MAAM,CAAC,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAChC,SAAS,EAAE,SAAS,EACpB,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC9B,OAAO,CAAC,mBAAmB,CAAC,CAAC,CAAC,CAAC,CAAA;CACnC"}
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ALGOLIA_MODULE = void 0;
4
+ exports.ALGOLIA_MODULE = 'algolia';
5
+ //# sourceMappingURL=module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"module.js","sourceRoot":"","sources":["../../../src/types/algolia/module.ts"],"names":[],"mappings":";;;AAEa,QAAA,cAAc,GAAG,SAAS,CAAA"}
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "medusajs",
12
12
  "mercurjs"
13
13
  ],
14
- "version": "1.5.0",
14
+ "version": "1.5.1",
15
15
  "main": "dist/index.js",
16
16
  "types": "dist/index.d.ts",
17
17
  "files": [