@mercurjs/dashboard-shared 2.2.0-canary.3 → 2.2.0-canary.5
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/dist/index.d.ts +1 -0
- package/dist/index.js +142 -180
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -8925,9 +8925,9 @@ var require_dist = __commonJS({
|
|
|
8925
8925
|
}
|
|
8926
8926
|
});
|
|
8927
8927
|
|
|
8928
|
-
//
|
|
8928
|
+
// ../types/dist/seller/common.js
|
|
8929
8929
|
var require_common36 = __commonJS({
|
|
8930
|
-
"
|
|
8930
|
+
"../types/dist/seller/common.js"(exports) {
|
|
8931
8931
|
"use strict";
|
|
8932
8932
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8933
8933
|
exports.SellerStatus = exports.SellerRole = void 0;
|
|
@@ -8949,17 +8949,17 @@ var require_common36 = __commonJS({
|
|
|
8949
8949
|
}
|
|
8950
8950
|
});
|
|
8951
8951
|
|
|
8952
|
-
//
|
|
8952
|
+
// ../types/dist/seller/mutation.js
|
|
8953
8953
|
var require_mutation = __commonJS({
|
|
8954
|
-
"
|
|
8954
|
+
"../types/dist/seller/mutation.js"(exports) {
|
|
8955
8955
|
"use strict";
|
|
8956
8956
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8957
8957
|
}
|
|
8958
8958
|
});
|
|
8959
8959
|
|
|
8960
|
-
//
|
|
8960
|
+
// ../types/dist/seller/index.js
|
|
8961
8961
|
var require_seller = __commonJS({
|
|
8962
|
-
"
|
|
8962
|
+
"../types/dist/seller/index.js"(exports) {
|
|
8963
8963
|
"use strict";
|
|
8964
8964
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
8965
8965
|
if (k2 === void 0) k2 = k;
|
|
@@ -8983,25 +8983,25 @@ var require_seller = __commonJS({
|
|
|
8983
8983
|
}
|
|
8984
8984
|
});
|
|
8985
8985
|
|
|
8986
|
-
//
|
|
8986
|
+
// ../types/dist/order-group/common.js
|
|
8987
8987
|
var require_common37 = __commonJS({
|
|
8988
|
-
"
|
|
8988
|
+
"../types/dist/order-group/common.js"(exports) {
|
|
8989
8989
|
"use strict";
|
|
8990
8990
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8991
8991
|
}
|
|
8992
8992
|
});
|
|
8993
8993
|
|
|
8994
|
-
//
|
|
8994
|
+
// ../types/dist/order-group/mutation.js
|
|
8995
8995
|
var require_mutation2 = __commonJS({
|
|
8996
|
-
"
|
|
8996
|
+
"../types/dist/order-group/mutation.js"(exports) {
|
|
8997
8997
|
"use strict";
|
|
8998
8998
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8999
8999
|
}
|
|
9000
9000
|
});
|
|
9001
9001
|
|
|
9002
|
-
//
|
|
9002
|
+
// ../types/dist/order-group/index.js
|
|
9003
9003
|
var require_order_group = __commonJS({
|
|
9004
|
-
"
|
|
9004
|
+
"../types/dist/order-group/index.js"(exports) {
|
|
9005
9005
|
"use strict";
|
|
9006
9006
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9007
9007
|
if (k2 === void 0) k2 = k;
|
|
@@ -9025,9 +9025,9 @@ var require_order_group = __commonJS({
|
|
|
9025
9025
|
}
|
|
9026
9026
|
});
|
|
9027
9027
|
|
|
9028
|
-
//
|
|
9028
|
+
// ../types/dist/commission/common.js
|
|
9029
9029
|
var require_common38 = __commonJS({
|
|
9030
|
-
"
|
|
9030
|
+
"../types/dist/commission/common.js"(exports) {
|
|
9031
9031
|
"use strict";
|
|
9032
9032
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9033
9033
|
exports.CommissionRateTarget = exports.CommissionRateType = void 0;
|
|
@@ -9044,17 +9044,17 @@ var require_common38 = __commonJS({
|
|
|
9044
9044
|
}
|
|
9045
9045
|
});
|
|
9046
9046
|
|
|
9047
|
-
//
|
|
9047
|
+
// ../types/dist/commission/mutations.js
|
|
9048
9048
|
var require_mutations23 = __commonJS({
|
|
9049
|
-
"
|
|
9049
|
+
"../types/dist/commission/mutations.js"(exports) {
|
|
9050
9050
|
"use strict";
|
|
9051
9051
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9052
9052
|
}
|
|
9053
9053
|
});
|
|
9054
9054
|
|
|
9055
|
-
//
|
|
9055
|
+
// ../types/dist/commission/index.js
|
|
9056
9056
|
var require_commission = __commonJS({
|
|
9057
|
-
"
|
|
9057
|
+
"../types/dist/commission/index.js"(exports) {
|
|
9058
9058
|
"use strict";
|
|
9059
9059
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9060
9060
|
if (k2 === void 0) k2 = k;
|
|
@@ -9078,257 +9078,249 @@ var require_commission = __commonJS({
|
|
|
9078
9078
|
}
|
|
9079
9079
|
});
|
|
9080
9080
|
|
|
9081
|
-
//
|
|
9081
|
+
// ../types/dist/http/campaign.js
|
|
9082
9082
|
var require_campaign3 = __commonJS({
|
|
9083
|
-
"
|
|
9083
|
+
"../types/dist/http/campaign.js"(exports) {
|
|
9084
9084
|
"use strict";
|
|
9085
9085
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9086
9086
|
}
|
|
9087
9087
|
});
|
|
9088
9088
|
|
|
9089
|
-
//
|
|
9089
|
+
// ../types/dist/http/collection.js
|
|
9090
9090
|
var require_collection2 = __commonJS({
|
|
9091
|
-
"
|
|
9091
|
+
"../types/dist/http/collection.js"(exports) {
|
|
9092
9092
|
"use strict";
|
|
9093
9093
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9094
9094
|
}
|
|
9095
9095
|
});
|
|
9096
9096
|
|
|
9097
|
-
//
|
|
9097
|
+
// ../types/dist/http/currency.js
|
|
9098
9098
|
var require_currency4 = __commonJS({
|
|
9099
|
-
"
|
|
9099
|
+
"../types/dist/http/currency.js"(exports) {
|
|
9100
9100
|
"use strict";
|
|
9101
9101
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9102
9102
|
}
|
|
9103
9103
|
});
|
|
9104
9104
|
|
|
9105
|
-
//
|
|
9105
|
+
// ../types/dist/http/customer.js
|
|
9106
9106
|
var require_customer3 = __commonJS({
|
|
9107
|
-
"
|
|
9107
|
+
"../types/dist/http/customer.js"(exports) {
|
|
9108
9108
|
"use strict";
|
|
9109
9109
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9110
9110
|
}
|
|
9111
9111
|
});
|
|
9112
9112
|
|
|
9113
|
-
//
|
|
9113
|
+
// ../types/dist/http/fulfillment-set.js
|
|
9114
9114
|
var require_fulfillment_set4 = __commonJS({
|
|
9115
|
-
"
|
|
9115
|
+
"../types/dist/http/fulfillment-set.js"(exports) {
|
|
9116
9116
|
"use strict";
|
|
9117
9117
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9118
9118
|
}
|
|
9119
9119
|
});
|
|
9120
9120
|
|
|
9121
|
-
//
|
|
9121
|
+
// ../types/dist/http/inventory-item.js
|
|
9122
9122
|
var require_inventory_item3 = __commonJS({
|
|
9123
|
-
"
|
|
9123
|
+
"../types/dist/http/inventory-item.js"(exports) {
|
|
9124
9124
|
"use strict";
|
|
9125
9125
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9126
9126
|
}
|
|
9127
9127
|
});
|
|
9128
9128
|
|
|
9129
|
-
//
|
|
9129
|
+
// ../types/dist/http/seller.js
|
|
9130
9130
|
var require_seller2 = __commonJS({
|
|
9131
|
-
"
|
|
9131
|
+
"../types/dist/http/seller.js"(exports) {
|
|
9132
9132
|
"use strict";
|
|
9133
9133
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9134
9134
|
}
|
|
9135
9135
|
});
|
|
9136
9136
|
|
|
9137
|
-
//
|
|
9137
|
+
// ../types/dist/http/order.js
|
|
9138
9138
|
var require_order5 = __commonJS({
|
|
9139
|
-
"
|
|
9139
|
+
"../types/dist/http/order.js"(exports) {
|
|
9140
9140
|
"use strict";
|
|
9141
9141
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9142
9142
|
}
|
|
9143
9143
|
});
|
|
9144
9144
|
|
|
9145
|
-
//
|
|
9145
|
+
// ../types/dist/http/order-group.js
|
|
9146
9146
|
var require_order_group2 = __commonJS({
|
|
9147
|
-
"
|
|
9147
|
+
"../types/dist/http/order-group.js"(exports) {
|
|
9148
9148
|
"use strict";
|
|
9149
9149
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9150
9150
|
}
|
|
9151
9151
|
});
|
|
9152
9152
|
|
|
9153
|
-
//
|
|
9153
|
+
// ../types/dist/http/payment.js
|
|
9154
9154
|
var require_payment3 = __commonJS({
|
|
9155
|
-
"
|
|
9155
|
+
"../types/dist/http/payment.js"(exports) {
|
|
9156
9156
|
"use strict";
|
|
9157
9157
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9158
9158
|
}
|
|
9159
9159
|
});
|
|
9160
9160
|
|
|
9161
|
-
//
|
|
9161
|
+
// ../types/dist/http/price-list.js
|
|
9162
9162
|
var require_price_list4 = __commonJS({
|
|
9163
|
-
"
|
|
9163
|
+
"../types/dist/http/price-list.js"(exports) {
|
|
9164
9164
|
"use strict";
|
|
9165
9165
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9166
9166
|
}
|
|
9167
9167
|
});
|
|
9168
9168
|
|
|
9169
|
-
//
|
|
9169
|
+
// ../types/dist/http/price-preference.js
|
|
9170
9170
|
var require_price_preference2 = __commonJS({
|
|
9171
|
-
"
|
|
9171
|
+
"../types/dist/http/price-preference.js"(exports) {
|
|
9172
9172
|
"use strict";
|
|
9173
9173
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9174
9174
|
}
|
|
9175
9175
|
});
|
|
9176
9176
|
|
|
9177
|
-
//
|
|
9177
|
+
// ../types/dist/http/product.js
|
|
9178
9178
|
var require_product4 = __commonJS({
|
|
9179
|
-
"
|
|
9179
|
+
"../types/dist/http/product.js"(exports) {
|
|
9180
9180
|
"use strict";
|
|
9181
9181
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9182
9182
|
}
|
|
9183
9183
|
});
|
|
9184
9184
|
|
|
9185
|
-
//
|
|
9185
|
+
// ../types/dist/http/promotion.js
|
|
9186
9186
|
var require_promotion4 = __commonJS({
|
|
9187
|
-
"
|
|
9187
|
+
"../types/dist/http/promotion.js"(exports) {
|
|
9188
9188
|
"use strict";
|
|
9189
9189
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9190
9190
|
}
|
|
9191
9191
|
});
|
|
9192
9192
|
|
|
9193
|
-
//
|
|
9193
|
+
// ../types/dist/http/product-attribute.js
|
|
9194
9194
|
var require_product_attribute = __commonJS({
|
|
9195
|
-
"
|
|
9195
|
+
"../types/dist/http/product-attribute.js"(exports) {
|
|
9196
9196
|
"use strict";
|
|
9197
9197
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9198
9198
|
}
|
|
9199
9199
|
});
|
|
9200
9200
|
|
|
9201
|
-
//
|
|
9201
|
+
// ../types/dist/http/product-brand.js
|
|
9202
9202
|
var require_product_brand = __commonJS({
|
|
9203
|
-
"
|
|
9203
|
+
"../types/dist/http/product-brand.js"(exports) {
|
|
9204
9204
|
"use strict";
|
|
9205
9205
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9206
9206
|
}
|
|
9207
9207
|
});
|
|
9208
9208
|
|
|
9209
|
-
//
|
|
9209
|
+
// ../types/dist/http/product-category.js
|
|
9210
9210
|
var require_product_category4 = __commonJS({
|
|
9211
|
-
"
|
|
9211
|
+
"../types/dist/http/product-category.js"(exports) {
|
|
9212
9212
|
"use strict";
|
|
9213
9213
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9214
9214
|
}
|
|
9215
9215
|
});
|
|
9216
9216
|
|
|
9217
|
-
//
|
|
9217
|
+
// ../types/dist/http/product-tag.js
|
|
9218
9218
|
var require_product_tag2 = __commonJS({
|
|
9219
|
-
"
|
|
9219
|
+
"../types/dist/http/product-tag.js"(exports) {
|
|
9220
9220
|
"use strict";
|
|
9221
9221
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9222
9222
|
}
|
|
9223
9223
|
});
|
|
9224
9224
|
|
|
9225
|
-
//
|
|
9225
|
+
// ../types/dist/http/product-type.js
|
|
9226
9226
|
var require_product_type2 = __commonJS({
|
|
9227
|
-
"
|
|
9227
|
+
"../types/dist/http/product-type.js"(exports) {
|
|
9228
9228
|
"use strict";
|
|
9229
9229
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9230
9230
|
}
|
|
9231
9231
|
});
|
|
9232
9232
|
|
|
9233
|
-
//
|
|
9233
|
+
// ../types/dist/http/refund-reason.js
|
|
9234
9234
|
var require_refund_reason2 = __commonJS({
|
|
9235
|
-
"
|
|
9235
|
+
"../types/dist/http/refund-reason.js"(exports) {
|
|
9236
9236
|
"use strict";
|
|
9237
9237
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9238
9238
|
}
|
|
9239
9239
|
});
|
|
9240
9240
|
|
|
9241
|
-
//
|
|
9241
|
+
// ../types/dist/http/return.js
|
|
9242
9242
|
var require_return2 = __commonJS({
|
|
9243
|
-
"
|
|
9243
|
+
"../types/dist/http/return.js"(exports) {
|
|
9244
9244
|
"use strict";
|
|
9245
9245
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9246
9246
|
}
|
|
9247
9247
|
});
|
|
9248
9248
|
|
|
9249
|
-
//
|
|
9249
|
+
// ../types/dist/http/return-reason.js
|
|
9250
9250
|
var require_return_reason2 = __commonJS({
|
|
9251
|
-
"
|
|
9251
|
+
"../types/dist/http/return-reason.js"(exports) {
|
|
9252
9252
|
"use strict";
|
|
9253
9253
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9254
9254
|
}
|
|
9255
9255
|
});
|
|
9256
9256
|
|
|
9257
|
-
//
|
|
9257
|
+
// ../types/dist/http/sales-channel.js
|
|
9258
9258
|
var require_sales_channel3 = __commonJS({
|
|
9259
|
-
"
|
|
9259
|
+
"../types/dist/http/sales-channel.js"(exports) {
|
|
9260
9260
|
"use strict";
|
|
9261
9261
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9262
9262
|
}
|
|
9263
9263
|
});
|
|
9264
9264
|
|
|
9265
|
-
//
|
|
9265
|
+
// ../types/dist/http/shipping-option.js
|
|
9266
9266
|
var require_shipping_option4 = __commonJS({
|
|
9267
|
-
"
|
|
9267
|
+
"../types/dist/http/shipping-option.js"(exports) {
|
|
9268
9268
|
"use strict";
|
|
9269
9269
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9270
9270
|
}
|
|
9271
9271
|
});
|
|
9272
9272
|
|
|
9273
|
-
//
|
|
9273
|
+
// ../types/dist/http/shipping-option-type.js
|
|
9274
9274
|
var require_shipping_option_type3 = __commonJS({
|
|
9275
|
-
"
|
|
9275
|
+
"../types/dist/http/shipping-option-type.js"(exports) {
|
|
9276
9276
|
"use strict";
|
|
9277
9277
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9278
9278
|
}
|
|
9279
9279
|
});
|
|
9280
9280
|
|
|
9281
|
-
//
|
|
9281
|
+
// ../types/dist/http/shipping-profile.js
|
|
9282
9282
|
var require_shipping_profile4 = __commonJS({
|
|
9283
|
-
"
|
|
9283
|
+
"../types/dist/http/shipping-profile.js"(exports) {
|
|
9284
9284
|
"use strict";
|
|
9285
9285
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9286
9286
|
}
|
|
9287
9287
|
});
|
|
9288
9288
|
|
|
9289
|
-
//
|
|
9289
|
+
// ../types/dist/http/stock-location.js
|
|
9290
9290
|
var require_stock_location2 = __commonJS({
|
|
9291
|
-
"
|
|
9291
|
+
"../types/dist/http/stock-location.js"(exports) {
|
|
9292
9292
|
"use strict";
|
|
9293
9293
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9294
9294
|
}
|
|
9295
9295
|
});
|
|
9296
9296
|
|
|
9297
|
-
//
|
|
9297
|
+
// ../types/dist/http/payout.js
|
|
9298
9298
|
var require_payout = __commonJS({
|
|
9299
|
-
"
|
|
9299
|
+
"../types/dist/http/payout.js"(exports) {
|
|
9300
9300
|
"use strict";
|
|
9301
9301
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9302
9302
|
}
|
|
9303
9303
|
});
|
|
9304
9304
|
|
|
9305
|
-
//
|
|
9305
|
+
// ../types/dist/http/offer.js
|
|
9306
9306
|
var require_offer = __commonJS({
|
|
9307
|
-
"
|
|
9307
|
+
"../types/dist/http/offer.js"(exports) {
|
|
9308
9308
|
"use strict";
|
|
9309
9309
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9310
9310
|
}
|
|
9311
9311
|
});
|
|
9312
9312
|
|
|
9313
|
-
//
|
|
9313
|
+
// ../types/dist/http/commission.js
|
|
9314
9314
|
var require_commission2 = __commonJS({
|
|
9315
|
-
"
|
|
9315
|
+
"../types/dist/http/commission.js"(exports) {
|
|
9316
9316
|
"use strict";
|
|
9317
9317
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9318
9318
|
}
|
|
9319
9319
|
});
|
|
9320
9320
|
|
|
9321
|
-
//
|
|
9322
|
-
var require_subscription = __commonJS({
|
|
9323
|
-
"../../node_modules/.bun/@mercurjs+types@2.2.0-canary.2+178338344879c346/node_modules/@mercurjs/types/dist/http/subscription.js"(exports) {
|
|
9324
|
-
"use strict";
|
|
9325
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9326
|
-
}
|
|
9327
|
-
});
|
|
9328
|
-
|
|
9329
|
-
// ../../node_modules/.bun/@mercurjs+types@2.2.0-canary.2+178338344879c346/node_modules/@mercurjs/types/dist/http/index.js
|
|
9321
|
+
// ../types/dist/http/index.js
|
|
9330
9322
|
var require_http3 = __commonJS({
|
|
9331
|
-
"
|
|
9323
|
+
"../types/dist/http/index.js"(exports) {
|
|
9332
9324
|
"use strict";
|
|
9333
9325
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9334
9326
|
if (k2 === void 0) k2 = k;
|
|
@@ -9383,55 +9375,12 @@ var require_http3 = __commonJS({
|
|
|
9383
9375
|
__exportStar(require_payout(), exports);
|
|
9384
9376
|
__exportStar(require_offer(), exports);
|
|
9385
9377
|
__exportStar(require_commission2(), exports);
|
|
9386
|
-
__exportStar(require_subscription(), exports);
|
|
9387
9378
|
}
|
|
9388
9379
|
});
|
|
9389
9380
|
|
|
9390
|
-
//
|
|
9381
|
+
// ../types/dist/payout/common.js
|
|
9391
9382
|
var require_common39 = __commonJS({
|
|
9392
|
-
"
|
|
9393
|
-
"use strict";
|
|
9394
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9395
|
-
}
|
|
9396
|
-
});
|
|
9397
|
-
|
|
9398
|
-
// ../../node_modules/.bun/@mercurjs+types@2.2.0-canary.2+178338344879c346/node_modules/@mercurjs/types/dist/subscription/mutation.js
|
|
9399
|
-
var require_mutation3 = __commonJS({
|
|
9400
|
-
"../../node_modules/.bun/@mercurjs+types@2.2.0-canary.2+178338344879c346/node_modules/@mercurjs/types/dist/subscription/mutation.js"(exports) {
|
|
9401
|
-
"use strict";
|
|
9402
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9403
|
-
}
|
|
9404
|
-
});
|
|
9405
|
-
|
|
9406
|
-
// ../../node_modules/.bun/@mercurjs+types@2.2.0-canary.2+178338344879c346/node_modules/@mercurjs/types/dist/subscription/index.js
|
|
9407
|
-
var require_subscription2 = __commonJS({
|
|
9408
|
-
"../../node_modules/.bun/@mercurjs+types@2.2.0-canary.2+178338344879c346/node_modules/@mercurjs/types/dist/subscription/index.js"(exports) {
|
|
9409
|
-
"use strict";
|
|
9410
|
-
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9411
|
-
if (k2 === void 0) k2 = k;
|
|
9412
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9413
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9414
|
-
desc = { enumerable: true, get: function() {
|
|
9415
|
-
return m[k];
|
|
9416
|
-
} };
|
|
9417
|
-
}
|
|
9418
|
-
Object.defineProperty(o, k2, desc);
|
|
9419
|
-
}) : (function(o, m, k, k2) {
|
|
9420
|
-
if (k2 === void 0) k2 = k;
|
|
9421
|
-
o[k2] = m[k];
|
|
9422
|
-
}));
|
|
9423
|
-
var __exportStar = exports && exports.__exportStar || function(m, exports2) {
|
|
9424
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
9425
|
-
};
|
|
9426
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9427
|
-
__exportStar(require_common39(), exports);
|
|
9428
|
-
__exportStar(require_mutation3(), exports);
|
|
9429
|
-
}
|
|
9430
|
-
});
|
|
9431
|
-
|
|
9432
|
-
// ../../node_modules/.bun/@mercurjs+types@2.2.0-canary.2+178338344879c346/node_modules/@mercurjs/types/dist/payout/common.js
|
|
9433
|
-
var require_common40 = __commonJS({
|
|
9434
|
-
"../../node_modules/.bun/@mercurjs+types@2.2.0-canary.2+178338344879c346/node_modules/@mercurjs/types/dist/payout/common.js"(exports) {
|
|
9383
|
+
"../types/dist/payout/common.js"(exports) {
|
|
9435
9384
|
"use strict";
|
|
9436
9385
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9437
9386
|
exports.PAYOUT_MODULE_OPTION_DEFAULTS = exports.PayoutEvents = exports.PayoutStatus = exports.PayoutAccountStatus = void 0;
|
|
@@ -9466,25 +9415,25 @@ var require_common40 = __commonJS({
|
|
|
9466
9415
|
}
|
|
9467
9416
|
});
|
|
9468
9417
|
|
|
9469
|
-
//
|
|
9418
|
+
// ../types/dist/payout/provider.js
|
|
9470
9419
|
var require_provider9 = __commonJS({
|
|
9471
|
-
"
|
|
9420
|
+
"../types/dist/payout/provider.js"(exports) {
|
|
9472
9421
|
"use strict";
|
|
9473
9422
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9474
9423
|
}
|
|
9475
9424
|
});
|
|
9476
9425
|
|
|
9477
|
-
//
|
|
9426
|
+
// ../types/dist/payout/mutations.js
|
|
9478
9427
|
var require_mutations24 = __commonJS({
|
|
9479
|
-
"
|
|
9428
|
+
"../types/dist/payout/mutations.js"(exports) {
|
|
9480
9429
|
"use strict";
|
|
9481
9430
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9482
9431
|
}
|
|
9483
9432
|
});
|
|
9484
9433
|
|
|
9485
|
-
//
|
|
9434
|
+
// ../types/dist/payout/index.js
|
|
9486
9435
|
var require_payout2 = __commonJS({
|
|
9487
|
-
"
|
|
9436
|
+
"../types/dist/payout/index.js"(exports) {
|
|
9488
9437
|
"use strict";
|
|
9489
9438
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9490
9439
|
if (k2 === void 0) k2 = k;
|
|
@@ -9503,31 +9452,31 @@ var require_payout2 = __commonJS({
|
|
|
9503
9452
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
9504
9453
|
};
|
|
9505
9454
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9506
|
-
__exportStar(
|
|
9455
|
+
__exportStar(require_common39(), exports);
|
|
9507
9456
|
__exportStar(require_provider9(), exports);
|
|
9508
9457
|
__exportStar(require_mutations24(), exports);
|
|
9509
9458
|
}
|
|
9510
9459
|
});
|
|
9511
9460
|
|
|
9512
|
-
//
|
|
9513
|
-
var
|
|
9514
|
-
"
|
|
9461
|
+
// ../types/dist/offer/common.js
|
|
9462
|
+
var require_common40 = __commonJS({
|
|
9463
|
+
"../types/dist/offer/common.js"(exports) {
|
|
9515
9464
|
"use strict";
|
|
9516
9465
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9517
9466
|
}
|
|
9518
9467
|
});
|
|
9519
9468
|
|
|
9520
|
-
//
|
|
9469
|
+
// ../types/dist/offer/mutations.js
|
|
9521
9470
|
var require_mutations25 = __commonJS({
|
|
9522
|
-
"
|
|
9471
|
+
"../types/dist/offer/mutations.js"(exports) {
|
|
9523
9472
|
"use strict";
|
|
9524
9473
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9525
9474
|
}
|
|
9526
9475
|
});
|
|
9527
9476
|
|
|
9528
|
-
//
|
|
9477
|
+
// ../types/dist/offer/index.js
|
|
9529
9478
|
var require_offer2 = __commonJS({
|
|
9530
|
-
"
|
|
9479
|
+
"../types/dist/offer/index.js"(exports) {
|
|
9531
9480
|
"use strict";
|
|
9532
9481
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9533
9482
|
if (k2 === void 0) k2 = k;
|
|
@@ -9546,25 +9495,32 @@ var require_offer2 = __commonJS({
|
|
|
9546
9495
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
9547
9496
|
};
|
|
9548
9497
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9549
|
-
__exportStar(
|
|
9498
|
+
__exportStar(require_common40(), exports);
|
|
9550
9499
|
__exportStar(require_mutations25(), exports);
|
|
9551
9500
|
}
|
|
9552
9501
|
});
|
|
9553
9502
|
|
|
9554
|
-
//
|
|
9555
|
-
var
|
|
9556
|
-
"
|
|
9503
|
+
// ../types/dist/product/status.js
|
|
9504
|
+
var require_status = __commonJS({
|
|
9505
|
+
"../types/dist/product/status.js"(exports) {
|
|
9557
9506
|
"use strict";
|
|
9558
9507
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9559
|
-
exports.
|
|
9560
|
-
|
|
9561
|
-
|
|
9562
|
-
|
|
9563
|
-
|
|
9564
|
-
|
|
9565
|
-
|
|
9566
|
-
|
|
9567
|
-
|
|
9508
|
+
exports.ProductStatus = void 0;
|
|
9509
|
+
exports.ProductStatus = {
|
|
9510
|
+
DRAFT: "draft",
|
|
9511
|
+
PROPOSED: "proposed",
|
|
9512
|
+
PUBLISHED: "published",
|
|
9513
|
+
REJECTED: "rejected"
|
|
9514
|
+
};
|
|
9515
|
+
}
|
|
9516
|
+
});
|
|
9517
|
+
|
|
9518
|
+
// ../types/dist/product/common.js
|
|
9519
|
+
var require_common41 = __commonJS({
|
|
9520
|
+
"../types/dist/product/common.js"(exports) {
|
|
9521
|
+
"use strict";
|
|
9522
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9523
|
+
exports.ProductChangeActionType = exports.ProductChangeStatus = exports.AttributeType = void 0;
|
|
9568
9524
|
var AttributeType;
|
|
9569
9525
|
(function(AttributeType2) {
|
|
9570
9526
|
AttributeType2["SINGLE_SELECT"] = "single_select";
|
|
@@ -9590,21 +9546,22 @@ var require_common42 = __commonJS({
|
|
|
9590
9546
|
ProductChangeActionType3["ATTRIBUTE_ADD"] = "ATTRIBUTE_ADD";
|
|
9591
9547
|
ProductChangeActionType3["ATTRIBUTE_REMOVE"] = "ATTRIBUTE_REMOVE";
|
|
9592
9548
|
ProductChangeActionType3["PRODUCT_DELETE"] = "PRODUCT_DELETE";
|
|
9549
|
+
ProductChangeActionType3["CHANGE_REQUESTED"] = "CHANGE_REQUESTED";
|
|
9593
9550
|
})(ProductChangeActionType2 || (exports.ProductChangeActionType = ProductChangeActionType2 = {}));
|
|
9594
9551
|
}
|
|
9595
9552
|
});
|
|
9596
9553
|
|
|
9597
|
-
//
|
|
9554
|
+
// ../types/dist/product/mutations.js
|
|
9598
9555
|
var require_mutations26 = __commonJS({
|
|
9599
|
-
"
|
|
9556
|
+
"../types/dist/product/mutations.js"(exports) {
|
|
9600
9557
|
"use strict";
|
|
9601
9558
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9602
9559
|
}
|
|
9603
9560
|
});
|
|
9604
9561
|
|
|
9605
|
-
//
|
|
9562
|
+
// ../types/dist/product/index.js
|
|
9606
9563
|
var require_product5 = __commonJS({
|
|
9607
|
-
"
|
|
9564
|
+
"../types/dist/product/index.js"(exports) {
|
|
9608
9565
|
"use strict";
|
|
9609
9566
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9610
9567
|
if (k2 === void 0) k2 = k;
|
|
@@ -9623,24 +9580,25 @@ var require_product5 = __commonJS({
|
|
|
9623
9580
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports2, p)) __createBinding(exports2, m, p);
|
|
9624
9581
|
};
|
|
9625
9582
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9626
|
-
__exportStar(
|
|
9583
|
+
__exportStar(require_common41(), exports);
|
|
9627
9584
|
__exportStar(require_mutations26(), exports);
|
|
9628
9585
|
}
|
|
9629
9586
|
});
|
|
9630
9587
|
|
|
9631
|
-
//
|
|
9588
|
+
// ../types/dist/modules.js
|
|
9632
9589
|
var require_modules = __commonJS({
|
|
9633
|
-
"
|
|
9590
|
+
"../types/dist/modules.js"(exports) {
|
|
9634
9591
|
"use strict";
|
|
9635
9592
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9636
9593
|
exports.MercurModules = void 0;
|
|
9637
9594
|
var MercurModules;
|
|
9638
9595
|
(function(MercurModules2) {
|
|
9639
9596
|
MercurModules2["SELLER"] = "seller";
|
|
9640
|
-
MercurModules2["SUBSCRIPTION"] = "subscription";
|
|
9641
9597
|
MercurModules2["COMMISSION"] = "commission";
|
|
9642
9598
|
MercurModules2["PAYOUT"] = "payout";
|
|
9643
9599
|
MercurModules2["OFFER"] = "offer";
|
|
9600
|
+
MercurModules2["PRODUCT_ATTRIBUTE"] = "product_attribute";
|
|
9601
|
+
MercurModules2["PRODUCT_EDIT"] = "product_edit";
|
|
9644
9602
|
MercurModules2["CUSTOM_FIELDS"] = "custom_fields";
|
|
9645
9603
|
MercurModules2["VENDOR_UI"] = "vendor_ui";
|
|
9646
9604
|
MercurModules2["ADMIN_UI"] = "admin_ui";
|
|
@@ -9649,25 +9607,25 @@ var require_modules = __commonJS({
|
|
|
9649
9607
|
}
|
|
9650
9608
|
});
|
|
9651
9609
|
|
|
9652
|
-
//
|
|
9610
|
+
// ../types/dist/custom-fields/index.js
|
|
9653
9611
|
var require_custom_fields = __commonJS({
|
|
9654
|
-
"
|
|
9612
|
+
"../types/dist/custom-fields/index.js"(exports) {
|
|
9655
9613
|
"use strict";
|
|
9656
9614
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9657
9615
|
}
|
|
9658
9616
|
});
|
|
9659
9617
|
|
|
9660
|
-
//
|
|
9618
|
+
// ../types/dist/dashboard/index.js
|
|
9661
9619
|
var require_dashboard = __commonJS({
|
|
9662
|
-
"
|
|
9620
|
+
"../types/dist/dashboard/index.js"(exports) {
|
|
9663
9621
|
"use strict";
|
|
9664
9622
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9665
9623
|
}
|
|
9666
9624
|
});
|
|
9667
9625
|
|
|
9668
|
-
//
|
|
9626
|
+
// ../types/dist/feature-flags/index.js
|
|
9669
9627
|
var require_feature_flags = __commonJS({
|
|
9670
|
-
"
|
|
9628
|
+
"../types/dist/feature-flags/index.js"(exports) {
|
|
9671
9629
|
"use strict";
|
|
9672
9630
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9673
9631
|
exports.MercurFeatureFlags = void 0;
|
|
@@ -9679,9 +9637,9 @@ var require_feature_flags = __commonJS({
|
|
|
9679
9637
|
}
|
|
9680
9638
|
});
|
|
9681
9639
|
|
|
9682
|
-
//
|
|
9640
|
+
// ../types/dist/index.js
|
|
9683
9641
|
var require_dist2 = __commonJS({
|
|
9684
|
-
"
|
|
9642
|
+
"../types/dist/index.js"(exports) {
|
|
9685
9643
|
"use strict";
|
|
9686
9644
|
var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
|
|
9687
9645
|
if (k2 === void 0) k2 = k;
|
|
@@ -9730,13 +9688,13 @@ var require_dist2 = __commonJS({
|
|
|
9730
9688
|
__exportStar(require_order_group(), exports);
|
|
9731
9689
|
__exportStar(require_commission(), exports);
|
|
9732
9690
|
exports.HttpTypes = __importStar(require_http3());
|
|
9733
|
-
__exportStar(require_subscription2(), exports);
|
|
9734
9691
|
__exportStar(require_payout2(), exports);
|
|
9735
9692
|
__exportStar(require_offer2(), exports);
|
|
9736
|
-
var
|
|
9693
|
+
var status_1 = require_status();
|
|
9737
9694
|
Object.defineProperty(exports, "ProductStatus", { enumerable: true, get: function() {
|
|
9738
|
-
return
|
|
9695
|
+
return status_1.ProductStatus;
|
|
9739
9696
|
} });
|
|
9697
|
+
var product_1 = require_product5();
|
|
9740
9698
|
Object.defineProperty(exports, "AttributeType", { enumerable: true, get: function() {
|
|
9741
9699
|
return product_1.AttributeType;
|
|
9742
9700
|
} });
|
|
@@ -9846,11 +9804,13 @@ var partitionProductChangeActions = (actions) => {
|
|
|
9846
9804
|
case import_types.ProductChangeActionType.VARIANT_UPDATE: {
|
|
9847
9805
|
const fields = details.fields ?? {};
|
|
9848
9806
|
const previousFields = details.previous_fields ?? {};
|
|
9807
|
+
const variantId = details.variant_id !== void 0 && details.variant_id !== null ? String(details.variant_id) : void 0;
|
|
9849
9808
|
for (const [field, value] of Object.entries(fields)) {
|
|
9850
9809
|
updated.push({
|
|
9851
9810
|
field,
|
|
9852
9811
|
previous: previousFields[field],
|
|
9853
|
-
next: value
|
|
9812
|
+
next: value,
|
|
9813
|
+
variant_id: variantId
|
|
9854
9814
|
});
|
|
9855
9815
|
}
|
|
9856
9816
|
break;
|
|
@@ -9866,6 +9826,8 @@ var partitionProductChangeActions = (actions) => {
|
|
|
9866
9826
|
case import_types.ProductChangeActionType.PRODUCT_DELETE:
|
|
9867
9827
|
deleteRequested = true;
|
|
9868
9828
|
break;
|
|
9829
|
+
case import_types.ProductChangeActionType.CHANGE_REQUESTED:
|
|
9830
|
+
break;
|
|
9869
9831
|
}
|
|
9870
9832
|
}
|
|
9871
9833
|
return { updated, added, removed, deleteRequested };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mercurjs/dashboard-shared",
|
|
3
|
-
"version": "2.2.0-canary.
|
|
3
|
+
"version": "2.2.0-canary.5",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "https://github.com/mercurjs/mercur",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"zod": "3.25.76"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@mercurjs/types": "
|
|
66
|
+
"@mercurjs/types": "workspace:*",
|
|
67
67
|
"@mercurjs/core": "2.2.0-canary.2",
|
|
68
68
|
"@mercurjs/dashboard-sdk": "2.2.0-canary.2",
|
|
69
69
|
"tsup": "^8.0.2",
|