@joai/core 1.2.0 → 1.3.0

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.
Files changed (2) hide show
  1. package/dist/index.d.mts +14 -2
  2. package/package.json +1 -1
package/dist/index.d.mts CHANGED
@@ -3142,6 +3142,7 @@ type LoyaltyReward = {
3142
3142
  pointsCost: number;
3143
3143
  config: Record<string, JsonValue> | null;
3144
3144
  sortOrder: number;
3145
+ createdAt: string;
3145
3146
  };
3146
3147
  type LoyaltyTier = {
3147
3148
  id: string;
@@ -3222,10 +3223,21 @@ type Pass = {
3222
3223
  team: Team;
3223
3224
  points: number;
3224
3225
  tier: string | null;
3225
- walletUrl: string | null;
3226
+ benefit: {
3227
+ pointName: string | null;
3228
+ earning: {
3229
+ type: 'per_visit' | 'per_spend' | 'per_item' | 'per_category';
3230
+ value: number;
3231
+ minimumSpendCents: number | null;
3232
+ currency: string | null;
3233
+ };
3234
+ reward: {
3235
+ name: string;
3236
+ pointsCost: number;
3237
+ };
3238
+ } | null;
3226
3239
  };
3227
3240
  type LoyaltyMember = {
3228
- id: string;
3229
3241
  contactId: string;
3230
3242
  contactName: string;
3231
3243
  points: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@joai/core",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "JoAi shared types, HTTP service, and config",
5
5
  "license": "MIT",
6
6
  "type": "module",