hey-pharmacist-ecommerce 1.1.42 → 1.1.44

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.
Files changed (105) hide show
  1. package/README.md +70 -8
  2. package/dist/index.d.mts +2550 -3081
  3. package/dist/index.d.ts +2550 -3081
  4. package/dist/index.js +506 -399
  5. package/dist/index.js.map +1 -1
  6. package/dist/index.mjs +506 -397
  7. package/dist/index.mjs.map +1 -1
  8. package/package.json +2 -2
  9. package/src/components/AccountOverviewTab.tsx +5 -5
  10. package/src/components/AccountReviewsTab.tsx +4 -4
  11. package/src/components/CartItem.tsx +15 -15
  12. package/src/components/Header.tsx +1 -1
  13. package/src/components/Notification.tsx +3 -3
  14. package/src/components/OrderCard.tsx +1 -1
  15. package/src/components/ProductCard.tsx +11 -11
  16. package/src/components/QuickViewModal.tsx +16 -16
  17. package/src/components/RatingDistribution.tsx +2 -2
  18. package/src/components/ReviewCard.tsx +2 -2
  19. package/src/components/ReviewForm.tsx +3 -3
  20. package/src/components/ReviewPromptBanner.tsx +4 -4
  21. package/src/components/ReviewsList.tsx +9 -11
  22. package/src/components/StarRating.tsx +3 -3
  23. package/src/hooks/useProducts.ts +0 -1
  24. package/src/hooks/useSmartSearch.ts +68 -0
  25. package/src/lib/Apis/api.ts +1 -1
  26. package/src/lib/Apis/apis/analytics-api.ts +809 -0
  27. package/src/lib/Apis/apis/notifications-api.ts +8 -6
  28. package/src/lib/Apis/apis/products-api.ts +390 -15
  29. package/src/lib/Apis/apis/stores-api.ts +26 -149
  30. package/src/lib/Apis/apis/web-hooks-api.ts +8 -17
  31. package/src/lib/Apis/models/analytics-period-dto.ts +45 -0
  32. package/src/lib/Apis/models/appointment-overview-dto.ts +71 -0
  33. package/src/lib/Apis/models/category-sales-dto.ts +51 -0
  34. package/src/lib/Apis/models/create-store-dto.ts +12 -0
  35. package/src/lib/Apis/models/customer-overview-dto.ts +96 -0
  36. package/src/lib/Apis/models/{country-stats-response-dto.ts → customer-segment-dto.ts} +12 -13
  37. package/src/lib/Apis/models/dashboard-overview-dto.ts +70 -0
  38. package/src/lib/Apis/models/discount-overview-dto.ts +71 -0
  39. package/src/lib/Apis/models/group-with-no-users-dto.ts +0 -6
  40. package/src/lib/Apis/models/group-with-users-dto.ts +0 -6
  41. package/src/lib/Apis/models/index.ts +29 -38
  42. package/src/lib/Apis/models/{single-recipient-dto.ts → inline-response200.ts} +11 -10
  43. package/src/lib/Apis/models/{create-contact-dto.ts → inline-response2001.ts} +11 -11
  44. package/src/lib/Apis/models/inventory-alert-dto.ts +67 -0
  45. package/src/lib/Apis/models/notification-dto.ts +107 -0
  46. package/src/lib/Apis/models/notifications-paginated-response-dto.ts +58 -0
  47. package/src/lib/Apis/models/order-overview-dto.ts +89 -0
  48. package/src/lib/Apis/models/{single-link-stats-dto.ts → order-status-count-dto.ts} +10 -10
  49. package/src/lib/Apis/models/order.ts +0 -6
  50. package/src/lib/Apis/models/payout-history-item-dto.ts +45 -0
  51. package/src/lib/Apis/models/{single-country-stats-dto.ts → popular-time-slot-dto.ts} +10 -10
  52. package/src/lib/Apis/models/populated-order.ts +0 -6
  53. package/src/lib/Apis/models/preference-update-item.ts +1 -0
  54. package/src/lib/Apis/models/product-overview-dto.ts +90 -0
  55. package/src/lib/Apis/models/product.ts +6 -0
  56. package/src/lib/Apis/models/{create-contact-list-dto.ts → products-aidraft-body.ts} +4 -4
  57. package/src/lib/Apis/models/{schedule-campaign-draft-dto.ts → products-processimage-body.ts} +5 -5
  58. package/src/lib/Apis/models/{contact-full-response-dto.ts → rating-distribution-dto.ts} +9 -10
  59. package/src/lib/Apis/models/recent-review-dto.ts +63 -0
  60. package/src/lib/Apis/models/review-overview-dto.ts +65 -0
  61. package/src/lib/Apis/models/store-balance-dto.ts +39 -0
  62. package/src/lib/Apis/models/store-entity.ts +12 -0
  63. package/src/lib/Apis/models/{link-stats-response-dto.ts → store-finance-overview-dto.ts} +10 -15
  64. package/src/lib/Apis/models/store.ts +12 -0
  65. package/src/lib/Apis/models/{add-contact-to-list-dto.ts → time-series-point-dto.ts} +9 -9
  66. package/src/lib/Apis/models/{create-email-template-dto.ts → top-customer-dto.ts} +20 -14
  67. package/src/lib/Apis/models/{marketing-list-contact-dto.ts → top-discount-dto.ts} +12 -12
  68. package/src/lib/Apis/models/{single-browser-stats-dto.ts → top-product-dto.ts} +18 -12
  69. package/src/lib/Apis/models/{marketing-campaign-content-dto.ts → unread-count-dto.ts} +6 -6
  70. package/src/lib/Apis/models/update-store-dto.ts +12 -0
  71. package/src/lib/Apis/models/update-user-dto.ts +0 -6
  72. package/src/lib/Apis/models/user-group.ts +0 -6
  73. package/src/lib/Apis/models/user-with-no-id.ts +0 -6
  74. package/src/lib/Apis/sharedConfig.ts +1 -1
  75. package/src/screens/CartScreen.tsx +10 -10
  76. package/src/screens/CheckoutScreen.tsx +12 -12
  77. package/src/screens/OrderReviewsScreen.tsx +6 -6
  78. package/src/screens/ProductDetailScreen.tsx +40 -40
  79. package/src/screens/SearchResultsScreen.tsx +17 -21
  80. package/src/screens/ShopScreen.tsx +20 -82
  81. package/src/lib/Apis/apis/marketing-api.ts +0 -3099
  82. package/src/lib/Apis/models/api-key-info-dto.ts +0 -49
  83. package/src/lib/Apis/models/browser-stats-response-dto.ts +0 -40
  84. package/src/lib/Apis/models/campaign-content-response-dto.ts +0 -40
  85. package/src/lib/Apis/models/campaign-draft-dto.ts +0 -175
  86. package/src/lib/Apis/models/campaign-draft-response-dto.ts +0 -40
  87. package/src/lib/Apis/models/campaign-draft-schedule-dto.ts +0 -49
  88. package/src/lib/Apis/models/campaign-draft-schedule-response-dto.ts +0 -40
  89. package/src/lib/Apis/models/campaign-draft-sending-dto.ts +0 -43
  90. package/src/lib/Apis/models/campaign-draft-sending-response-dto.ts +0 -40
  91. package/src/lib/Apis/models/contact-aggregated-stats-response-dto.ts +0 -40
  92. package/src/lib/Apis/models/contact-full-dto.ts +0 -93
  93. package/src/lib/Apis/models/contact-list-stats-response-dto.ts +0 -40
  94. package/src/lib/Apis/models/contact-lists-response-dto.ts +0 -40
  95. package/src/lib/Apis/models/create-marketing-campaign-dto.ts +0 -81
  96. package/src/lib/Apis/models/email-template-response-dto.ts +0 -117
  97. package/src/lib/Apis/models/general-stats-response-dto.ts +0 -40
  98. package/src/lib/Apis/models/send-test-email-dto.ts +0 -28
  99. package/src/lib/Apis/models/single-contact-aggregated-stats-dto.ts +0 -129
  100. package/src/lib/Apis/models/single-contact-list-stats-dto.ts +0 -117
  101. package/src/lib/Apis/models/single-general-stats.ts +0 -153
  102. package/src/lib/Apis/models/store-api-keys-response-dto.ts +0 -34
  103. package/src/lib/Apis/models/update-api-keys-dto.ts +0 -39
  104. package/src/lib/Apis/models/update-campaign-draft-content-dto.ts +0 -27
  105. package/src/lib/Apis/models/update-marketing-camp-draft-dto.ts +0 -81
@@ -11,30 +11,29 @@
11
11
  * https://github.com/swagger-api/swagger-codegen.git
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { SingleCountryStatsDto } from './single-country-stats-dto';
15
14
  /**
16
15
  *
17
16
  * @export
18
- * @interface CountryStatsResponseDTO
17
+ * @interface CustomerSegmentDto
19
18
  */
20
- export interface CountryStatsResponseDTO {
19
+ export interface CustomerSegmentDto {
21
20
  _id?: string;
22
21
  /**
23
- *
22
+ * Active customers (ordered in last 30 days)
24
23
  * @type {number}
25
- * @memberof CountryStatsResponseDTO
24
+ * @memberof CustomerSegmentDto
26
25
  */
27
- count: number;
26
+ active: number;
28
27
  /**
29
- *
30
- * @type {Array<SingleCountryStatsDto>}
31
- * @memberof CountryStatsResponseDTO
28
+ * Dormant customers (30-90 days since last order)
29
+ * @type {number}
30
+ * @memberof CustomerSegmentDto
32
31
  */
33
- data: Array<SingleCountryStatsDto>;
32
+ dormant: number;
34
33
  /**
35
- *
34
+ * Churned customers (90+ days since last order)
36
35
  * @type {number}
37
- * @memberof CountryStatsResponseDTO
36
+ * @memberof CustomerSegmentDto
38
37
  */
39
- total: number;
38
+ churned: number;
40
39
  }
@@ -0,0 +1,70 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Hey Pharamcist API
5
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6
+ *
7
+ * OpenAPI spec version: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by the swagger code generator program.
11
+ * https://github.com/swagger-api/swagger-codegen.git
12
+ * Do not edit the class manually.
13
+ */
14
+ import { AnalyticsPeriodDto } from './analytics-period-dto';
15
+ import { AppointmentOverviewDto } from './appointment-overview-dto';
16
+ import { CustomerOverviewDto } from './customer-overview-dto';
17
+ import { DiscountOverviewDto } from './discount-overview-dto';
18
+ import { OrderOverviewDto } from './order-overview-dto';
19
+ import { ProductOverviewDto } from './product-overview-dto';
20
+ import { ReviewOverviewDto } from './review-overview-dto';
21
+ /**
22
+ *
23
+ * @export
24
+ * @interface DashboardOverviewDto
25
+ */
26
+ export interface DashboardOverviewDto {
27
+ _id?: string;
28
+ /**
29
+ * Analysis period
30
+ * @type {AnalyticsPeriodDto}
31
+ * @memberof DashboardOverviewDto
32
+ */
33
+ period: AnalyticsPeriodDto;
34
+ /**
35
+ *
36
+ * @type {OrderOverviewDto}
37
+ * @memberof DashboardOverviewDto
38
+ */
39
+ orders: OrderOverviewDto;
40
+ /**
41
+ *
42
+ * @type {CustomerOverviewDto}
43
+ * @memberof DashboardOverviewDto
44
+ */
45
+ customers: CustomerOverviewDto;
46
+ /**
47
+ *
48
+ * @type {ProductOverviewDto}
49
+ * @memberof DashboardOverviewDto
50
+ */
51
+ products: ProductOverviewDto;
52
+ /**
53
+ *
54
+ * @type {AppointmentOverviewDto}
55
+ * @memberof DashboardOverviewDto
56
+ */
57
+ appointments: AppointmentOverviewDto;
58
+ /**
59
+ *
60
+ * @type {DiscountOverviewDto}
61
+ * @memberof DashboardOverviewDto
62
+ */
63
+ discounts: DiscountOverviewDto;
64
+ /**
65
+ *
66
+ * @type {ReviewOverviewDto}
67
+ * @memberof DashboardOverviewDto
68
+ */
69
+ reviews: ReviewOverviewDto;
70
+ }
@@ -0,0 +1,71 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Hey Pharamcist API
5
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6
+ *
7
+ * OpenAPI spec version: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by the swagger code generator program.
11
+ * https://github.com/swagger-api/swagger-codegen.git
12
+ * Do not edit the class manually.
13
+ */
14
+ import { TimeSeriesPointDto } from './time-series-point-dto';
15
+ import { TopDiscountDto } from './top-discount-dto';
16
+ /**
17
+ *
18
+ * @export
19
+ * @interface DiscountOverviewDto
20
+ */
21
+ export interface DiscountOverviewDto {
22
+ _id?: string;
23
+ /**
24
+ * Currently active discounts
25
+ * @type {number}
26
+ * @memberof DiscountOverviewDto
27
+ */
28
+ activeDiscounts: number;
29
+ /**
30
+ * Total discount codes
31
+ * @type {number}
32
+ * @memberof DiscountOverviewDto
33
+ */
34
+ totalDiscounts: number;
35
+ /**
36
+ * Total discount redemptions in period
37
+ * @type {number}
38
+ * @memberof DiscountOverviewDto
39
+ */
40
+ totalRedemptions: number;
41
+ /**
42
+ * Total savings generated
43
+ * @type {number}
44
+ * @memberof DiscountOverviewDto
45
+ */
46
+ totalSavingsGenerated: number;
47
+ /**
48
+ * Average discount value per use
49
+ * @type {number}
50
+ * @memberof DiscountOverviewDto
51
+ */
52
+ avgDiscountValue: number;
53
+ /**
54
+ * Discount redemption rate (% of orders using discounts)
55
+ * @type {number}
56
+ * @memberof DiscountOverviewDto
57
+ */
58
+ redemptionRate: number;
59
+ /**
60
+ * Top performing discount codes
61
+ * @type {Array<TopDiscountDto>}
62
+ * @memberof DiscountOverviewDto
63
+ */
64
+ topDiscounts: Array<TopDiscountDto>;
65
+ /**
66
+ * Daily redemption trend
67
+ * @type {Array<TimeSeriesPointDto>}
68
+ * @memberof DiscountOverviewDto
69
+ */
70
+ dailyTrend: Array<TimeSeriesPointDto>;
71
+ }
@@ -54,12 +54,6 @@ export interface GroupWithNoUsersDto {
54
54
  * @memberof GroupWithNoUsersDto
55
55
  */
56
56
  storeId: string;
57
- /**
58
- *
59
- * @type {number}
60
- * @memberof GroupWithNoUsersDto
61
- */
62
- mailJetListId: number;
63
57
  /**
64
58
  *
65
59
  * @type {number}
@@ -55,12 +55,6 @@ export interface GroupWithUsersDto {
55
55
  * @memberof GroupWithUsersDto
56
56
  */
57
57
  storeId?: string;
58
- /**
59
- *
60
- * @type {number}
61
- * @memberof GroupWithUsersDto
62
- */
63
- mailJetListId?: number;
64
58
  /**
65
59
  *
66
60
  * @type {number}
@@ -1,23 +1,15 @@
1
- export * from './add-contact-to-list-dto';
2
1
  export * from './address';
3
2
  export * from './address-created-request';
4
3
  export * from './allow-user-credit-dto';
5
- export * from './api-key-info-dto';
4
+ export * from './analytics-period-dto';
6
5
  export * from './appointment';
6
+ export * from './appointment-overview-dto';
7
7
  export * from './available-dates-dto';
8
8
  export * from './available-suggested-dates-dto';
9
9
  export * from './blog';
10
- export * from './browser-stats-response-dto';
11
10
  export * from './bulk-channel-toggle-dto';
12
11
  export * from './bulk-move-subcategories-dto';
13
12
  export * from './bulk-unassign-subcategories-dto';
14
- export * from './campaign-content-response-dto';
15
- export * from './campaign-draft-dto';
16
- export * from './campaign-draft-response-dto';
17
- export * from './campaign-draft-schedule-dto';
18
- export * from './campaign-draft-schedule-response-dto';
19
- export * from './campaign-draft-sending-dto';
20
- export * from './campaign-draft-sending-response-dto';
21
13
  export * from './cart-body-dto';
22
14
  export * from './cart-body-populated';
23
15
  export * from './cart-item';
@@ -27,28 +19,19 @@ export * from './categories-paginated-response-dto';
27
19
  export * from './category';
28
20
  export * from './category-filters';
29
21
  export * from './category-populated';
22
+ export * from './category-sales-dto';
30
23
  export * from './category-sub-category-populated';
31
24
  export * from './categorys-headlines-response-dto';
32
25
  export * from './change-password-dto';
33
26
  export * from './change-user-email-dto';
34
27
  export * from './channel-settings-dto';
35
28
  export * from './completed-order-dto';
36
- export * from './contact-aggregated-stats-response-dto';
37
- export * from './contact-full-dto';
38
- export * from './contact-full-response-dto';
39
- export * from './contact-list-stats-response-dto';
40
- export * from './contact-lists-response-dto';
41
29
  export * from './contact-us';
42
- export * from './country-stats-response-dto';
43
30
  export * from './create-address-dto';
44
31
  export * from './create-blog-dto';
45
32
  export * from './create-category-dto';
46
- export * from './create-contact-dto';
47
- export * from './create-contact-list-dto';
48
33
  export * from './create-discount-dto';
49
- export * from './create-email-template-dto';
50
34
  export * from './create-event-dto';
51
- export * from './create-marketing-campaign-dto';
52
35
  export * from './create-message-dto';
53
36
  export * from './create-product-dto';
54
37
  export * from './create-review-dto';
@@ -61,34 +44,40 @@ export * from './create-user-dto';
61
44
  export * from './create-user-group-dto';
62
45
  export * from './create-variant-dto';
63
46
  export * from './custom-product-dto';
47
+ export * from './customer-overview-dto';
48
+ export * from './customer-segment-dto';
49
+ export * from './dashboard-overview-dto';
64
50
  export * from './delete-file-dto';
65
51
  export * from './delete-many-files-dto';
66
52
  export * from './discount';
53
+ export * from './discount-overview-dto';
67
54
  export * from './discounts-insights-dto';
68
55
  export * from './email-invoice-dto';
69
- export * from './email-template-response-dto';
70
56
  export * from './event';
71
57
  export * from './fileproccesor-upload-body';
72
58
  export * from './forget-password';
73
- export * from './general-stats-response-dto';
74
59
  export * from './generate-day-slots-dto';
75
60
  export * from './generate-month-slots-dto';
76
61
  export * from './generate-week-slots-dto';
77
62
  export * from './group-with-no-users-dto';
78
63
  export * from './group-with-users-dto';
79
64
  export * from './images-upload-body';
80
- export * from './link-stats-response-dto';
65
+ export * from './inline-response200';
66
+ export * from './inline-response2001';
67
+ export * from './inventory-alert-dto';
81
68
  export * from './login-dto';
82
69
  export * from './manual-discount-dto';
83
70
  export * from './manual-order-dto';
84
71
  export * from './manual-shipping-dto';
85
- export * from './marketing-campaign-content-dto';
86
- export * from './marketing-list-contact-dto';
87
72
  export * from './move-subcategory-dto';
88
73
  export * from './new-client-email-dto';
74
+ export * from './notification-dto';
75
+ export * from './notifications-paginated-response-dto';
89
76
  export * from './object-id';
90
77
  export * from './order';
78
+ export * from './order-overview-dto';
91
79
  export * from './order-paginated-response';
80
+ export * from './order-status-count-dto';
92
81
  export * from './order-time-line-dto';
93
82
  export * from './orders-insights-dto';
94
83
  export * from './paginated-products-dto';
@@ -96,6 +85,8 @@ export * from './payment';
96
85
  export * from './payment-time-line-dto';
97
86
  export * from './payments-insights-dto';
98
87
  export * from './payments-paginated-response';
88
+ export * from './payout-history-item-dto';
89
+ export * from './popular-time-slot-dto';
99
90
  export * from './populated-discount';
100
91
  export * from './populated-order';
101
92
  export * from './prefered-pick-or-delivery-time-dto';
@@ -103,10 +94,15 @@ export * from './preference-update-item';
103
94
  export * from './price-range';
104
95
  export * from './product';
105
96
  export * from './product-light-dto';
97
+ export * from './product-overview-dto';
106
98
  export * from './product-summary';
107
99
  export * from './product-variant';
100
+ export * from './products-aidraft-body';
108
101
  export * from './products-insights-dto';
102
+ export * from './products-processimage-body';
109
103
  export * from './rate-dto';
104
+ export * from './rating-distribution-dto';
105
+ export * from './recent-review-dto';
110
106
  export * from './refill-request';
111
107
  export * from './refill-request-dto';
112
108
  export * from './register-or-login-with-gmail';
@@ -117,51 +113,46 @@ export * from './reorder-subcategories-dto';
117
113
  export * from './reorder-success-response-dto';
118
114
  export * from './reserve-appointment';
119
115
  export * from './review';
116
+ export * from './review-overview-dto';
120
117
  export * from './review-status-dto';
121
118
  export * from './reviewable-order-dto';
122
119
  export * from './reviewable-product-dto';
123
- export * from './schedule-campaign-draft-dto';
124
120
  export * from './schedule-tour-email-dto';
125
- export * from './send-test-email-dto';
126
121
  export * from './shipment';
127
122
  export * from './shipment-details-dto';
128
123
  export * from './shipment-status-dto';
129
124
  export * from './shipment-with-order';
130
125
  export * from './shipping-info';
131
126
  export * from './shippo-account-response-dto';
132
- export * from './single-browser-stats-dto';
133
- export * from './single-contact-aggregated-stats-dto';
134
- export * from './single-contact-list-stats-dto';
135
- export * from './single-country-stats-dto';
136
- export * from './single-general-stats';
137
- export * from './single-link-stats-dto';
138
127
  export * from './single-product-media';
139
- export * from './single-recipient-dto';
140
128
  export * from './store';
141
- export * from './store-api-keys-response-dto';
129
+ export * from './store-balance-dto';
142
130
  export * from './store-capabilities-dto';
143
131
  export * from './store-entity';
132
+ export * from './store-finance-overview-dto';
144
133
  export * from './sub-category';
145
134
  export * from './sub-category-headlines-only-response-dto';
146
135
  export * from './suggested-slot';
147
136
  export * from './tadmin-session-data';
148
137
  export * from './tuser-session-data';
138
+ export * from './time-series-point-dto';
139
+ export * from './top-customer-dto';
140
+ export * from './top-discount-dto';
141
+ export * from './top-product-dto';
149
142
  export * from './track-dto';
150
143
  export * from './tracking-status';
151
144
  export * from './tracking-status-location-base';
152
145
  export * from './tracking-status-substatus';
153
146
  export * from './transfere-patient-request';
154
147
  export * from './transfere-patients-request-dto';
148
+ export * from './unread-count-dto';
155
149
  export * from './update-address-dto';
156
- export * from './update-api-keys-dto';
157
150
  export * from './update-blog-dto';
158
- export * from './update-campaign-draft-content-dto';
159
151
  export * from './update-category-dto';
160
152
  export * from './update-discount-dto';
161
153
  export * from './update-event-dto';
162
154
  export * from './update-items-order-dto';
163
155
  export * from './update-manual-shipment-status-dto';
164
- export * from './update-marketing-camp-draft-dto';
165
156
  export * from './update-message-dto';
166
157
  export * from './update-notification-settings-dto';
167
158
  export * from './update-product-dto';
@@ -11,23 +11,24 @@
11
11
  * https://github.com/swagger-api/swagger-codegen.git
12
12
  * Do not edit the class manually.
13
13
  */
14
+ import { Product } from './product';
14
15
  /**
15
16
  *
16
17
  * @export
17
- * @interface SingleRecipientDTO
18
+ * @interface InlineResponse200
18
19
  */
19
- export interface SingleRecipientDTO {
20
+ export interface InlineResponse200 {
20
21
  _id?: string;
21
22
  /**
22
- * The email address to which the test email will be sent.
23
- * @type {string}
24
- * @memberof SingleRecipientDTO
23
+ *
24
+ * @type {Array<Product>}
25
+ * @memberof InlineResponse200
25
26
  */
26
- email: string;
27
+ products?: Array<Product>;
27
28
  /**
28
- *
29
- * @type {string}
30
- * @memberof SingleRecipientDTO
29
+ * Similarity scores (0-1)
30
+ * @type {Array<number>}
31
+ * @memberof InlineResponse200
31
32
  */
32
- name: string;
33
+ scores?: Array<number>;
33
34
  }
@@ -14,26 +14,26 @@
14
14
  /**
15
15
  *
16
16
  * @export
17
- * @interface CreateContactDTO
17
+ * @interface InlineResponse2001
18
18
  */
19
- export interface CreateContactDTO {
19
+ export interface InlineResponse2001 {
20
20
  _id?: string;
21
21
  /**
22
22
  *
23
- * @type {string}
24
- * @memberof CreateContactDTO
23
+ * @type {number}
24
+ * @memberof InlineResponse2001
25
25
  */
26
- name: string;
26
+ processed?: number;
27
27
  /**
28
28
  *
29
- * @type {string}
30
- * @memberof CreateContactDTO
29
+ * @type {number}
30
+ * @memberof InlineResponse2001
31
31
  */
32
- email: string;
32
+ failed?: number;
33
33
  /**
34
34
  *
35
- * @type {boolean}
36
- * @memberof CreateContactDTO
35
+ * @type {number}
36
+ * @memberof InlineResponse2001
37
37
  */
38
- isExcludedFromCampaigns: boolean;
38
+ skipped?: number;
39
39
  }
@@ -0,0 +1,67 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Hey Pharamcist API
5
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6
+ *
7
+ * OpenAPI spec version: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by the swagger code generator program.
11
+ * https://github.com/swagger-api/swagger-codegen.git
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface InventoryAlertDto
18
+ */
19
+ export interface InventoryAlertDto {
20
+ _id?: string;
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof InventoryAlertDto
25
+ */
26
+ productId: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof InventoryAlertDto
31
+ */
32
+ variantId: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof InventoryAlertDto
37
+ */
38
+ productName: string;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof InventoryAlertDto
43
+ */
44
+ variantName: string;
45
+ /**
46
+ *
47
+ * @type {number}
48
+ * @memberof InventoryAlertDto
49
+ */
50
+ currentStock: number;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof InventoryAlertDto
55
+ */
56
+ alertType: InventoryAlertDtoAlertTypeEnum;
57
+ }
58
+
59
+ /**
60
+ * @export
61
+ * @enum {string}
62
+ */
63
+ export enum InventoryAlertDtoAlertTypeEnum {
64
+ LOWSTOCK = 'LOW_STOCK',
65
+ OUTOFSTOCK = 'OUT_OF_STOCK'
66
+ }
67
+
@@ -0,0 +1,107 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Hey Pharamcist API
5
+ * No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)
6
+ *
7
+ * OpenAPI spec version: 1.0
8
+ *
9
+ *
10
+ * NOTE: This class is auto generated by the swagger code generator program.
11
+ * https://github.com/swagger-api/swagger-codegen.git
12
+ * Do not edit the class manually.
13
+ */
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface NotificationDto
18
+ */
19
+ export interface NotificationDto {
20
+ _id?: string;
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof NotificationDto
25
+ */
26
+ id: string;
27
+ /**
28
+ *
29
+ * @type {string}
30
+ * @memberof NotificationDto
31
+ */
32
+ userId: string;
33
+ /**
34
+ *
35
+ * @type {string}
36
+ * @memberof NotificationDto
37
+ */
38
+ storeId: string;
39
+ /**
40
+ *
41
+ * @type {string}
42
+ * @memberof NotificationDto
43
+ */
44
+ type: NotificationDtoTypeEnum;
45
+ /**
46
+ *
47
+ * @type {string}
48
+ * @memberof NotificationDto
49
+ */
50
+ title: string;
51
+ /**
52
+ *
53
+ * @type {string}
54
+ * @memberof NotificationDto
55
+ */
56
+ body: string;
57
+ /**
58
+ *
59
+ * @type {any}
60
+ * @memberof NotificationDto
61
+ */
62
+ data: any;
63
+ /**
64
+ *
65
+ * @type {boolean}
66
+ * @memberof NotificationDto
67
+ */
68
+ isRead: boolean;
69
+ /**
70
+ *
71
+ * @type {Date}
72
+ * @memberof NotificationDto
73
+ */
74
+ createdAt: Date;
75
+ /**
76
+ *
77
+ * @type {Date}
78
+ * @memberof NotificationDto
79
+ */
80
+ updatedAt: Date;
81
+ }
82
+
83
+ /**
84
+ * @export
85
+ * @enum {string}
86
+ */
87
+ export enum NotificationDtoTypeEnum {
88
+ ORDERCONFIRMATION = 'ORDER_CONFIRMATION',
89
+ PAYMENTFAILED = 'PAYMENT_FAILED',
90
+ ORDERSHIPPED = 'ORDER_SHIPPED',
91
+ ORDERDELIVERED = 'ORDER_DELIVERED',
92
+ REFUNDPROCESSED = 'REFUND_PROCESSED',
93
+ REVIEWREPLY = 'REVIEW_REPLY',
94
+ ABANDONEDCARTREMINDER = 'ABANDONED_CART_REMINDER',
95
+ PRICEDROPALERT = 'PRICE_DROP_ALERT',
96
+ BACKINSTOCK = 'BACK_IN_STOCK',
97
+ PASSWORDRESET = 'PASSWORD_RESET',
98
+ NEWDEVICELOGIN = 'NEW_DEVICE_LOGIN',
99
+ TWOFACODE = 'TWO_FA_CODE',
100
+ NEWORDER = 'NEW_ORDER',
101
+ LOWSTOCKWARNING = 'LOW_STOCK_WARNING',
102
+ NEWRETURNREQUEST = 'NEW_RETURN_REQUEST',
103
+ NEWUSERREGISTERED = 'NEW_USER_REGISTERED',
104
+ HIGHVALUEORDERALERT = 'HIGH_VALUE_ORDER_ALERT',
105
+ PAYOUTFAILED = 'PAYOUT_FAILED'
106
+ }
107
+