@orderingstack/ordering-types 1.9.2 → 1.9.4

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.
@@ -234,7 +234,7 @@ export interface IOrder {
234
234
  export interface IOrderCoupon {
235
235
  coupon: string;
236
236
  addedAt: string;
237
- addedBy: string;
237
+ addedBy?: string;
238
238
  id: string;
239
239
  data?: {
240
240
  campaign?: string;
@@ -326,7 +326,8 @@ export declare enum ERbiOrderExtra {
326
326
  POINTS_TOTAL = "x-rbi-loyalty-points",
327
327
  POINTS_EARNED = "x-rbi-points-earned",
328
328
  REWARDS = "x-rbi-rewards",
329
- OFFERS = "x-rbi-offers"
329
+ OFFERS = "x-rbi-offers",
330
+ CUSTOMER_NAME = "x-customer-name"
330
331
  }
331
332
  /**
332
333
  * OrderExtra interface
@@ -367,6 +368,7 @@ interface IOrderExtra {
367
368
  [ERbiOrderExtra.REWARDS]?: string;
368
369
  [ERbiOrderExtra.POINTS_EARNED]?: string;
369
370
  [ERbiOrderExtra.POINTS_TOTAL]?: string;
371
+ [ERbiOrderExtra.CUSTOMER_NAME]?: string;
370
372
  [key: string]: string | undefined;
371
373
  }
372
374
  interface IStringKeyRecord<T> {
package/dist/cjs/index.js CHANGED
@@ -104,6 +104,7 @@ var ERbiOrderExtra;
104
104
  ERbiOrderExtra["POINTS_EARNED"] = "x-rbi-points-earned";
105
105
  ERbiOrderExtra["REWARDS"] = "x-rbi-rewards";
106
106
  ERbiOrderExtra["OFFERS"] = "x-rbi-offers";
107
+ ERbiOrderExtra["CUSTOMER_NAME"] = "x-customer-name";
107
108
  })(ERbiOrderExtra = exports.ERbiOrderExtra || (exports.ERbiOrderExtra = {}));
108
109
  var EOrderSource;
109
110
  (function (EOrderSource) {
@@ -234,7 +234,7 @@ export interface IOrder {
234
234
  export interface IOrderCoupon {
235
235
  coupon: string;
236
236
  addedAt: string;
237
- addedBy: string;
237
+ addedBy?: string;
238
238
  id: string;
239
239
  data?: {
240
240
  campaign?: string;
@@ -326,7 +326,8 @@ export declare enum ERbiOrderExtra {
326
326
  POINTS_TOTAL = "x-rbi-loyalty-points",
327
327
  POINTS_EARNED = "x-rbi-points-earned",
328
328
  REWARDS = "x-rbi-rewards",
329
- OFFERS = "x-rbi-offers"
329
+ OFFERS = "x-rbi-offers",
330
+ CUSTOMER_NAME = "x-customer-name"
330
331
  }
331
332
  /**
332
333
  * OrderExtra interface
@@ -367,6 +368,7 @@ interface IOrderExtra {
367
368
  [ERbiOrderExtra.REWARDS]?: string;
368
369
  [ERbiOrderExtra.POINTS_EARNED]?: string;
369
370
  [ERbiOrderExtra.POINTS_TOTAL]?: string;
371
+ [ERbiOrderExtra.CUSTOMER_NAME]?: string;
370
372
  [key: string]: string | undefined;
371
373
  }
372
374
  interface IStringKeyRecord<T> {
package/dist/esm/index.js CHANGED
@@ -87,6 +87,7 @@ export var ERbiOrderExtra;
87
87
  ERbiOrderExtra["POINTS_EARNED"] = "x-rbi-points-earned";
88
88
  ERbiOrderExtra["REWARDS"] = "x-rbi-rewards";
89
89
  ERbiOrderExtra["OFFERS"] = "x-rbi-offers";
90
+ ERbiOrderExtra["CUSTOMER_NAME"] = "x-customer-name";
90
91
  })(ERbiOrderExtra || (ERbiOrderExtra = {}));
91
92
  export var EOrderSource;
92
93
  (function (EOrderSource) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.9.2",
3
+ "version": "1.9.4",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",