rerobe-js-orm 3.5.1 → 3.5.3
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.
- package/lib/constants/ledger-constants.d.ts +4 -0
- package/lib/constants/ledger-constants.js +36 -1
- package/lib/factories/ProductCollection/ProductCollectionFromFormState.js +1 -1
- package/lib/form-states/Product/options.js +1 -1
- package/lib/form-states/ProductCollection/ProductCollectionFormState.js +1 -1
- package/lib/helpers/ReRobeProductHelpers.js +2 -2
- package/lib/helpers/SellerProductLedgerHelpers.js +1 -1
- package/lib/helpers/Utilities.js +6 -6
- package/lib/models/SellerProductLedger.js +3 -2
- package/lib/models/SellerProductLedgerActivityLog.d.ts +15 -0
- package/lib/models/SellerProductLedgerActivityLog.js +34 -0
- package/lib/types/analytics-types.d.ts +3 -3
- package/lib/types/customer-notification-types.d.ts +11 -11
- package/lib/types/ledger-transaction-types.d.ts +12 -10
- package/lib/types/ledger-transaction-types.js +5 -5
- package/lib/types/merchant-types.d.ts +14 -14
- package/lib/types/merchant-webshop-types.d.ts +3 -3
- package/lib/types/payout-account-types.d.ts +4 -4
- package/lib/types/product-collection-types.d.ts +8 -8
- package/lib/types/rerobe-chatroom-types.d.ts +6 -6
- package/lib/types/rerobe-document-types.d.ts +1 -1
- package/lib/types/rerobe-form-types.d.ts +4 -4
- package/lib/types/rerobe-klarna-types.d.ts +2 -2
- package/lib/types/rerobe-order-types.d.ts +86 -86
- package/lib/types/rerobe-pickup-types.d.ts +2 -2
- package/lib/types/rerobe-product-state-types.d.ts +3 -3
- package/lib/types/rerobe-product-types.d.ts +22 -22
- package/lib/types/rerobe-sellRequest-types.d.ts +3 -3
- package/lib/types/rerobe-user-types.d.ts +12 -12
- package/lib/types/response-types.d.ts +9 -9
- package/lib/types/webshop-page/common/web-page-element-property-types.d.ts +11 -11
- package/lib/types/webshop-page/elements/button-element-interface.d.ts +1 -1
- package/lib/types/webshop-page/elements/layout-element-interface.d.ts +1 -1
- package/lib/types/webshop-page/elements/typography-element-interface.d.ts +1 -1
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ interface UserAttributes extends ReRobeDocument {
|
|
|
38
38
|
lastUploadDate?: string;
|
|
39
39
|
registrationSource?: string;
|
|
40
40
|
}
|
|
41
|
-
|
|
41
|
+
type RibbnCustomerObj = {
|
|
42
42
|
uid?: string;
|
|
43
43
|
gid?: string;
|
|
44
44
|
firstName: string;
|
|
@@ -71,7 +71,7 @@ declare type RibbnCustomerObj = {
|
|
|
71
71
|
lastUploadDate?: string;
|
|
72
72
|
registrationSource?: string;
|
|
73
73
|
};
|
|
74
|
-
|
|
74
|
+
type UserObjForAuthTemplateMethod = {
|
|
75
75
|
authUserProfile: UserFromShopifyGraphQLResp;
|
|
76
76
|
prevUserProfile: UserAttributes | undefined;
|
|
77
77
|
savedItems: string[];
|
|
@@ -79,27 +79,27 @@ declare type UserObjForAuthTemplateMethod = {
|
|
|
79
79
|
shoppingSessionId: string;
|
|
80
80
|
registrationSource?: string;
|
|
81
81
|
};
|
|
82
|
-
|
|
82
|
+
type UserFromShopifyRESTResp = {
|
|
83
83
|
[key: string]: any;
|
|
84
84
|
};
|
|
85
|
-
|
|
85
|
+
type UserFromShopifyGraphQLResp = {
|
|
86
86
|
[key: string]: any;
|
|
87
87
|
};
|
|
88
|
-
|
|
88
|
+
type UserAddress = {
|
|
89
89
|
delivery: AddressInput[] | DeliveryAddress[];
|
|
90
90
|
pickUp: PickUp;
|
|
91
91
|
billing: string[];
|
|
92
92
|
payout: AddressInput;
|
|
93
93
|
};
|
|
94
|
-
|
|
94
|
+
type DeliveryAddress = {
|
|
95
95
|
id?: string;
|
|
96
96
|
formattedAddress: string;
|
|
97
97
|
};
|
|
98
|
-
|
|
98
|
+
type ShippingLine = {
|
|
99
99
|
price: number;
|
|
100
100
|
title?: string;
|
|
101
101
|
};
|
|
102
|
-
|
|
102
|
+
type UserFormFields = {
|
|
103
103
|
firstName: TextInputFormField<string>;
|
|
104
104
|
lastName: TextInputFormField<string>;
|
|
105
105
|
email: TextInputFormField<string>;
|
|
@@ -115,7 +115,7 @@ declare type UserFormFields = {
|
|
|
115
115
|
tags: MultiSelectFormField<string>;
|
|
116
116
|
notes: TextInputFormField<string>;
|
|
117
117
|
};
|
|
118
|
-
|
|
118
|
+
type AddressInput = {
|
|
119
119
|
id?: string;
|
|
120
120
|
address1: string;
|
|
121
121
|
address2?: string;
|
|
@@ -125,7 +125,7 @@ declare type AddressInput = {
|
|
|
125
125
|
province?: string | null;
|
|
126
126
|
zip?: string;
|
|
127
127
|
};
|
|
128
|
-
|
|
128
|
+
type AddressFormFields = {
|
|
129
129
|
address1: TextInputFormField<string>;
|
|
130
130
|
address2: TextInputFormField<string>;
|
|
131
131
|
city: TextInputFormField<string>;
|
|
@@ -134,14 +134,14 @@ declare type AddressFormFields = {
|
|
|
134
134
|
province: TextInputFormField<string>;
|
|
135
135
|
zip: TextInputFormField<string>;
|
|
136
136
|
};
|
|
137
|
-
|
|
137
|
+
type UserRespFromShopifyWebhook = {
|
|
138
138
|
firstName: string;
|
|
139
139
|
lastName: string;
|
|
140
140
|
email: string;
|
|
141
141
|
phone?: string;
|
|
142
142
|
addresses: AddressInput[];
|
|
143
143
|
};
|
|
144
|
-
|
|
144
|
+
type TypesenseUserObj = {
|
|
145
145
|
id: string;
|
|
146
146
|
documentId: string;
|
|
147
147
|
userId: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type ProductRespFromShopifyWebhook = {
|
|
2
2
|
id: number;
|
|
3
3
|
body_html: string;
|
|
4
4
|
handle: string;
|
|
@@ -11,7 +11,7 @@ declare type ProductRespFromShopifyWebhook = {
|
|
|
11
11
|
updated_at: string;
|
|
12
12
|
published_at: string;
|
|
13
13
|
};
|
|
14
|
-
|
|
14
|
+
type ProductRespFromShopifyJSClient = {
|
|
15
15
|
id: string;
|
|
16
16
|
availableForSale: boolean;
|
|
17
17
|
title: string;
|
|
@@ -28,23 +28,23 @@ declare type ProductRespFromShopifyJSClient = {
|
|
|
28
28
|
publishedAt: string;
|
|
29
29
|
variants: ShopifyGraphQLConnectionObj;
|
|
30
30
|
};
|
|
31
|
-
|
|
31
|
+
type ShopifyGraphQLConnectionObj = {
|
|
32
32
|
edges: ShopifyGraphQLEdgeObj[];
|
|
33
33
|
};
|
|
34
|
-
|
|
34
|
+
type ShopifyGraphQLEdgeObj = {
|
|
35
35
|
node: {
|
|
36
36
|
[key: string]: any;
|
|
37
37
|
};
|
|
38
38
|
};
|
|
39
|
-
|
|
39
|
+
type ShopifyRESTProductVariantObj = {
|
|
40
40
|
[key: string]: any;
|
|
41
41
|
};
|
|
42
|
-
|
|
42
|
+
type PriceRangeObj = {
|
|
43
43
|
maxVariantPrice: {
|
|
44
44
|
amount: string;
|
|
45
45
|
};
|
|
46
46
|
};
|
|
47
|
-
|
|
47
|
+
type ProductRespFromAlgolia = {
|
|
48
48
|
id: number;
|
|
49
49
|
title: string;
|
|
50
50
|
handle: string;
|
|
@@ -60,9 +60,9 @@ declare type ProductRespFromAlgolia = {
|
|
|
60
60
|
price: number;
|
|
61
61
|
grams: number;
|
|
62
62
|
};
|
|
63
|
-
|
|
63
|
+
type algoliaNamedTags = {
|
|
64
64
|
[key: string]: string | string[];
|
|
65
65
|
};
|
|
66
|
-
|
|
66
|
+
type OrderRespFromMirakl = {
|
|
67
67
|
[key: string]: any;
|
|
68
68
|
};
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type WebPageElementAttrProperties = {
|
|
2
2
|
tag: string;
|
|
3
3
|
id: string;
|
|
4
4
|
[x: string]: any;
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type WebPageElementSizeProperties = {
|
|
7
7
|
width: string;
|
|
8
8
|
height: string;
|
|
9
9
|
minWidth: string;
|
|
@@ -11,47 +11,47 @@ export declare type WebPageElementSizeProperties = {
|
|
|
11
11
|
maxWidth: string;
|
|
12
12
|
maxHeight: string;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type WebPageElementPositionProperties = {
|
|
15
15
|
position: string;
|
|
16
16
|
left: string;
|
|
17
17
|
top: string;
|
|
18
18
|
justifySelf: string;
|
|
19
19
|
alignSelf: string;
|
|
20
20
|
};
|
|
21
|
-
export
|
|
21
|
+
export type WebPageElementMarginProperties = {
|
|
22
22
|
marginTop: string;
|
|
23
23
|
marginRight: string;
|
|
24
24
|
marginBottom: string;
|
|
25
25
|
marginLeft: string;
|
|
26
26
|
};
|
|
27
|
-
export
|
|
27
|
+
export type WebPageElementPaddingProperties = {
|
|
28
28
|
paddingTop: string;
|
|
29
29
|
paddingRight: string;
|
|
30
30
|
paddingBottom: string;
|
|
31
31
|
paddingLeft: string;
|
|
32
32
|
};
|
|
33
|
-
|
|
34
|
-
export
|
|
33
|
+
type WebPageElementPseudoClassOptions = 'focus' | 'hover' | 'active' | 'focus-within' | 'focus-visible';
|
|
34
|
+
export type WebPageElementDisplayStatesProperties<T> = {
|
|
35
35
|
[x in WebPageElementPseudoClassOptions]?: T;
|
|
36
36
|
};
|
|
37
|
-
export
|
|
37
|
+
export type WebPageElementBackgroundProperties = {
|
|
38
38
|
type: 'color' | 'gradient' | 'image' | '';
|
|
39
39
|
value: string;
|
|
40
40
|
};
|
|
41
|
-
export
|
|
41
|
+
export type InnerLayoutProperties = {
|
|
42
42
|
direction: 'row' | 'column';
|
|
43
43
|
justifyContent: 'flex-start' | 'center' | 'flex-end' | 'space-between';
|
|
44
44
|
alignItems: 'flex-start' | 'center' | 'flex-end' | 'stretch';
|
|
45
45
|
gap: string;
|
|
46
46
|
wrap: boolean;
|
|
47
47
|
};
|
|
48
|
-
export
|
|
48
|
+
export type TypographyProperties = {
|
|
49
49
|
fontFamily: string;
|
|
50
50
|
fontSize: string;
|
|
51
51
|
fontColor: string;
|
|
52
52
|
fontWeight: number;
|
|
53
53
|
};
|
|
54
|
-
export
|
|
54
|
+
export type ButtonProperties = {
|
|
55
55
|
fontFamily: string;
|
|
56
56
|
fontSize: string;
|
|
57
57
|
fontColor: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WebPageElementDisplayStatesProperties } from '../common/web-page-element-property-types';
|
|
2
2
|
import { WebPageElementCommonInterface } from '../common/web-page-element-common-interface';
|
|
3
|
-
|
|
3
|
+
type ButtonProperties = {
|
|
4
4
|
fontFamily: string;
|
|
5
5
|
fontSize: string;
|
|
6
6
|
fontColor: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { WebPageElementDisplayStatesProperties, WebPageElementBackgroundProperties } from '../common/web-page-element-property-types';
|
|
2
2
|
import { WebPageElementCommonInterface } from '../common/web-page-element-common-interface';
|
|
3
3
|
import { WebPageElement } from '../../merchant-webshop-types';
|
|
4
|
-
|
|
4
|
+
type InnerLayoutProperties = {
|
|
5
5
|
direction: 'row' | 'column';
|
|
6
6
|
justifyContent: 'flex-start' | 'center' | 'flex-end' | 'space-between';
|
|
7
7
|
alignItems: 'flex-start' | 'center' | 'flex-end' | 'stretch';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { WebPageElementDisplayStatesProperties } from '../common/web-page-element-property-types';
|
|
2
2
|
import { WebPageElementCommonInterface } from '../common/web-page-element-common-interface';
|
|
3
|
-
|
|
3
|
+
type TypographyProperties = {
|
|
4
4
|
fontFamily: string;
|
|
5
5
|
fontSize: string;
|
|
6
6
|
fontColor: string;
|