@daffodil/order 0.41.0 → 0.42.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- {"version":3,"file":"daffodil-order.mjs","sources":["../../../libs/order/src/models/order-item.ts","../../../libs/order/src/models/order-total.ts","../../../libs/order/src/injection-tokens/error-matcher.token.ts","../../../libs/order/src/daffodil-order.ts"],"sourcesContent":["import {\n DaffIdentifiable,\n ID,\n} from '@daffodil/core';\nimport { DaffProductImage } from '@daffodil/product';\n\nimport { DaffOrder } from './order';\n\nexport enum DaffOrderItemType {\n Simple = 'simple',\n Composite = 'composite',\n Configurable = 'configurable'\n}\n\nexport interface DaffOrderItem extends DaffIdentifiable {\n type: DaffOrderItemType;\n\t/**\n\t * @deprecated use id instead.\n\t */\n item_id: ID;\n qty_ordered: number;\n qty_canceled: number;\n qty_fulfilled: number;\n image: DaffProductImage;\n order_id: DaffOrder['id'];\n created_at: string;\n updated_at: string;\n product_id: ID;\n parent_item_id: ID;\n sku: string;\n name: string;\n weight: number;\n qty: number;\n price: number;\n discount_percent: number;\n discount_amount: number;\n tax_percent: number;\n tax_amount: number;\n row_total: number;\n row_total_with_discount: number;\n row_weight: number;\n tax_before_discount: number;\n}\n","export enum DaffOrderTotalTypeEnum {\n GrandTotal = 'grand_total',\n Subtotal = 'subtotal',\n Discount = 'discount',\n Tax = 'tax',\n Shipping = 'shipping'\n}\n\nexport interface DaffOrderTotal {\n label: string;\n value: number;\n sort_order: number;\n type: DaffOrderTotalTypeEnum;\n}\n","import { InjectionToken } from '@angular/core';\n\nimport { daffTransformErrorToStateError } from '@daffodil/core/state';\n\n/**\n * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.\n * Can be used to further refine Daffodil errors into more specific app errors.\n */\nexport const DAFF_ORDER_ERROR_MATCHER = new InjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_ORDER_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAQY,kBAIX;AAJD,CAAA,UAAY,iBAAiB,EAAA;AAC3B,IAAA,iBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AACvB,IAAA,iBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B,CAAA;AAC/B,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,GAI5B,EAAA,CAAA,CAAA;;ICZW,uBAMX;AAND,CAAA,UAAY,sBAAsB,EAAA;AAChC,IAAA,sBAAA,CAAA,YAAA,CAAA,GAAA,aAA0B,CAAA;AAC1B,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,sBAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACvB,CAAC,EANW,sBAAsB,KAAtB,sBAAsB,GAMjC,EAAA,CAAA,CAAA;;ACFD;;;AAGG;AACU,MAAA,wBAAwB,GAAG,IAAI,cAAc,CACxD,0BAA0B,EAC1B,EAAE,OAAO,EAAE,MAAM,8BAA8B,EAAE;;ACVnD;;AAEG;;;;"}
1
+ {"version":3,"file":"daffodil-order.mjs","sources":["../../../libs/order/src/models/order-item.ts","../../../libs/order/src/models/order-total.ts","../../../libs/order/src/injection-tokens/error-matcher.token.ts","../../../libs/order/src/daffodil-order.ts"],"sourcesContent":["import {\n DaffIdentifiable,\n ID,\n} from '@daffodil/core';\nimport { DaffProductImage } from '@daffodil/product';\n\nimport { DaffOrder } from './order';\n\nexport enum DaffOrderItemType {\n Simple = 'simple',\n Composite = 'composite',\n Configurable = 'configurable'\n}\n\nexport interface DaffOrderItem extends DaffIdentifiable {\n type: DaffOrderItemType;\n /**\n * @deprecated use id instead.\n */\n item_id: ID;\n qty_ordered: number;\n qty_canceled: number;\n qty_fulfilled: number;\n image: DaffProductImage;\n order_id: DaffOrder['id'];\n created_at: string;\n updated_at: string;\n product_id: ID;\n parent_item_id: ID;\n sku: string;\n name: string;\n weight: number;\n qty: number;\n price: number;\n discount_percent: number;\n discount_amount: number;\n tax_percent: number;\n tax_amount: number;\n row_total: number;\n row_total_with_discount: number;\n row_weight: number;\n tax_before_discount: number;\n}\n","export enum DaffOrderTotalTypeEnum {\n GrandTotal = 'grand_total',\n Subtotal = 'subtotal',\n Discount = 'discount',\n Tax = 'tax',\n Shipping = 'shipping'\n}\n\nexport interface DaffOrderTotal {\n label: string;\n value: number;\n sort_order: number;\n type: DaffOrderTotalTypeEnum;\n}\n","import { InjectionToken } from '@angular/core';\n\nimport { daffTransformErrorToStateError } from '@daffodil/core/state';\n\n/**\n * Transforms `DaffError`s into `DaffStateError`s before they are serialized into state.\n * Can be used to further refine Daffodil errors into more specific app errors.\n */\nexport const DAFF_ORDER_ERROR_MATCHER = new InjectionToken<typeof daffTransformErrorToStateError>(\n 'DAFF_ORDER_ERROR_MATCHER',\n { factory: () => daffTransformErrorToStateError },\n);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;IAQY,kBAIX;AAJD,CAAA,UAAY,iBAAiB,EAAA;AAC3B,IAAA,iBAAA,CAAA,QAAA,CAAA,GAAA,QAAiB,CAAA;AACjB,IAAA,iBAAA,CAAA,WAAA,CAAA,GAAA,WAAuB,CAAA;AACvB,IAAA,iBAAA,CAAA,cAAA,CAAA,GAAA,cAA6B,CAAA;AAC/B,CAAC,EAJW,iBAAiB,KAAjB,iBAAiB,GAI5B,EAAA,CAAA,CAAA;;ICZW,uBAMX;AAND,CAAA,UAAY,sBAAsB,EAAA;AAChC,IAAA,sBAAA,CAAA,YAAA,CAAA,GAAA,aAA0B,CAAA;AAC1B,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACrB,IAAA,sBAAA,CAAA,KAAA,CAAA,GAAA,KAAW,CAAA;AACX,IAAA,sBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB,CAAA;AACvB,CAAC,EANW,sBAAsB,KAAtB,sBAAsB,GAMjC,EAAA,CAAA,CAAA;;ACFD;;;AAGG;AACU,MAAA,wBAAwB,GAAG,IAAI,cAAc,CACxD,0BAA0B,EAC1B,EAAE,OAAO,EAAE,MAAM,8BAA8B,EAAE;;ACVnD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daffodil/order",
3
- "version": "0.41.0",
3
+ "version": "0.42.2",
4
4
  "description": "A client-side Angular package for managing ecommerce orders agnostic to the ecommerce platform.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,10 +15,10 @@
15
15
  "peerDependencies": {
16
16
  "@angular/core": "^13.0.0",
17
17
  "@angular/common": "^13.0.0",
18
- "@daffodil/cart": "0.41.0",
19
- "@daffodil/core": "0.41.0",
20
- "@daffodil/geography": "0.41.0",
21
- "@daffodil/product": "0.41.0"
18
+ "@daffodil/cart": "0.42.2",
19
+ "@daffodil/core": "0.42.2",
20
+ "@daffodil/geography": "0.42.2",
21
+ "@daffodil/product": "0.42.2"
22
22
  },
23
23
  "module": "fesm2015/daffodil-order.mjs",
24
24
  "es2020": "fesm2020/daffodil-order.mjs",