@orderingstack/ordering-types 0.1.5 → 0.1.7

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.
@@ -307,23 +307,23 @@ export interface OrderLog {
307
307
  lines?: string[];
308
308
  }
309
309
  export interface OrderLine {
310
- id: string;
311
- creator?: string;
312
- created: string;
313
- updated: string;
314
- source: string;
315
- quantity: number;
316
- price: number;
317
- productId: string;
318
- product: OrderProduct;
319
- productConfig: ProductConfig;
320
- bom: Object;
321
- status: OrderLineStatus;
310
+ bom?: Object;
322
311
  comments?: OrderComment[];
312
+ created: string;
313
+ creator?: string;
323
314
  discounts?: Discount[];
324
315
  extra: Extra;
325
316
  hash: string;
326
- total: number;
317
+ id: string;
318
+ price: string;
319
+ product: OrderProduct;
320
+ productConfig: ProductConfig;
321
+ productId: string;
322
+ quantity: number;
323
+ source: string;
324
+ status: OrderLineStatus;
325
+ total: string;
326
+ updated: string;
327
327
  }
328
328
  export interface SlipEntry {
329
329
  item: string;
@@ -393,11 +393,16 @@ export declare enum OrderProductKind {
393
393
  export interface ProductLiterals {
394
394
  [propName: string]: any;
395
395
  }
396
+ type WeekDay = "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN";
397
+ export type SaleChannelWeek = Partial<Record<WeekDay, {
398
+ from: string;
399
+ to: string;
400
+ }[]>>;
396
401
  export interface SaleChannel {
397
402
  active?: boolean;
398
403
  minDeliveryTime?: string;
399
404
  minOrderValue?: string;
400
- week?: Availability;
405
+ week?: SaleChannelWeek;
401
406
  }
402
407
  export declare enum EChannelName {
403
408
  DINE_IN = "DINE_IN",
@@ -307,23 +307,23 @@ export interface OrderLog {
307
307
  lines?: string[];
308
308
  }
309
309
  export interface OrderLine {
310
- id: string;
311
- creator?: string;
312
- created: string;
313
- updated: string;
314
- source: string;
315
- quantity: number;
316
- price: number;
317
- productId: string;
318
- product: OrderProduct;
319
- productConfig: ProductConfig;
320
- bom: Object;
321
- status: OrderLineStatus;
310
+ bom?: Object;
322
311
  comments?: OrderComment[];
312
+ created: string;
313
+ creator?: string;
323
314
  discounts?: Discount[];
324
315
  extra: Extra;
325
316
  hash: string;
326
- total: number;
317
+ id: string;
318
+ price: string;
319
+ product: OrderProduct;
320
+ productConfig: ProductConfig;
321
+ productId: string;
322
+ quantity: number;
323
+ source: string;
324
+ status: OrderLineStatus;
325
+ total: string;
326
+ updated: string;
327
327
  }
328
328
  export interface SlipEntry {
329
329
  item: string;
@@ -393,11 +393,16 @@ export declare enum OrderProductKind {
393
393
  export interface ProductLiterals {
394
394
  [propName: string]: any;
395
395
  }
396
+ type WeekDay = "MON" | "TUE" | "WED" | "THU" | "FRI" | "SAT" | "SUN";
397
+ export type SaleChannelWeek = Partial<Record<WeekDay, {
398
+ from: string;
399
+ to: string;
400
+ }[]>>;
396
401
  export interface SaleChannel {
397
402
  active?: boolean;
398
403
  minDeliveryTime?: string;
399
404
  minOrderValue?: string;
400
- week?: Availability;
405
+ week?: SaleChannelWeek;
401
406
  }
402
407
  export declare enum EChannelName {
403
408
  DINE_IN = "DINE_IN",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@orderingstack/ordering-types",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "Typescript types for @orderingstack",
5
5
  "types": "dist/esm/index.d.ts",
6
6
  "main": "dist/cjs/index.js",