|
1
|
import { Modules } from "../modules-sdk/definition" |
|
2
|
import { composeLinkName } from "./compose-link-name" |
|
3
|
|
|
4
|
export const LINKS = { |
|
5
|
ProductVariantInventoryItem: composeLinkName( |
|
6
|
Modules.PRODUCT, |
|
7
|
"variant_id", |
|
8
|
Modules.INVENTORY, |
|
9
|
"inventory_item_id" |
|
10
|
), |
|
11
|
ProductVariantPriceSet: composeLinkName( |
|
12
|
Modules.PRODUCT, |
|
13
|
"variant_id", |
|
14
|
Modules.PRICING, |
|
15
|
"price_set_id" |
|
16
|
), |
|
17
|
ShippingOptionPriceSet: composeLinkName( |
|
18
|
Modules.FULFILLMENT, |
|
19
|
"shipping_option_id", |
|
20
|
Modules.PRICING, |
|
21
|
"price_set_id" |
|
22
|
), |
|
23
|
CartPaymentCollection: composeLinkName( |
|
24
|
Modules.CART, |
|
25
|
"cart_id", |
|
26
|
Modules.PAYMENT, |
|
27
|
"payment_collection_id" |
|
28
|
), |
|
29
|
RegionPaymentProvider: composeLinkName( |
|
30
|
Modules.REGION, |
|
31
|
"region_id", |
|
32
|
Modules.PAYMENT, |
|
33
|
"payment_provider_id" |
|
34
|
), |
|
35
|
CartPromotion: composeLinkName( |
|
36
|
Modules.CART, |
|
37
|
"cart_id", |
|
38
|
Modules.PROMOTION, |
|
39
|
"promotion_id" |
|
40
|
), |
|
41
|
SalesChannelLocation: composeLinkName( |
|
42
|
Modules.SALES_CHANNEL, |
|
43
|
"sales_channel_id", |
|
44
|
Modules.STOCK_LOCATION, |
|
45
|
"location_id" |
|
46
|
), |
|
47
|
LocationFulfillmentProvider: composeLinkName( |
|
48
|
Modules.STOCK_LOCATION, |
|
49
|
"stock_location_id", |
|
50
|
Modules.FULFILLMENT, |
|
51
|
"fulfillment_provider_id" |
|
52
|
), |
|
53
|
LocationFulfillmentSet: composeLinkName( |
|
54
|
Modules.STOCK_LOCATION, |
|
55
|
"stock_location_id", |
|
56
|
Modules.FULFILLMENT, |
|
57
|
"fulfillment_set_id" |
|
58
|
), |
|
59
|
OrderPromotion: composeLinkName( |
|
60
|
Modules.ORDER, |
|
61
|
"order_id", |
|
62
|
Modules.PROMOTION, |
|
63
|
"promotion_id" |
|
64
|
), |
|
65
|
OrderCart: composeLinkName( |
|
66
|
Modules.ORDER, |
|
67
|
"order_id", |
|
68
|
Modules.CART, |
|
69
|
"cart_id" |
|
70
|
), |
|
71
|
OrderSalesChannel: composeLinkName( |
|
72
|
Modules.ORDER, |
|
73
|
"order_id", |
|
74
|
Modules.SALES_CHANNEL, |
|
75
|
"sales_channel_id" |
|
76
|
), |
|
77
|
PublishableApiKeySalesChannel: composeLinkName( |
|
78
|
Modules.API_KEY, |
|
79
|
"api_key_id", |
|
80
|
Modules.SALES_CHANNEL, |
|
81
|
"sales_channel_id" |
|
82
|
), |
|
83
|
ProductSalesChannel: composeLinkName( |
|
84
|
Modules.PRODUCT, |
|
85
|
"product_id", |
|
86
|
Modules.SALES_CHANNEL, |
|
87
|
"sales_channel_id" |
|
88
|
), |
|
89
|
OrderPaymentCollection: composeLinkName( |
|
90
|
Modules.ORDER, |
|
91
|
"order_id", |
|
92
|
Modules.PAYMENT, |
|
93
|
"payment_collection_id" |
|
94
|
), |
|
95
|
OrderClaimPaymentCollection: composeLinkName( |
|
96
|
Modules.ORDER, |
|
97
|
"claim_id", |
|
98
|
Modules.PAYMENT, |
|
99
|
"payment_collection_id" |
|
100
|
), |
|
101
|
OrderExchangePaymentCollection: composeLinkName( |
|
102
|
Modules.ORDER, |
|
103
|
"exchange_id", |
|
104
|
Modules.PAYMENT, |
|
105
|
"payment_collection_id" |
|
106
|
), |
|
107
|
OrderFulfillment: composeLinkName( |
|
108
|
Modules.ORDER, |
|
109
|
"order_id", |
|
110
|
Modules.FULFILLMENT, |
|
111
|
"fulfillment_id" |
|
112
|
), |
|
113
|
ReturnFulfillment: composeLinkName( |
|
114
|
Modules.ORDER, |
|
115
|
"return_id", |
|
116
|
Modules.FULFILLMENT, |
|
117
|
"fulfillment_id" |
|
118
|
), |
|
119
|
ProductShippingProfile: composeLinkName( |
|
120
|
Modules.PRODUCT, |
|
121
|
"product_id", |
|
122
|
Modules.FULFILLMENT, |
|
123
|
"shipping_profile_id" |
|
124
|
), |
|
125
|
CustomerAccountHolder: composeLinkName( |
|
126
|
Modules.CUSTOMER, |
|
127
|
"customer_id", |
|
128
|
Modules.PAYMENT, |
|
129
|
"account_holder_id" |
|
130
|
), |
|
131
|
UserRbacRole: composeLinkName( |
|
132
|
Modules.USER, |
|
133
|
"user_id", |
|
134
|
Modules.RBAC, |
|
135
|
"rbac_role_id" |
|
136
|
), |
|
137
|
InviteRbacRole: composeLinkName( |
|
138
|
Modules.USER, |
|
139
|
"invite_id", |
|
140
|
Modules.RBAC, |
|
141
|
"rbac_role_id" |
|
142
|
), |
|
143
|
} |