@orderingstack/ordering-types 1.9.0 → 1.9.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.
@@ -322,8 +322,14 @@ export interface ITaxSummary {
322
322
  tax: number;
323
323
  brutto: number;
324
324
  }
325
+ export declare enum ERbiOrderExtra {
326
+ POINTS_TOTAL = "x-rbi-loyalty-points",
327
+ POINTS_EARNED = "x-rbi-points-earned",
328
+ REWARDS = "x-rbi-rewards",
329
+ OFFERS = "x-rbi-offers"
330
+ }
325
331
  /**
326
- * OrderExtra type
332
+ * OrderExtra interface
327
333
  *
328
334
  * @interface IOrderExtra
329
335
  * @manual-verify {string} order needs manual verification
@@ -341,10 +347,7 @@ export interface ITaxSummary {
341
347
  * @x-rbi-rewards {string} comma separated product IDs of preselected RBI REWARDS
342
348
  * @x-rbi-offers {string} comma separated product IDs of preselected RBI OFFERS
343
349
  */
344
- export type IOrderExtra = {
345
- [key in ERbiOrderExtra]?: string | undefined;
346
- } & IStringKeyRecord<string | undefined> & IOrderExtraSubInterface;
347
- interface IOrderExtraSubInterface {
350
+ interface IOrderExtra {
348
351
  "x-source"?: EOrderSource;
349
352
  "x-source-type"?: "INTEGRATOR";
350
353
  "manual-verify"?: string;
@@ -360,16 +363,15 @@ interface IOrderExtraSubInterface {
360
363
  "x-pos-id"?: string;
361
364
  "company-tax-id"?: string;
362
365
  "x-kiosk-id"?: string;
366
+ [ERbiOrderExtra.OFFERS]?: string;
367
+ [ERbiOrderExtra.REWARDS]?: string;
368
+ [ERbiOrderExtra.POINTS_EARNED]?: string;
369
+ [ERbiOrderExtra.POINTS_TOTAL]?: string;
370
+ [key: string]: string | undefined;
363
371
  }
364
372
  interface IStringKeyRecord<T> {
365
373
  [key: string]: T;
366
374
  }
367
- export declare enum ERbiOrderExtra {
368
- POINTS_TOTAL = "x-rbi-loyalty-points",
369
- POINTS_EARNED = "x-rbi-points-earned",
370
- REWARDS = "x-rbi-rewards",
371
- OFFERS = "x-rbi-offers"
372
- }
373
375
  export interface IOrderLog {
374
376
  timestamp?: string;
375
377
  user?: string;
@@ -322,8 +322,14 @@ export interface ITaxSummary {
322
322
  tax: number;
323
323
  brutto: number;
324
324
  }
325
+ export declare enum ERbiOrderExtra {
326
+ POINTS_TOTAL = "x-rbi-loyalty-points",
327
+ POINTS_EARNED = "x-rbi-points-earned",
328
+ REWARDS = "x-rbi-rewards",
329
+ OFFERS = "x-rbi-offers"
330
+ }
325
331
  /**
326
- * OrderExtra type
332
+ * OrderExtra interface
327
333
  *
328
334
  * @interface IOrderExtra
329
335
  * @manual-verify {string} order needs manual verification
@@ -341,10 +347,7 @@ export interface ITaxSummary {
341
347
  * @x-rbi-rewards {string} comma separated product IDs of preselected RBI REWARDS
342
348
  * @x-rbi-offers {string} comma separated product IDs of preselected RBI OFFERS
343
349
  */
344
- export type IOrderExtra = {
345
- [key in ERbiOrderExtra]?: string | undefined;
346
- } & IStringKeyRecord<string | undefined> & IOrderExtraSubInterface;
347
- interface IOrderExtraSubInterface {
350
+ interface IOrderExtra {
348
351
  "x-source"?: EOrderSource;
349
352
  "x-source-type"?: "INTEGRATOR";
350
353
  "manual-verify"?: string;
@@ -360,16 +363,15 @@ interface IOrderExtraSubInterface {
360
363
  "x-pos-id"?: string;
361
364
  "company-tax-id"?: string;
362
365
  "x-kiosk-id"?: string;
366
+ [ERbiOrderExtra.OFFERS]?: string;
367
+ [ERbiOrderExtra.REWARDS]?: string;
368
+ [ERbiOrderExtra.POINTS_EARNED]?: string;
369
+ [ERbiOrderExtra.POINTS_TOTAL]?: string;
370
+ [key: string]: string | undefined;
363
371
  }
364
372
  interface IStringKeyRecord<T> {
365
373
  [key: string]: T;
366
374
  }
367
- export declare enum ERbiOrderExtra {
368
- POINTS_TOTAL = "x-rbi-loyalty-points",
369
- POINTS_EARNED = "x-rbi-points-earned",
370
- REWARDS = "x-rbi-rewards",
371
- OFFERS = "x-rbi-offers"
372
- }
373
375
  export interface IOrderLog {
374
376
  timestamp?: string;
375
377
  user?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "1.9.0",
3
+ "version": "1.9.1",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",