rerobe-js-orm 3.0.38 → 3.0.40

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.
@@ -1,5 +1,6 @@
1
1
  export namespace CUSTOMER_NOTIFICATION_TYPES {
2
- const orderCancellation: string;
3
2
  const orderConfirmation: string;
3
+ const orderCancellation: string;
4
4
  const orderRefund: string;
5
+ const shippingConfirmation: string;
5
6
  }
@@ -2,7 +2,8 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.CUSTOMER_NOTIFICATION_TYPES = void 0;
4
4
  exports.CUSTOMER_NOTIFICATION_TYPES = {
5
- orderCancellation: 'ORDER_CANCELLATION',
6
5
  orderConfirmation: 'ORDER_CONFIRMATION',
6
+ orderCancellation: 'ORDER_CANCELLATION',
7
7
  orderRefund: 'ORDER_REFUND',
8
+ shippingConfirmation: 'SHIPPING_CONFIRMATION',
8
9
  };
package/lib/index.d.ts CHANGED
@@ -27,8 +27,8 @@ import Merchant from './models/Merchant';
27
27
  import User from './models/User';
28
28
  import MerchantWebPage from './models/MerchantWebPage';
29
29
  import ShopifyMerchantAccount from './models/ShopifyMerchantAccount';
30
- import CustomerNotification from './models/CustomerNotification/CustomerNotification';
31
- import OrderConfirmationNotification from './models/CustomerNotification/orders/OrderConfirmationNotification';
30
+ import CustomerNotification from './models/CustomerNotification';
31
+ import RibbnFile from './models/RibbnFile';
32
32
  import ProductStateManager from './models/ProductStateManager';
33
33
  import PayoutAccount from './models/PayoutAccount';
34
34
  import PayoutAccountFormState from './form-states/PayoutAccount/PayoutAccountFormState';
@@ -37,4 +37,4 @@ import WebhookFormState from './form-states/Merchant/WebhookFormState';
37
37
  import ReRobeProductHelpers from './helpers/ReRobeProductHelpers';
38
38
  import AnalyticsHelpers from './helpers/AnalyticsHelpers';
39
39
  import OrderHelpers from './helpers/OrderHelpers';
40
- export { ProductFromAlgoliaJSONDoc, ProductFromShopifyWebhookJSONDoc, ProductFromShopifyJSClientJSONDoc, ProductFormStateFactory, ProductCollectionFormStateFactory, ProductCollectionHelpers, SellRequestFormStateFactory, PickUpFormStateFactory, AddressFormStateFactory, UserFormStateFactory, UserFromShopifyWebhookJSONDoc, UserFromAuthTemplateMethod, DraftOrderFromMirakl, DraftOrderFromApp, ChatRoomFromNewUserSignUp, KlarnaSessionFactory, Product, ProductStateManager, Order, OrderFromShopifyWebhook, OrderFromShopifyAdminApi, OrderFromShopifyStorefrontApi, OrderFromApp, OrderFormStateFactory, RefundFormStateFactory, PayoutAccount, PayoutAccountFormState, Merchant, MerchantFormState, MerchantFormStateFactory, ReRobeProductHelpers, User, AnalyticsHelpers, OrderHelpers, WebhookFormState, MerchantWebPage, ShopifyMerchantAccount, CustomerNotification, OrderConfirmationNotification, };
40
+ export { RibbnFile, ProductFromAlgoliaJSONDoc, ProductFromShopifyWebhookJSONDoc, ProductFromShopifyJSClientJSONDoc, ProductFormStateFactory, ProductCollectionFormStateFactory, ProductCollectionHelpers, SellRequestFormStateFactory, PickUpFormStateFactory, AddressFormStateFactory, UserFormStateFactory, UserFromShopifyWebhookJSONDoc, UserFromAuthTemplateMethod, DraftOrderFromMirakl, DraftOrderFromApp, ChatRoomFromNewUserSignUp, KlarnaSessionFactory, Product, ProductStateManager, Order, OrderFromShopifyWebhook, OrderFromShopifyAdminApi, OrderFromShopifyStorefrontApi, OrderFromApp, OrderFormStateFactory, RefundFormStateFactory, PayoutAccount, PayoutAccountFormState, Merchant, MerchantFormState, MerchantFormStateFactory, ReRobeProductHelpers, User, AnalyticsHelpers, OrderHelpers, WebhookFormState, MerchantWebPage, ShopifyMerchantAccount, CustomerNotification, };
package/lib/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OrderConfirmationNotification = exports.CustomerNotification = exports.ShopifyMerchantAccount = exports.MerchantWebPage = exports.WebhookFormState = exports.OrderHelpers = exports.AnalyticsHelpers = exports.User = exports.ReRobeProductHelpers = exports.MerchantFormStateFactory = exports.MerchantFormState = exports.Merchant = exports.PayoutAccountFormState = exports.PayoutAccount = exports.RefundFormStateFactory = exports.OrderFormStateFactory = exports.OrderFromApp = exports.OrderFromShopifyStorefrontApi = exports.OrderFromShopifyAdminApi = exports.OrderFromShopifyWebhook = exports.Order = exports.ProductStateManager = exports.Product = exports.KlarnaSessionFactory = exports.ChatRoomFromNewUserSignUp = exports.DraftOrderFromApp = exports.DraftOrderFromMirakl = exports.UserFromAuthTemplateMethod = exports.UserFromShopifyWebhookJSONDoc = exports.UserFormStateFactory = exports.AddressFormStateFactory = exports.PickUpFormStateFactory = exports.SellRequestFormStateFactory = exports.ProductCollectionHelpers = exports.ProductCollectionFormStateFactory = exports.ProductFormStateFactory = exports.ProductFromShopifyJSClientJSONDoc = exports.ProductFromShopifyWebhookJSONDoc = exports.ProductFromAlgoliaJSONDoc = void 0;
3
+ exports.CustomerNotification = exports.ShopifyMerchantAccount = exports.MerchantWebPage = exports.WebhookFormState = exports.OrderHelpers = exports.AnalyticsHelpers = exports.User = exports.ReRobeProductHelpers = exports.MerchantFormStateFactory = exports.MerchantFormState = exports.Merchant = exports.PayoutAccountFormState = exports.PayoutAccount = exports.RefundFormStateFactory = exports.OrderFormStateFactory = exports.OrderFromApp = exports.OrderFromShopifyStorefrontApi = exports.OrderFromShopifyAdminApi = exports.OrderFromShopifyWebhook = exports.Order = exports.ProductStateManager = exports.Product = exports.KlarnaSessionFactory = exports.ChatRoomFromNewUserSignUp = exports.DraftOrderFromApp = exports.DraftOrderFromMirakl = exports.UserFromAuthTemplateMethod = exports.UserFromShopifyWebhookJSONDoc = exports.UserFormStateFactory = exports.AddressFormStateFactory = exports.PickUpFormStateFactory = exports.SellRequestFormStateFactory = exports.ProductCollectionHelpers = exports.ProductCollectionFormStateFactory = exports.ProductFormStateFactory = exports.ProductFromShopifyJSClientJSONDoc = exports.ProductFromShopifyWebhookJSONDoc = exports.ProductFromAlgoliaJSONDoc = exports.RibbnFile = void 0;
4
4
  const ProductFromShopifyJSClientJSONDoc_1 = require("./factories/Product/ProductFromShopifyJSClientJSONDoc");
5
5
  exports.ProductFromShopifyJSClientJSONDoc = ProductFromShopifyJSClientJSONDoc_1.default;
6
6
  const ProductFromAlgoliaJSONDoc_1 = require("./factories/Product/ProductFromAlgoliaJSONDoc");
@@ -59,10 +59,10 @@ const MerchantWebPage_1 = require("./models/MerchantWebPage");
59
59
  exports.MerchantWebPage = MerchantWebPage_1.default;
60
60
  const ShopifyMerchantAccount_1 = require("./models/ShopifyMerchantAccount");
61
61
  exports.ShopifyMerchantAccount = ShopifyMerchantAccount_1.default;
62
- const CustomerNotification_1 = require("./models/CustomerNotification/CustomerNotification");
62
+ const CustomerNotification_1 = require("./models/CustomerNotification");
63
63
  exports.CustomerNotification = CustomerNotification_1.default;
64
- const OrderConfirmationNotification_1 = require("./models/CustomerNotification/orders/OrderConfirmationNotification");
65
- exports.OrderConfirmationNotification = OrderConfirmationNotification_1.default;
64
+ const RibbnFile_1 = require("./models/RibbnFile");
65
+ exports.RibbnFile = RibbnFile_1.default;
66
66
  const ProductStateManager_1 = require("./models/ProductStateManager");
67
67
  exports.ProductStateManager = ProductStateManager_1.default;
68
68
  const PayoutAccount_1 = require("./models/PayoutAccount");
@@ -1,4 +1,4 @@
1
- import Base from '../../Base';
1
+ import Base from '../Base';
2
2
  export default class CustomerNotification extends Base {
3
3
  documentId: string;
4
4
  createdAt: string;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- const Base_1 = require("../../Base");
3
+ const Base_1 = require("../Base");
4
4
  class CustomerNotification extends Base_1.default {
5
5
  constructor(props) {
6
6
  super();
@@ -9,6 +9,10 @@ export default class RibbnFile extends Base {
9
9
  type: string;
10
10
  url: string;
11
11
  tags: string[];
12
+ title: string;
13
+ description: string;
14
+ altText: string;
15
+ link: string;
12
16
  createdAt: string | FireStoreTimeStamp;
13
17
  updatedAt: string | FireStoreTimeStamp;
14
18
  constructor(props?: any);
@@ -13,6 +13,10 @@ class RibbnFile extends Base_1.default {
13
13
  this.type = (props === null || props === void 0 ? void 0 : props.type) || '';
14
14
  this.url = (props === null || props === void 0 ? void 0 : props.url) || '';
15
15
  this.tags = (props === null || props === void 0 ? void 0 : props.tags) || [];
16
+ this.title = (props === null || props === void 0 ? void 0 : props.title) || '';
17
+ this.description = (props === null || props === void 0 ? void 0 : props.description) || '';
18
+ this.altText = (props === null || props === void 0 ? void 0 : props.altText) || '';
19
+ this.link = (props === null || props === void 0 ? void 0 : props.link) || '';
16
20
  this.createdAt = (props === null || props === void 0 ? void 0 : props.createdAt) || '';
17
21
  this.updatedAt = (props === null || props === void 0 ? void 0 : props.updatedAt) || '';
18
22
  }
@@ -27,6 +31,10 @@ class RibbnFile extends Base_1.default {
27
31
  type: this.type,
28
32
  url: this.url,
29
33
  tags: this.tags,
34
+ title: this.title,
35
+ description: this.description,
36
+ altText: this.altText,
37
+ link: this.link,
30
38
  createdAt: this.createdAt,
31
39
  updatedAt: this.updatedAt,
32
40
  };
@@ -17,4 +17,6 @@ declare type CustomerNotificationAttributes = {
17
17
  };
18
18
  declare type ORDER_CONFIRMATION_TYPE = 'ORDER_CONFIRMATION';
19
19
  declare type ORDER_CANCELLATION_TYPE = 'ORDER_CANCELLATION';
20
- declare type CustomerNotificationType = ORDER_CONFIRMATION_TYPE | ORDER_CANCELLATION_TYPE;
20
+ declare type ORDER_REFUND = 'ORDER_REFUND';
21
+ declare type SHIPPING_CONFIRMATION = 'SHIPPING_CONFIRMATION';
22
+ declare type CustomerNotificationType = ORDER_CONFIRMATION_TYPE | ORDER_CANCELLATION_TYPE | SHIPPING_CONFIRMATION | ORDER_REFUND;
@@ -7,4 +7,8 @@ interface RibbnFileAttributes extends ReRobeDocument {
7
7
  type: string;
8
8
  url: string;
9
9
  tags: string[];
10
+ title: string;
11
+ description: string;
12
+ altText: string;
13
+ link: string;
10
14
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "3.0.38",
3
+ "version": "3.0.40",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -1,6 +0,0 @@
1
- import CustomerNotification from '../CustomerNotification';
2
- export default class OrderConfirmationNotification extends CustomerNotification {
3
- type: ORDER_CONFIRMATION_TYPE;
4
- data: any;
5
- constructor(props?: any);
6
- }
@@ -1,12 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const notification_constants_1 = require("../../../constants/notification-constants");
4
- const CustomerNotification_1 = require("../CustomerNotification");
5
- class OrderConfirmationNotification extends CustomerNotification_1.default {
6
- constructor(props) {
7
- super(props);
8
- this.type = notification_constants_1.CUSTOMER_NOTIFICATION_TYPES.orderConfirmation;
9
- this.data = props === null || props === void 0 ? void 0 : props.data;
10
- }
11
- }
12
- exports.default = OrderConfirmationNotification;