rerobe-js-orm 2.5.7 → 2.6.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.
@@ -0,0 +1,37 @@
1
+ export namespace SHIPPING_TYPES {
2
+ const localPickUp: string;
3
+ const localDelivery: string;
4
+ const shipping: string;
5
+ }
6
+ export namespace PAYMENT_TYPES {
7
+ const creditCard: string;
8
+ const klarna: string;
9
+ const swish: string;
10
+ }
11
+ export namespace ORDER_STATES {
12
+ const draft: string;
13
+ const completed: string;
14
+ }
15
+ export namespace SALES_CHANNELS {
16
+ const mobileApp: string;
17
+ const webApp: string;
18
+ const store: string;
19
+ const onlineStore: string;
20
+ const thirdParty: string;
21
+ const ahlens: string;
22
+ }
23
+ export namespace FULFILLMENT_TYPES {
24
+ const fulfilled: string;
25
+ const partiallyFulfilled: string;
26
+ const unfulfilled: string;
27
+ const inProgress: string;
28
+ const canceled: string;
29
+ const restocked: string;
30
+ }
31
+ export namespace FINANCIAL_TYPES {
32
+ const paid: string;
33
+ const pending: string;
34
+ const refunded: string;
35
+ const partiallyRefunded: string;
36
+ const authorized: string;
37
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.FINANCIAL_TYPES = exports.FULFILLMENT_TYPES = exports.SALES_CHANNELS = exports.ORDER_STATES = exports.PAYMENT_TYPES = exports.SHIPPING_TYPES = void 0;
4
+ exports.SHIPPING_TYPES = {
5
+ localPickUp: 'LOCAL_PICK_UP',
6
+ localDelivery: 'LOCAL_DELIVERY',
7
+ shipping: 'SHIPPING',
8
+ };
9
+ exports.PAYMENT_TYPES = {
10
+ creditCard: 'CREDIT_CARD',
11
+ klarna: 'KLARNA',
12
+ swish: 'SWISH',
13
+ };
14
+ exports.ORDER_STATES = {
15
+ draft: 'DRAFT',
16
+ completed: 'COMPLETED',
17
+ };
18
+ exports.SALES_CHANNELS = {
19
+ mobileApp: 'MOBILE_APP',
20
+ webApp: 'DRAFT_ORDER',
21
+ store: 'STORE',
22
+ onlineStore: 'ONLINE_STORE',
23
+ thirdParty: 'THIRD_PARTY',
24
+ ahlens: 'AHLENS',
25
+ };
26
+ exports.FULFILLMENT_TYPES = {
27
+ fulfilled: 'FULFILLED',
28
+ partiallyFulfilled: 'PARTIALLY_FULFILLED',
29
+ unfulfilled: 'UNFULFILLED',
30
+ inProgress: 'IN_PROGRESS',
31
+ canceled: 'CANCELED',
32
+ restocked: 'RESTOCKED',
33
+ };
34
+ exports.FINANCIAL_TYPES = {
35
+ paid: 'PAID',
36
+ pending: 'PENDING',
37
+ refunded: 'REFUNDED',
38
+ partiallyRefunded: 'PARTIALLY_REFUNDED',
39
+ authorized: 'AUTHORIZED',
40
+ };
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const Base_1 = require("../Base");
4
+ const order_constants_1 = require("../constants/order-constants");
4
5
  class Order extends Base_1.default {
5
6
  constructor(props) {
6
7
  super();
@@ -188,40 +189,9 @@ class Order extends Base_1.default {
188
189
  }
189
190
  }
190
191
  exports.default = Order;
191
- Order.SHIPPING_TYPES = {
192
- localPickUp: 'LOCAL_PICK_UP',
193
- localDelivery: 'LOCAL_DELIVERY',
194
- shipping: 'SHIPPING',
195
- };
196
- Order.PAYMENT_TYPES = {
197
- creditCard: 'CREDIT_CARD',
198
- klarna: 'KLARNA',
199
- swish: 'SWISH',
200
- };
201
- Order.ORDER_STATES = {
202
- draft: 'DRAFT',
203
- completed: 'COMPLETED',
204
- };
205
- Order.SALES_CHANNELS = {
206
- mobileApp: 'MOBILE_APP',
207
- webApp: 'DRAFT_ORDER',
208
- store: 'STORE',
209
- onlineStore: 'ONLINE_STORE',
210
- thirdParty: 'THIRD_PARTY',
211
- ahlens: 'AHLENS',
212
- };
213
- Order.FULFILLMENT_TYPES = {
214
- fulfilled: 'FULFILLED',
215
- partiallyFulfilled: 'PARTIALLY_FULFILLED',
216
- unfulfilled: 'UNFULFILLED',
217
- inProgress: 'IN_PROGRESS',
218
- canceled: 'CANCELED',
219
- restocked: 'RESTOCKED',
220
- };
221
- Order.FINANCIAL_TYPES = {
222
- paid: 'PAID',
223
- pending: 'PENDING',
224
- refunded: 'REFUNDED',
225
- partiallyRefunded: 'PARTIALLY_REFUNDED',
226
- authorized: 'AUTHORIZED',
227
- };
192
+ Order.SHIPPING_TYPES = order_constants_1.SHIPPING_TYPES;
193
+ Order.PAYMENT_TYPES = order_constants_1.PAYMENT_TYPES;
194
+ Order.ORDER_STATES = order_constants_1.ORDER_STATES;
195
+ Order.SALES_CHANNELS = order_constants_1.SALES_CHANNELS;
196
+ Order.FULFILLMENT_TYPES = order_constants_1.FULFILLMENT_TYPES;
197
+ Order.FINANCIAL_TYPES = order_constants_1.FINANCIAL_TYPES;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "2.5.7",
3
+ "version": "2.6.0",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",