hey-pharmacist-ecommerce 1.1.30 → 1.1.32
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.mts +1451 -1303
- package/dist/index.d.ts +1451 -1303
- package/dist/index.js +6162 -1563
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5854 -1271
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -3
- package/src/components/AccountReviewsTab.tsx +97 -0
- package/src/components/AccountSettingsTab.tsx +0 -50
- package/src/components/CouponCodeInput.tsx +190 -0
- package/src/components/Header.tsx +5 -1
- package/src/components/Notification.tsx +1 -1
- package/src/components/NotificationBell.tsx +33 -0
- package/src/components/NotificationCard.tsx +211 -0
- package/src/components/NotificationDrawer.tsx +188 -0
- package/src/components/OrderCard.tsx +164 -99
- package/src/components/ProductCard.tsx +3 -3
- package/src/components/ProductReviewsSection.tsx +30 -0
- package/src/components/RatingDistribution.tsx +86 -0
- package/src/components/ReviewCard.tsx +59 -0
- package/src/components/ReviewForm.tsx +207 -0
- package/src/components/ReviewPromptBanner.tsx +98 -0
- package/src/components/ReviewsList.tsx +151 -0
- package/src/components/StarRating.tsx +98 -0
- package/src/components/TabNavigation.tsx +1 -1
- package/src/components/ui/Button.tsx +1 -1
- package/src/hooks/useDiscounts.ts +7 -0
- package/src/hooks/useOrders.ts +15 -0
- package/src/hooks/useReviews.ts +230 -0
- package/src/index.ts +25 -0
- package/src/lib/Apis/apis/discounts-api.ts +23 -72
- package/src/lib/Apis/apis/notifications-api.ts +196 -231
- package/src/lib/Apis/apis/products-api.ts +84 -0
- package/src/lib/Apis/apis/review-api.ts +283 -4
- package/src/lib/Apis/apis/stores-api.ts +180 -0
- package/src/lib/Apis/models/bulk-channel-toggle-dto.ts +52 -0
- package/src/lib/Apis/models/cart-body-populated.ts +3 -3
- package/src/lib/Apis/models/channel-settings-dto.ts +39 -0
- package/src/lib/Apis/models/{discount-paginated-response.ts → completed-order-dto.ts} +21 -16
- package/src/lib/Apis/models/create-discount-dto.ts +31 -92
- package/src/lib/Apis/models/create-review-dto.ts +4 -4
- package/src/lib/Apis/models/create-shippo-account-dto.ts +45 -0
- package/src/lib/Apis/models/create-store-dto.ts +6 -0
- package/src/lib/Apis/models/discount.ts +37 -98
- package/src/lib/Apis/models/discounts-insights-dto.ts +12 -0
- package/src/lib/Apis/models/index.ts +13 -7
- package/src/lib/Apis/models/{manual-discount.ts → manual-discount-dto.ts} +10 -10
- package/src/lib/Apis/models/manual-order-dto.ts +3 -3
- package/src/lib/Apis/models/populated-discount.ts +41 -101
- package/src/lib/Apis/models/preference-update-item.ts +59 -0
- package/src/lib/Apis/models/product-light-dto.ts +40 -0
- package/src/lib/Apis/models/{check-notifications-response-dto.ts → review-status-dto.ts} +8 -7
- package/src/lib/Apis/models/review.ts +9 -3
- package/src/lib/Apis/models/reviewable-order-dto.ts +58 -0
- package/src/lib/Apis/models/reviewable-product-dto.ts +81 -0
- package/src/lib/Apis/models/shippo-account-response-dto.ts +51 -0
- package/src/lib/Apis/models/store-entity.ts +6 -0
- package/src/lib/Apis/models/store.ts +6 -0
- package/src/lib/Apis/models/update-discount-dto.ts +31 -92
- package/src/lib/Apis/models/update-notification-settings-dto.ts +28 -0
- package/src/lib/Apis/models/update-review-dto.ts +4 -4
- package/src/lib/Apis/models/update-store-dto.ts +6 -0
- package/src/lib/Apis/models/{pick-type-class.ts → variant-light-dto.ts} +20 -14
- package/src/lib/utils/discount.ts +155 -0
- package/src/lib/validations/discount.ts +11 -0
- package/src/providers/CartProvider.tsx +2 -2
- package/src/providers/DiscountProvider.tsx +97 -0
- package/src/providers/EcommerceProvider.tsx +13 -5
- package/src/providers/NotificationCenterProvider.tsx +420 -0
- package/src/screens/CartScreen.tsx +1 -1
- package/src/screens/CheckoutScreen.tsx +39 -12
- package/src/screens/NotificationSettingsScreen.tsx +321 -0
- package/src/screens/OrderDetailScreen.tsx +283 -0
- package/src/screens/OrderReviewsScreen.tsx +308 -0
- package/src/screens/OrdersScreen.tsx +31 -7
- package/src/screens/ProductDetailScreen.tsx +24 -11
- package/src/screens/ProfileScreen.tsx +5 -0
- package/src/styles/globals.css +4 -0
- package/styles/base.css +6 -0
- package/styles/globals.css +3 -0
- package/src/lib/Apis/models/create-notification-dto.ts +0 -75
- package/src/lib/Apis/models/notification.ts +0 -93
- package/src/lib/Apis/models/single-notification-dto.ts +0 -99
package/dist/index.d.mts
CHANGED
|
@@ -734,6 +734,55 @@ interface BrowserStatsResponseDTO {
|
|
|
734
734
|
total: number;
|
|
735
735
|
}
|
|
736
736
|
|
|
737
|
+
/**
|
|
738
|
+
* Hey Pharamcist API
|
|
739
|
+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
740
|
+
*
|
|
741
|
+
* OpenAPI spec version: 1.0
|
|
742
|
+
*
|
|
743
|
+
*
|
|
744
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
745
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
746
|
+
* Do not edit the class manually.
|
|
747
|
+
*/
|
|
748
|
+
/**
|
|
749
|
+
*
|
|
750
|
+
* @export
|
|
751
|
+
* @interface BulkChannelToggleDto
|
|
752
|
+
*/
|
|
753
|
+
interface BulkChannelToggleDto {
|
|
754
|
+
_id?: string;
|
|
755
|
+
/**
|
|
756
|
+
* Channel to toggle: email, push, or inApp
|
|
757
|
+
* @type {string}
|
|
758
|
+
* @memberof BulkChannelToggleDto
|
|
759
|
+
*/
|
|
760
|
+
channel: string;
|
|
761
|
+
/**
|
|
762
|
+
* Enable or disable this channel for all notification types
|
|
763
|
+
* @type {boolean}
|
|
764
|
+
* @memberof BulkChannelToggleDto
|
|
765
|
+
*/
|
|
766
|
+
enabled: boolean;
|
|
767
|
+
/**
|
|
768
|
+
* Optional category filter to only toggle specific notification categories
|
|
769
|
+
* @type {string}
|
|
770
|
+
* @memberof BulkChannelToggleDto
|
|
771
|
+
*/
|
|
772
|
+
category?: BulkChannelToggleDtoCategoryEnum;
|
|
773
|
+
}
|
|
774
|
+
/**
|
|
775
|
+
* @export
|
|
776
|
+
* @enum {string}
|
|
777
|
+
*/
|
|
778
|
+
declare enum BulkChannelToggleDtoCategoryEnum {
|
|
779
|
+
Transactional = "transactional",
|
|
780
|
+
Marketing = "marketing",
|
|
781
|
+
Security = "security",
|
|
782
|
+
Operational = "operational",
|
|
783
|
+
Financial = "financial"
|
|
784
|
+
}
|
|
785
|
+
|
|
737
786
|
/**
|
|
738
787
|
* Hey Pharamcist API
|
|
739
788
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
@@ -1565,36 +1614,36 @@ interface CartItemPopulated {
|
|
|
1565
1614
|
/**
|
|
1566
1615
|
*
|
|
1567
1616
|
* @export
|
|
1568
|
-
* @interface
|
|
1617
|
+
* @interface ManualDiscountDto
|
|
1569
1618
|
*/
|
|
1570
|
-
interface
|
|
1619
|
+
interface ManualDiscountDto {
|
|
1571
1620
|
_id?: string;
|
|
1572
1621
|
/**
|
|
1573
1622
|
*
|
|
1574
1623
|
* @type {string}
|
|
1575
|
-
* @memberof
|
|
1624
|
+
* @memberof ManualDiscountDto
|
|
1576
1625
|
*/
|
|
1577
|
-
|
|
1626
|
+
valueType: ManualDiscountDtoValueTypeEnum;
|
|
1578
1627
|
/**
|
|
1579
1628
|
*
|
|
1580
1629
|
* @type {number}
|
|
1581
|
-
* @memberof
|
|
1630
|
+
* @memberof ManualDiscountDto
|
|
1582
1631
|
*/
|
|
1583
|
-
|
|
1632
|
+
value: number;
|
|
1584
1633
|
/**
|
|
1585
1634
|
*
|
|
1586
1635
|
* @type {string}
|
|
1587
|
-
* @memberof
|
|
1636
|
+
* @memberof ManualDiscountDto
|
|
1588
1637
|
*/
|
|
1589
|
-
reason
|
|
1638
|
+
reason?: string;
|
|
1590
1639
|
}
|
|
1591
1640
|
/**
|
|
1592
1641
|
* @export
|
|
1593
1642
|
* @enum {string}
|
|
1594
1643
|
*/
|
|
1595
|
-
declare enum
|
|
1644
|
+
declare enum ManualDiscountDtoValueTypeEnum {
|
|
1596
1645
|
PERCENTAGE = "PERCENTAGE",
|
|
1597
|
-
|
|
1646
|
+
FIXEDAMOUNT = "FIXED_AMOUNT"
|
|
1598
1647
|
}
|
|
1599
1648
|
|
|
1600
1649
|
/**
|
|
@@ -1630,10 +1679,10 @@ interface CartBodyPopulated {
|
|
|
1630
1679
|
discountsApplied: Array<string>;
|
|
1631
1680
|
/**
|
|
1632
1681
|
*
|
|
1633
|
-
* @type {
|
|
1682
|
+
* @type {ManualDiscountDto}
|
|
1634
1683
|
* @memberof CartBodyPopulated
|
|
1635
1684
|
*/
|
|
1636
|
-
manualDiscount:
|
|
1685
|
+
manualDiscount: ManualDiscountDto;
|
|
1637
1686
|
/**
|
|
1638
1687
|
*
|
|
1639
1688
|
* @type {Array<string>}
|
|
@@ -2119,22 +2168,84 @@ interface ChangeUserEmailDto {
|
|
|
2119
2168
|
/**
|
|
2120
2169
|
*
|
|
2121
2170
|
* @export
|
|
2122
|
-
* @interface
|
|
2171
|
+
* @interface ChannelSettingsDto
|
|
2123
2172
|
*/
|
|
2124
|
-
interface
|
|
2173
|
+
interface ChannelSettingsDto {
|
|
2125
2174
|
_id?: string;
|
|
2126
2175
|
/**
|
|
2127
|
-
*
|
|
2176
|
+
* Enable email notifications for this type
|
|
2177
|
+
* @type {boolean}
|
|
2178
|
+
* @memberof ChannelSettingsDto
|
|
2179
|
+
*/
|
|
2180
|
+
email?: boolean;
|
|
2181
|
+
/**
|
|
2182
|
+
* Enable push notifications for this type
|
|
2128
2183
|
* @type {boolean}
|
|
2129
|
-
* @memberof
|
|
2184
|
+
* @memberof ChannelSettingsDto
|
|
2185
|
+
*/
|
|
2186
|
+
push?: boolean;
|
|
2187
|
+
/**
|
|
2188
|
+
* Enable in-app notifications for this type
|
|
2189
|
+
* @type {boolean}
|
|
2190
|
+
* @memberof ChannelSettingsDto
|
|
2191
|
+
*/
|
|
2192
|
+
inApp?: boolean;
|
|
2193
|
+
}
|
|
2194
|
+
|
|
2195
|
+
/**
|
|
2196
|
+
* Hey Pharamcist API
|
|
2197
|
+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
2198
|
+
*
|
|
2199
|
+
* OpenAPI spec version: 1.0
|
|
2200
|
+
*
|
|
2201
|
+
*
|
|
2202
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
2203
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
2204
|
+
* Do not edit the class manually.
|
|
2205
|
+
*/
|
|
2206
|
+
/**
|
|
2207
|
+
*
|
|
2208
|
+
* @export
|
|
2209
|
+
* @interface CompletedOrderDto
|
|
2210
|
+
*/
|
|
2211
|
+
interface CompletedOrderDto {
|
|
2212
|
+
_id?: string;
|
|
2213
|
+
/**
|
|
2214
|
+
*
|
|
2215
|
+
* @type {string}
|
|
2216
|
+
* @memberof CompletedOrderDto
|
|
2217
|
+
*/
|
|
2218
|
+
orderId: string;
|
|
2219
|
+
/**
|
|
2220
|
+
*
|
|
2221
|
+
* @type {string}
|
|
2222
|
+
* @memberof CompletedOrderDto
|
|
2223
|
+
*/
|
|
2224
|
+
orderStatus: string;
|
|
2225
|
+
/**
|
|
2226
|
+
*
|
|
2227
|
+
* @type {Date}
|
|
2228
|
+
* @memberof CompletedOrderDto
|
|
2229
|
+
*/
|
|
2230
|
+
createdAt: Date;
|
|
2231
|
+
/**
|
|
2232
|
+
*
|
|
2233
|
+
* @type {number}
|
|
2234
|
+
* @memberof CompletedOrderDto
|
|
2130
2235
|
*/
|
|
2131
|
-
|
|
2236
|
+
totalItems: number;
|
|
2132
2237
|
/**
|
|
2133
2238
|
*
|
|
2134
2239
|
* @type {number}
|
|
2135
|
-
* @memberof
|
|
2240
|
+
* @memberof CompletedOrderDto
|
|
2241
|
+
*/
|
|
2242
|
+
reviewedItems: number;
|
|
2243
|
+
/**
|
|
2244
|
+
*
|
|
2245
|
+
* @type {boolean}
|
|
2246
|
+
* @memberof CompletedOrderDto
|
|
2136
2247
|
*/
|
|
2137
|
-
|
|
2248
|
+
hasUnreviewedItems: boolean;
|
|
2138
2249
|
}
|
|
2139
2250
|
|
|
2140
2251
|
/**
|
|
@@ -3126,154 +3237,111 @@ interface CreateContactListDTO {
|
|
|
3126
3237
|
interface CreateDiscountDto {
|
|
3127
3238
|
_id?: string;
|
|
3128
3239
|
/**
|
|
3129
|
-
*
|
|
3240
|
+
* Display name for the discount
|
|
3130
3241
|
* @type {string}
|
|
3131
3242
|
* @memberof CreateDiscountDto
|
|
3132
3243
|
*/
|
|
3133
|
-
|
|
3244
|
+
name?: string;
|
|
3134
3245
|
/**
|
|
3135
|
-
*
|
|
3246
|
+
* Optional description for internal use
|
|
3136
3247
|
* @type {string}
|
|
3137
3248
|
* @memberof CreateDiscountDto
|
|
3138
3249
|
*/
|
|
3139
3250
|
description?: string;
|
|
3140
3251
|
/**
|
|
3141
|
-
*
|
|
3142
|
-
* @type {string}
|
|
3143
|
-
* @memberof CreateDiscountDto
|
|
3144
|
-
*/
|
|
3145
|
-
discountType?: CreateDiscountDtoDiscountTypeEnum;
|
|
3146
|
-
/**
|
|
3147
|
-
*
|
|
3252
|
+
* ITEM_DISCOUNT: Shows on products automatically. COUPON_CODE: Requires code at checkout
|
|
3148
3253
|
* @type {string}
|
|
3149
3254
|
* @memberof CreateDiscountDto
|
|
3150
3255
|
*/
|
|
3151
|
-
|
|
3256
|
+
type?: CreateDiscountDtoTypeEnum;
|
|
3152
3257
|
/**
|
|
3153
|
-
*
|
|
3258
|
+
* PERCENTAGE or FIXED_AMOUNT
|
|
3154
3259
|
* @type {string}
|
|
3155
3260
|
* @memberof CreateDiscountDto
|
|
3156
3261
|
*/
|
|
3157
|
-
|
|
3262
|
+
valueType?: CreateDiscountDtoValueTypeEnum;
|
|
3158
3263
|
/**
|
|
3159
|
-
*
|
|
3160
|
-
* @type {
|
|
3264
|
+
* The discount value (percentage 1-100 or fixed dollar amount)
|
|
3265
|
+
* @type {number}
|
|
3161
3266
|
* @memberof CreateDiscountDto
|
|
3162
3267
|
*/
|
|
3163
|
-
|
|
3268
|
+
value?: number;
|
|
3164
3269
|
/**
|
|
3165
|
-
*
|
|
3270
|
+
* Maximum discount amount for percentage discounts (optional, mainly for COUPON_CODE)
|
|
3166
3271
|
* @type {number}
|
|
3167
3272
|
* @memberof CreateDiscountDto
|
|
3168
3273
|
*/
|
|
3169
3274
|
cappedAt?: number;
|
|
3170
3275
|
/**
|
|
3171
|
-
*
|
|
3172
|
-
* @type {
|
|
3276
|
+
* Coupon code (required for COUPON_CODE type)
|
|
3277
|
+
* @type {string}
|
|
3173
3278
|
* @memberof CreateDiscountDto
|
|
3174
3279
|
*/
|
|
3175
|
-
|
|
3280
|
+
code?: string;
|
|
3176
3281
|
/**
|
|
3177
|
-
*
|
|
3282
|
+
* When the discount becomes active
|
|
3178
3283
|
* @type {Date}
|
|
3179
3284
|
* @memberof CreateDiscountDto
|
|
3180
3285
|
*/
|
|
3181
3286
|
startsAt?: Date;
|
|
3182
3287
|
/**
|
|
3183
|
-
*
|
|
3288
|
+
* When the discount expires
|
|
3184
3289
|
* @type {Date}
|
|
3185
3290
|
* @memberof CreateDiscountDto
|
|
3186
3291
|
*/
|
|
3187
3292
|
expiresAt?: Date;
|
|
3188
3293
|
/**
|
|
3189
|
-
*
|
|
3190
|
-
* @type {number}
|
|
3191
|
-
* @memberof CreateDiscountDto
|
|
3192
|
-
*/
|
|
3193
|
-
maxUses?: number;
|
|
3194
|
-
/**
|
|
3195
|
-
*
|
|
3294
|
+
* Current lifecycle state
|
|
3196
3295
|
* @type {string}
|
|
3197
3296
|
* @memberof CreateDiscountDto
|
|
3198
3297
|
*/
|
|
3199
3298
|
state?: CreateDiscountDtoStateEnum;
|
|
3200
3299
|
/**
|
|
3201
|
-
*
|
|
3202
|
-
* @type {
|
|
3300
|
+
* Quick toggle to enable/disable the discount
|
|
3301
|
+
* @type {boolean}
|
|
3203
3302
|
* @memberof CreateDiscountDto
|
|
3204
3303
|
*/
|
|
3205
|
-
|
|
3304
|
+
isActive?: boolean;
|
|
3206
3305
|
/**
|
|
3207
|
-
*
|
|
3306
|
+
* Products to apply discount to (all their variants will be discounted)
|
|
3208
3307
|
* @type {Array<string>}
|
|
3209
3308
|
* @memberof CreateDiscountDto
|
|
3210
3309
|
*/
|
|
3211
3310
|
productsEligible?: Array<string>;
|
|
3212
3311
|
/**
|
|
3213
|
-
*
|
|
3312
|
+
* Specific variants to apply discount to
|
|
3214
3313
|
* @type {Array<string>}
|
|
3215
3314
|
* @memberof CreateDiscountDto
|
|
3216
3315
|
*/
|
|
3217
3316
|
variantsEligible?: Array<string>;
|
|
3218
3317
|
/**
|
|
3219
|
-
*
|
|
3220
|
-
* @type {number}
|
|
3221
|
-
* @memberof CreateDiscountDto
|
|
3222
|
-
*/
|
|
3223
|
-
maxUsesPerUser?: number;
|
|
3224
|
-
/**
|
|
3225
|
-
*
|
|
3226
|
-
* @type {string}
|
|
3227
|
-
* @memberof CreateDiscountDto
|
|
3228
|
-
*/
|
|
3229
|
-
minPurchaseRequired?: CreateDiscountDtoMinPurchaseRequiredEnum;
|
|
3230
|
-
/**
|
|
3231
|
-
*
|
|
3318
|
+
* Maximum total times this discount can be used (optional)
|
|
3232
3319
|
* @type {number}
|
|
3233
3320
|
* @memberof CreateDiscountDto
|
|
3234
3321
|
*/
|
|
3235
|
-
|
|
3322
|
+
maxUses?: number;
|
|
3236
3323
|
/**
|
|
3237
|
-
*
|
|
3324
|
+
* Maximum times a single user can use this discount (optional)
|
|
3238
3325
|
* @type {number}
|
|
3239
3326
|
* @memberof CreateDiscountDto
|
|
3240
3327
|
*/
|
|
3241
|
-
|
|
3242
|
-
/**
|
|
3243
|
-
*
|
|
3244
|
-
* @type {string}
|
|
3245
|
-
* @memberof CreateDiscountDto
|
|
3246
|
-
*/
|
|
3247
|
-
customerEligibility?: CreateDiscountDtoCustomerEligibilityEnum;
|
|
3248
|
-
/**
|
|
3249
|
-
*
|
|
3250
|
-
* @type {Array<string>}
|
|
3251
|
-
* @memberof CreateDiscountDto
|
|
3252
|
-
*/
|
|
3253
|
-
usersEligible?: Array<string>;
|
|
3254
|
-
/**
|
|
3255
|
-
*
|
|
3256
|
-
* @type {Array<string>}
|
|
3257
|
-
* @memberof CreateDiscountDto
|
|
3258
|
-
*/
|
|
3259
|
-
groupsEligible?: Array<string>;
|
|
3328
|
+
maxUsesPerUser?: number;
|
|
3260
3329
|
}
|
|
3261
3330
|
/**
|
|
3262
3331
|
* @export
|
|
3263
3332
|
* @enum {string}
|
|
3264
3333
|
*/
|
|
3265
|
-
declare enum
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
VARIANT = "VARIANT"
|
|
3334
|
+
declare enum CreateDiscountDtoTypeEnum {
|
|
3335
|
+
ITEMDISCOUNT = "ITEM_DISCOUNT",
|
|
3336
|
+
COUPONCODE = "COUPON_CODE"
|
|
3269
3337
|
}
|
|
3270
3338
|
/**
|
|
3271
3339
|
* @export
|
|
3272
3340
|
* @enum {string}
|
|
3273
3341
|
*/
|
|
3274
|
-
declare enum
|
|
3342
|
+
declare enum CreateDiscountDtoValueTypeEnum {
|
|
3275
3343
|
PERCENTAGE = "PERCENTAGE",
|
|
3276
|
-
|
|
3344
|
+
FIXEDAMOUNT = "FIXED_AMOUNT"
|
|
3277
3345
|
}
|
|
3278
3346
|
/**
|
|
3279
3347
|
* @export
|
|
@@ -3285,24 +3353,6 @@ declare enum CreateDiscountDtoStateEnum {
|
|
|
3285
3353
|
EXPIRED = "EXPIRED",
|
|
3286
3354
|
SCHEDULED = "SCHEDULED"
|
|
3287
3355
|
}
|
|
3288
|
-
/**
|
|
3289
|
-
* @export
|
|
3290
|
-
* @enum {string}
|
|
3291
|
-
*/
|
|
3292
|
-
declare enum CreateDiscountDtoMinPurchaseRequiredEnum {
|
|
3293
|
-
NOREQUIREMENT = "NO_REQUIREMENT",
|
|
3294
|
-
MINIMUMAMOUNT = "MINIMUM_AMOUNT",
|
|
3295
|
-
MINIMUMQUANTITY = "MINIMUM_QUANTITY"
|
|
3296
|
-
}
|
|
3297
|
-
/**
|
|
3298
|
-
* @export
|
|
3299
|
-
* @enum {string}
|
|
3300
|
-
*/
|
|
3301
|
-
declare enum CreateDiscountDtoCustomerEligibilityEnum {
|
|
3302
|
-
ALL = "ALL",
|
|
3303
|
-
SPECIFICUSERS = "SPECIFIC_USERS",
|
|
3304
|
-
SPECIFICGROUPS = "SPECIFIC_GROUPS"
|
|
3305
|
-
}
|
|
3306
3356
|
|
|
3307
3357
|
/**
|
|
3308
3358
|
* Hey Pharamcist API
|
|
@@ -3541,80 +3591,6 @@ interface CreateMessageDto {
|
|
|
3541
3591
|
adminNotes: string;
|
|
3542
3592
|
}
|
|
3543
3593
|
|
|
3544
|
-
/**
|
|
3545
|
-
* Hey Pharamcist API
|
|
3546
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
3547
|
-
*
|
|
3548
|
-
* OpenAPI spec version: 1.0
|
|
3549
|
-
*
|
|
3550
|
-
*
|
|
3551
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
3552
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
3553
|
-
* Do not edit the class manually.
|
|
3554
|
-
*/
|
|
3555
|
-
/**
|
|
3556
|
-
*
|
|
3557
|
-
* @export
|
|
3558
|
-
* @interface CreateNotificationDto
|
|
3559
|
-
*/
|
|
3560
|
-
interface CreateNotificationDto {
|
|
3561
|
-
_id?: string;
|
|
3562
|
-
/**
|
|
3563
|
-
*
|
|
3564
|
-
* @type {string}
|
|
3565
|
-
* @memberof CreateNotificationDto
|
|
3566
|
-
*/
|
|
3567
|
-
title: string;
|
|
3568
|
-
/**
|
|
3569
|
-
*
|
|
3570
|
-
* @type {string}
|
|
3571
|
-
* @memberof CreateNotificationDto
|
|
3572
|
-
*/
|
|
3573
|
-
content: string;
|
|
3574
|
-
/**
|
|
3575
|
-
*
|
|
3576
|
-
* @type {string}
|
|
3577
|
-
* @memberof CreateNotificationDto
|
|
3578
|
-
*/
|
|
3579
|
-
notificationType: string;
|
|
3580
|
-
/**
|
|
3581
|
-
*
|
|
3582
|
-
* @type {string}
|
|
3583
|
-
* @memberof CreateNotificationDto
|
|
3584
|
-
*/
|
|
3585
|
-
notificationLink: string;
|
|
3586
|
-
/**
|
|
3587
|
-
*
|
|
3588
|
-
* @type {Array<string>}
|
|
3589
|
-
* @memberof CreateNotificationDto
|
|
3590
|
-
*/
|
|
3591
|
-
sentTo: Array<string>;
|
|
3592
|
-
/**
|
|
3593
|
-
*
|
|
3594
|
-
* @type {Array<string>}
|
|
3595
|
-
* @memberof CreateNotificationDto
|
|
3596
|
-
*/
|
|
3597
|
-
readBy: Array<string>;
|
|
3598
|
-
/**
|
|
3599
|
-
*
|
|
3600
|
-
* @type {Array<string>}
|
|
3601
|
-
* @memberof CreateNotificationDto
|
|
3602
|
-
*/
|
|
3603
|
-
clearedBy: Array<string>;
|
|
3604
|
-
/**
|
|
3605
|
-
*
|
|
3606
|
-
* @type {boolean}
|
|
3607
|
-
* @memberof CreateNotificationDto
|
|
3608
|
-
*/
|
|
3609
|
-
isAdminNotification: boolean;
|
|
3610
|
-
/**
|
|
3611
|
-
*
|
|
3612
|
-
* @type {string}
|
|
3613
|
-
* @memberof CreateNotificationDto
|
|
3614
|
-
*/
|
|
3615
|
-
storeId: string;
|
|
3616
|
-
}
|
|
3617
|
-
|
|
3618
3594
|
/**
|
|
3619
3595
|
* Hey Pharamcist API
|
|
3620
3596
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
@@ -3842,13 +3818,13 @@ interface CreateReviewDto {
|
|
|
3842
3818
|
* @type {string}
|
|
3843
3819
|
* @memberof CreateReviewDto
|
|
3844
3820
|
*/
|
|
3845
|
-
|
|
3821
|
+
productId?: string;
|
|
3846
3822
|
/**
|
|
3847
3823
|
*
|
|
3848
3824
|
* @type {string}
|
|
3849
3825
|
* @memberof CreateReviewDto
|
|
3850
3826
|
*/
|
|
3851
|
-
|
|
3827
|
+
productVariantId?: string;
|
|
3852
3828
|
/**
|
|
3853
3829
|
*
|
|
3854
3830
|
* @type {string}
|
|
@@ -3875,10 +3851,54 @@ interface CreateReviewDto {
|
|
|
3875
3851
|
reply?: string;
|
|
3876
3852
|
/**
|
|
3877
3853
|
*
|
|
3878
|
-
* @type {
|
|
3854
|
+
* @type {Date}
|
|
3879
3855
|
* @memberof CreateReviewDto
|
|
3880
3856
|
*/
|
|
3881
|
-
replyDate?:
|
|
3857
|
+
replyDate?: Date;
|
|
3858
|
+
}
|
|
3859
|
+
|
|
3860
|
+
/**
|
|
3861
|
+
* Hey Pharamcist API
|
|
3862
|
+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
3863
|
+
*
|
|
3864
|
+
* OpenAPI spec version: 1.0
|
|
3865
|
+
*
|
|
3866
|
+
*
|
|
3867
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
3868
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
3869
|
+
* Do not edit the class manually.
|
|
3870
|
+
*/
|
|
3871
|
+
/**
|
|
3872
|
+
*
|
|
3873
|
+
* @export
|
|
3874
|
+
* @interface CreateShippoAccountDto
|
|
3875
|
+
*/
|
|
3876
|
+
interface CreateShippoAccountDto {
|
|
3877
|
+
_id?: string;
|
|
3878
|
+
/**
|
|
3879
|
+
* Email for shipping notifications
|
|
3880
|
+
* @type {string}
|
|
3881
|
+
* @memberof CreateShippoAccountDto
|
|
3882
|
+
*/
|
|
3883
|
+
email: string;
|
|
3884
|
+
/**
|
|
3885
|
+
* First name of store owner
|
|
3886
|
+
* @type {string}
|
|
3887
|
+
* @memberof CreateShippoAccountDto
|
|
3888
|
+
*/
|
|
3889
|
+
firstName: string;
|
|
3890
|
+
/**
|
|
3891
|
+
* Last name of store owner
|
|
3892
|
+
* @type {string}
|
|
3893
|
+
* @memberof CreateShippoAccountDto
|
|
3894
|
+
*/
|
|
3895
|
+
lastName: string;
|
|
3896
|
+
/**
|
|
3897
|
+
* Company/store name
|
|
3898
|
+
* @type {string}
|
|
3899
|
+
* @memberof CreateShippoAccountDto
|
|
3900
|
+
*/
|
|
3901
|
+
companyName: string;
|
|
3882
3902
|
}
|
|
3883
3903
|
|
|
3884
3904
|
/**
|
|
@@ -4099,6 +4119,12 @@ interface CreateStoreDto {
|
|
|
4099
4119
|
* @memberof CreateStoreDto
|
|
4100
4120
|
*/
|
|
4101
4121
|
adminUrl?: string;
|
|
4122
|
+
/**
|
|
4123
|
+
* Shippo Platform managed account ID
|
|
4124
|
+
* @type {string}
|
|
4125
|
+
* @memberof CreateStoreDto
|
|
4126
|
+
*/
|
|
4127
|
+
shippoAccountId?: string;
|
|
4102
4128
|
/**
|
|
4103
4129
|
*
|
|
4104
4130
|
* @type {string}
|
|
@@ -4573,172 +4599,129 @@ interface Discount {
|
|
|
4573
4599
|
*/
|
|
4574
4600
|
id: string;
|
|
4575
4601
|
/**
|
|
4576
|
-
*
|
|
4602
|
+
* Display name for the discount
|
|
4577
4603
|
* @type {string}
|
|
4578
4604
|
* @memberof Discount
|
|
4579
4605
|
*/
|
|
4580
|
-
|
|
4606
|
+
name: string;
|
|
4581
4607
|
/**
|
|
4582
|
-
*
|
|
4608
|
+
* Optional description for internal use
|
|
4583
4609
|
* @type {string}
|
|
4584
4610
|
* @memberof Discount
|
|
4585
4611
|
*/
|
|
4586
4612
|
description: string;
|
|
4587
4613
|
/**
|
|
4588
|
-
*
|
|
4589
|
-
* @type {string}
|
|
4590
|
-
* @memberof Discount
|
|
4591
|
-
*/
|
|
4592
|
-
discountType: DiscountDiscountTypeEnum;
|
|
4593
|
-
/**
|
|
4594
|
-
*
|
|
4614
|
+
* ITEM_DISCOUNT: Shows on products automatically. COUPON_CODE: Requires code at checkout
|
|
4595
4615
|
* @type {string}
|
|
4596
4616
|
* @memberof Discount
|
|
4597
4617
|
*/
|
|
4598
|
-
|
|
4618
|
+
type: DiscountTypeEnum;
|
|
4599
4619
|
/**
|
|
4600
|
-
*
|
|
4620
|
+
* PERCENTAGE or FIXED_AMOUNT
|
|
4601
4621
|
* @type {string}
|
|
4602
4622
|
* @memberof Discount
|
|
4603
4623
|
*/
|
|
4604
|
-
|
|
4624
|
+
valueType: DiscountValueTypeEnum;
|
|
4605
4625
|
/**
|
|
4606
|
-
*
|
|
4607
|
-
* @type {
|
|
4626
|
+
* The discount value (percentage 1-100 or fixed dollar amount)
|
|
4627
|
+
* @type {number}
|
|
4608
4628
|
* @memberof Discount
|
|
4609
4629
|
*/
|
|
4610
|
-
|
|
4630
|
+
value: number;
|
|
4611
4631
|
/**
|
|
4612
|
-
*
|
|
4632
|
+
* Maximum discount amount for percentage discounts (optional, mainly for COUPON_CODE)
|
|
4613
4633
|
* @type {number}
|
|
4614
4634
|
* @memberof Discount
|
|
4615
4635
|
*/
|
|
4616
4636
|
cappedAt: number;
|
|
4617
4637
|
/**
|
|
4618
|
-
*
|
|
4619
|
-
* @type {
|
|
4638
|
+
* Coupon code (required for COUPON_CODE type)
|
|
4639
|
+
* @type {string}
|
|
4620
4640
|
* @memberof Discount
|
|
4621
4641
|
*/
|
|
4622
|
-
|
|
4642
|
+
code: string;
|
|
4623
4643
|
/**
|
|
4624
|
-
*
|
|
4644
|
+
* When the discount becomes active
|
|
4625
4645
|
* @type {Date}
|
|
4626
4646
|
* @memberof Discount
|
|
4627
4647
|
*/
|
|
4628
4648
|
startsAt: Date;
|
|
4629
4649
|
/**
|
|
4630
|
-
*
|
|
4650
|
+
* When the discount expires
|
|
4631
4651
|
* @type {Date}
|
|
4632
4652
|
* @memberof Discount
|
|
4633
4653
|
*/
|
|
4634
4654
|
expiresAt: Date;
|
|
4635
4655
|
/**
|
|
4636
|
-
*
|
|
4637
|
-
* @type {number}
|
|
4638
|
-
* @memberof Discount
|
|
4639
|
-
*/
|
|
4640
|
-
maxUses: number;
|
|
4641
|
-
/**
|
|
4642
|
-
*
|
|
4643
|
-
* @type {number}
|
|
4644
|
-
* @memberof Discount
|
|
4645
|
-
*/
|
|
4646
|
-
numberOfUses: number;
|
|
4647
|
-
/**
|
|
4648
|
-
*
|
|
4656
|
+
* Current lifecycle state
|
|
4649
4657
|
* @type {string}
|
|
4650
4658
|
* @memberof Discount
|
|
4651
4659
|
*/
|
|
4652
4660
|
state: DiscountStateEnum;
|
|
4653
4661
|
/**
|
|
4654
|
-
*
|
|
4655
|
-
* @type {
|
|
4662
|
+
* Quick toggle to enable/disable the discount
|
|
4663
|
+
* @type {boolean}
|
|
4656
4664
|
* @memberof Discount
|
|
4657
4665
|
*/
|
|
4658
|
-
|
|
4666
|
+
isActive: boolean;
|
|
4659
4667
|
/**
|
|
4660
|
-
*
|
|
4668
|
+
* Products to apply discount to (all their variants will be discounted)
|
|
4661
4669
|
* @type {Array<string>}
|
|
4662
4670
|
* @memberof Discount
|
|
4663
4671
|
*/
|
|
4664
4672
|
productsEligible: Array<string>;
|
|
4665
4673
|
/**
|
|
4666
|
-
*
|
|
4674
|
+
* Specific variants to apply discount to
|
|
4667
4675
|
* @type {Array<string>}
|
|
4668
4676
|
* @memberof Discount
|
|
4669
4677
|
*/
|
|
4670
4678
|
variantsEligible: Array<string>;
|
|
4671
4679
|
/**
|
|
4672
|
-
*
|
|
4673
|
-
* @type {
|
|
4674
|
-
* @memberof Discount
|
|
4675
|
-
*/
|
|
4676
|
-
storeId: string;
|
|
4677
|
-
/**
|
|
4678
|
-
*
|
|
4679
|
-
* @type {Array<UsedBy>}
|
|
4680
|
+
* Maximum total times this discount can be used (optional)
|
|
4681
|
+
* @type {number}
|
|
4680
4682
|
* @memberof Discount
|
|
4681
4683
|
*/
|
|
4682
|
-
|
|
4684
|
+
maxUses: number;
|
|
4683
4685
|
/**
|
|
4684
|
-
*
|
|
4686
|
+
* Maximum times a single user can use this discount (optional)
|
|
4685
4687
|
* @type {number}
|
|
4686
4688
|
* @memberof Discount
|
|
4687
4689
|
*/
|
|
4688
4690
|
maxUsesPerUser: number;
|
|
4689
4691
|
/**
|
|
4690
|
-
*
|
|
4691
|
-
* @type {string}
|
|
4692
|
-
* @memberof Discount
|
|
4693
|
-
*/
|
|
4694
|
-
minPurchaseRequired: DiscountMinPurchaseRequiredEnum;
|
|
4695
|
-
/**
|
|
4696
|
-
*
|
|
4692
|
+
* Current total usage count
|
|
4697
4693
|
* @type {number}
|
|
4698
4694
|
* @memberof Discount
|
|
4699
4695
|
*/
|
|
4700
|
-
|
|
4696
|
+
numberOfUses: number;
|
|
4701
4697
|
/**
|
|
4702
|
-
*
|
|
4703
|
-
* @type {
|
|
4698
|
+
* Usage history
|
|
4699
|
+
* @type {Array<UsedBy>}
|
|
4704
4700
|
* @memberof Discount
|
|
4705
4701
|
*/
|
|
4706
|
-
|
|
4702
|
+
usedBy: Array<UsedBy>;
|
|
4707
4703
|
/**
|
|
4708
4704
|
*
|
|
4709
4705
|
* @type {string}
|
|
4710
4706
|
* @memberof Discount
|
|
4711
4707
|
*/
|
|
4712
|
-
|
|
4713
|
-
/**
|
|
4714
|
-
*
|
|
4715
|
-
* @type {Array<string>}
|
|
4716
|
-
* @memberof Discount
|
|
4717
|
-
*/
|
|
4718
|
-
usersEligible: Array<string>;
|
|
4719
|
-
/**
|
|
4720
|
-
*
|
|
4721
|
-
* @type {Array<string>}
|
|
4722
|
-
* @memberof Discount
|
|
4723
|
-
*/
|
|
4724
|
-
groupsEligible: Array<string>;
|
|
4708
|
+
storeId: string;
|
|
4725
4709
|
}
|
|
4726
4710
|
/**
|
|
4727
4711
|
* @export
|
|
4728
4712
|
* @enum {string}
|
|
4729
4713
|
*/
|
|
4730
|
-
declare enum
|
|
4731
|
-
|
|
4732
|
-
|
|
4733
|
-
VARIANT = "VARIANT"
|
|
4714
|
+
declare enum DiscountTypeEnum {
|
|
4715
|
+
ITEMDISCOUNT = "ITEM_DISCOUNT",
|
|
4716
|
+
COUPONCODE = "COUPON_CODE"
|
|
4734
4717
|
}
|
|
4735
4718
|
/**
|
|
4736
4719
|
* @export
|
|
4737
4720
|
* @enum {string}
|
|
4738
4721
|
*/
|
|
4739
|
-
declare enum
|
|
4722
|
+
declare enum DiscountValueTypeEnum {
|
|
4740
4723
|
PERCENTAGE = "PERCENTAGE",
|
|
4741
|
-
|
|
4724
|
+
FIXEDAMOUNT = "FIXED_AMOUNT"
|
|
4742
4725
|
}
|
|
4743
4726
|
/**
|
|
4744
4727
|
* @export
|
|
@@ -4750,24 +4733,6 @@ declare enum DiscountStateEnum {
|
|
|
4750
4733
|
EXPIRED = "EXPIRED",
|
|
4751
4734
|
SCHEDULED = "SCHEDULED"
|
|
4752
4735
|
}
|
|
4753
|
-
/**
|
|
4754
|
-
* @export
|
|
4755
|
-
* @enum {string}
|
|
4756
|
-
*/
|
|
4757
|
-
declare enum DiscountMinPurchaseRequiredEnum {
|
|
4758
|
-
NOREQUIREMENT = "NO_REQUIREMENT",
|
|
4759
|
-
MINIMUMAMOUNT = "MINIMUM_AMOUNT",
|
|
4760
|
-
MINIMUMQUANTITY = "MINIMUM_QUANTITY"
|
|
4761
|
-
}
|
|
4762
|
-
/**
|
|
4763
|
-
* @export
|
|
4764
|
-
* @enum {string}
|
|
4765
|
-
*/
|
|
4766
|
-
declare enum DiscountCustomerEligibilityEnum {
|
|
4767
|
-
ALL = "ALL",
|
|
4768
|
-
SPECIFICUSERS = "SPECIFIC_USERS",
|
|
4769
|
-
SPECIFICGROUPS = "SPECIFIC_GROUPS"
|
|
4770
|
-
}
|
|
4771
4736
|
|
|
4772
4737
|
/**
|
|
4773
4738
|
* Hey Pharamcist API
|
|
@@ -4783,40 +4748,52 @@ declare enum DiscountCustomerEligibilityEnum {
|
|
|
4783
4748
|
/**
|
|
4784
4749
|
*
|
|
4785
4750
|
* @export
|
|
4786
|
-
* @interface
|
|
4751
|
+
* @interface DiscountsInsightsDto
|
|
4787
4752
|
*/
|
|
4788
|
-
interface
|
|
4753
|
+
interface DiscountsInsightsDto {
|
|
4789
4754
|
_id?: string;
|
|
4790
4755
|
/**
|
|
4791
4756
|
*
|
|
4792
|
-
* @type {
|
|
4793
|
-
* @memberof
|
|
4757
|
+
* @type {number}
|
|
4758
|
+
* @memberof DiscountsInsightsDto
|
|
4794
4759
|
*/
|
|
4795
|
-
|
|
4760
|
+
totalDiscounts: number;
|
|
4796
4761
|
/**
|
|
4797
4762
|
*
|
|
4798
|
-
* @type {
|
|
4799
|
-
* @memberof
|
|
4763
|
+
* @type {number}
|
|
4764
|
+
* @memberof DiscountsInsightsDto
|
|
4800
4765
|
*/
|
|
4801
|
-
|
|
4766
|
+
totalActive: number;
|
|
4802
4767
|
/**
|
|
4803
4768
|
*
|
|
4804
|
-
* @type {
|
|
4805
|
-
* @memberof
|
|
4769
|
+
* @type {number}
|
|
4770
|
+
* @memberof DiscountsInsightsDto
|
|
4806
4771
|
*/
|
|
4807
|
-
|
|
4772
|
+
totalInactive: number;
|
|
4808
4773
|
/**
|
|
4809
4774
|
*
|
|
4810
|
-
* @type {
|
|
4811
|
-
* @memberof
|
|
4775
|
+
* @type {number}
|
|
4776
|
+
* @memberof DiscountsInsightsDto
|
|
4812
4777
|
*/
|
|
4813
|
-
|
|
4778
|
+
totalExpired: number;
|
|
4814
4779
|
/**
|
|
4815
4780
|
*
|
|
4816
|
-
* @type {
|
|
4817
|
-
* @memberof
|
|
4781
|
+
* @type {number}
|
|
4782
|
+
* @memberof DiscountsInsightsDto
|
|
4818
4783
|
*/
|
|
4819
|
-
|
|
4784
|
+
totalScheduled: number;
|
|
4785
|
+
/**
|
|
4786
|
+
*
|
|
4787
|
+
* @type {number}
|
|
4788
|
+
* @memberof DiscountsInsightsDto
|
|
4789
|
+
*/
|
|
4790
|
+
totalItemDiscounts: number;
|
|
4791
|
+
/**
|
|
4792
|
+
*
|
|
4793
|
+
* @type {number}
|
|
4794
|
+
* @memberof DiscountsInsightsDto
|
|
4795
|
+
*/
|
|
4796
|
+
totalCouponCodes: number;
|
|
4820
4797
|
}
|
|
4821
4798
|
|
|
4822
4799
|
/**
|
|
@@ -4830,227 +4807,153 @@ interface PickTypeClass {
|
|
|
4830
4807
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
4831
4808
|
* Do not edit the class manually.
|
|
4832
4809
|
*/
|
|
4833
|
-
|
|
4834
4810
|
/**
|
|
4835
4811
|
*
|
|
4836
4812
|
* @export
|
|
4837
|
-
* @interface
|
|
4813
|
+
* @interface EmailInvoiceDto
|
|
4838
4814
|
*/
|
|
4839
|
-
interface
|
|
4815
|
+
interface EmailInvoiceDto {
|
|
4840
4816
|
_id?: string;
|
|
4841
|
-
/**
|
|
4842
|
-
*
|
|
4843
|
-
* @type {Date}
|
|
4844
|
-
* @memberof PopulatedDiscount
|
|
4845
|
-
*/
|
|
4846
|
-
createdAt?: Date;
|
|
4847
|
-
/**
|
|
4848
|
-
*
|
|
4849
|
-
* @type {Date}
|
|
4850
|
-
* @memberof PopulatedDiscount
|
|
4851
|
-
*/
|
|
4852
|
-
updatedAt?: Date;
|
|
4853
4817
|
/**
|
|
4854
4818
|
*
|
|
4855
4819
|
* @type {string}
|
|
4856
|
-
* @memberof
|
|
4820
|
+
* @memberof EmailInvoiceDto
|
|
4857
4821
|
*/
|
|
4858
|
-
|
|
4822
|
+
to: string;
|
|
4859
4823
|
/**
|
|
4860
4824
|
*
|
|
4861
4825
|
* @type {string}
|
|
4862
|
-
* @memberof
|
|
4826
|
+
* @memberof EmailInvoiceDto
|
|
4863
4827
|
*/
|
|
4864
|
-
|
|
4828
|
+
subject: string;
|
|
4865
4829
|
/**
|
|
4866
4830
|
*
|
|
4867
4831
|
* @type {string}
|
|
4868
|
-
* @memberof
|
|
4832
|
+
* @memberof EmailInvoiceDto
|
|
4869
4833
|
*/
|
|
4870
|
-
|
|
4834
|
+
content: string;
|
|
4871
4835
|
/**
|
|
4872
4836
|
*
|
|
4873
4837
|
* @type {string}
|
|
4874
|
-
* @memberof
|
|
4838
|
+
* @memberof EmailInvoiceDto
|
|
4875
4839
|
*/
|
|
4876
|
-
|
|
4840
|
+
orderId: string;
|
|
4841
|
+
}
|
|
4842
|
+
|
|
4843
|
+
/**
|
|
4844
|
+
* Hey Pharamcist API
|
|
4845
|
+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
4846
|
+
*
|
|
4847
|
+
* OpenAPI spec version: 1.0
|
|
4848
|
+
*
|
|
4849
|
+
*
|
|
4850
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
4851
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
4852
|
+
* Do not edit the class manually.
|
|
4853
|
+
*/
|
|
4854
|
+
/**
|
|
4855
|
+
*
|
|
4856
|
+
* @export
|
|
4857
|
+
* @interface EmailTemplateResponseDTO
|
|
4858
|
+
*/
|
|
4859
|
+
interface EmailTemplateResponseDTO {
|
|
4860
|
+
_id?: string;
|
|
4877
4861
|
/**
|
|
4878
4862
|
*
|
|
4879
|
-
* @type {
|
|
4880
|
-
* @memberof
|
|
4863
|
+
* @type {number}
|
|
4864
|
+
* @memberof EmailTemplateResponseDTO
|
|
4881
4865
|
*/
|
|
4882
|
-
|
|
4866
|
+
ID: number;
|
|
4883
4867
|
/**
|
|
4884
4868
|
*
|
|
4885
4869
|
* @type {string}
|
|
4886
|
-
* @memberof
|
|
4870
|
+
* @memberof EmailTemplateResponseDTO
|
|
4887
4871
|
*/
|
|
4888
|
-
|
|
4872
|
+
name: string;
|
|
4889
4873
|
/**
|
|
4890
4874
|
*
|
|
4891
|
-
* @type {
|
|
4892
|
-
* @memberof
|
|
4875
|
+
* @type {string}
|
|
4876
|
+
* @memberof EmailTemplateResponseDTO
|
|
4893
4877
|
*/
|
|
4894
|
-
|
|
4878
|
+
locale: string;
|
|
4895
4879
|
/**
|
|
4896
4880
|
*
|
|
4897
|
-
* @type {
|
|
4898
|
-
* @memberof
|
|
4881
|
+
* @type {string}
|
|
4882
|
+
* @memberof EmailTemplateResponseDTO
|
|
4899
4883
|
*/
|
|
4900
|
-
|
|
4884
|
+
author: string;
|
|
4901
4885
|
/**
|
|
4902
4886
|
*
|
|
4903
|
-
* @type {
|
|
4904
|
-
* @memberof
|
|
4887
|
+
* @type {string}
|
|
4888
|
+
* @memberof EmailTemplateResponseDTO
|
|
4905
4889
|
*/
|
|
4906
|
-
|
|
4890
|
+
presets: string;
|
|
4907
4891
|
/**
|
|
4908
4892
|
*
|
|
4909
|
-
* @type {
|
|
4910
|
-
* @memberof
|
|
4893
|
+
* @type {Array<string>}
|
|
4894
|
+
* @memberof EmailTemplateResponseDTO
|
|
4911
4895
|
*/
|
|
4912
|
-
|
|
4896
|
+
previews: Array<string>;
|
|
4913
4897
|
/**
|
|
4914
4898
|
*
|
|
4915
|
-
* @type {
|
|
4916
|
-
* @memberof
|
|
4899
|
+
* @type {string}
|
|
4900
|
+
* @memberof EmailTemplateResponseDTO
|
|
4917
4901
|
*/
|
|
4918
|
-
|
|
4902
|
+
ownerType: string;
|
|
4919
4903
|
/**
|
|
4920
4904
|
*
|
|
4921
|
-
* @type {
|
|
4922
|
-
* @memberof
|
|
4905
|
+
* @type {string}
|
|
4906
|
+
* @memberof EmailTemplateResponseDTO
|
|
4923
4907
|
*/
|
|
4924
|
-
|
|
4908
|
+
copyright: string;
|
|
4925
4909
|
/**
|
|
4926
4910
|
*
|
|
4927
|
-
* @type {
|
|
4928
|
-
* @memberof
|
|
4911
|
+
* @type {string}
|
|
4912
|
+
* @memberof EmailTemplateResponseDTO
|
|
4929
4913
|
*/
|
|
4930
|
-
|
|
4914
|
+
description: string;
|
|
4931
4915
|
/**
|
|
4932
4916
|
*
|
|
4933
|
-
* @type {string}
|
|
4934
|
-
* @memberof
|
|
4917
|
+
* @type {Array<string>}
|
|
4918
|
+
* @memberof EmailTemplateResponseDTO
|
|
4935
4919
|
*/
|
|
4936
|
-
|
|
4920
|
+
purposes: Array<string>;
|
|
4937
4921
|
/**
|
|
4938
4922
|
*
|
|
4939
|
-
* @type {string}
|
|
4940
|
-
* @memberof
|
|
4923
|
+
* @type {Array<string>}
|
|
4924
|
+
* @memberof EmailTemplateResponseDTO
|
|
4941
4925
|
*/
|
|
4942
|
-
|
|
4926
|
+
categories: Array<string>;
|
|
4943
4927
|
/**
|
|
4944
4928
|
*
|
|
4945
|
-
* @type {
|
|
4946
|
-
* @memberof
|
|
4929
|
+
* @type {boolean}
|
|
4930
|
+
* @memberof EmailTemplateResponseDTO
|
|
4947
4931
|
*/
|
|
4948
|
-
|
|
4932
|
+
isStarred: boolean;
|
|
4949
4933
|
/**
|
|
4950
4934
|
*
|
|
4951
|
-
* @type {
|
|
4952
|
-
* @memberof
|
|
4935
|
+
* @type {boolean}
|
|
4936
|
+
* @memberof EmailTemplateResponseDTO
|
|
4953
4937
|
*/
|
|
4954
|
-
|
|
4938
|
+
isTextPartGenerationEnabled: boolean;
|
|
4955
4939
|
/**
|
|
4956
4940
|
*
|
|
4957
4941
|
* @type {string}
|
|
4958
|
-
* @memberof
|
|
4942
|
+
* @memberof EmailTemplateResponseDTO
|
|
4959
4943
|
*/
|
|
4960
|
-
|
|
4944
|
+
createdAt: string;
|
|
4961
4945
|
/**
|
|
4962
4946
|
*
|
|
4963
|
-
* @type {
|
|
4964
|
-
* @memberof
|
|
4947
|
+
* @type {string}
|
|
4948
|
+
* @memberof EmailTemplateResponseDTO
|
|
4965
4949
|
*/
|
|
4966
|
-
|
|
4950
|
+
lastUpdatedAt: string;
|
|
4967
4951
|
/**
|
|
4968
4952
|
*
|
|
4969
|
-
* @type {
|
|
4970
|
-
* @memberof
|
|
4953
|
+
* @type {Array<string>}
|
|
4954
|
+
* @memberof EmailTemplateResponseDTO
|
|
4971
4955
|
*/
|
|
4972
|
-
|
|
4973
|
-
/**
|
|
4974
|
-
*
|
|
4975
|
-
* @type {string}
|
|
4976
|
-
* @memberof PopulatedDiscount
|
|
4977
|
-
*/
|
|
4978
|
-
customerEligibility?: PopulatedDiscountCustomerEligibilityEnum;
|
|
4979
|
-
/**
|
|
4980
|
-
*
|
|
4981
|
-
* @type {Array<PickTypeClass>}
|
|
4982
|
-
* @memberof PopulatedDiscount
|
|
4983
|
-
*/
|
|
4984
|
-
usersEligible: Array<PickTypeClass>;
|
|
4985
|
-
/**
|
|
4986
|
-
*
|
|
4987
|
-
* @type {Array<string>}
|
|
4988
|
-
* @memberof PopulatedDiscount
|
|
4989
|
-
*/
|
|
4990
|
-
groupsEligible: Array<string>;
|
|
4991
|
-
/**
|
|
4992
|
-
*
|
|
4993
|
-
* @type {Array<string>}
|
|
4994
|
-
* @memberof PopulatedDiscount
|
|
4995
|
-
*/
|
|
4996
|
-
categoriesEligible: Array<string>;
|
|
4997
|
-
/**
|
|
4998
|
-
*
|
|
4999
|
-
* @type {Array<string>}
|
|
5000
|
-
* @memberof PopulatedDiscount
|
|
5001
|
-
*/
|
|
5002
|
-
productsEligible: Array<string>;
|
|
5003
|
-
/**
|
|
5004
|
-
*
|
|
5005
|
-
* @type {Array<string>}
|
|
5006
|
-
* @memberof PopulatedDiscount
|
|
5007
|
-
*/
|
|
5008
|
-
variantsEligible: Array<string>;
|
|
5009
|
-
}
|
|
5010
|
-
/**
|
|
5011
|
-
* @export
|
|
5012
|
-
* @enum {string}
|
|
5013
|
-
*/
|
|
5014
|
-
declare enum PopulatedDiscountDiscountTypeEnum {
|
|
5015
|
-
PRODUCT = "PRODUCT",
|
|
5016
|
-
CATEGORY = "CATEGORY",
|
|
5017
|
-
VARIANT = "VARIANT"
|
|
5018
|
-
}
|
|
5019
|
-
/**
|
|
5020
|
-
* @export
|
|
5021
|
-
* @enum {string}
|
|
5022
|
-
*/
|
|
5023
|
-
declare enum PopulatedDiscountDecreasePriceByEnum {
|
|
5024
|
-
PERCENTAGE = "PERCENTAGE",
|
|
5025
|
-
AMOUNT = "AMOUNT"
|
|
5026
|
-
}
|
|
5027
|
-
/**
|
|
5028
|
-
* @export
|
|
5029
|
-
* @enum {string}
|
|
5030
|
-
*/
|
|
5031
|
-
declare enum PopulatedDiscountStateEnum {
|
|
5032
|
-
ACTIVE = "ACTIVE",
|
|
5033
|
-
INACTIVE = "INACTIVE",
|
|
5034
|
-
EXPIRED = "EXPIRED",
|
|
5035
|
-
SCHEDULED = "SCHEDULED"
|
|
5036
|
-
}
|
|
5037
|
-
/**
|
|
5038
|
-
* @export
|
|
5039
|
-
* @enum {string}
|
|
5040
|
-
*/
|
|
5041
|
-
declare enum PopulatedDiscountMinPurchaseRequiredEnum {
|
|
5042
|
-
NOREQUIREMENT = "NO_REQUIREMENT",
|
|
5043
|
-
MINIMUMAMOUNT = "MINIMUM_AMOUNT",
|
|
5044
|
-
MINIMUMQUANTITY = "MINIMUM_QUANTITY"
|
|
5045
|
-
}
|
|
5046
|
-
/**
|
|
5047
|
-
* @export
|
|
5048
|
-
* @enum {string}
|
|
5049
|
-
*/
|
|
5050
|
-
declare enum PopulatedDiscountCustomerEligibilityEnum {
|
|
5051
|
-
ALL = "ALL",
|
|
5052
|
-
SPECIFICUSERS = "SPECIFIC_USERS",
|
|
5053
|
-
SPECIFICGROUPS = "SPECIFIC_GROUPS"
|
|
4956
|
+
localeList: Array<string>;
|
|
5054
4957
|
}
|
|
5055
4958
|
|
|
5056
4959
|
/**
|
|
@@ -5068,40 +4971,64 @@ declare enum PopulatedDiscountCustomerEligibilityEnum {
|
|
|
5068
4971
|
/**
|
|
5069
4972
|
*
|
|
5070
4973
|
* @export
|
|
5071
|
-
* @interface
|
|
4974
|
+
* @interface Event
|
|
5072
4975
|
*/
|
|
5073
|
-
interface
|
|
4976
|
+
interface Event {
|
|
5074
4977
|
_id?: string;
|
|
5075
4978
|
/**
|
|
5076
4979
|
*
|
|
5077
|
-
* @type {
|
|
5078
|
-
* @memberof
|
|
4980
|
+
* @type {Date}
|
|
4981
|
+
* @memberof Event
|
|
5079
4982
|
*/
|
|
5080
|
-
|
|
4983
|
+
createdAt: Date;
|
|
5081
4984
|
/**
|
|
5082
4985
|
*
|
|
5083
|
-
* @type {
|
|
5084
|
-
* @memberof
|
|
4986
|
+
* @type {Date}
|
|
4987
|
+
* @memberof Event
|
|
5085
4988
|
*/
|
|
5086
|
-
|
|
4989
|
+
updatedAt: Date;
|
|
5087
4990
|
/**
|
|
5088
4991
|
*
|
|
5089
|
-
* @type {
|
|
5090
|
-
* @memberof
|
|
4992
|
+
* @type {string}
|
|
4993
|
+
* @memberof Event
|
|
5091
4994
|
*/
|
|
5092
|
-
|
|
4995
|
+
id: string;
|
|
4996
|
+
/**
|
|
4997
|
+
*
|
|
4998
|
+
* @type {string}
|
|
4999
|
+
* @memberof Event
|
|
5000
|
+
*/
|
|
5001
|
+
storeId: string;
|
|
5002
|
+
/**
|
|
5003
|
+
*
|
|
5004
|
+
* @type {string}
|
|
5005
|
+
* @memberof Event
|
|
5006
|
+
*/
|
|
5007
|
+
title: string;
|
|
5008
|
+
/**
|
|
5009
|
+
*
|
|
5010
|
+
* @type {string}
|
|
5011
|
+
* @memberof Event
|
|
5012
|
+
*/
|
|
5013
|
+
description: string;
|
|
5093
5014
|
/**
|
|
5094
5015
|
*
|
|
5095
5016
|
* @type {number}
|
|
5096
|
-
* @memberof
|
|
5017
|
+
* @memberof Event
|
|
5097
5018
|
*/
|
|
5098
|
-
|
|
5019
|
+
durationInMinutes: number;
|
|
5099
5020
|
/**
|
|
5100
5021
|
*
|
|
5101
5022
|
* @type {number}
|
|
5102
|
-
* @memberof
|
|
5023
|
+
* @memberof Event
|
|
5103
5024
|
*/
|
|
5104
|
-
|
|
5025
|
+
bufferTimeInMinutes: number;
|
|
5026
|
+
/**
|
|
5027
|
+
*
|
|
5028
|
+
* @type {Array<AvailableDatesDto>}
|
|
5029
|
+
* @memberof Event
|
|
5030
|
+
*/
|
|
5031
|
+
availableDates: Array<AvailableDatesDto>;
|
|
5105
5032
|
}
|
|
5106
5033
|
|
|
5107
5034
|
/**
|
|
@@ -5118,40 +5045,16 @@ interface DiscountPaginatedResponse {
|
|
|
5118
5045
|
/**
|
|
5119
5046
|
*
|
|
5120
5047
|
* @export
|
|
5121
|
-
* @interface
|
|
5048
|
+
* @interface FileproccesorUploadBody
|
|
5122
5049
|
*/
|
|
5123
|
-
interface
|
|
5050
|
+
interface FileproccesorUploadBody {
|
|
5124
5051
|
_id?: string;
|
|
5125
5052
|
/**
|
|
5126
5053
|
*
|
|
5127
|
-
* @type {
|
|
5128
|
-
* @memberof
|
|
5129
|
-
*/
|
|
5130
|
-
totalDiscounts: number;
|
|
5131
|
-
/**
|
|
5132
|
-
*
|
|
5133
|
-
* @type {number}
|
|
5134
|
-
* @memberof DiscountsInsightsDto
|
|
5135
|
-
*/
|
|
5136
|
-
totalActive: number;
|
|
5137
|
-
/**
|
|
5138
|
-
*
|
|
5139
|
-
* @type {number}
|
|
5140
|
-
* @memberof DiscountsInsightsDto
|
|
5141
|
-
*/
|
|
5142
|
-
totalInactive: number;
|
|
5143
|
-
/**
|
|
5144
|
-
*
|
|
5145
|
-
* @type {number}
|
|
5146
|
-
* @memberof DiscountsInsightsDto
|
|
5147
|
-
*/
|
|
5148
|
-
totalExpired: number;
|
|
5149
|
-
/**
|
|
5150
|
-
*
|
|
5151
|
-
* @type {number}
|
|
5152
|
-
* @memberof DiscountsInsightsDto
|
|
5054
|
+
* @type {Blob}
|
|
5055
|
+
* @memberof FileproccesorUploadBody
|
|
5153
5056
|
*/
|
|
5154
|
-
|
|
5057
|
+
file?: Blob;
|
|
5155
5058
|
}
|
|
5156
5059
|
|
|
5157
5060
|
/**
|
|
@@ -5168,34 +5071,16 @@ interface DiscountsInsightsDto {
|
|
|
5168
5071
|
/**
|
|
5169
5072
|
*
|
|
5170
5073
|
* @export
|
|
5171
|
-
* @interface
|
|
5074
|
+
* @interface ForgetPassword
|
|
5172
5075
|
*/
|
|
5173
|
-
interface
|
|
5076
|
+
interface ForgetPassword {
|
|
5174
5077
|
_id?: string;
|
|
5175
5078
|
/**
|
|
5176
5079
|
*
|
|
5177
5080
|
* @type {string}
|
|
5178
|
-
* @memberof
|
|
5179
|
-
*/
|
|
5180
|
-
to: string;
|
|
5181
|
-
/**
|
|
5182
|
-
*
|
|
5183
|
-
* @type {string}
|
|
5184
|
-
* @memberof EmailInvoiceDto
|
|
5185
|
-
*/
|
|
5186
|
-
subject: string;
|
|
5187
|
-
/**
|
|
5188
|
-
*
|
|
5189
|
-
* @type {string}
|
|
5190
|
-
* @memberof EmailInvoiceDto
|
|
5191
|
-
*/
|
|
5192
|
-
content: string;
|
|
5193
|
-
/**
|
|
5194
|
-
*
|
|
5195
|
-
* @type {string}
|
|
5196
|
-
* @memberof EmailInvoiceDto
|
|
5081
|
+
* @memberof ForgetPassword
|
|
5197
5082
|
*/
|
|
5198
|
-
|
|
5083
|
+
email: string;
|
|
5199
5084
|
}
|
|
5200
5085
|
|
|
5201
5086
|
/**
|
|
@@ -5212,343 +5097,100 @@ interface EmailInvoiceDto {
|
|
|
5212
5097
|
/**
|
|
5213
5098
|
*
|
|
5214
5099
|
* @export
|
|
5215
|
-
* @interface
|
|
5100
|
+
* @interface SingleGeneralStats
|
|
5216
5101
|
*/
|
|
5217
|
-
interface
|
|
5102
|
+
interface SingleGeneralStats {
|
|
5218
5103
|
_id?: string;
|
|
5219
5104
|
/**
|
|
5220
5105
|
*
|
|
5221
5106
|
* @type {number}
|
|
5222
|
-
* @memberof
|
|
5107
|
+
* @memberof SingleGeneralStats
|
|
5223
5108
|
*/
|
|
5224
|
-
|
|
5109
|
+
blockedCount: number;
|
|
5225
5110
|
/**
|
|
5226
5111
|
*
|
|
5227
|
-
* @type {
|
|
5228
|
-
* @memberof
|
|
5112
|
+
* @type {number}
|
|
5113
|
+
* @memberof SingleGeneralStats
|
|
5229
5114
|
*/
|
|
5230
|
-
|
|
5115
|
+
bouncedCount: number;
|
|
5231
5116
|
/**
|
|
5232
5117
|
*
|
|
5233
|
-
* @type {
|
|
5234
|
-
* @memberof
|
|
5118
|
+
* @type {number}
|
|
5119
|
+
* @memberof SingleGeneralStats
|
|
5235
5120
|
*/
|
|
5236
|
-
|
|
5121
|
+
campaignID: number;
|
|
5237
5122
|
/**
|
|
5238
5123
|
*
|
|
5239
|
-
* @type {
|
|
5240
|
-
* @memberof
|
|
5124
|
+
* @type {boolean}
|
|
5125
|
+
* @memberof SingleGeneralStats
|
|
5241
5126
|
*/
|
|
5242
|
-
|
|
5127
|
+
campaignIsStarred: boolean;
|
|
5243
5128
|
/**
|
|
5244
5129
|
*
|
|
5245
5130
|
* @type {string}
|
|
5246
|
-
* @memberof
|
|
5131
|
+
* @memberof SingleGeneralStats
|
|
5247
5132
|
*/
|
|
5248
|
-
|
|
5133
|
+
campaignSendStartAt: string;
|
|
5249
5134
|
/**
|
|
5250
5135
|
*
|
|
5251
|
-
* @type {
|
|
5252
|
-
* @memberof
|
|
5136
|
+
* @type {string}
|
|
5137
|
+
* @memberof SingleGeneralStats
|
|
5253
5138
|
*/
|
|
5254
|
-
|
|
5139
|
+
campaignSubject: string;
|
|
5255
5140
|
/**
|
|
5256
5141
|
*
|
|
5257
|
-
* @type {
|
|
5258
|
-
* @memberof
|
|
5142
|
+
* @type {number}
|
|
5143
|
+
* @memberof SingleGeneralStats
|
|
5259
5144
|
*/
|
|
5260
|
-
|
|
5145
|
+
clickedCount: number;
|
|
5261
5146
|
/**
|
|
5262
5147
|
*
|
|
5263
5148
|
* @type {string}
|
|
5264
|
-
* @memberof
|
|
5149
|
+
* @memberof SingleGeneralStats
|
|
5265
5150
|
*/
|
|
5266
|
-
|
|
5151
|
+
contactListName: string;
|
|
5267
5152
|
/**
|
|
5268
5153
|
*
|
|
5269
|
-
* @type {
|
|
5270
|
-
* @memberof
|
|
5154
|
+
* @type {number}
|
|
5155
|
+
* @memberof SingleGeneralStats
|
|
5271
5156
|
*/
|
|
5272
|
-
|
|
5157
|
+
deferredCount: number;
|
|
5273
5158
|
/**
|
|
5274
5159
|
*
|
|
5275
|
-
* @type {
|
|
5276
|
-
* @memberof
|
|
5160
|
+
* @type {number}
|
|
5161
|
+
* @memberof SingleGeneralStats
|
|
5277
5162
|
*/
|
|
5278
|
-
|
|
5163
|
+
deliveredCount: number;
|
|
5279
5164
|
/**
|
|
5280
5165
|
*
|
|
5281
|
-
* @type {
|
|
5282
|
-
* @memberof
|
|
5166
|
+
* @type {number}
|
|
5167
|
+
* @memberof SingleGeneralStats
|
|
5283
5168
|
*/
|
|
5284
|
-
|
|
5169
|
+
hardBouncedCount: number;
|
|
5285
5170
|
/**
|
|
5286
5171
|
*
|
|
5287
|
-
* @type {
|
|
5288
|
-
* @memberof
|
|
5172
|
+
* @type {string}
|
|
5173
|
+
* @memberof SingleGeneralStats
|
|
5289
5174
|
*/
|
|
5290
|
-
|
|
5175
|
+
lastActivityAt: string;
|
|
5291
5176
|
/**
|
|
5292
5177
|
*
|
|
5293
|
-
* @type {
|
|
5294
|
-
* @memberof
|
|
5178
|
+
* @type {number}
|
|
5179
|
+
* @memberof SingleGeneralStats
|
|
5295
5180
|
*/
|
|
5296
|
-
|
|
5181
|
+
newsLetterID: number;
|
|
5297
5182
|
/**
|
|
5298
5183
|
*
|
|
5299
|
-
* @type {
|
|
5300
|
-
* @memberof
|
|
5184
|
+
* @type {number}
|
|
5185
|
+
* @memberof SingleGeneralStats
|
|
5301
5186
|
*/
|
|
5302
|
-
|
|
5187
|
+
openedCount: number;
|
|
5303
5188
|
/**
|
|
5304
5189
|
*
|
|
5305
|
-
* @type {
|
|
5306
|
-
* @memberof
|
|
5190
|
+
* @type {number}
|
|
5191
|
+
* @memberof SingleGeneralStats
|
|
5307
5192
|
*/
|
|
5308
|
-
|
|
5309
|
-
/**
|
|
5310
|
-
*
|
|
5311
|
-
* @type {Array<string>}
|
|
5312
|
-
* @memberof EmailTemplateResponseDTO
|
|
5313
|
-
*/
|
|
5314
|
-
localeList: Array<string>;
|
|
5315
|
-
}
|
|
5316
|
-
|
|
5317
|
-
/**
|
|
5318
|
-
* Hey Pharamcist API
|
|
5319
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5320
|
-
*
|
|
5321
|
-
* OpenAPI spec version: 1.0
|
|
5322
|
-
*
|
|
5323
|
-
*
|
|
5324
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
5325
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
5326
|
-
* Do not edit the class manually.
|
|
5327
|
-
*/
|
|
5328
|
-
|
|
5329
|
-
/**
|
|
5330
|
-
*
|
|
5331
|
-
* @export
|
|
5332
|
-
* @interface Event
|
|
5333
|
-
*/
|
|
5334
|
-
interface Event {
|
|
5335
|
-
_id?: string;
|
|
5336
|
-
/**
|
|
5337
|
-
*
|
|
5338
|
-
* @type {Date}
|
|
5339
|
-
* @memberof Event
|
|
5340
|
-
*/
|
|
5341
|
-
createdAt: Date;
|
|
5342
|
-
/**
|
|
5343
|
-
*
|
|
5344
|
-
* @type {Date}
|
|
5345
|
-
* @memberof Event
|
|
5346
|
-
*/
|
|
5347
|
-
updatedAt: Date;
|
|
5348
|
-
/**
|
|
5349
|
-
*
|
|
5350
|
-
* @type {string}
|
|
5351
|
-
* @memberof Event
|
|
5352
|
-
*/
|
|
5353
|
-
id: string;
|
|
5354
|
-
/**
|
|
5355
|
-
*
|
|
5356
|
-
* @type {string}
|
|
5357
|
-
* @memberof Event
|
|
5358
|
-
*/
|
|
5359
|
-
storeId: string;
|
|
5360
|
-
/**
|
|
5361
|
-
*
|
|
5362
|
-
* @type {string}
|
|
5363
|
-
* @memberof Event
|
|
5364
|
-
*/
|
|
5365
|
-
title: string;
|
|
5366
|
-
/**
|
|
5367
|
-
*
|
|
5368
|
-
* @type {string}
|
|
5369
|
-
* @memberof Event
|
|
5370
|
-
*/
|
|
5371
|
-
description: string;
|
|
5372
|
-
/**
|
|
5373
|
-
*
|
|
5374
|
-
* @type {number}
|
|
5375
|
-
* @memberof Event
|
|
5376
|
-
*/
|
|
5377
|
-
durationInMinutes: number;
|
|
5378
|
-
/**
|
|
5379
|
-
*
|
|
5380
|
-
* @type {number}
|
|
5381
|
-
* @memberof Event
|
|
5382
|
-
*/
|
|
5383
|
-
bufferTimeInMinutes: number;
|
|
5384
|
-
/**
|
|
5385
|
-
*
|
|
5386
|
-
* @type {Array<AvailableDatesDto>}
|
|
5387
|
-
* @memberof Event
|
|
5388
|
-
*/
|
|
5389
|
-
availableDates: Array<AvailableDatesDto>;
|
|
5390
|
-
}
|
|
5391
|
-
|
|
5392
|
-
/**
|
|
5393
|
-
* Hey Pharamcist API
|
|
5394
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5395
|
-
*
|
|
5396
|
-
* OpenAPI spec version: 1.0
|
|
5397
|
-
*
|
|
5398
|
-
*
|
|
5399
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
5400
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
5401
|
-
* Do not edit the class manually.
|
|
5402
|
-
*/
|
|
5403
|
-
/**
|
|
5404
|
-
*
|
|
5405
|
-
* @export
|
|
5406
|
-
* @interface FileproccesorUploadBody
|
|
5407
|
-
*/
|
|
5408
|
-
interface FileproccesorUploadBody {
|
|
5409
|
-
_id?: string;
|
|
5410
|
-
/**
|
|
5411
|
-
*
|
|
5412
|
-
* @type {Blob}
|
|
5413
|
-
* @memberof FileproccesorUploadBody
|
|
5414
|
-
*/
|
|
5415
|
-
file?: Blob;
|
|
5416
|
-
}
|
|
5417
|
-
|
|
5418
|
-
/**
|
|
5419
|
-
* Hey Pharamcist API
|
|
5420
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5421
|
-
*
|
|
5422
|
-
* OpenAPI spec version: 1.0
|
|
5423
|
-
*
|
|
5424
|
-
*
|
|
5425
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
5426
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
5427
|
-
* Do not edit the class manually.
|
|
5428
|
-
*/
|
|
5429
|
-
/**
|
|
5430
|
-
*
|
|
5431
|
-
* @export
|
|
5432
|
-
* @interface ForgetPassword
|
|
5433
|
-
*/
|
|
5434
|
-
interface ForgetPassword {
|
|
5435
|
-
_id?: string;
|
|
5436
|
-
/**
|
|
5437
|
-
*
|
|
5438
|
-
* @type {string}
|
|
5439
|
-
* @memberof ForgetPassword
|
|
5440
|
-
*/
|
|
5441
|
-
email: string;
|
|
5442
|
-
}
|
|
5443
|
-
|
|
5444
|
-
/**
|
|
5445
|
-
* Hey Pharamcist API
|
|
5446
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
5447
|
-
*
|
|
5448
|
-
* OpenAPI spec version: 1.0
|
|
5449
|
-
*
|
|
5450
|
-
*
|
|
5451
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
5452
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
5453
|
-
* Do not edit the class manually.
|
|
5454
|
-
*/
|
|
5455
|
-
/**
|
|
5456
|
-
*
|
|
5457
|
-
* @export
|
|
5458
|
-
* @interface SingleGeneralStats
|
|
5459
|
-
*/
|
|
5460
|
-
interface SingleGeneralStats {
|
|
5461
|
-
_id?: string;
|
|
5462
|
-
/**
|
|
5463
|
-
*
|
|
5464
|
-
* @type {number}
|
|
5465
|
-
* @memberof SingleGeneralStats
|
|
5466
|
-
*/
|
|
5467
|
-
blockedCount: number;
|
|
5468
|
-
/**
|
|
5469
|
-
*
|
|
5470
|
-
* @type {number}
|
|
5471
|
-
* @memberof SingleGeneralStats
|
|
5472
|
-
*/
|
|
5473
|
-
bouncedCount: number;
|
|
5474
|
-
/**
|
|
5475
|
-
*
|
|
5476
|
-
* @type {number}
|
|
5477
|
-
* @memberof SingleGeneralStats
|
|
5478
|
-
*/
|
|
5479
|
-
campaignID: number;
|
|
5480
|
-
/**
|
|
5481
|
-
*
|
|
5482
|
-
* @type {boolean}
|
|
5483
|
-
* @memberof SingleGeneralStats
|
|
5484
|
-
*/
|
|
5485
|
-
campaignIsStarred: boolean;
|
|
5486
|
-
/**
|
|
5487
|
-
*
|
|
5488
|
-
* @type {string}
|
|
5489
|
-
* @memberof SingleGeneralStats
|
|
5490
|
-
*/
|
|
5491
|
-
campaignSendStartAt: string;
|
|
5492
|
-
/**
|
|
5493
|
-
*
|
|
5494
|
-
* @type {string}
|
|
5495
|
-
* @memberof SingleGeneralStats
|
|
5496
|
-
*/
|
|
5497
|
-
campaignSubject: string;
|
|
5498
|
-
/**
|
|
5499
|
-
*
|
|
5500
|
-
* @type {number}
|
|
5501
|
-
* @memberof SingleGeneralStats
|
|
5502
|
-
*/
|
|
5503
|
-
clickedCount: number;
|
|
5504
|
-
/**
|
|
5505
|
-
*
|
|
5506
|
-
* @type {string}
|
|
5507
|
-
* @memberof SingleGeneralStats
|
|
5508
|
-
*/
|
|
5509
|
-
contactListName: string;
|
|
5510
|
-
/**
|
|
5511
|
-
*
|
|
5512
|
-
* @type {number}
|
|
5513
|
-
* @memberof SingleGeneralStats
|
|
5514
|
-
*/
|
|
5515
|
-
deferredCount: number;
|
|
5516
|
-
/**
|
|
5517
|
-
*
|
|
5518
|
-
* @type {number}
|
|
5519
|
-
* @memberof SingleGeneralStats
|
|
5520
|
-
*/
|
|
5521
|
-
deliveredCount: number;
|
|
5522
|
-
/**
|
|
5523
|
-
*
|
|
5524
|
-
* @type {number}
|
|
5525
|
-
* @memberof SingleGeneralStats
|
|
5526
|
-
*/
|
|
5527
|
-
hardBouncedCount: number;
|
|
5528
|
-
/**
|
|
5529
|
-
*
|
|
5530
|
-
* @type {string}
|
|
5531
|
-
* @memberof SingleGeneralStats
|
|
5532
|
-
*/
|
|
5533
|
-
lastActivityAt: string;
|
|
5534
|
-
/**
|
|
5535
|
-
*
|
|
5536
|
-
* @type {number}
|
|
5537
|
-
* @memberof SingleGeneralStats
|
|
5538
|
-
*/
|
|
5539
|
-
newsLetterID: number;
|
|
5540
|
-
/**
|
|
5541
|
-
*
|
|
5542
|
-
* @type {number}
|
|
5543
|
-
* @memberof SingleGeneralStats
|
|
5544
|
-
*/
|
|
5545
|
-
openedCount: number;
|
|
5546
|
-
/**
|
|
5547
|
-
*
|
|
5548
|
-
* @type {number}
|
|
5549
|
-
* @memberof SingleGeneralStats
|
|
5550
|
-
*/
|
|
5551
|
-
preQueuedCount: number;
|
|
5193
|
+
preQueuedCount: number;
|
|
5552
5194
|
/**
|
|
5553
5195
|
*
|
|
5554
5196
|
* @type {number}
|
|
@@ -6372,10 +6014,10 @@ interface ManualOrderDTO {
|
|
|
6372
6014
|
notes?: string;
|
|
6373
6015
|
/**
|
|
6374
6016
|
*
|
|
6375
|
-
* @type {
|
|
6017
|
+
* @type {ManualDiscountDto}
|
|
6376
6018
|
* @memberof ManualOrderDTO
|
|
6377
6019
|
*/
|
|
6378
|
-
manualDiscount:
|
|
6020
|
+
manualDiscount: ManualDiscountDto;
|
|
6379
6021
|
/**
|
|
6380
6022
|
*
|
|
6381
6023
|
* @type {string}
|
|
@@ -6664,101 +6306,9 @@ interface NewClientEmailDto {
|
|
|
6664
6306
|
/**
|
|
6665
6307
|
*
|
|
6666
6308
|
* @export
|
|
6667
|
-
* @interface
|
|
6309
|
+
* @interface ObjectId
|
|
6668
6310
|
*/
|
|
6669
|
-
interface
|
|
6670
|
-
_id?: string;
|
|
6671
|
-
/**
|
|
6672
|
-
*
|
|
6673
|
-
* @type {Date}
|
|
6674
|
-
* @memberof Notification
|
|
6675
|
-
*/
|
|
6676
|
-
createdAt: Date;
|
|
6677
|
-
/**
|
|
6678
|
-
*
|
|
6679
|
-
* @type {Date}
|
|
6680
|
-
* @memberof Notification
|
|
6681
|
-
*/
|
|
6682
|
-
updatedAt: Date;
|
|
6683
|
-
/**
|
|
6684
|
-
*
|
|
6685
|
-
* @type {string}
|
|
6686
|
-
* @memberof Notification
|
|
6687
|
-
*/
|
|
6688
|
-
id: string;
|
|
6689
|
-
/**
|
|
6690
|
-
*
|
|
6691
|
-
* @type {string}
|
|
6692
|
-
* @memberof Notification
|
|
6693
|
-
*/
|
|
6694
|
-
title: string;
|
|
6695
|
-
/**
|
|
6696
|
-
*
|
|
6697
|
-
* @type {string}
|
|
6698
|
-
* @memberof Notification
|
|
6699
|
-
*/
|
|
6700
|
-
content: string;
|
|
6701
|
-
/**
|
|
6702
|
-
*
|
|
6703
|
-
* @type {string}
|
|
6704
|
-
* @memberof Notification
|
|
6705
|
-
*/
|
|
6706
|
-
notificationType: string;
|
|
6707
|
-
/**
|
|
6708
|
-
*
|
|
6709
|
-
* @type {string}
|
|
6710
|
-
* @memberof Notification
|
|
6711
|
-
*/
|
|
6712
|
-
notificationLink: string;
|
|
6713
|
-
/**
|
|
6714
|
-
*
|
|
6715
|
-
* @type {Array<string>}
|
|
6716
|
-
* @memberof Notification
|
|
6717
|
-
*/
|
|
6718
|
-
sentTo: Array<string>;
|
|
6719
|
-
/**
|
|
6720
|
-
*
|
|
6721
|
-
* @type {Array<string>}
|
|
6722
|
-
* @memberof Notification
|
|
6723
|
-
*/
|
|
6724
|
-
readBy: Array<string>;
|
|
6725
|
-
/**
|
|
6726
|
-
*
|
|
6727
|
-
* @type {Array<string>}
|
|
6728
|
-
* @memberof Notification
|
|
6729
|
-
*/
|
|
6730
|
-
clearedBy: Array<string>;
|
|
6731
|
-
/**
|
|
6732
|
-
*
|
|
6733
|
-
* @type {boolean}
|
|
6734
|
-
* @memberof Notification
|
|
6735
|
-
*/
|
|
6736
|
-
isAdminNotification: boolean;
|
|
6737
|
-
/**
|
|
6738
|
-
*
|
|
6739
|
-
* @type {string}
|
|
6740
|
-
* @memberof Notification
|
|
6741
|
-
*/
|
|
6742
|
-
storeId: string;
|
|
6743
|
-
}
|
|
6744
|
-
|
|
6745
|
-
/**
|
|
6746
|
-
* Hey Pharamcist API
|
|
6747
|
-
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
6748
|
-
*
|
|
6749
|
-
* OpenAPI spec version: 1.0
|
|
6750
|
-
*
|
|
6751
|
-
*
|
|
6752
|
-
* NOTE: This class is auto generated by the swagger code generator program.
|
|
6753
|
-
* https://github.com/swagger-api/swagger-codegen.git
|
|
6754
|
-
* Do not edit the class manually.
|
|
6755
|
-
*/
|
|
6756
|
-
/**
|
|
6757
|
-
*
|
|
6758
|
-
* @export
|
|
6759
|
-
* @interface ObjectId
|
|
6760
|
-
*/
|
|
6761
|
-
interface ObjectId {
|
|
6311
|
+
interface ObjectId {
|
|
6762
6312
|
_id?: string;
|
|
6763
6313
|
}
|
|
6764
6314
|
|
|
@@ -7739,29 +7289,345 @@ interface PopulatedOrder {
|
|
|
7739
7289
|
* @type {string}
|
|
7740
7290
|
* @memberof PopulatedOrder
|
|
7741
7291
|
*/
|
|
7742
|
-
type?: PopulatedOrderTypeEnum;
|
|
7292
|
+
type?: PopulatedOrderTypeEnum;
|
|
7293
|
+
/**
|
|
7294
|
+
*
|
|
7295
|
+
* @type {Payment}
|
|
7296
|
+
* @memberof PopulatedOrder
|
|
7297
|
+
*/
|
|
7298
|
+
payment: Payment;
|
|
7299
|
+
}
|
|
7300
|
+
/**
|
|
7301
|
+
* @export
|
|
7302
|
+
* @enum {string}
|
|
7303
|
+
*/
|
|
7304
|
+
declare enum PopulatedOrderOrderTypeEnum {
|
|
7305
|
+
Pickup = "Pickup",
|
|
7306
|
+
Delivery = "Delivery"
|
|
7307
|
+
}
|
|
7308
|
+
/**
|
|
7309
|
+
* @export
|
|
7310
|
+
* @enum {string}
|
|
7311
|
+
*/
|
|
7312
|
+
declare enum PopulatedOrderTypeEnum {
|
|
7313
|
+
Quotation = "Quotation",
|
|
7314
|
+
Order = "Order"
|
|
7315
|
+
}
|
|
7316
|
+
|
|
7317
|
+
/**
|
|
7318
|
+
* Hey Pharamcist API
|
|
7319
|
+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
7320
|
+
*
|
|
7321
|
+
* OpenAPI spec version: 1.0
|
|
7322
|
+
*
|
|
7323
|
+
*
|
|
7324
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
7325
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
7326
|
+
* Do not edit the class manually.
|
|
7327
|
+
*/
|
|
7328
|
+
|
|
7329
|
+
/**
|
|
7330
|
+
*
|
|
7331
|
+
* @export
|
|
7332
|
+
* @interface OrderPaginatedResponse
|
|
7333
|
+
*/
|
|
7334
|
+
interface OrderPaginatedResponse {
|
|
7335
|
+
_id?: string;
|
|
7336
|
+
/**
|
|
7337
|
+
*
|
|
7338
|
+
* @type {Array<PopulatedOrder>}
|
|
7339
|
+
* @memberof OrderPaginatedResponse
|
|
7340
|
+
*/
|
|
7341
|
+
data: Array<PopulatedOrder>;
|
|
7342
|
+
/**
|
|
7343
|
+
*
|
|
7344
|
+
* @type {number}
|
|
7345
|
+
* @memberof OrderPaginatedResponse
|
|
7346
|
+
*/
|
|
7347
|
+
total: number;
|
|
7348
|
+
/**
|
|
7349
|
+
*
|
|
7350
|
+
* @type {number}
|
|
7351
|
+
* @memberof OrderPaginatedResponse
|
|
7352
|
+
*/
|
|
7353
|
+
totalPages: number;
|
|
7354
|
+
/**
|
|
7355
|
+
*
|
|
7356
|
+
* @type {number}
|
|
7357
|
+
* @memberof OrderPaginatedResponse
|
|
7358
|
+
*/
|
|
7359
|
+
page: number;
|
|
7360
|
+
/**
|
|
7361
|
+
*
|
|
7362
|
+
* @type {number}
|
|
7363
|
+
* @memberof OrderPaginatedResponse
|
|
7364
|
+
*/
|
|
7365
|
+
limit: number;
|
|
7366
|
+
}
|
|
7367
|
+
|
|
7368
|
+
/**
|
|
7369
|
+
* Hey Pharamcist API
|
|
7370
|
+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
7371
|
+
*
|
|
7372
|
+
* OpenAPI spec version: 1.0
|
|
7373
|
+
*
|
|
7374
|
+
*
|
|
7375
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
7376
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
7377
|
+
* Do not edit the class manually.
|
|
7378
|
+
*/
|
|
7379
|
+
/**
|
|
7380
|
+
*
|
|
7381
|
+
* @export
|
|
7382
|
+
* @interface OrdersInsightsDto
|
|
7383
|
+
*/
|
|
7384
|
+
interface OrdersInsightsDto {
|
|
7385
|
+
_id?: string;
|
|
7386
|
+
/**
|
|
7387
|
+
*
|
|
7388
|
+
* @type {number}
|
|
7389
|
+
* @memberof OrdersInsightsDto
|
|
7390
|
+
*/
|
|
7391
|
+
totalOrders: number;
|
|
7392
|
+
/**
|
|
7393
|
+
*
|
|
7394
|
+
* @type {number}
|
|
7395
|
+
* @memberof OrdersInsightsDto
|
|
7396
|
+
*/
|
|
7397
|
+
totalPendingOrders: number;
|
|
7398
|
+
/**
|
|
7399
|
+
*
|
|
7400
|
+
* @type {number}
|
|
7401
|
+
* @memberof OrdersInsightsDto
|
|
7402
|
+
*/
|
|
7403
|
+
totalProcessingOrders: number;
|
|
7404
|
+
/**
|
|
7405
|
+
*
|
|
7406
|
+
* @type {number}
|
|
7407
|
+
* @memberof OrdersInsightsDto
|
|
7408
|
+
*/
|
|
7409
|
+
totalCompletedOrders: number;
|
|
7410
|
+
/**
|
|
7411
|
+
*
|
|
7412
|
+
* @type {number}
|
|
7413
|
+
* @memberof OrdersInsightsDto
|
|
7414
|
+
*/
|
|
7415
|
+
totalCancelledOrders: number;
|
|
7416
|
+
/**
|
|
7417
|
+
*
|
|
7418
|
+
* @type {number}
|
|
7419
|
+
* @memberof OrdersInsightsDto
|
|
7420
|
+
*/
|
|
7421
|
+
totalReadyForPickUpOrders: number;
|
|
7422
|
+
/**
|
|
7423
|
+
*
|
|
7424
|
+
* @type {number}
|
|
7425
|
+
* @memberof OrdersInsightsDto
|
|
7426
|
+
*/
|
|
7427
|
+
totalOutForDeliveryOrders: number;
|
|
7428
|
+
}
|
|
7429
|
+
|
|
7430
|
+
/**
|
|
7431
|
+
* Hey Pharamcist API
|
|
7432
|
+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
7433
|
+
*
|
|
7434
|
+
* OpenAPI spec version: 1.0
|
|
7435
|
+
*
|
|
7436
|
+
*
|
|
7437
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
7438
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
7439
|
+
* Do not edit the class manually.
|
|
7440
|
+
*/
|
|
7441
|
+
/**
|
|
7442
|
+
*
|
|
7443
|
+
* @export
|
|
7444
|
+
* @interface ProductSummary
|
|
7445
|
+
*/
|
|
7446
|
+
interface ProductSummary {
|
|
7447
|
+
_id?: string;
|
|
7448
|
+
/**
|
|
7449
|
+
*
|
|
7450
|
+
* @type {number}
|
|
7451
|
+
* @memberof ProductSummary
|
|
7452
|
+
*/
|
|
7453
|
+
minPrice: number;
|
|
7454
|
+
/**
|
|
7455
|
+
*
|
|
7456
|
+
* @type {number}
|
|
7457
|
+
* @memberof ProductSummary
|
|
7458
|
+
*/
|
|
7459
|
+
maxPrice: number;
|
|
7460
|
+
/**
|
|
7461
|
+
*
|
|
7462
|
+
* @type {number}
|
|
7463
|
+
* @memberof ProductSummary
|
|
7464
|
+
*/
|
|
7465
|
+
totalInventory: number;
|
|
7466
|
+
/**
|
|
7467
|
+
*
|
|
7468
|
+
* @type {boolean}
|
|
7469
|
+
* @memberof ProductSummary
|
|
7470
|
+
*/
|
|
7471
|
+
hasDiscount: boolean;
|
|
7472
|
+
/**
|
|
7473
|
+
*
|
|
7474
|
+
* @type {number}
|
|
7475
|
+
* @memberof ProductSummary
|
|
7476
|
+
*/
|
|
7477
|
+
variantCount: number;
|
|
7478
|
+
/**
|
|
7479
|
+
*
|
|
7480
|
+
* @type {number}
|
|
7481
|
+
* @memberof ProductSummary
|
|
7482
|
+
*/
|
|
7483
|
+
totalSold: number;
|
|
7484
|
+
/**
|
|
7485
|
+
*
|
|
7486
|
+
* @type {number}
|
|
7487
|
+
* @memberof ProductSummary
|
|
7488
|
+
*/
|
|
7489
|
+
averageRating: number;
|
|
7490
|
+
/**
|
|
7491
|
+
*
|
|
7492
|
+
* @type {number}
|
|
7493
|
+
* @memberof ProductSummary
|
|
7494
|
+
*/
|
|
7495
|
+
reviewCount: number;
|
|
7496
|
+
}
|
|
7497
|
+
|
|
7498
|
+
/**
|
|
7499
|
+
* Hey Pharamcist API
|
|
7500
|
+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
7501
|
+
*
|
|
7502
|
+
* OpenAPI spec version: 1.0
|
|
7503
|
+
*
|
|
7504
|
+
*
|
|
7505
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
7506
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
7507
|
+
* Do not edit the class manually.
|
|
7508
|
+
*/
|
|
7509
|
+
|
|
7510
|
+
/**
|
|
7511
|
+
*
|
|
7512
|
+
* @export
|
|
7513
|
+
* @interface Product
|
|
7514
|
+
*/
|
|
7515
|
+
interface Product {
|
|
7516
|
+
_id?: string;
|
|
7517
|
+
/**
|
|
7518
|
+
*
|
|
7519
|
+
* @type {Date}
|
|
7520
|
+
* @memberof Product
|
|
7521
|
+
*/
|
|
7522
|
+
createdAt: Date;
|
|
7523
|
+
/**
|
|
7524
|
+
*
|
|
7525
|
+
* @type {Date}
|
|
7526
|
+
* @memberof Product
|
|
7527
|
+
*/
|
|
7528
|
+
updatedAt: Date;
|
|
7529
|
+
/**
|
|
7530
|
+
*
|
|
7531
|
+
* @type {string}
|
|
7532
|
+
* @memberof Product
|
|
7533
|
+
*/
|
|
7534
|
+
id: string;
|
|
7535
|
+
/**
|
|
7536
|
+
*
|
|
7537
|
+
* @type {string}
|
|
7538
|
+
* @memberof Product
|
|
7539
|
+
*/
|
|
7540
|
+
storeId: string;
|
|
7541
|
+
/**
|
|
7542
|
+
*
|
|
7543
|
+
* @type {string}
|
|
7544
|
+
* @memberof Product
|
|
7545
|
+
*/
|
|
7546
|
+
name: string;
|
|
7547
|
+
/**
|
|
7548
|
+
*
|
|
7549
|
+
* @type {string}
|
|
7550
|
+
* @memberof Product
|
|
7551
|
+
*/
|
|
7552
|
+
description: string;
|
|
7553
|
+
/**
|
|
7554
|
+
*
|
|
7555
|
+
* @type {string}
|
|
7556
|
+
* @memberof Product
|
|
7557
|
+
*/
|
|
7558
|
+
brand: string;
|
|
7559
|
+
/**
|
|
7560
|
+
*
|
|
7561
|
+
* @type {string}
|
|
7562
|
+
* @memberof Product
|
|
7563
|
+
*/
|
|
7564
|
+
upc: string;
|
|
7565
|
+
/**
|
|
7566
|
+
*
|
|
7567
|
+
* @type {Array<SingleProductMedia>}
|
|
7568
|
+
* @memberof Product
|
|
7569
|
+
*/
|
|
7570
|
+
media: Array<SingleProductMedia>;
|
|
7571
|
+
/**
|
|
7572
|
+
*
|
|
7573
|
+
* @type {Array<string>}
|
|
7574
|
+
* @memberof Product
|
|
7575
|
+
*/
|
|
7576
|
+
tags: Array<string>;
|
|
7577
|
+
/**
|
|
7578
|
+
*
|
|
7579
|
+
* @type {boolean}
|
|
7580
|
+
* @memberof Product
|
|
7581
|
+
*/
|
|
7582
|
+
isActive: boolean;
|
|
7583
|
+
/**
|
|
7584
|
+
*
|
|
7585
|
+
* @type {boolean}
|
|
7586
|
+
* @memberof Product
|
|
7587
|
+
*/
|
|
7588
|
+
showStock: boolean;
|
|
7589
|
+
/**
|
|
7590
|
+
*
|
|
7591
|
+
* @type {boolean}
|
|
7592
|
+
* @memberof Product
|
|
7593
|
+
*/
|
|
7594
|
+
homeScreenFeatured: boolean;
|
|
7595
|
+
/**
|
|
7596
|
+
*
|
|
7597
|
+
* @type {string}
|
|
7598
|
+
* @memberof Product
|
|
7599
|
+
*/
|
|
7600
|
+
sku: string;
|
|
7601
|
+
/**
|
|
7602
|
+
*
|
|
7603
|
+
* @type {Array<string>}
|
|
7604
|
+
* @memberof Product
|
|
7605
|
+
*/
|
|
7606
|
+
categoryIds: Array<string>;
|
|
7607
|
+
/**
|
|
7608
|
+
*
|
|
7609
|
+
* @type {Array<string>}
|
|
7610
|
+
* @memberof Product
|
|
7611
|
+
*/
|
|
7612
|
+
subCategoryIds: Array<string>;
|
|
7613
|
+
/**
|
|
7614
|
+
*
|
|
7615
|
+
* @type {Array<ProductVariant>}
|
|
7616
|
+
* @memberof Product
|
|
7617
|
+
*/
|
|
7618
|
+
variants: Array<ProductVariant>;
|
|
7619
|
+
/**
|
|
7620
|
+
*
|
|
7621
|
+
* @type {ProductSummary}
|
|
7622
|
+
* @memberof Product
|
|
7623
|
+
*/
|
|
7624
|
+
summary: ProductSummary;
|
|
7743
7625
|
/**
|
|
7744
7626
|
*
|
|
7745
|
-
* @type {
|
|
7746
|
-
* @memberof
|
|
7627
|
+
* @type {Array<string>}
|
|
7628
|
+
* @memberof Product
|
|
7747
7629
|
*/
|
|
7748
|
-
|
|
7749
|
-
}
|
|
7750
|
-
/**
|
|
7751
|
-
* @export
|
|
7752
|
-
* @enum {string}
|
|
7753
|
-
*/
|
|
7754
|
-
declare enum PopulatedOrderOrderTypeEnum {
|
|
7755
|
-
Pickup = "Pickup",
|
|
7756
|
-
Delivery = "Delivery"
|
|
7757
|
-
}
|
|
7758
|
-
/**
|
|
7759
|
-
* @export
|
|
7760
|
-
* @enum {string}
|
|
7761
|
-
*/
|
|
7762
|
-
declare enum PopulatedOrderTypeEnum {
|
|
7763
|
-
Quotation = "Quotation",
|
|
7764
|
-
Order = "Order"
|
|
7630
|
+
frequentlyBoughtWith: Array<string>;
|
|
7765
7631
|
}
|
|
7766
7632
|
|
|
7767
7633
|
/**
|
|
@@ -7779,38 +7645,38 @@ declare enum PopulatedOrderTypeEnum {
|
|
|
7779
7645
|
/**
|
|
7780
7646
|
*
|
|
7781
7647
|
* @export
|
|
7782
|
-
* @interface
|
|
7648
|
+
* @interface PaginatedProductsDto
|
|
7783
7649
|
*/
|
|
7784
|
-
interface
|
|
7650
|
+
interface PaginatedProductsDto {
|
|
7785
7651
|
_id?: string;
|
|
7786
7652
|
/**
|
|
7787
7653
|
*
|
|
7788
|
-
* @type {Array<
|
|
7789
|
-
* @memberof
|
|
7654
|
+
* @type {Array<Product>}
|
|
7655
|
+
* @memberof PaginatedProductsDto
|
|
7790
7656
|
*/
|
|
7791
|
-
data: Array<
|
|
7657
|
+
data: Array<Product>;
|
|
7792
7658
|
/**
|
|
7793
7659
|
*
|
|
7794
7660
|
* @type {number}
|
|
7795
|
-
* @memberof
|
|
7661
|
+
* @memberof PaginatedProductsDto
|
|
7796
7662
|
*/
|
|
7797
|
-
|
|
7663
|
+
totalItems: number;
|
|
7798
7664
|
/**
|
|
7799
7665
|
*
|
|
7800
7666
|
* @type {number}
|
|
7801
|
-
* @memberof
|
|
7667
|
+
* @memberof PaginatedProductsDto
|
|
7802
7668
|
*/
|
|
7803
|
-
|
|
7669
|
+
currentPage: number;
|
|
7804
7670
|
/**
|
|
7805
7671
|
*
|
|
7806
7672
|
* @type {number}
|
|
7807
|
-
* @memberof
|
|
7673
|
+
* @memberof PaginatedProductsDto
|
|
7808
7674
|
*/
|
|
7809
|
-
|
|
7675
|
+
totalPages: number;
|
|
7810
7676
|
/**
|
|
7811
7677
|
*
|
|
7812
7678
|
* @type {number}
|
|
7813
|
-
* @memberof
|
|
7679
|
+
* @memberof PaginatedProductsDto
|
|
7814
7680
|
*/
|
|
7815
7681
|
limit: number;
|
|
7816
7682
|
}
|
|
@@ -7829,52 +7695,58 @@ interface OrderPaginatedResponse {
|
|
|
7829
7695
|
/**
|
|
7830
7696
|
*
|
|
7831
7697
|
* @export
|
|
7832
|
-
* @interface
|
|
7698
|
+
* @interface PaymentsInsightsDto
|
|
7833
7699
|
*/
|
|
7834
|
-
interface
|
|
7700
|
+
interface PaymentsInsightsDto {
|
|
7835
7701
|
_id?: string;
|
|
7836
7702
|
/**
|
|
7837
7703
|
*
|
|
7838
7704
|
* @type {number}
|
|
7839
|
-
* @memberof
|
|
7705
|
+
* @memberof PaymentsInsightsDto
|
|
7840
7706
|
*/
|
|
7841
|
-
|
|
7707
|
+
totalPayments: number;
|
|
7842
7708
|
/**
|
|
7843
7709
|
*
|
|
7844
7710
|
* @type {number}
|
|
7845
|
-
* @memberof
|
|
7711
|
+
* @memberof PaymentsInsightsDto
|
|
7846
7712
|
*/
|
|
7847
|
-
|
|
7713
|
+
totalUnPaid: number;
|
|
7848
7714
|
/**
|
|
7849
7715
|
*
|
|
7850
7716
|
* @type {number}
|
|
7851
|
-
* @memberof
|
|
7717
|
+
* @memberof PaymentsInsightsDto
|
|
7852
7718
|
*/
|
|
7853
|
-
|
|
7719
|
+
totalPaid: number;
|
|
7854
7720
|
/**
|
|
7855
7721
|
*
|
|
7856
7722
|
* @type {number}
|
|
7857
|
-
* @memberof
|
|
7723
|
+
* @memberof PaymentsInsightsDto
|
|
7858
7724
|
*/
|
|
7859
|
-
|
|
7725
|
+
totalRefunded: number;
|
|
7860
7726
|
/**
|
|
7861
7727
|
*
|
|
7862
7728
|
* @type {number}
|
|
7863
|
-
* @memberof
|
|
7729
|
+
* @memberof PaymentsInsightsDto
|
|
7864
7730
|
*/
|
|
7865
|
-
|
|
7731
|
+
totalPartiallyRefunded: number;
|
|
7866
7732
|
/**
|
|
7867
7733
|
*
|
|
7868
7734
|
* @type {number}
|
|
7869
|
-
* @memberof
|
|
7735
|
+
* @memberof PaymentsInsightsDto
|
|
7870
7736
|
*/
|
|
7871
|
-
|
|
7737
|
+
totalPastDue: number;
|
|
7872
7738
|
/**
|
|
7873
7739
|
*
|
|
7874
7740
|
* @type {number}
|
|
7875
|
-
* @memberof
|
|
7741
|
+
* @memberof PaymentsInsightsDto
|
|
7876
7742
|
*/
|
|
7877
|
-
|
|
7743
|
+
totalProcessing: number;
|
|
7744
|
+
/**
|
|
7745
|
+
*
|
|
7746
|
+
* @type {number}
|
|
7747
|
+
* @memberof PaymentsInsightsDto
|
|
7748
|
+
*/
|
|
7749
|
+
totalFailed: number;
|
|
7878
7750
|
}
|
|
7879
7751
|
|
|
7880
7752
|
/**
|
|
@@ -7888,61 +7760,44 @@ interface OrdersInsightsDto {
|
|
|
7888
7760
|
* https://github.com/swagger-api/swagger-codegen.git
|
|
7889
7761
|
* Do not edit the class manually.
|
|
7890
7762
|
*/
|
|
7763
|
+
|
|
7891
7764
|
/**
|
|
7892
7765
|
*
|
|
7893
7766
|
* @export
|
|
7894
|
-
* @interface
|
|
7767
|
+
* @interface PaymentsPaginatedResponse
|
|
7895
7768
|
*/
|
|
7896
|
-
interface
|
|
7769
|
+
interface PaymentsPaginatedResponse {
|
|
7897
7770
|
_id?: string;
|
|
7898
7771
|
/**
|
|
7899
7772
|
*
|
|
7900
|
-
* @type {
|
|
7901
|
-
* @memberof
|
|
7902
|
-
*/
|
|
7903
|
-
minPrice: number;
|
|
7904
|
-
/**
|
|
7905
|
-
*
|
|
7906
|
-
* @type {number}
|
|
7907
|
-
* @memberof ProductSummary
|
|
7908
|
-
*/
|
|
7909
|
-
maxPrice: number;
|
|
7910
|
-
/**
|
|
7911
|
-
*
|
|
7912
|
-
* @type {number}
|
|
7913
|
-
* @memberof ProductSummary
|
|
7914
|
-
*/
|
|
7915
|
-
totalInventory: number;
|
|
7916
|
-
/**
|
|
7917
|
-
*
|
|
7918
|
-
* @type {boolean}
|
|
7919
|
-
* @memberof ProductSummary
|
|
7773
|
+
* @type {Array<Payment>}
|
|
7774
|
+
* @memberof PaymentsPaginatedResponse
|
|
7920
7775
|
*/
|
|
7921
|
-
|
|
7776
|
+
data: Array<Payment>;
|
|
7922
7777
|
/**
|
|
7923
7778
|
*
|
|
7924
7779
|
* @type {number}
|
|
7925
|
-
* @memberof
|
|
7780
|
+
* @memberof PaymentsPaginatedResponse
|
|
7926
7781
|
*/
|
|
7927
|
-
|
|
7782
|
+
total: number;
|
|
7928
7783
|
/**
|
|
7929
7784
|
*
|
|
7930
7785
|
* @type {number}
|
|
7931
|
-
* @memberof
|
|
7786
|
+
* @memberof PaymentsPaginatedResponse
|
|
7932
7787
|
*/
|
|
7933
|
-
|
|
7788
|
+
totalPages: number;
|
|
7934
7789
|
/**
|
|
7935
7790
|
*
|
|
7936
7791
|
* @type {number}
|
|
7937
|
-
* @memberof
|
|
7792
|
+
* @memberof PaymentsPaginatedResponse
|
|
7938
7793
|
*/
|
|
7939
|
-
|
|
7794
|
+
page: number;
|
|
7940
7795
|
/**
|
|
7941
7796
|
*
|
|
7942
7797
|
* @type {number}
|
|
7943
|
-
* @memberof
|
|
7798
|
+
* @memberof PaymentsPaginatedResponse
|
|
7944
7799
|
*/
|
|
7945
|
-
|
|
7800
|
+
limit: number;
|
|
7946
7801
|
}
|
|
7947
7802
|
|
|
7948
7803
|
/**
|
|
@@ -7960,124 +7815,162 @@ interface ProductSummary {
|
|
|
7960
7815
|
/**
|
|
7961
7816
|
*
|
|
7962
7817
|
* @export
|
|
7963
|
-
* @interface
|
|
7818
|
+
* @interface PopulatedDiscount
|
|
7964
7819
|
*/
|
|
7965
|
-
interface
|
|
7820
|
+
interface PopulatedDiscount {
|
|
7966
7821
|
_id?: string;
|
|
7967
7822
|
/**
|
|
7968
7823
|
*
|
|
7969
7824
|
* @type {Date}
|
|
7970
|
-
* @memberof
|
|
7825
|
+
* @memberof PopulatedDiscount
|
|
7971
7826
|
*/
|
|
7972
|
-
createdAt
|
|
7827
|
+
createdAt?: Date;
|
|
7973
7828
|
/**
|
|
7974
7829
|
*
|
|
7975
7830
|
* @type {Date}
|
|
7976
|
-
* @memberof
|
|
7831
|
+
* @memberof PopulatedDiscount
|
|
7977
7832
|
*/
|
|
7978
|
-
updatedAt
|
|
7833
|
+
updatedAt?: Date;
|
|
7979
7834
|
/**
|
|
7980
7835
|
*
|
|
7981
7836
|
* @type {string}
|
|
7982
|
-
* @memberof
|
|
7837
|
+
* @memberof PopulatedDiscount
|
|
7983
7838
|
*/
|
|
7984
|
-
id
|
|
7839
|
+
id?: string;
|
|
7985
7840
|
/**
|
|
7986
|
-
*
|
|
7841
|
+
* Display name for the discount
|
|
7987
7842
|
* @type {string}
|
|
7988
|
-
* @memberof
|
|
7843
|
+
* @memberof PopulatedDiscount
|
|
7989
7844
|
*/
|
|
7990
|
-
|
|
7845
|
+
name?: string;
|
|
7991
7846
|
/**
|
|
7992
|
-
*
|
|
7847
|
+
* Optional description for internal use
|
|
7993
7848
|
* @type {string}
|
|
7994
|
-
* @memberof
|
|
7849
|
+
* @memberof PopulatedDiscount
|
|
7995
7850
|
*/
|
|
7996
|
-
|
|
7851
|
+
description?: string;
|
|
7997
7852
|
/**
|
|
7998
|
-
*
|
|
7853
|
+
* ITEM_DISCOUNT: Shows on products automatically. COUPON_CODE: Requires code at checkout
|
|
7999
7854
|
* @type {string}
|
|
8000
|
-
* @memberof
|
|
7855
|
+
* @memberof PopulatedDiscount
|
|
8001
7856
|
*/
|
|
8002
|
-
|
|
7857
|
+
type?: PopulatedDiscountTypeEnum;
|
|
8003
7858
|
/**
|
|
8004
|
-
*
|
|
7859
|
+
* PERCENTAGE or FIXED_AMOUNT
|
|
8005
7860
|
* @type {string}
|
|
8006
|
-
* @memberof
|
|
7861
|
+
* @memberof PopulatedDiscount
|
|
8007
7862
|
*/
|
|
8008
|
-
|
|
7863
|
+
valueType?: PopulatedDiscountValueTypeEnum;
|
|
8009
7864
|
/**
|
|
8010
|
-
*
|
|
7865
|
+
* The discount value (percentage 1-100 or fixed dollar amount)
|
|
7866
|
+
* @type {number}
|
|
7867
|
+
* @memberof PopulatedDiscount
|
|
7868
|
+
*/
|
|
7869
|
+
value?: number;
|
|
7870
|
+
/**
|
|
7871
|
+
* Maximum discount amount for percentage discounts (optional, mainly for COUPON_CODE)
|
|
7872
|
+
* @type {number}
|
|
7873
|
+
* @memberof PopulatedDiscount
|
|
7874
|
+
*/
|
|
7875
|
+
cappedAt?: number;
|
|
7876
|
+
/**
|
|
7877
|
+
* Coupon code (required for COUPON_CODE type)
|
|
8011
7878
|
* @type {string}
|
|
8012
|
-
* @memberof
|
|
7879
|
+
* @memberof PopulatedDiscount
|
|
8013
7880
|
*/
|
|
8014
|
-
|
|
7881
|
+
code?: string;
|
|
8015
7882
|
/**
|
|
8016
|
-
*
|
|
8017
|
-
* @type {
|
|
8018
|
-
* @memberof
|
|
7883
|
+
* When the discount becomes active
|
|
7884
|
+
* @type {Date}
|
|
7885
|
+
* @memberof PopulatedDiscount
|
|
8019
7886
|
*/
|
|
8020
|
-
|
|
7887
|
+
startsAt?: Date;
|
|
8021
7888
|
/**
|
|
8022
|
-
*
|
|
8023
|
-
* @type {
|
|
8024
|
-
* @memberof
|
|
7889
|
+
* When the discount expires
|
|
7890
|
+
* @type {Date}
|
|
7891
|
+
* @memberof PopulatedDiscount
|
|
8025
7892
|
*/
|
|
8026
|
-
|
|
7893
|
+
expiresAt?: Date;
|
|
8027
7894
|
/**
|
|
8028
|
-
*
|
|
8029
|
-
* @type {
|
|
8030
|
-
* @memberof
|
|
7895
|
+
* Current lifecycle state
|
|
7896
|
+
* @type {string}
|
|
7897
|
+
* @memberof PopulatedDiscount
|
|
8031
7898
|
*/
|
|
8032
|
-
|
|
7899
|
+
state?: PopulatedDiscountStateEnum;
|
|
8033
7900
|
/**
|
|
8034
|
-
*
|
|
7901
|
+
* Quick toggle to enable/disable the discount
|
|
8035
7902
|
* @type {boolean}
|
|
8036
|
-
* @memberof
|
|
7903
|
+
* @memberof PopulatedDiscount
|
|
8037
7904
|
*/
|
|
8038
|
-
|
|
7905
|
+
isActive?: boolean;
|
|
8039
7906
|
/**
|
|
8040
|
-
*
|
|
8041
|
-
* @type {
|
|
8042
|
-
* @memberof
|
|
7907
|
+
* Maximum total times this discount can be used (optional)
|
|
7908
|
+
* @type {number}
|
|
7909
|
+
* @memberof PopulatedDiscount
|
|
8043
7910
|
*/
|
|
8044
|
-
|
|
7911
|
+
maxUses?: number;
|
|
8045
7912
|
/**
|
|
8046
|
-
*
|
|
8047
|
-
* @type {
|
|
8048
|
-
* @memberof
|
|
7913
|
+
* Maximum times a single user can use this discount (optional)
|
|
7914
|
+
* @type {number}
|
|
7915
|
+
* @memberof PopulatedDiscount
|
|
8049
7916
|
*/
|
|
8050
|
-
|
|
7917
|
+
maxUsesPerUser?: number;
|
|
8051
7918
|
/**
|
|
8052
|
-
*
|
|
8053
|
-
* @type {
|
|
8054
|
-
* @memberof
|
|
7919
|
+
* Current total usage count
|
|
7920
|
+
* @type {number}
|
|
7921
|
+
* @memberof PopulatedDiscount
|
|
8055
7922
|
*/
|
|
8056
|
-
|
|
7923
|
+
numberOfUses?: number;
|
|
8057
7924
|
/**
|
|
8058
|
-
*
|
|
8059
|
-
* @type {Array<
|
|
8060
|
-
* @memberof
|
|
7925
|
+
* Usage history
|
|
7926
|
+
* @type {Array<UsedBy>}
|
|
7927
|
+
* @memberof PopulatedDiscount
|
|
8061
7928
|
*/
|
|
8062
|
-
|
|
7929
|
+
usedBy?: Array<UsedBy>;
|
|
8063
7930
|
/**
|
|
8064
7931
|
*
|
|
8065
|
-
* @type {
|
|
8066
|
-
* @memberof
|
|
7932
|
+
* @type {string}
|
|
7933
|
+
* @memberof PopulatedDiscount
|
|
8067
7934
|
*/
|
|
8068
|
-
|
|
7935
|
+
storeId?: string;
|
|
8069
7936
|
/**
|
|
8070
7937
|
*
|
|
8071
|
-
* @type {
|
|
8072
|
-
* @memberof
|
|
7938
|
+
* @type {Array<Product>}
|
|
7939
|
+
* @memberof PopulatedDiscount
|
|
8073
7940
|
*/
|
|
8074
|
-
|
|
7941
|
+
productsEligible: Array<Product>;
|
|
8075
7942
|
/**
|
|
8076
7943
|
*
|
|
8077
|
-
* @type {Array<
|
|
8078
|
-
* @memberof
|
|
7944
|
+
* @type {Array<ProductVariant>}
|
|
7945
|
+
* @memberof PopulatedDiscount
|
|
8079
7946
|
*/
|
|
8080
|
-
|
|
7947
|
+
variantsEligible: Array<ProductVariant>;
|
|
7948
|
+
}
|
|
7949
|
+
/**
|
|
7950
|
+
* @export
|
|
7951
|
+
* @enum {string}
|
|
7952
|
+
*/
|
|
7953
|
+
declare enum PopulatedDiscountTypeEnum {
|
|
7954
|
+
ITEMDISCOUNT = "ITEM_DISCOUNT",
|
|
7955
|
+
COUPONCODE = "COUPON_CODE"
|
|
7956
|
+
}
|
|
7957
|
+
/**
|
|
7958
|
+
* @export
|
|
7959
|
+
* @enum {string}
|
|
7960
|
+
*/
|
|
7961
|
+
declare enum PopulatedDiscountValueTypeEnum {
|
|
7962
|
+
PERCENTAGE = "PERCENTAGE",
|
|
7963
|
+
FIXEDAMOUNT = "FIXED_AMOUNT"
|
|
7964
|
+
}
|
|
7965
|
+
/**
|
|
7966
|
+
* @export
|
|
7967
|
+
* @enum {string}
|
|
7968
|
+
*/
|
|
7969
|
+
declare enum PopulatedDiscountStateEnum {
|
|
7970
|
+
ACTIVE = "ACTIVE",
|
|
7971
|
+
INACTIVE = "INACTIVE",
|
|
7972
|
+
EXPIRED = "EXPIRED",
|
|
7973
|
+
SCHEDULED = "SCHEDULED"
|
|
8081
7974
|
}
|
|
8082
7975
|
|
|
8083
7976
|
/**
|
|
@@ -8095,40 +7988,45 @@ interface Product {
|
|
|
8095
7988
|
/**
|
|
8096
7989
|
*
|
|
8097
7990
|
* @export
|
|
8098
|
-
* @interface
|
|
7991
|
+
* @interface PreferenceUpdateItem
|
|
8099
7992
|
*/
|
|
8100
|
-
interface
|
|
7993
|
+
interface PreferenceUpdateItem {
|
|
8101
7994
|
_id?: string;
|
|
8102
7995
|
/**
|
|
8103
|
-
*
|
|
8104
|
-
* @type {
|
|
8105
|
-
* @memberof
|
|
8106
|
-
*/
|
|
8107
|
-
data: Array<Product>;
|
|
8108
|
-
/**
|
|
8109
|
-
*
|
|
8110
|
-
* @type {number}
|
|
8111
|
-
* @memberof PaginatedProductsDto
|
|
8112
|
-
*/
|
|
8113
|
-
totalItems: number;
|
|
8114
|
-
/**
|
|
8115
|
-
*
|
|
8116
|
-
* @type {number}
|
|
8117
|
-
* @memberof PaginatedProductsDto
|
|
8118
|
-
*/
|
|
8119
|
-
currentPage: number;
|
|
8120
|
-
/**
|
|
8121
|
-
*
|
|
8122
|
-
* @type {number}
|
|
8123
|
-
* @memberof PaginatedProductsDto
|
|
7996
|
+
* The notification type to configure
|
|
7997
|
+
* @type {string}
|
|
7998
|
+
* @memberof PreferenceUpdateItem
|
|
8124
7999
|
*/
|
|
8125
|
-
|
|
8000
|
+
type: PreferenceUpdateItemTypeEnum;
|
|
8126
8001
|
/**
|
|
8127
|
-
*
|
|
8128
|
-
* @type {
|
|
8129
|
-
* @memberof
|
|
8002
|
+
* Channel settings for this type
|
|
8003
|
+
* @type {ChannelSettingsDto}
|
|
8004
|
+
* @memberof PreferenceUpdateItem
|
|
8130
8005
|
*/
|
|
8131
|
-
|
|
8006
|
+
settings: ChannelSettingsDto;
|
|
8007
|
+
}
|
|
8008
|
+
/**
|
|
8009
|
+
* @export
|
|
8010
|
+
* @enum {string}
|
|
8011
|
+
*/
|
|
8012
|
+
declare enum PreferenceUpdateItemTypeEnum {
|
|
8013
|
+
ORDERCONFIRMATION = "ORDER_CONFIRMATION",
|
|
8014
|
+
PAYMENTFAILED = "PAYMENT_FAILED",
|
|
8015
|
+
ORDERSHIPPED = "ORDER_SHIPPED",
|
|
8016
|
+
ORDERDELIVERED = "ORDER_DELIVERED",
|
|
8017
|
+
REFUNDPROCESSED = "REFUND_PROCESSED",
|
|
8018
|
+
ABANDONEDCARTREMINDER = "ABANDONED_CART_REMINDER",
|
|
8019
|
+
PRICEDROPALERT = "PRICE_DROP_ALERT",
|
|
8020
|
+
BACKINSTOCK = "BACK_IN_STOCK",
|
|
8021
|
+
PASSWORDRESET = "PASSWORD_RESET",
|
|
8022
|
+
NEWDEVICELOGIN = "NEW_DEVICE_LOGIN",
|
|
8023
|
+
TWOFACODE = "TWO_FA_CODE",
|
|
8024
|
+
NEWORDER = "NEW_ORDER",
|
|
8025
|
+
LOWSTOCKWARNING = "LOW_STOCK_WARNING",
|
|
8026
|
+
NEWRETURNREQUEST = "NEW_RETURN_REQUEST",
|
|
8027
|
+
NEWUSERREGISTERED = "NEW_USER_REGISTERED",
|
|
8028
|
+
HIGHVALUEORDERALERT = "HIGH_VALUE_ORDER_ALERT",
|
|
8029
|
+
PAYOUTFAILED = "PAYOUT_FAILED"
|
|
8132
8030
|
}
|
|
8133
8031
|
|
|
8134
8032
|
/**
|
|
@@ -8145,58 +8043,46 @@ interface PaginatedProductsDto {
|
|
|
8145
8043
|
/**
|
|
8146
8044
|
*
|
|
8147
8045
|
* @export
|
|
8148
|
-
* @interface
|
|
8046
|
+
* @interface VariantLightDto
|
|
8149
8047
|
*/
|
|
8150
|
-
interface
|
|
8048
|
+
interface VariantLightDto {
|
|
8151
8049
|
_id?: string;
|
|
8152
8050
|
/**
|
|
8153
8051
|
*
|
|
8154
|
-
* @type {
|
|
8155
|
-
* @memberof
|
|
8156
|
-
*/
|
|
8157
|
-
totalPayments: number;
|
|
8158
|
-
/**
|
|
8159
|
-
*
|
|
8160
|
-
* @type {number}
|
|
8161
|
-
* @memberof PaymentsInsightsDto
|
|
8162
|
-
*/
|
|
8163
|
-
totalUnPaid: number;
|
|
8164
|
-
/**
|
|
8165
|
-
*
|
|
8166
|
-
* @type {number}
|
|
8167
|
-
* @memberof PaymentsInsightsDto
|
|
8052
|
+
* @type {string}
|
|
8053
|
+
* @memberof VariantLightDto
|
|
8168
8054
|
*/
|
|
8169
|
-
|
|
8055
|
+
id: string;
|
|
8170
8056
|
/**
|
|
8171
8057
|
*
|
|
8172
|
-
* @type {
|
|
8173
|
-
* @memberof
|
|
8058
|
+
* @type {string}
|
|
8059
|
+
* @memberof VariantLightDto
|
|
8174
8060
|
*/
|
|
8175
|
-
|
|
8061
|
+
name: string;
|
|
8176
8062
|
/**
|
|
8177
8063
|
*
|
|
8178
8064
|
* @type {number}
|
|
8179
|
-
* @memberof
|
|
8065
|
+
* @memberof VariantLightDto
|
|
8180
8066
|
*/
|
|
8181
|
-
|
|
8067
|
+
retailPrice: number;
|
|
8182
8068
|
/**
|
|
8183
8069
|
*
|
|
8184
8070
|
* @type {number}
|
|
8185
|
-
* @memberof
|
|
8071
|
+
* @memberof VariantLightDto
|
|
8186
8072
|
*/
|
|
8187
|
-
|
|
8073
|
+
finalPrice: number;
|
|
8188
8074
|
/**
|
|
8189
8075
|
*
|
|
8190
8076
|
* @type {number}
|
|
8191
|
-
* @memberof
|
|
8077
|
+
* @memberof VariantLightDto
|
|
8192
8078
|
*/
|
|
8193
|
-
|
|
8079
|
+
inventoryCount: number;
|
|
8194
8080
|
/**
|
|
8195
8081
|
*
|
|
8196
|
-
* @type {
|
|
8197
|
-
* @memberof
|
|
8082
|
+
* @type {string}
|
|
8083
|
+
* @memberof VariantLightDto
|
|
8198
8084
|
*/
|
|
8199
|
-
|
|
8085
|
+
sku: string;
|
|
8200
8086
|
}
|
|
8201
8087
|
|
|
8202
8088
|
/**
|
|
@@ -8214,40 +8100,28 @@ interface PaymentsInsightsDto {
|
|
|
8214
8100
|
/**
|
|
8215
8101
|
*
|
|
8216
8102
|
* @export
|
|
8217
|
-
* @interface
|
|
8103
|
+
* @interface ProductLightDto
|
|
8218
8104
|
*/
|
|
8219
|
-
interface
|
|
8105
|
+
interface ProductLightDto {
|
|
8220
8106
|
_id?: string;
|
|
8221
8107
|
/**
|
|
8222
8108
|
*
|
|
8223
|
-
* @type {
|
|
8224
|
-
* @memberof
|
|
8225
|
-
*/
|
|
8226
|
-
data: Array<Payment>;
|
|
8227
|
-
/**
|
|
8228
|
-
*
|
|
8229
|
-
* @type {number}
|
|
8230
|
-
* @memberof PaymentsPaginatedResponse
|
|
8231
|
-
*/
|
|
8232
|
-
total: number;
|
|
8233
|
-
/**
|
|
8234
|
-
*
|
|
8235
|
-
* @type {number}
|
|
8236
|
-
* @memberof PaymentsPaginatedResponse
|
|
8109
|
+
* @type {string}
|
|
8110
|
+
* @memberof ProductLightDto
|
|
8237
8111
|
*/
|
|
8238
|
-
|
|
8112
|
+
id: string;
|
|
8239
8113
|
/**
|
|
8240
8114
|
*
|
|
8241
|
-
* @type {
|
|
8242
|
-
* @memberof
|
|
8115
|
+
* @type {string}
|
|
8116
|
+
* @memberof ProductLightDto
|
|
8243
8117
|
*/
|
|
8244
|
-
|
|
8118
|
+
name: string;
|
|
8245
8119
|
/**
|
|
8246
8120
|
*
|
|
8247
|
-
* @type {
|
|
8248
|
-
* @memberof
|
|
8121
|
+
* @type {Array<VariantLightDto>}
|
|
8122
|
+
* @memberof ProductLightDto
|
|
8249
8123
|
*/
|
|
8250
|
-
|
|
8124
|
+
variants: Array<VariantLightDto>;
|
|
8251
8125
|
}
|
|
8252
8126
|
|
|
8253
8127
|
/**
|
|
@@ -9105,39 +8979,215 @@ interface Review {
|
|
|
9105
8979
|
/**
|
|
9106
8980
|
*
|
|
9107
8981
|
* @type {string}
|
|
9108
|
-
* @memberof Review
|
|
8982
|
+
* @memberof Review
|
|
8983
|
+
*/
|
|
8984
|
+
productId: string;
|
|
8985
|
+
/**
|
|
8986
|
+
*
|
|
8987
|
+
* @type {string}
|
|
8988
|
+
* @memberof Review
|
|
8989
|
+
*/
|
|
8990
|
+
productVariantId: string;
|
|
8991
|
+
/**
|
|
8992
|
+
*
|
|
8993
|
+
* @type {string}
|
|
8994
|
+
* @memberof Review
|
|
8995
|
+
*/
|
|
8996
|
+
reviewType: string;
|
|
8997
|
+
/**
|
|
8998
|
+
*
|
|
8999
|
+
* @type {string}
|
|
9000
|
+
* @memberof Review
|
|
9001
|
+
*/
|
|
9002
|
+
review: string;
|
|
9003
|
+
/**
|
|
9004
|
+
*
|
|
9005
|
+
* @type {number}
|
|
9006
|
+
* @memberof Review
|
|
9007
|
+
*/
|
|
9008
|
+
rating: number;
|
|
9009
|
+
/**
|
|
9010
|
+
*
|
|
9011
|
+
* @type {string}
|
|
9012
|
+
* @memberof Review
|
|
9013
|
+
*/
|
|
9014
|
+
reply?: string;
|
|
9015
|
+
/**
|
|
9016
|
+
*
|
|
9017
|
+
* @type {Date}
|
|
9018
|
+
* @memberof Review
|
|
9019
|
+
*/
|
|
9020
|
+
replyDate?: Date;
|
|
9021
|
+
}
|
|
9022
|
+
|
|
9023
|
+
/**
|
|
9024
|
+
* Hey Pharamcist API
|
|
9025
|
+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
9026
|
+
*
|
|
9027
|
+
* OpenAPI spec version: 1.0
|
|
9028
|
+
*
|
|
9029
|
+
*
|
|
9030
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9031
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
9032
|
+
* Do not edit the class manually.
|
|
9033
|
+
*/
|
|
9034
|
+
|
|
9035
|
+
/**
|
|
9036
|
+
*
|
|
9037
|
+
* @export
|
|
9038
|
+
* @interface ReviewStatusDto
|
|
9039
|
+
*/
|
|
9040
|
+
interface ReviewStatusDto {
|
|
9041
|
+
_id?: string;
|
|
9042
|
+
/**
|
|
9043
|
+
*
|
|
9044
|
+
* @type {boolean}
|
|
9045
|
+
* @memberof ReviewStatusDto
|
|
9046
|
+
*/
|
|
9047
|
+
hasReviewed: boolean;
|
|
9048
|
+
/**
|
|
9049
|
+
*
|
|
9050
|
+
* @type {Review}
|
|
9051
|
+
* @memberof ReviewStatusDto
|
|
9052
|
+
*/
|
|
9053
|
+
review?: Review;
|
|
9054
|
+
}
|
|
9055
|
+
|
|
9056
|
+
/**
|
|
9057
|
+
* Hey Pharamcist API
|
|
9058
|
+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
9059
|
+
*
|
|
9060
|
+
* OpenAPI spec version: 1.0
|
|
9061
|
+
*
|
|
9062
|
+
*
|
|
9063
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9064
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
9065
|
+
* Do not edit the class manually.
|
|
9066
|
+
*/
|
|
9067
|
+
/**
|
|
9068
|
+
*
|
|
9069
|
+
* @export
|
|
9070
|
+
* @interface ReviewableProductDto
|
|
9071
|
+
*/
|
|
9072
|
+
interface ReviewableProductDto {
|
|
9073
|
+
_id?: string;
|
|
9074
|
+
/**
|
|
9075
|
+
*
|
|
9076
|
+
* @type {string}
|
|
9077
|
+
* @memberof ReviewableProductDto
|
|
9078
|
+
*/
|
|
9079
|
+
productId: string;
|
|
9080
|
+
/**
|
|
9081
|
+
*
|
|
9082
|
+
* @type {string}
|
|
9083
|
+
* @memberof ReviewableProductDto
|
|
9084
|
+
*/
|
|
9085
|
+
productName: string;
|
|
9086
|
+
/**
|
|
9087
|
+
*
|
|
9088
|
+
* @type {string}
|
|
9089
|
+
* @memberof ReviewableProductDto
|
|
9090
|
+
*/
|
|
9091
|
+
productVariantId: string;
|
|
9092
|
+
/**
|
|
9093
|
+
*
|
|
9094
|
+
* @type {string}
|
|
9095
|
+
* @memberof ReviewableProductDto
|
|
9096
|
+
*/
|
|
9097
|
+
variantName: string;
|
|
9098
|
+
/**
|
|
9099
|
+
*
|
|
9100
|
+
* @type {string}
|
|
9101
|
+
* @memberof ReviewableProductDto
|
|
9102
|
+
*/
|
|
9103
|
+
variantImage?: string;
|
|
9104
|
+
/**
|
|
9105
|
+
*
|
|
9106
|
+
* @type {number}
|
|
9107
|
+
* @memberof ReviewableProductDto
|
|
9108
|
+
*/
|
|
9109
|
+
quantity: number;
|
|
9110
|
+
/**
|
|
9111
|
+
*
|
|
9112
|
+
* @type {boolean}
|
|
9113
|
+
* @memberof ReviewableProductDto
|
|
9114
|
+
*/
|
|
9115
|
+
hasReviewed: boolean;
|
|
9116
|
+
/**
|
|
9117
|
+
*
|
|
9118
|
+
* @type {string}
|
|
9119
|
+
* @memberof ReviewableProductDto
|
|
9120
|
+
*/
|
|
9121
|
+
reviewId?: string;
|
|
9122
|
+
/**
|
|
9123
|
+
*
|
|
9124
|
+
* @type {number}
|
|
9125
|
+
* @memberof ReviewableProductDto
|
|
9126
|
+
*/
|
|
9127
|
+
rating?: number;
|
|
9128
|
+
/**
|
|
9129
|
+
*
|
|
9130
|
+
* @type {string}
|
|
9131
|
+
* @memberof ReviewableProductDto
|
|
9132
|
+
*/
|
|
9133
|
+
review?: string;
|
|
9134
|
+
}
|
|
9135
|
+
|
|
9136
|
+
/**
|
|
9137
|
+
* Hey Pharamcist API
|
|
9138
|
+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
9139
|
+
*
|
|
9140
|
+
* OpenAPI spec version: 1.0
|
|
9141
|
+
*
|
|
9142
|
+
*
|
|
9143
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
9144
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
9145
|
+
* Do not edit the class manually.
|
|
9146
|
+
*/
|
|
9147
|
+
|
|
9148
|
+
/**
|
|
9149
|
+
*
|
|
9150
|
+
* @export
|
|
9151
|
+
* @interface ReviewableOrderDto
|
|
9152
|
+
*/
|
|
9153
|
+
interface ReviewableOrderDto {
|
|
9154
|
+
_id?: string;
|
|
9155
|
+
/**
|
|
9156
|
+
*
|
|
9157
|
+
* @type {string}
|
|
9158
|
+
* @memberof ReviewableOrderDto
|
|
9109
9159
|
*/
|
|
9110
|
-
|
|
9160
|
+
orderId: string;
|
|
9111
9161
|
/**
|
|
9112
9162
|
*
|
|
9113
9163
|
* @type {string}
|
|
9114
|
-
* @memberof
|
|
9164
|
+
* @memberof ReviewableOrderDto
|
|
9115
9165
|
*/
|
|
9116
|
-
|
|
9166
|
+
orderStatus: string;
|
|
9117
9167
|
/**
|
|
9118
9168
|
*
|
|
9119
|
-
* @type {
|
|
9120
|
-
* @memberof
|
|
9169
|
+
* @type {Array<ReviewableProductDto>}
|
|
9170
|
+
* @memberof ReviewableOrderDto
|
|
9121
9171
|
*/
|
|
9122
|
-
|
|
9172
|
+
products: Array<ReviewableProductDto>;
|
|
9123
9173
|
/**
|
|
9124
9174
|
*
|
|
9125
9175
|
* @type {number}
|
|
9126
|
-
* @memberof
|
|
9176
|
+
* @memberof ReviewableOrderDto
|
|
9127
9177
|
*/
|
|
9128
|
-
|
|
9178
|
+
totalProducts: number;
|
|
9129
9179
|
/**
|
|
9130
9180
|
*
|
|
9131
|
-
* @type {
|
|
9132
|
-
* @memberof
|
|
9181
|
+
* @type {number}
|
|
9182
|
+
* @memberof ReviewableOrderDto
|
|
9133
9183
|
*/
|
|
9134
|
-
|
|
9184
|
+
reviewedCount: number;
|
|
9135
9185
|
/**
|
|
9136
9186
|
*
|
|
9137
|
-
* @type {
|
|
9138
|
-
* @memberof
|
|
9187
|
+
* @type {number}
|
|
9188
|
+
* @memberof ReviewableOrderDto
|
|
9139
9189
|
*/
|
|
9140
|
-
|
|
9190
|
+
pendingCount: number;
|
|
9141
9191
|
}
|
|
9142
9192
|
|
|
9143
9193
|
/**
|
|
@@ -9961,88 +10011,40 @@ interface ShipmentWithOrder {
|
|
|
9961
10011
|
/**
|
|
9962
10012
|
*
|
|
9963
10013
|
* @export
|
|
9964
|
-
* @interface
|
|
10014
|
+
* @interface ShippoAccountResponseDto
|
|
9965
10015
|
*/
|
|
9966
|
-
interface
|
|
10016
|
+
interface ShippoAccountResponseDto {
|
|
9967
10017
|
_id?: string;
|
|
9968
10018
|
/**
|
|
9969
|
-
*
|
|
9970
|
-
* @type {Date}
|
|
9971
|
-
* @memberof SingleNotificationDto
|
|
9972
|
-
*/
|
|
9973
|
-
createdAt: Date;
|
|
9974
|
-
/**
|
|
9975
|
-
*
|
|
9976
|
-
* @type {Date}
|
|
9977
|
-
* @memberof SingleNotificationDto
|
|
9978
|
-
*/
|
|
9979
|
-
updatedAt: Date;
|
|
9980
|
-
/**
|
|
9981
|
-
*
|
|
9982
|
-
* @type {string}
|
|
9983
|
-
* @memberof SingleNotificationDto
|
|
9984
|
-
*/
|
|
9985
|
-
id: string;
|
|
9986
|
-
/**
|
|
9987
|
-
*
|
|
10019
|
+
* Shippo managed account ID
|
|
9988
10020
|
* @type {string}
|
|
9989
|
-
* @memberof
|
|
10021
|
+
* @memberof ShippoAccountResponseDto
|
|
9990
10022
|
*/
|
|
9991
|
-
|
|
10023
|
+
objectId: string;
|
|
9992
10024
|
/**
|
|
9993
|
-
*
|
|
10025
|
+
* Email associated with the account
|
|
9994
10026
|
* @type {string}
|
|
9995
|
-
* @memberof
|
|
10027
|
+
* @memberof ShippoAccountResponseDto
|
|
9996
10028
|
*/
|
|
9997
|
-
|
|
10029
|
+
email: string;
|
|
9998
10030
|
/**
|
|
9999
|
-
*
|
|
10031
|
+
* First name
|
|
10000
10032
|
* @type {string}
|
|
10001
|
-
* @memberof
|
|
10033
|
+
* @memberof ShippoAccountResponseDto
|
|
10002
10034
|
*/
|
|
10003
|
-
|
|
10035
|
+
firstName: string;
|
|
10004
10036
|
/**
|
|
10005
|
-
*
|
|
10037
|
+
* Last name
|
|
10006
10038
|
* @type {string}
|
|
10007
|
-
* @memberof
|
|
10008
|
-
*/
|
|
10009
|
-
notificationLink: string;
|
|
10010
|
-
/**
|
|
10011
|
-
*
|
|
10012
|
-
* @type {Array<string>}
|
|
10013
|
-
* @memberof SingleNotificationDto
|
|
10014
|
-
*/
|
|
10015
|
-
sentTo: Array<string>;
|
|
10016
|
-
/**
|
|
10017
|
-
*
|
|
10018
|
-
* @type {Array<string>}
|
|
10019
|
-
* @memberof SingleNotificationDto
|
|
10020
|
-
*/
|
|
10021
|
-
readBy: Array<string>;
|
|
10022
|
-
/**
|
|
10023
|
-
*
|
|
10024
|
-
* @type {Array<string>}
|
|
10025
|
-
* @memberof SingleNotificationDto
|
|
10026
|
-
*/
|
|
10027
|
-
clearedBy: Array<string>;
|
|
10028
|
-
/**
|
|
10029
|
-
*
|
|
10030
|
-
* @type {boolean}
|
|
10031
|
-
* @memberof SingleNotificationDto
|
|
10039
|
+
* @memberof ShippoAccountResponseDto
|
|
10032
10040
|
*/
|
|
10033
|
-
|
|
10041
|
+
lastName: string;
|
|
10034
10042
|
/**
|
|
10035
|
-
*
|
|
10043
|
+
* Company name
|
|
10036
10044
|
* @type {string}
|
|
10037
|
-
* @memberof
|
|
10038
|
-
*/
|
|
10039
|
-
storeId: string;
|
|
10040
|
-
/**
|
|
10041
|
-
*
|
|
10042
|
-
* @type {boolean}
|
|
10043
|
-
* @memberof SingleNotificationDto
|
|
10045
|
+
* @memberof ShippoAccountResponseDto
|
|
10044
10046
|
*/
|
|
10045
|
-
|
|
10047
|
+
companyName: string;
|
|
10046
10048
|
}
|
|
10047
10049
|
|
|
10048
10050
|
/**
|
|
@@ -10124,6 +10126,12 @@ interface Store {
|
|
|
10124
10126
|
* @memberof Store
|
|
10125
10127
|
*/
|
|
10126
10128
|
shippingApi?: string;
|
|
10129
|
+
/**
|
|
10130
|
+
* Shippo Platform managed account ID
|
|
10131
|
+
* @type {string}
|
|
10132
|
+
* @memberof Store
|
|
10133
|
+
*/
|
|
10134
|
+
shippoAccountId?: string;
|
|
10127
10135
|
/**
|
|
10128
10136
|
*
|
|
10129
10137
|
* @type {string}
|
|
@@ -10354,6 +10362,12 @@ interface StoreEntity {
|
|
|
10354
10362
|
* @memberof StoreEntity
|
|
10355
10363
|
*/
|
|
10356
10364
|
adminUrl?: string;
|
|
10365
|
+
/**
|
|
10366
|
+
* Shippo Platform managed account ID
|
|
10367
|
+
* @type {string}
|
|
10368
|
+
* @memberof StoreEntity
|
|
10369
|
+
*/
|
|
10370
|
+
shippoAccountId?: string;
|
|
10357
10371
|
/**
|
|
10358
10372
|
*
|
|
10359
10373
|
* @type {string}
|
|
@@ -11110,154 +11124,111 @@ interface UpdateCategoryDto {
|
|
|
11110
11124
|
interface UpdateDiscountDto {
|
|
11111
11125
|
_id?: string;
|
|
11112
11126
|
/**
|
|
11113
|
-
*
|
|
11127
|
+
* Display name for the discount
|
|
11114
11128
|
* @type {string}
|
|
11115
11129
|
* @memberof UpdateDiscountDto
|
|
11116
11130
|
*/
|
|
11117
|
-
|
|
11131
|
+
name?: string;
|
|
11118
11132
|
/**
|
|
11119
|
-
*
|
|
11133
|
+
* Optional description for internal use
|
|
11120
11134
|
* @type {string}
|
|
11121
11135
|
* @memberof UpdateDiscountDto
|
|
11122
11136
|
*/
|
|
11123
11137
|
description?: string;
|
|
11124
11138
|
/**
|
|
11125
|
-
*
|
|
11126
|
-
* @type {string}
|
|
11127
|
-
* @memberof UpdateDiscountDto
|
|
11128
|
-
*/
|
|
11129
|
-
discountType?: UpdateDiscountDtoDiscountTypeEnum;
|
|
11130
|
-
/**
|
|
11131
|
-
*
|
|
11139
|
+
* ITEM_DISCOUNT: Shows on products automatically. COUPON_CODE: Requires code at checkout
|
|
11132
11140
|
* @type {string}
|
|
11133
11141
|
* @memberof UpdateDiscountDto
|
|
11134
11142
|
*/
|
|
11135
|
-
|
|
11143
|
+
type?: UpdateDiscountDtoTypeEnum;
|
|
11136
11144
|
/**
|
|
11137
|
-
*
|
|
11145
|
+
* PERCENTAGE or FIXED_AMOUNT
|
|
11138
11146
|
* @type {string}
|
|
11139
11147
|
* @memberof UpdateDiscountDto
|
|
11140
11148
|
*/
|
|
11141
|
-
|
|
11149
|
+
valueType?: UpdateDiscountDtoValueTypeEnum;
|
|
11142
11150
|
/**
|
|
11143
|
-
*
|
|
11144
|
-
* @type {
|
|
11151
|
+
* The discount value (percentage 1-100 or fixed dollar amount)
|
|
11152
|
+
* @type {number}
|
|
11145
11153
|
* @memberof UpdateDiscountDto
|
|
11146
11154
|
*/
|
|
11147
|
-
|
|
11155
|
+
value?: number;
|
|
11148
11156
|
/**
|
|
11149
|
-
*
|
|
11157
|
+
* Maximum discount amount for percentage discounts (optional, mainly for COUPON_CODE)
|
|
11150
11158
|
* @type {number}
|
|
11151
11159
|
* @memberof UpdateDiscountDto
|
|
11152
11160
|
*/
|
|
11153
11161
|
cappedAt?: number;
|
|
11154
11162
|
/**
|
|
11155
|
-
*
|
|
11156
|
-
* @type {
|
|
11163
|
+
* Coupon code (required for COUPON_CODE type)
|
|
11164
|
+
* @type {string}
|
|
11157
11165
|
* @memberof UpdateDiscountDto
|
|
11158
11166
|
*/
|
|
11159
|
-
|
|
11167
|
+
code?: string;
|
|
11160
11168
|
/**
|
|
11161
|
-
*
|
|
11169
|
+
* When the discount becomes active
|
|
11162
11170
|
* @type {Date}
|
|
11163
11171
|
* @memberof UpdateDiscountDto
|
|
11164
11172
|
*/
|
|
11165
11173
|
startsAt?: Date;
|
|
11166
11174
|
/**
|
|
11167
|
-
*
|
|
11175
|
+
* When the discount expires
|
|
11168
11176
|
* @type {Date}
|
|
11169
11177
|
* @memberof UpdateDiscountDto
|
|
11170
11178
|
*/
|
|
11171
11179
|
expiresAt?: Date;
|
|
11172
11180
|
/**
|
|
11173
|
-
*
|
|
11174
|
-
* @type {number}
|
|
11175
|
-
* @memberof UpdateDiscountDto
|
|
11176
|
-
*/
|
|
11177
|
-
maxUses?: number;
|
|
11178
|
-
/**
|
|
11179
|
-
*
|
|
11181
|
+
* Current lifecycle state
|
|
11180
11182
|
* @type {string}
|
|
11181
11183
|
* @memberof UpdateDiscountDto
|
|
11182
11184
|
*/
|
|
11183
11185
|
state?: UpdateDiscountDtoStateEnum;
|
|
11184
11186
|
/**
|
|
11185
|
-
*
|
|
11186
|
-
* @type {
|
|
11187
|
+
* Quick toggle to enable/disable the discount
|
|
11188
|
+
* @type {boolean}
|
|
11187
11189
|
* @memberof UpdateDiscountDto
|
|
11188
11190
|
*/
|
|
11189
|
-
|
|
11191
|
+
isActive?: boolean;
|
|
11190
11192
|
/**
|
|
11191
|
-
*
|
|
11193
|
+
* Products to apply discount to (all their variants will be discounted)
|
|
11192
11194
|
* @type {Array<string>}
|
|
11193
11195
|
* @memberof UpdateDiscountDto
|
|
11194
11196
|
*/
|
|
11195
11197
|
productsEligible?: Array<string>;
|
|
11196
11198
|
/**
|
|
11197
|
-
*
|
|
11199
|
+
* Specific variants to apply discount to
|
|
11198
11200
|
* @type {Array<string>}
|
|
11199
11201
|
* @memberof UpdateDiscountDto
|
|
11200
11202
|
*/
|
|
11201
11203
|
variantsEligible?: Array<string>;
|
|
11202
11204
|
/**
|
|
11203
|
-
*
|
|
11204
|
-
* @type {number}
|
|
11205
|
-
* @memberof UpdateDiscountDto
|
|
11206
|
-
*/
|
|
11207
|
-
maxUsesPerUser?: number;
|
|
11208
|
-
/**
|
|
11209
|
-
*
|
|
11210
|
-
* @type {string}
|
|
11211
|
-
* @memberof UpdateDiscountDto
|
|
11212
|
-
*/
|
|
11213
|
-
minPurchaseRequired?: UpdateDiscountDtoMinPurchaseRequiredEnum;
|
|
11214
|
-
/**
|
|
11215
|
-
*
|
|
11205
|
+
* Maximum total times this discount can be used (optional)
|
|
11216
11206
|
* @type {number}
|
|
11217
11207
|
* @memberof UpdateDiscountDto
|
|
11218
11208
|
*/
|
|
11219
|
-
|
|
11209
|
+
maxUses?: number;
|
|
11220
11210
|
/**
|
|
11221
|
-
*
|
|
11211
|
+
* Maximum times a single user can use this discount (optional)
|
|
11222
11212
|
* @type {number}
|
|
11223
11213
|
* @memberof UpdateDiscountDto
|
|
11224
11214
|
*/
|
|
11225
|
-
|
|
11226
|
-
/**
|
|
11227
|
-
*
|
|
11228
|
-
* @type {string}
|
|
11229
|
-
* @memberof UpdateDiscountDto
|
|
11230
|
-
*/
|
|
11231
|
-
customerEligibility?: UpdateDiscountDtoCustomerEligibilityEnum;
|
|
11232
|
-
/**
|
|
11233
|
-
*
|
|
11234
|
-
* @type {Array<string>}
|
|
11235
|
-
* @memberof UpdateDiscountDto
|
|
11236
|
-
*/
|
|
11237
|
-
usersEligible?: Array<string>;
|
|
11238
|
-
/**
|
|
11239
|
-
*
|
|
11240
|
-
* @type {Array<string>}
|
|
11241
|
-
* @memberof UpdateDiscountDto
|
|
11242
|
-
*/
|
|
11243
|
-
groupsEligible?: Array<string>;
|
|
11215
|
+
maxUsesPerUser?: number;
|
|
11244
11216
|
}
|
|
11245
11217
|
/**
|
|
11246
11218
|
* @export
|
|
11247
11219
|
* @enum {string}
|
|
11248
11220
|
*/
|
|
11249
|
-
declare enum
|
|
11250
|
-
|
|
11251
|
-
|
|
11252
|
-
VARIANT = "VARIANT"
|
|
11221
|
+
declare enum UpdateDiscountDtoTypeEnum {
|
|
11222
|
+
ITEMDISCOUNT = "ITEM_DISCOUNT",
|
|
11223
|
+
COUPONCODE = "COUPON_CODE"
|
|
11253
11224
|
}
|
|
11254
11225
|
/**
|
|
11255
11226
|
* @export
|
|
11256
11227
|
* @enum {string}
|
|
11257
11228
|
*/
|
|
11258
|
-
declare enum
|
|
11229
|
+
declare enum UpdateDiscountDtoValueTypeEnum {
|
|
11259
11230
|
PERCENTAGE = "PERCENTAGE",
|
|
11260
|
-
|
|
11231
|
+
FIXEDAMOUNT = "FIXED_AMOUNT"
|
|
11261
11232
|
}
|
|
11262
11233
|
/**
|
|
11263
11234
|
* @export
|
|
@@ -11269,24 +11240,6 @@ declare enum UpdateDiscountDtoStateEnum {
|
|
|
11269
11240
|
EXPIRED = "EXPIRED",
|
|
11270
11241
|
SCHEDULED = "SCHEDULED"
|
|
11271
11242
|
}
|
|
11272
|
-
/**
|
|
11273
|
-
* @export
|
|
11274
|
-
* @enum {string}
|
|
11275
|
-
*/
|
|
11276
|
-
declare enum UpdateDiscountDtoMinPurchaseRequiredEnum {
|
|
11277
|
-
NOREQUIREMENT = "NO_REQUIREMENT",
|
|
11278
|
-
MINIMUMAMOUNT = "MINIMUM_AMOUNT",
|
|
11279
|
-
MINIMUMQUANTITY = "MINIMUM_QUANTITY"
|
|
11280
|
-
}
|
|
11281
|
-
/**
|
|
11282
|
-
* @export
|
|
11283
|
-
* @enum {string}
|
|
11284
|
-
*/
|
|
11285
|
-
declare enum UpdateDiscountDtoCustomerEligibilityEnum {
|
|
11286
|
-
ALL = "ALL",
|
|
11287
|
-
SPECIFICUSERS = "SPECIFIC_USERS",
|
|
11288
|
-
SPECIFICGROUPS = "SPECIFIC_GROUPS"
|
|
11289
|
-
}
|
|
11290
11243
|
|
|
11291
11244
|
/**
|
|
11292
11245
|
* Hey Pharamcist API
|
|
@@ -11545,6 +11498,33 @@ interface UpdateMessageDto {
|
|
|
11545
11498
|
adminNotes?: string;
|
|
11546
11499
|
}
|
|
11547
11500
|
|
|
11501
|
+
/**
|
|
11502
|
+
* Hey Pharamcist API
|
|
11503
|
+
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
11504
|
+
*
|
|
11505
|
+
* OpenAPI spec version: 1.0
|
|
11506
|
+
*
|
|
11507
|
+
*
|
|
11508
|
+
* NOTE: This class is auto generated by the swagger code generator program.
|
|
11509
|
+
* https://github.com/swagger-api/swagger-codegen.git
|
|
11510
|
+
* Do not edit the class manually.
|
|
11511
|
+
*/
|
|
11512
|
+
|
|
11513
|
+
/**
|
|
11514
|
+
*
|
|
11515
|
+
* @export
|
|
11516
|
+
* @interface UpdateNotificationSettingsDto
|
|
11517
|
+
*/
|
|
11518
|
+
interface UpdateNotificationSettingsDto {
|
|
11519
|
+
_id?: string;
|
|
11520
|
+
/**
|
|
11521
|
+
* Array of preference updates to apply
|
|
11522
|
+
* @type {Array<PreferenceUpdateItem>}
|
|
11523
|
+
* @memberof UpdateNotificationSettingsDto
|
|
11524
|
+
*/
|
|
11525
|
+
preferences: Array<PreferenceUpdateItem>;
|
|
11526
|
+
}
|
|
11527
|
+
|
|
11548
11528
|
/**
|
|
11549
11529
|
* Hey Pharamcist API
|
|
11550
11530
|
* No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
|
|
@@ -11753,13 +11733,13 @@ interface UpdateReviewDto {
|
|
|
11753
11733
|
* @type {string}
|
|
11754
11734
|
* @memberof UpdateReviewDto
|
|
11755
11735
|
*/
|
|
11756
|
-
|
|
11736
|
+
productId?: string;
|
|
11757
11737
|
/**
|
|
11758
11738
|
*
|
|
11759
11739
|
* @type {string}
|
|
11760
11740
|
* @memberof UpdateReviewDto
|
|
11761
11741
|
*/
|
|
11762
|
-
|
|
11742
|
+
productVariantId?: string;
|
|
11763
11743
|
/**
|
|
11764
11744
|
*
|
|
11765
11745
|
* @type {string}
|
|
@@ -11786,10 +11766,10 @@ interface UpdateReviewDto {
|
|
|
11786
11766
|
reply?: string;
|
|
11787
11767
|
/**
|
|
11788
11768
|
*
|
|
11789
|
-
* @type {
|
|
11769
|
+
* @type {Date}
|
|
11790
11770
|
* @memberof UpdateReviewDto
|
|
11791
11771
|
*/
|
|
11792
|
-
replyDate?:
|
|
11772
|
+
replyDate?: Date;
|
|
11793
11773
|
}
|
|
11794
11774
|
|
|
11795
11775
|
/**
|
|
@@ -11841,6 +11821,12 @@ interface UpdateStoreDto {
|
|
|
11841
11821
|
* @memberof UpdateStoreDto
|
|
11842
11822
|
*/
|
|
11843
11823
|
adminUrl?: string;
|
|
11824
|
+
/**
|
|
11825
|
+
* Shippo Platform managed account ID
|
|
11826
|
+
* @type {string}
|
|
11827
|
+
* @memberof UpdateStoreDto
|
|
11828
|
+
*/
|
|
11829
|
+
shippoAccountId?: string;
|
|
11844
11830
|
/**
|
|
11845
11831
|
*
|
|
11846
11832
|
* @type {string}
|
|
@@ -12842,6 +12828,56 @@ interface BasePathContextValue {
|
|
|
12842
12828
|
}
|
|
12843
12829
|
declare function useBasePath(): BasePathContextValue;
|
|
12844
12830
|
|
|
12831
|
+
type NotificationType = PreferenceUpdateItemTypeEnum;
|
|
12832
|
+
declare const NotificationType: typeof PreferenceUpdateItemTypeEnum;
|
|
12833
|
+
|
|
12834
|
+
interface NotificationData {
|
|
12835
|
+
_id: string;
|
|
12836
|
+
type: NotificationType;
|
|
12837
|
+
title: string;
|
|
12838
|
+
body: string;
|
|
12839
|
+
isRead: boolean;
|
|
12840
|
+
createdAt: string;
|
|
12841
|
+
data?: {
|
|
12842
|
+
orderId?: string;
|
|
12843
|
+
productId?: string;
|
|
12844
|
+
[key: string]: any;
|
|
12845
|
+
};
|
|
12846
|
+
}
|
|
12847
|
+
interface NotificationSettings {
|
|
12848
|
+
_id?: string;
|
|
12849
|
+
userId?: string;
|
|
12850
|
+
preferences: Array<{
|
|
12851
|
+
type: NotificationType;
|
|
12852
|
+
settings: {
|
|
12853
|
+
email?: boolean;
|
|
12854
|
+
push?: boolean;
|
|
12855
|
+
inApp?: boolean;
|
|
12856
|
+
};
|
|
12857
|
+
}>;
|
|
12858
|
+
}
|
|
12859
|
+
interface NotificationCenterContextValue {
|
|
12860
|
+
notifications: NotificationData[];
|
|
12861
|
+
unreadCount: number;
|
|
12862
|
+
isLoading: boolean;
|
|
12863
|
+
isDrawerOpen: boolean;
|
|
12864
|
+
settings: NotificationSettings | null;
|
|
12865
|
+
openDrawer: () => void;
|
|
12866
|
+
closeDrawer: () => void;
|
|
12867
|
+
markAsRead: (id: string) => Promise<void>;
|
|
12868
|
+
markAllAsRead: () => Promise<void>;
|
|
12869
|
+
deleteNotification: (id: string) => Promise<void>;
|
|
12870
|
+
loadMore: () => Promise<void>;
|
|
12871
|
+
hasMore: boolean;
|
|
12872
|
+
refreshNotifications: () => Promise<void>;
|
|
12873
|
+
updateSettings: (settings: NotificationSettings) => Promise<void>;
|
|
12874
|
+
}
|
|
12875
|
+
declare function useNotificationCenter(): NotificationCenterContextValue;
|
|
12876
|
+
interface NotificationCenterProviderProps {
|
|
12877
|
+
children: React.ReactNode;
|
|
12878
|
+
}
|
|
12879
|
+
declare function NotificationCenterProvider({ children }: NotificationCenterProviderProps): react_jsx_runtime.JSX.Element;
|
|
12880
|
+
|
|
12845
12881
|
interface ShopScreenProps {
|
|
12846
12882
|
initialFilters?: ProductFilters;
|
|
12847
12883
|
categoryName?: string;
|
|
@@ -12881,6 +12917,10 @@ declare function NewAddressPage(): react_jsx_runtime.JSX.Element;
|
|
|
12881
12917
|
|
|
12882
12918
|
declare function EditProfileScreen(): react_jsx_runtime.JSX.Element | null;
|
|
12883
12919
|
|
|
12920
|
+
declare function OrderReviewsScreen(): react_jsx_runtime.JSX.Element;
|
|
12921
|
+
|
|
12922
|
+
declare function NotificationSettingsScreen(): react_jsx_runtime.JSX.Element;
|
|
12923
|
+
|
|
12884
12924
|
declare function Header(): react_jsx_runtime.JSX.Element;
|
|
12885
12925
|
|
|
12886
12926
|
declare function Footer(): react_jsx_runtime.JSX.Element;
|
|
@@ -12903,8 +12943,9 @@ declare function CartItem({ item }: CartItemProps): react_jsx_runtime.JSX.Elemen
|
|
|
12903
12943
|
|
|
12904
12944
|
interface OrderCardProps {
|
|
12905
12945
|
order: PopulatedOrder;
|
|
12946
|
+
onDelete?: (id: string) => void;
|
|
12906
12947
|
}
|
|
12907
|
-
declare function OrderCard({ order }: OrderCardProps): react_jsx_runtime.JSX.Element;
|
|
12948
|
+
declare function OrderCard({ order, onDelete }: OrderCardProps): react_jsx_runtime.JSX.Element;
|
|
12908
12949
|
|
|
12909
12950
|
interface EmptyStateProps {
|
|
12910
12951
|
icon: LucideIcon;
|
|
@@ -12915,6 +12956,70 @@ interface EmptyStateProps {
|
|
|
12915
12956
|
}
|
|
12916
12957
|
declare function EmptyState({ icon: Icon, title, description, actionLabel, onAction }: EmptyStateProps): react_jsx_runtime.JSX.Element;
|
|
12917
12958
|
|
|
12959
|
+
declare function NotificationBell(): react_jsx_runtime.JSX.Element;
|
|
12960
|
+
|
|
12961
|
+
declare function NotificationDrawer(): react_jsx_runtime.JSX.Element;
|
|
12962
|
+
|
|
12963
|
+
interface NotificationCardProps {
|
|
12964
|
+
notification: NotificationData;
|
|
12965
|
+
onMarkAsRead: (id: string) => void;
|
|
12966
|
+
onDelete: (id: string) => void;
|
|
12967
|
+
}
|
|
12968
|
+
declare function NotificationCard({ notification, onMarkAsRead, onDelete }: NotificationCardProps): react_jsx_runtime.JSX.Element;
|
|
12969
|
+
|
|
12970
|
+
interface StarRatingProps {
|
|
12971
|
+
rating: number;
|
|
12972
|
+
maxRating?: number;
|
|
12973
|
+
size?: 'sm' | 'md' | 'lg';
|
|
12974
|
+
showNumber?: boolean;
|
|
12975
|
+
interactive?: boolean;
|
|
12976
|
+
onChange?: (rating: number) => void;
|
|
12977
|
+
className?: string;
|
|
12978
|
+
}
|
|
12979
|
+
declare function StarRating({ rating, maxRating, size, showNumber, interactive, onChange, className, }: StarRatingProps): react_jsx_runtime.JSX.Element;
|
|
12980
|
+
|
|
12981
|
+
interface ReviewCardProps {
|
|
12982
|
+
review: Review;
|
|
12983
|
+
showProductInfo?: boolean;
|
|
12984
|
+
}
|
|
12985
|
+
declare function ReviewCard({ review, showProductInfo }: ReviewCardProps): react_jsx_runtime.JSX.Element;
|
|
12986
|
+
|
|
12987
|
+
interface ReviewFormProps {
|
|
12988
|
+
productId: string;
|
|
12989
|
+
productVariantId?: string;
|
|
12990
|
+
orderId: string;
|
|
12991
|
+
onSuccess?: () => void;
|
|
12992
|
+
onCancel?: () => void;
|
|
12993
|
+
}
|
|
12994
|
+
declare function ReviewForm({ productId, productVariantId, orderId, onSuccess, onCancel, }: ReviewFormProps): react_jsx_runtime.JSX.Element;
|
|
12995
|
+
|
|
12996
|
+
interface RatingDistributionProps {
|
|
12997
|
+
reviews: Review[];
|
|
12998
|
+
averageRating?: number;
|
|
12999
|
+
}
|
|
13000
|
+
declare function RatingDistribution({ reviews, averageRating }: RatingDistributionProps): react_jsx_runtime.JSX.Element;
|
|
13001
|
+
|
|
13002
|
+
interface ReviewsListProps {
|
|
13003
|
+
reviews: Review[];
|
|
13004
|
+
isLoading?: boolean;
|
|
13005
|
+
}
|
|
13006
|
+
declare function ReviewsList({ reviews, isLoading }: ReviewsListProps): react_jsx_runtime.JSX.Element;
|
|
13007
|
+
|
|
13008
|
+
interface ProductReviewsSectionProps {
|
|
13009
|
+
productId: string;
|
|
13010
|
+
}
|
|
13011
|
+
declare function ProductReviewsSection({ productId }: ProductReviewsSectionProps): react_jsx_runtime.JSX.Element;
|
|
13012
|
+
|
|
13013
|
+
interface ReviewPromptBannerProps {
|
|
13014
|
+
orderId: string;
|
|
13015
|
+
orderNumber?: string;
|
|
13016
|
+
itemCount: number;
|
|
13017
|
+
onDismiss?: () => void;
|
|
13018
|
+
}
|
|
13019
|
+
declare function ReviewPromptBanner({ orderId, orderNumber, itemCount, onDismiss, }: ReviewPromptBannerProps): react_jsx_runtime.JSX.Element | null;
|
|
13020
|
+
|
|
13021
|
+
declare function AccountReviewsTab(): react_jsx_runtime.JSX.Element;
|
|
13022
|
+
|
|
12918
13023
|
interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
12919
13024
|
variant?: 'primary' | 'secondary' | 'ghost' | 'outline-solid';
|
|
12920
13025
|
size?: 'sm' | 'md' | 'lg';
|
|
@@ -12996,6 +13101,7 @@ declare function useOrders(page?: number, limit?: number, orderStatus?: string,
|
|
|
12996
13101
|
totalPages: number;
|
|
12997
13102
|
};
|
|
12998
13103
|
refetch: () => Promise<void>;
|
|
13104
|
+
deleteOrder: (id: string) => Promise<boolean>;
|
|
12999
13105
|
};
|
|
13000
13106
|
declare function useOrder(id: string): {
|
|
13001
13107
|
order: PopulatedOrder | null;
|
|
@@ -13034,6 +13140,48 @@ interface UseStoreCapabilitiesReturn {
|
|
|
13034
13140
|
}
|
|
13035
13141
|
declare function useStoreCapabilities(): UseStoreCapabilitiesReturn;
|
|
13036
13142
|
|
|
13143
|
+
declare function useProductReviews(productId: string): {
|
|
13144
|
+
reviews: Review[];
|
|
13145
|
+
isLoading: boolean;
|
|
13146
|
+
error: Error | null;
|
|
13147
|
+
refetch: () => Promise<void>;
|
|
13148
|
+
};
|
|
13149
|
+
declare function useUserReviews(userId?: string): {
|
|
13150
|
+
reviews: Review[];
|
|
13151
|
+
isLoading: boolean;
|
|
13152
|
+
error: Error | null;
|
|
13153
|
+
refetch: () => Promise<void>;
|
|
13154
|
+
};
|
|
13155
|
+
declare function useReviewsByRating(rating: number): {
|
|
13156
|
+
reviews: Review[];
|
|
13157
|
+
isLoading: boolean;
|
|
13158
|
+
error: Error | null;
|
|
13159
|
+
refetch: () => Promise<void>;
|
|
13160
|
+
};
|
|
13161
|
+
declare function useCreateReview(): {
|
|
13162
|
+
createReview: (orderId: string, reviewData: CreateReviewDto) => Promise<Review>;
|
|
13163
|
+
isLoading: boolean;
|
|
13164
|
+
error: Error | null;
|
|
13165
|
+
success: boolean;
|
|
13166
|
+
reset: () => void;
|
|
13167
|
+
};
|
|
13168
|
+
declare function useUpdateReview(): {
|
|
13169
|
+
updateReview: (reviewId: string, reviewData: any) => Promise<Review>;
|
|
13170
|
+
isLoading: boolean;
|
|
13171
|
+
error: Error | null;
|
|
13172
|
+
};
|
|
13173
|
+
declare function useDeleteReview(): {
|
|
13174
|
+
deleteReview: (reviewId: string) => Promise<void>;
|
|
13175
|
+
isLoading: boolean;
|
|
13176
|
+
error: Error | null;
|
|
13177
|
+
};
|
|
13178
|
+
declare function useReviewStats(): {
|
|
13179
|
+
count: number;
|
|
13180
|
+
isLoading: boolean;
|
|
13181
|
+
error: Error | null;
|
|
13182
|
+
refetch: () => Promise<void>;
|
|
13183
|
+
};
|
|
13184
|
+
|
|
13037
13185
|
/**
|
|
13038
13186
|
* API Adapter Configuration
|
|
13039
13187
|
* Bridges the frontend components with the real backend APIs
|
|
@@ -13086,4 +13234,4 @@ declare function generateColorShades(baseColor: string): {
|
|
|
13086
13234
|
950: string;
|
|
13087
13235
|
};
|
|
13088
13236
|
|
|
13089
|
-
export { type AddContactToListDTO, type Address, AddressAddressTypeEnum, type AddressCreatedRequest, AddressCreatedRequestAddressTypeEnum, AddressesScreen, type AllowUserCreditDto, type ApiKeyInfoDto, ApiKeyInfoDtoKeyTypeEnum, type Appointment, AuthProvider, type AvailableDatesDto, type AvailableSuggestedDatesDto, Badge, type Blog, type BrowserStatsResponseDTO, type BulkMoveSubcategoriesDto, type BulkUnassignSubcategoriesDto, Button, type CampaignContentResponseDTO, type CampaignDraftDto, CampaignDraftDtoStatusEnum, type CampaignDraftResponseDTO, type CampaignDraftScheduleDto, CampaignDraftScheduleDtoStatusEnum, type CampaignDraftScheduleResponseDTO, type CampaignDraftSendingDto, CampaignDraftSendingDtoStatusEnum, type CampaignDraftSendingResponseDTO, type CartBodyDTO, type CartBodyPopulated, CartItem, type CartItemPopulated, CartProvider, type CartResponseDto, CartScreen, type CategoriesPaginatedResponseDTO, type Category, type CategoryFilters, type CategoryPopulated, type CategorySubCategoryPopulated, type CategorysHeadlinesResponseDTO, type ChangePasswordDto, type ChangeUserEmailDto, type
|
|
13237
|
+
export { AccountReviewsTab, type AddContactToListDTO, type Address, AddressAddressTypeEnum, type AddressCreatedRequest, AddressCreatedRequestAddressTypeEnum, AddressesScreen, type AllowUserCreditDto, type ApiKeyInfoDto, ApiKeyInfoDtoKeyTypeEnum, type Appointment, AuthProvider, type AvailableDatesDto, type AvailableSuggestedDatesDto, Badge, type Blog, type BrowserStatsResponseDTO, type BulkChannelToggleDto, BulkChannelToggleDtoCategoryEnum, type BulkMoveSubcategoriesDto, type BulkUnassignSubcategoriesDto, Button, type CampaignContentResponseDTO, type CampaignDraftDto, CampaignDraftDtoStatusEnum, type CampaignDraftResponseDTO, type CampaignDraftScheduleDto, CampaignDraftScheduleDtoStatusEnum, type CampaignDraftScheduleResponseDTO, type CampaignDraftSendingDto, CampaignDraftSendingDtoStatusEnum, type CampaignDraftSendingResponseDTO, type CartBodyDTO, type CartBodyPopulated, CartItem, type CartItemPopulated, CartProvider, type CartResponseDto, CartScreen, type CategoriesPaginatedResponseDTO, type Category, type CategoryFilters, type CategoryPopulated, type CategorySubCategoryPopulated, type CategorysHeadlinesResponseDTO, type ChangePasswordDto, type ChangeUserEmailDto, type ChannelSettingsDto, CheckoutScreen, type CompletedOrderDto, type ContactAggregatedStatsResponseDTO, type ContactFullDTO, type ContactFullResponseDTO, type ContactListStatsResponseDTO, type ContactListsResponseDTO, type ContactUs, type CountryStatsResponseDTO, type CreateAddressDto, CreateAddressDtoAddressTypeEnum, type CreateBlogDto, type CreateCategoryDto, type CreateContactDTO, type CreateContactListDTO, type CreateDiscountDto, CreateDiscountDtoStateEnum, CreateDiscountDtoTypeEnum, CreateDiscountDtoValueTypeEnum, type CreateEmailTemplateDTO, type CreateEventDto, type CreateMarketingCampaignDTO, type CreateMessageDto, type CreateProductDto, type CreateReviewDto, type CreateShippoAccountDto, type CreateStoreAddressDto, CreateStoreAddressDtoAddressTypeEnum, type CreateStoreDto, type CreateStoreDtoSettings, type CreateSubCategoryDto, type CreateUserDto, CreateUserDtoCustomerTypeEnum, CreateUserDtoRoleEnum, type CreateUserGroupDto, type CreateVariantDto, CurrentOrdersScreen, type CustomProductDto, type DeleteFileDto, type DeleteManyFilesDto, type Discount, DiscountStateEnum, DiscountTypeEnum, DiscountValueTypeEnum, type DiscountsInsightsDto, type EcommerceConfig, EcommerceProvider, EditProfileScreen, type EmailInvoiceDto, type EmailTemplateResponseDTO, EmptyState, type Event, type FileproccesorUploadBody, Footer, type ForgetPassword, ForgotPasswordScreen, type GeneralStatsResponseDTO, type GenerateDaySlotsDto, type GenerateMonthSlotsDto, type GenerateWeekSlotsDto, type GroupWithNoUsersDto, type GroupWithUsersDto, Header, type ImagesUploadBody, Input, type LinkStatsResponseDTO, type LoginDto, LoginScreen, type ManualDiscountDto, ManualDiscountDtoValueTypeEnum, type ManualOrderDTO, ManualOrderDTOOrderStatusEnum, ManualOrderDTOPaymentMethodEnum, ManualOrderDTOPaymentStatusEnum, type ManualShippingDto, type MarketingCampaignContentDTO, type MarketingListContactDTO, Modal, type MoveSubcategoryDto, NewAddressPage as NewAddressScreen, type NewClientEmailDto, NotificationBell, NotificationCard, NotificationCenterProvider, NotificationDrawer, NotificationSettingsScreen, type ObjectId, type Order, OrderCard, OrderCardSkeleton, OrderOrderTypeEnum, type OrderPaginatedResponse, OrderReviewsScreen, OrderStatus, type OrderTimeLineDTO, OrderTimeLineDTOTypeEnum, OrderTypeEnum, type OrdersInsightsDto, OrdersScreen, type PaginatedProductsDto, type Payment, PaymentPaymentMethodEnum, PaymentPaymentStatusEnum, type PaymentTimeLineDTO, PaymentTimeLineDTOTitleEnum, type PaymentsInsightsDto, type PaymentsPaginatedResponse, type PopulatedDiscount, PopulatedDiscountStateEnum, PopulatedDiscountTypeEnum, PopulatedDiscountValueTypeEnum, type PopulatedOrder, PopulatedOrderOrderTypeEnum, PopulatedOrderTypeEnum, type PreferedPickOrDeliveryTimeDto, type PreferenceUpdateItem, PreferenceUpdateItemTypeEnum, type PriceRange, type Product, ProductCard, ProductCardSkeleton, ProductDetailScreen, type ProductFilters, type ProductLightDto, ProductReviewsSection, type ProductSummary, type ProductVariant, ProductVariantInventoryStatusEnum, type ProductsInsightsDto, AccountPage as ProfileScreen, type RateDto, RatingDistribution, type RefillRequest, type RefillRequestDto, type RegisterOrLoginWithGmail, RegisterScreen, type ReorderCategoriesDto, type ReorderProductsDto, ReorderProductsDtoContainerTypeEnum, type ReorderProductsSuccessResponseDto, type ReorderSubcategoriesDto, type ReorderSuccessResponseDto, type ReserveAppointment, ResetPasswordScreen, type Review, ReviewCard, ReviewForm, ReviewPromptBanner, type ReviewStatusDto, type ReviewableOrderDto, type ReviewableProductDto, ReviewsList, type ScheduleCampaignDraftDTO, type ScheduleTourEmailDto, SearchPage as SearchResultsScreen, type SendTestEmailDTO, type Shipment, type ShipmentDetailsDto, ShipmentDetailsDtoStatusEnum, type ShipmentStatusDto, type ShipmentWithOrder, type ShippingInfo, ShippingInfoStatusEnum, type ShippoAccountResponseDto, ShopScreen, type SingleBrowserStatsDto, type SingleContactAggregatedStatsDto, type SingleContactListStatsDto, type SingleCountryStatsDto, type SingleGeneralStats, type SingleLinkStatsDto, type SingleProductMedia, SingleProductMediaTypeEnum, type SingleRecipientDTO, Skeleton, StarRating, type Store, type StoreApiKeysResponseDto, type StoreCapabilitiesDto, type StoreEntity, type SubCategory, type SubCategoryHeadlinesOnlyResponseDTO, type SuggestedSlot, type TAdminSessionData, type TUserSessionData, ThemeProvider, type TrackDto, type TrackingStatus, type TrackingStatusLocationBase, type TrackingStatusSubstatus, type TransferePatientRequest, type TransferePatientsRequestDto, type UpdateAddressDto, UpdateAddressDtoAddressTypeEnum, type UpdateApiKeysDto, type UpdateBlogDto, type UpdateCampaignDraftContentDto, type UpdateCategoryDto, type UpdateDiscountDto, UpdateDiscountDtoStateEnum, UpdateDiscountDtoTypeEnum, UpdateDiscountDtoValueTypeEnum, type UpdateEventDto, type UpdateItemsOrderDto, type UpdateManualShipmentStatusDto, UpdateManualShipmentStatusDtoStatusEnum, type UpdateMarketingCampDraftDto, type UpdateMessageDto, type UpdateNotificationSettingsDto, type UpdateProductDto, type UpdateRefillRequestDto, type UpdateReviewDto, type UpdateStoreDto, type UpdateSubCategoryDto, type UpdateTransferePatientsRequestDto, type UpdateUserDto, UpdateUserDtoCustomerTypeEnum, UpdateUserDtoRoleEnum, type UpdateUserGroupDto, type UpdateVariantDto, type UploadPdfBody, type UsedBy, type UserEntity, UserEntityCustomerTypeEnum, UserEntityRoleEnum, type UserGroup, type UserInsightsDto, type UserWithNoId, UserWithNoIdCustomerTypeEnum, UserWithNoIdRoleEnum, type UsersPaginatedResponse, type VariantIdInventoryBody, type VariantLightDto, type VerifyEmailDTO, type Wishlist, WishlistProvider, WishlistScreen, formatDate, formatPrice, generateColorShades, getApiConfiguration, getInitials, hexToRgb, initializeApiAdapter, truncate, useAddresses, useAuth, useBasePath, useCart, useCategories, useCreateReview, useCurrentOrders, useDeleteReview, useNotificationCenter, useOrder, useOrders, useProduct, useProductReviews, useProducts, useReviewStats, useReviewsByRating, useStoreCapabilities, useTheme, useUpdateReview, useUserReviews, useWishlist };
|