@positivegrid/pg-mongoose-schema 28.0.0-beta.8 → 28.0.0-beta.9

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.
package/dist/index.cjs CHANGED
@@ -4855,6 +4855,10 @@ function buildUser(mongoose) {
4855
4855
  default: []
4856
4856
  },
4857
4857
  collection_handle: { type: String },
4858
+ apply_to_all: {
4859
+ type: Boolean,
4860
+ default: false
4861
+ },
4858
4862
  discount_percent: {
4859
4863
  type: Number,
4860
4864
  required: true
package/dist/index.d.mts CHANGED
@@ -198,6 +198,7 @@ interface IRewardPointsRedeemList {
198
198
  description?: string;
199
199
  skus: string[];
200
200
  collection_handle?: string;
201
+ apply_to_all: boolean;
201
202
  discount_percent: number;
202
203
  points_required: number;
203
204
  created_on: Date;
package/dist/index.mjs CHANGED
@@ -4827,6 +4827,10 @@ function buildUser(mongoose) {
4827
4827
  default: []
4828
4828
  },
4829
4829
  collection_handle: { type: String },
4830
+ apply_to_all: {
4831
+ type: Boolean,
4832
+ default: false
4833
+ },
4830
4834
  discount_percent: {
4831
4835
  type: Number,
4832
4836
  required: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@positivegrid/pg-mongoose-schema",
3
- "version": "28.0.0-beta.8",
3
+ "version": "28.0.0-beta.9",
4
4
  "description": "Positive Grid mongoose schema",
5
5
  "author": "Ferrari Lee <shiyung@positivegrid.com>",
6
6
  "homepage": "https://git.positivegrid.com:8443/backend/pg-mongoose-schema",
@@ -9,7 +9,6 @@
9
9
  "url": "https://git.positivegrid.com:8443/backend/pg-mongoose-schema.git"
10
10
  },
11
11
  "type": "module",
12
- "packageManager": "pnpm@11.1.2",
13
12
  "engines": {
14
13
  "node": ">=22"
15
14
  },
@@ -36,18 +35,6 @@
36
35
  "registry": "https://registry.npmjs.org/",
37
36
  "access": "restricted"
38
37
  },
39
- "scripts": {
40
- "build": "tsdown",
41
- "typecheck": "tsc --noEmit",
42
- "lint": "oxlint",
43
- "format": "oxfmt src test",
44
- "_format_check_disabled": "oxfmt 0.1.0 is pre-release and mangles TypeScript syntax; re-enable when stable",
45
- "test": "vitest run",
46
- "test:watch": "vitest",
47
- "test:cov": "vitest run --coverage",
48
- "test:interop": "node --test test/interop/*.test.mjs test/interop/*.test.cjs",
49
- "prepublishOnly": "pnpm lint && pnpm typecheck && pnpm test && pnpm build && pnpm test:interop"
50
- },
51
38
  "peerDependencies": {
52
39
  "mongoose": ">=6"
53
40
  },
@@ -71,5 +58,16 @@
71
58
  "tsdown": "~0.22.0",
72
59
  "typescript": "^5.7.0",
73
60
  "vitest": "^2.1.0"
61
+ },
62
+ "scripts": {
63
+ "build": "tsdown",
64
+ "typecheck": "tsc --noEmit",
65
+ "lint": "oxlint",
66
+ "format": "oxfmt src test",
67
+ "_format_check_disabled": "oxfmt 0.1.0 is pre-release and mangles TypeScript syntax; re-enable when stable",
68
+ "test": "vitest run",
69
+ "test:watch": "vitest",
70
+ "test:cov": "vitest run --coverage",
71
+ "test:interop": "node --test test/interop/*.test.mjs test/interop/*.test.cjs"
74
72
  }
75
- }
73
+ }