@unchainedshop/core-enrollments 4.8.11 → 5.0.0-alpha.2

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.
@@ -18,9 +18,6 @@ export declare const configureEnrollmentsModule: ({ db, options: enrollmentOptio
18
18
  } | {
19
19
  orderId: string;
20
20
  }, options?: mongodb.FindOptions) => Promise<Enrollment | null>;
21
- findEnrollmentsByOrderIds: ({ orderIds }: {
22
- orderIds: string[];
23
- }, options?: mongodb.FindOptions) => Promise<Enrollment[]>;
24
21
  findEnrollments: ({ limit, offset, sort, ...query }: EnrollmentQuery & {
25
22
  limit?: number;
26
23
  offset?: number;
@@ -101,11 +101,6 @@ export const configureEnrollmentsModule = async ({ db, options: enrollmentOption
101
101
  }
102
102
  return Enrollments.findOne({ 'periods.orderId': params.orderId, deleted: null }, options);
103
103
  },
104
- findEnrollmentsByOrderIds: async ({ orderIds }, options) => {
105
- if (!orderIds?.length)
106
- return [];
107
- return Enrollments.find({ 'periods.orderId': { $in: orderIds }, deleted: null }, options).toArray();
108
- },
109
104
  findEnrollments: async ({ limit, offset, sort, ...query }) => {
110
105
  const defaultSortOption = [{ key: 'created', value: SortDirection.ASC }];
111
106
  const enrollments = Enrollments.find(buildFindSelector(query), {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@unchainedshop/core-enrollments",
3
3
  "description": "Subscription and recurring billing module for the Unchained Engine",
4
- "version": "4.8.11",
4
+ "version": "5.0.0-alpha.2",
5
5
  "main": "lib/enrollments-index.js",
6
6
  "types": "lib/enrollments-index.d.ts",
7
7
  "type": "module",
@@ -35,9 +35,9 @@
35
35
  },
36
36
  "homepage": "https://github.com/unchainedshop/unchained#readme",
37
37
  "dependencies": {
38
- "@unchainedshop/events": "^4.6.0",
39
- "@unchainedshop/logger": "^4.6.0",
40
- "@unchainedshop/utils": "^4.6.0"
38
+ "@unchainedshop/events": "^5.0.0-alpha.1",
39
+ "@unchainedshop/logger": "^5.0.0-alpha.1",
40
+ "@unchainedshop/utils": "^5.0.0-alpha.1"
41
41
  },
42
42
  "devDependencies": {
43
43
  "@types/node": "^25.0.0",