rerobe-js-orm 4.2.2 → 4.2.4

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.
@@ -63,6 +63,7 @@ export namespace RIBBN_WEBHOOK_EVENT_DICT {
63
63
  }
64
64
  export namespace SUBSCRIPTION_STATUSES {
65
65
  const active: string;
66
+ const activeNoSellRequests: string;
66
67
  const past_due: string;
67
68
  const canceled: string;
68
69
  const unpaid: string;
@@ -70,4 +71,5 @@ export namespace SUBSCRIPTION_STATUSES {
70
71
  const incomplete: string;
71
72
  const incomplete_expired: string;
72
73
  const paused: string;
74
+ const special: string;
73
75
  }
@@ -57,6 +57,7 @@ exports.RIBBN_WEBHOOK_EVENT_DICT = {
57
57
  };
58
58
  exports.SUBSCRIPTION_STATUSES = {
59
59
  active: 'ACTIVE',
60
+ activeNoSellRequests: 'ACTIVE_NO_SELL_REQUESTS',
60
61
  past_due: 'PAST_DUE',
61
62
  canceled: 'CANCELED',
62
63
  unpaid: 'UNPAID',
@@ -64,4 +65,5 @@ exports.SUBSCRIPTION_STATUSES = {
64
65
  incomplete: 'INCOMPLETE',
65
66
  incomplete_expired: 'INCOMPLETE_EXPIRED',
66
67
  paused: 'PAUSED',
68
+ special: 'SPECIAL',
67
69
  };
@@ -74,8 +74,8 @@ const measurementCategoryOptions = [
74
74
  measurementFields: ['width', 'height', 'depth'],
75
75
  },
76
76
  {
77
- label: 'Bottoms',
78
- value: 'Bottoms',
77
+ label: 'Bottoms (Jeans, Pants, Shorts, Skirts, etc.)',
78
+ value: 'Bottoms (Jeans, Pants, Shorts, Skirts, etc.)',
79
79
  measurementFields: ['waistCircumference', 'innerLeg', 'outerLeg', 'footCircumference'],
80
80
  },
81
81
  {
@@ -84,27 +84,10 @@ const measurementCategoryOptions = [
84
84
  measurementFields: ['length', 'height', 'width', 'handDrop', 'shoulderDrop'],
85
85
  },
86
86
  {
87
- label: 'Blazers & Jackets',
88
- value: 'Blazers & Jackets',
87
+ label: 'Jackets (Blazers, Outerwear, Coats)',
88
+ value: 'Jackets (Blazers, Outerwear, Coats)',
89
89
  measurementFields: ['chestCircumference', 'waistCircumference', 'length', 'shoulderWidth', 'sleeveLength'],
90
90
  },
91
- {
92
- label: 'Coats',
93
- value: 'Coats',
94
- measurementFields: ['chestCircumference', 'waistCircumference', 'length', 'shoulderWidth', 'sleeveLength'],
95
- },
96
- {
97
- label: 'Dresses',
98
- value: 'Dresses',
99
- measurementFields: [
100
- 'bustCircumference',
101
- 'waistCircumference',
102
- 'hipCircumference',
103
- 'length',
104
- 'shoulderWidth',
105
- 'sleeveLength',
106
- ],
107
- },
108
91
  {
109
92
  label: 'Eyewear',
110
93
  value: 'Eyewear',
@@ -126,8 +109,13 @@ const measurementCategoryOptions = [
126
109
  measurementFields: ['headCircumference', 'brimWidth', 'crownHeight'],
127
110
  },
128
111
  {
129
- label: 'Shirts',
130
- value: 'Shirts',
112
+ label: 'Jewelry',
113
+ value: 'Jewelry',
114
+ measurementFields: ['length', 'width', 'diameter'],
115
+ },
116
+ {
117
+ label: 'Collared Shirts & Tops',
118
+ value: 'Collared Shirts & Tops',
131
119
  measurementFields: ['neckCircumference', 'collarLength', 'sleeveLength', 'chestCircumference'],
132
120
  },
133
121
  {
@@ -149,6 +137,28 @@ const measurementCategoryOptions = [
149
137
  'footCircumference',
150
138
  ],
151
139
  },
140
+ {
141
+ label: 'Non-collared Shirts & Tops (Sweaters, Knitwear, etc.)',
142
+ value: 'Non-collared Shirts & Tops (Sweaters, Knitwear, etc.)',
143
+ measurementFields: ['chestCircumference', 'waistCircumference', 'length', 'shoulderWidth', 'sleeveLength'],
144
+ },
145
+ {
146
+ label: 'One-piece Apparel (Dresses, Jumpsuits, etc.)',
147
+ value: 'One-piece Apparel (Dresses, Jumpsuits, etc.)',
148
+ measurementFields: [
149
+ 'bustCircumference',
150
+ 'waistCircumference',
151
+ 'hipCircumference',
152
+ 'length',
153
+ 'shoulderWidth',
154
+ 'sleeveLength',
155
+ ],
156
+ },
157
+ {
158
+ label: 'Tops (Blouses, Shirts, Sweaters, etc.)',
159
+ value: 'Tops (Blouses, Shirts, Sweaters, etc.)',
160
+ measurementFields: ['chestCircumference', 'waistCircumference', 'length', 'shoulderWidth', 'sleeveLength'],
161
+ },
152
162
  ];
153
163
  exports.measurementCategoryOptions = measurementCategoryOptions;
154
164
  const sizeOptions = [
@@ -89,6 +89,7 @@ export default class Merchant extends Base {
89
89
  hasAutomatedPayouts?: boolean;
90
90
  hasAIQuickList?: boolean;
91
91
  hasReceiptPrinter?: boolean;
92
+ hasActiveWebshop?: boolean;
92
93
  stripeSubscription?: StripeSubscription;
93
94
  subscriptionStatus?: string;
94
95
  constructor(props?: any);
@@ -51,6 +51,7 @@ class Merchant extends Base_1.default {
51
51
  this.organizationNumber = (props === null || props === void 0 ? void 0 : props.organizationNumber) || '';
52
52
  this.returnPolicy = (props === null || props === void 0 ? void 0 : props.returnPolicy) || '';
53
53
  this.subscriptionStatus = (props === null || props === void 0 ? void 0 : props.subscriptionStatus) || merchant_constants_1.SUBSCRIPTION_STATUSES.trialing;
54
+ this.hasActiveWebshop = (props === null || props === void 0 ? void 0 : props.hasActiveWebshop) || false;
54
55
  if (props === null || props === void 0 ? void 0 : props.isChannelPartner) {
55
56
  this.isChannelPartner = props.isChannelPartner;
56
57
  }
@@ -105,6 +106,7 @@ class Merchant extends Base_1.default {
105
106
  organizationNumber: this.organizationNumber,
106
107
  returnPolicy: this.returnPolicy,
107
108
  subscriptionStatus: this.subscriptionStatus,
109
+ hasActiveWebshop: this.hasActiveWebshop,
108
110
  };
109
111
  if (this.isChannelPartner) {
110
112
  mObj.isChannelPartner = this.isChannelPartner;
@@ -45,6 +45,7 @@ type MerchantSystemOnlyMutableData = {
45
45
  hasAutomatedPayouts?: boolean;
46
46
  hasAIQuickList?: boolean;
47
47
  hasReceiptPrinter?: boolean;
48
+ hasActiveWebshop?: boolean;
48
49
  subscriptionStatus?: string;
49
50
  };
50
51
  type MerchantObj = MerchantMutableData & MerchantSystemOnlyMutableData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rerobe-js-orm",
3
- "version": "4.2.2",
3
+ "version": "4.2.4",
4
4
  "description": "ReRobe's Javascript ORM Framework",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",