hey-pharmacist-ecommerce 1.1.29 → 1.1.31

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 (104) hide show
  1. package/dist/index.d.mts +10957 -1331
  2. package/dist/index.d.ts +10957 -1331
  3. package/dist/index.js +12364 -5144
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +9353 -2205
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +4 -3
  8. package/src/components/AccountReviewsTab.tsx +97 -0
  9. package/src/components/CouponCodeInput.tsx +190 -0
  10. package/src/components/Header.tsx +5 -1
  11. package/src/components/Notification.tsx +1 -1
  12. package/src/components/NotificationBell.tsx +33 -0
  13. package/src/components/NotificationCard.tsx +211 -0
  14. package/src/components/NotificationDrawer.tsx +195 -0
  15. package/src/components/OrderCard.tsx +164 -99
  16. package/src/components/ProductReviewsSection.tsx +30 -0
  17. package/src/components/RatingDistribution.tsx +86 -0
  18. package/src/components/ReviewCard.tsx +59 -0
  19. package/src/components/ReviewForm.tsx +207 -0
  20. package/src/components/ReviewPromptBanner.tsx +98 -0
  21. package/src/components/ReviewsList.tsx +151 -0
  22. package/src/components/StarRating.tsx +98 -0
  23. package/src/hooks/useDiscounts.ts +7 -0
  24. package/src/hooks/useOrders.ts +15 -0
  25. package/src/hooks/useReviews.ts +230 -0
  26. package/src/hooks/useStoreCapabilities.ts +87 -0
  27. package/src/index.ts +29 -0
  28. package/src/lib/Apis/apis/auth-api.ts +19 -7
  29. package/src/lib/Apis/apis/categories-api.ts +97 -0
  30. package/src/lib/Apis/apis/discounts-api.ts +23 -72
  31. package/src/lib/Apis/apis/notifications-api.ts +196 -231
  32. package/src/lib/Apis/apis/products-api.ts +181 -0
  33. package/src/lib/Apis/apis/review-api.ts +283 -4
  34. package/src/lib/Apis/apis/shipping-api.ts +105 -0
  35. package/src/lib/Apis/apis/stores-api.ts +536 -0
  36. package/src/lib/Apis/apis/sub-categories-api.ts +97 -0
  37. package/src/lib/Apis/apis/users-api.ts +8 -8
  38. package/src/lib/Apis/models/address-created-request.ts +0 -12
  39. package/src/lib/Apis/models/address.ts +0 -12
  40. package/src/lib/Apis/models/api-key-info-dto.ts +49 -0
  41. package/src/lib/Apis/models/bulk-channel-toggle-dto.ts +52 -0
  42. package/src/lib/Apis/models/cart-body-populated.ts +3 -3
  43. package/src/lib/Apis/models/channel-settings-dto.ts +39 -0
  44. package/src/lib/Apis/models/{discount-paginated-response.ts → completed-order-dto.ts} +21 -16
  45. package/src/lib/Apis/models/create-address-dto.ts +0 -12
  46. package/src/lib/Apis/models/create-discount-dto.ts +31 -100
  47. package/src/lib/Apis/models/create-review-dto.ts +4 -4
  48. package/src/lib/Apis/models/create-shippo-account-dto.ts +45 -0
  49. package/src/lib/Apis/models/create-store-address-dto.ts +0 -12
  50. package/src/lib/Apis/models/create-store-dto-settings.ts +51 -0
  51. package/src/lib/Apis/models/create-store-dto.ts +13 -0
  52. package/src/lib/Apis/models/create-variant-dto.ts +0 -6
  53. package/src/lib/Apis/models/discount.ts +37 -106
  54. package/src/lib/Apis/models/discounts-insights-dto.ts +12 -0
  55. package/src/lib/Apis/models/index.ts +24 -7
  56. package/src/lib/Apis/models/{manual-discount.ts → manual-discount-dto.ts} +10 -10
  57. package/src/lib/Apis/models/manual-order-dto.ts +3 -3
  58. package/src/lib/Apis/models/populated-discount.ts +41 -109
  59. package/src/lib/Apis/models/preference-update-item.ts +59 -0
  60. package/src/lib/Apis/models/product-light-dto.ts +40 -0
  61. package/src/lib/Apis/models/product-variant.ts +0 -6
  62. package/src/lib/Apis/models/reorder-categories-dto.ts +27 -0
  63. package/src/lib/Apis/models/reorder-products-dto.ts +49 -0
  64. package/src/lib/Apis/models/{check-notifications-response-dto.ts → reorder-products-success-response-dto.ts} +7 -7
  65. package/src/lib/Apis/models/reorder-subcategories-dto.ts +33 -0
  66. package/src/lib/Apis/models/reorder-success-response-dto.ts +33 -0
  67. package/src/lib/Apis/models/review-status-dto.ts +34 -0
  68. package/src/lib/Apis/models/review.ts +9 -3
  69. package/src/lib/Apis/models/reviewable-order-dto.ts +58 -0
  70. package/src/lib/Apis/models/reviewable-product-dto.ts +81 -0
  71. package/src/lib/Apis/models/shipment-with-order.ts +18 -0
  72. package/src/lib/Apis/models/shipment.ts +18 -0
  73. package/src/lib/Apis/models/shippo-account-response-dto.ts +51 -0
  74. package/src/lib/Apis/models/store-api-keys-response-dto.ts +34 -0
  75. package/src/lib/Apis/models/store-capabilities-dto.ts +63 -0
  76. package/src/lib/Apis/models/store-entity.ts +13 -0
  77. package/src/lib/Apis/models/store.ts +13 -0
  78. package/src/lib/Apis/models/update-address-dto.ts +0 -12
  79. package/src/lib/Apis/models/update-api-keys-dto.ts +39 -0
  80. package/src/lib/Apis/models/update-discount-dto.ts +31 -100
  81. package/src/lib/Apis/models/update-manual-shipment-status-dto.ts +47 -0
  82. package/src/lib/Apis/models/update-notification-settings-dto.ts +28 -0
  83. package/src/lib/Apis/models/update-review-dto.ts +4 -4
  84. package/src/lib/Apis/models/update-store-dto.ts +13 -0
  85. package/src/lib/Apis/models/update-variant-dto.ts +0 -6
  86. package/src/lib/Apis/models/{pick-type-class.ts → variant-light-dto.ts} +20 -14
  87. package/src/lib/utils/discount.ts +155 -0
  88. package/src/lib/validations/discount.ts +11 -0
  89. package/src/providers/CartProvider.tsx +2 -2
  90. package/src/providers/DiscountProvider.tsx +97 -0
  91. package/src/providers/EcommerceProvider.tsx +13 -5
  92. package/src/providers/NotificationCenterProvider.tsx +436 -0
  93. package/src/screens/CartScreen.tsx +1 -1
  94. package/src/screens/CheckoutScreen.tsx +402 -290
  95. package/src/screens/NotificationSettingsScreen.tsx +413 -0
  96. package/src/screens/OrderDetailScreen.tsx +283 -0
  97. package/src/screens/OrderReviewsScreen.tsx +308 -0
  98. package/src/screens/OrdersScreen.tsx +31 -7
  99. package/src/screens/ProductDetailScreen.tsx +24 -11
  100. package/src/screens/ProfileScreen.tsx +5 -0
  101. package/src/screens/ResetPasswordScreen.tsx +10 -4
  102. package/src/lib/Apis/models/create-notification-dto.ts +0 -75
  103. package/src/lib/Apis/models/notification.ts +0 -93
  104. package/src/lib/Apis/models/single-notification-dto.ts +0 -99
@@ -20,6 +20,8 @@ import { BulkMoveSubcategoriesDto } from '../models';
20
20
  import { BulkUnassignSubcategoriesDto } from '../models';
21
21
  import { CreateSubCategoryDto } from '../models';
22
22
  import { MoveSubcategoryDto } from '../models';
23
+ import { ReorderSubcategoriesDto } from '../models';
24
+ import { ReorderSuccessResponseDto } from '../models';
23
25
  import { SubCategory } from '../models';
24
26
  import { UpdateSubCategoryDto } from '../models';
25
27
  /**
@@ -625,6 +627,66 @@ export const SubCategoriesApiAxiosParamCreator = function (configuration?: Confi
625
627
  options: localVarRequestOptions,
626
628
  };
627
629
  },
630
+ /**
631
+ *
632
+ * @summary Reorder subcategories within a parent category
633
+ * @param {ReorderSubcategoriesDto} body
634
+ * @param {*} [options] Override http request option.
635
+ * @throws {RequiredError}
636
+ */
637
+ reorderSubcategories: async (body: ReorderSubcategoriesDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
638
+ // verify required parameter 'body' is not null or undefined
639
+ if (body === null || body === undefined) {
640
+ throw new RequiredError('body','Required parameter body was null or undefined when calling reorderSubcategories.');
641
+ }
642
+ const localVarPath = `/sub-categories/reorder`;
643
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
644
+ const localVarUrlObj = new URL(localVarPath, 'https://example.com');
645
+ let baseOptions;
646
+ if (configuration) {
647
+ baseOptions = configuration.baseOptions;
648
+ }
649
+ const localVarRequestOptions :AxiosRequestConfig = { method: 'PATCH', ...baseOptions, ...options};
650
+ const localVarHeaderParameter = {} as any;
651
+ const localVarQueryParameter = {} as any;
652
+
653
+ // authentication bearer required
654
+ // http bearer authentication required
655
+ if (configuration && configuration.accessToken) {
656
+ const accessToken = typeof configuration.accessToken === 'function'
657
+ ? await configuration.accessToken()
658
+ : await configuration.accessToken;
659
+ localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
660
+ }
661
+
662
+ // authentication x-store-key required
663
+ if (configuration && configuration.apiKey) {
664
+ const localVarApiKeyValue = typeof configuration.apiKey === 'function'
665
+ ? await configuration.apiKey("x-store-key")
666
+ : await configuration.apiKey;
667
+ localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
668
+ }
669
+
670
+ localVarHeaderParameter['Content-Type'] = 'application/json';
671
+
672
+ const query = new URLSearchParams(localVarUrlObj.search);
673
+ for (const key in localVarQueryParameter) {
674
+ query.set(key, localVarQueryParameter[key]);
675
+ }
676
+ for (const key in options.params) {
677
+ query.set(key, options.params[key]);
678
+ }
679
+ localVarUrlObj.search = (new URLSearchParams(query)).toString();
680
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
681
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
682
+ const needsSerialization = (typeof body !== "string") || (localVarRequestOptions.headers ||= {})['Content-Type'] === 'application/json';
683
+ localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
684
+
685
+ return {
686
+ url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
687
+ options: localVarRequestOptions,
688
+ };
689
+ },
628
690
  /**
629
691
  *
630
692
  * @summary Unassign a subcategory from its parent category
@@ -899,6 +961,20 @@ export const SubCategoriesApiFp = function(configuration?: Configuration) {
899
961
  return axios.request(axiosRequestArgs);
900
962
  };
901
963
  },
964
+ /**
965
+ *
966
+ * @summary Reorder subcategories within a parent category
967
+ * @param {ReorderSubcategoriesDto} body
968
+ * @param {*} [options] Override http request option.
969
+ * @throws {RequiredError}
970
+ */
971
+ async reorderSubcategories(body: ReorderSubcategoriesDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<ReorderSuccessResponseDto>>> {
972
+ const localVarAxiosArgs = await SubCategoriesApiAxiosParamCreator(configuration).reorderSubcategories(body, options);
973
+ return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
974
+ const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
975
+ return axios.request(axiosRequestArgs);
976
+ };
977
+ },
902
978
  /**
903
979
  *
904
980
  * @summary Unassign a subcategory from its parent category
@@ -1039,6 +1115,16 @@ export const SubCategoriesApiFactory = function (configuration?: Configuration,
1039
1115
  async moveSubcategory(body: MoveSubcategoryDto, subcategoryId: string, options?: AxiosRequestConfig): Promise<AxiosResponse<SubCategory>> {
1040
1116
  return SubCategoriesApiFp(configuration).moveSubcategory(body, subcategoryId, options).then((request) => request(axios, basePath));
1041
1117
  },
1118
+ /**
1119
+ *
1120
+ * @summary Reorder subcategories within a parent category
1121
+ * @param {ReorderSubcategoriesDto} body
1122
+ * @param {*} [options] Override http request option.
1123
+ * @throws {RequiredError}
1124
+ */
1125
+ async reorderSubcategories(body: ReorderSubcategoriesDto, options?: AxiosRequestConfig): Promise<AxiosResponse<ReorderSuccessResponseDto>> {
1126
+ return SubCategoriesApiFp(configuration).reorderSubcategories(body, options).then((request) => request(axios, basePath));
1127
+ },
1042
1128
  /**
1043
1129
  *
1044
1130
  * @summary Unassign a subcategory from its parent category
@@ -1182,6 +1268,17 @@ export class SubCategoriesApi extends BaseAPI {
1182
1268
  public async moveSubcategory(body: MoveSubcategoryDto, subcategoryId: string, options?: AxiosRequestConfig) : Promise<AxiosResponse<SubCategory>> {
1183
1269
  return SubCategoriesApiFp(this.configuration).moveSubcategory(body, subcategoryId, options).then((request) => request(this.axios, this.basePath));
1184
1270
  }
1271
+ /**
1272
+ *
1273
+ * @summary Reorder subcategories within a parent category
1274
+ * @param {ReorderSubcategoriesDto} body
1275
+ * @param {*} [options] Override http request option.
1276
+ * @throws {RequiredError}
1277
+ * @memberof SubCategoriesApi
1278
+ */
1279
+ public async reorderSubcategories(body: ReorderSubcategoriesDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<ReorderSuccessResponseDto>> {
1280
+ return SubCategoriesApiFp(this.configuration).reorderSubcategories(body, options).then((request) => request(this.axios, this.basePath));
1281
+ }
1185
1282
  /**
1186
1283
  *
1187
1284
  * @summary Unassign a subcategory from its parent category
@@ -217,7 +217,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
217
217
  },
218
218
  /**
219
219
  *
220
- * @summary Deletes a single user
220
+ * @summary Deletes my profile
221
221
  * @param {*} [options] Override http request option.
222
222
  * @throws {RequiredError}
223
223
  */
@@ -268,7 +268,7 @@ export const UsersApiAxiosParamCreator = function (configuration?: Configuration
268
268
  },
269
269
  /**
270
270
  *
271
- * @summary Deletes a single user
271
+ * @summary Deletes a single user by ID (Admin only)
272
272
  * @param {string} id
273
273
  * @param {*} [options] Override http request option.
274
274
  * @throws {RequiredError}
@@ -921,7 +921,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
921
921
  },
922
922
  /**
923
923
  *
924
- * @summary Deletes a single user
924
+ * @summary Deletes my profile
925
925
  * @param {*} [options] Override http request option.
926
926
  * @throws {RequiredError}
927
927
  */
@@ -934,7 +934,7 @@ export const UsersApiFp = function(configuration?: Configuration) {
934
934
  },
935
935
  /**
936
936
  *
937
- * @summary Deletes a single user
937
+ * @summary Deletes a single user by ID (Admin only)
938
938
  * @param {string} id
939
939
  * @param {*} [options] Override http request option.
940
940
  * @throws {RequiredError}
@@ -1119,7 +1119,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
1119
1119
  },
1120
1120
  /**
1121
1121
  *
1122
- * @summary Deletes a single user
1122
+ * @summary Deletes my profile
1123
1123
  * @param {*} [options] Override http request option.
1124
1124
  * @throws {RequiredError}
1125
1125
  */
@@ -1128,7 +1128,7 @@ export const UsersApiFactory = function (configuration?: Configuration, basePath
1128
1128
  },
1129
1129
  /**
1130
1130
  *
1131
- * @summary Deletes a single user
1131
+ * @summary Deletes a single user by ID (Admin only)
1132
1132
  * @param {string} id
1133
1133
  * @param {*} [options] Override http request option.
1134
1134
  * @throws {RequiredError}
@@ -1277,7 +1277,7 @@ export class UsersApi extends BaseAPI {
1277
1277
  }
1278
1278
  /**
1279
1279
  *
1280
- * @summary Deletes a single user
1280
+ * @summary Deletes my profile
1281
1281
  * @param {*} [options] Override http request option.
1282
1282
  * @throws {RequiredError}
1283
1283
  * @memberof UsersApi
@@ -1287,7 +1287,7 @@ export class UsersApi extends BaseAPI {
1287
1287
  }
1288
1288
  /**
1289
1289
  *
1290
- * @summary Deletes a single user
1290
+ * @summary Deletes a single user by ID (Admin only)
1291
1291
  * @param {string} id
1292
1292
  * @param {*} [options] Override http request option.
1293
1293
  * @throws {RequiredError}
@@ -108,18 +108,6 @@ export interface AddressCreatedRequest {
108
108
  * @memberof AddressCreatedRequest
109
109
  */
110
110
  addressType?: AddressCreatedRequestAddressTypeEnum;
111
- /**
112
- *
113
- * @type {any}
114
- * @memberof AddressCreatedRequest
115
- */
116
- latitude: any;
117
- /**
118
- *
119
- * @type {any}
120
- * @memberof AddressCreatedRequest
121
- */
122
- longitude: any;
123
111
  }
124
112
 
125
113
  /**
@@ -132,18 +132,6 @@ export interface Address {
132
132
  * @memberof Address
133
133
  */
134
134
  isResidential: boolean;
135
- /**
136
- *
137
- * @type {number}
138
- * @memberof Address
139
- */
140
- latitude: number;
141
- /**
142
- *
143
- * @type {number}
144
- * @memberof Address
145
- */
146
- longitude: number;
147
135
  /**
148
136
  *
149
137
  * @type {string}
@@ -0,0 +1,49 @@
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 ApiKeyInfoDto
18
+ */
19
+ export interface ApiKeyInfoDto {
20
+ _id?: string;
21
+ /**
22
+ *
23
+ * @type {string}
24
+ * @memberof ApiKeyInfoDto
25
+ */
26
+ keyType: ApiKeyInfoDtoKeyTypeEnum;
27
+ /**
28
+ * Whether the key is configured
29
+ * @type {boolean}
30
+ * @memberof ApiKeyInfoDto
31
+ */
32
+ isConfigured: boolean;
33
+ /**
34
+ * Masked key showing first 4 and last 4 characters
35
+ * @type {string}
36
+ * @memberof ApiKeyInfoDto
37
+ */
38
+ maskedKey?: string;
39
+ }
40
+
41
+ /**
42
+ * @export
43
+ * @enum {string}
44
+ */
45
+ export enum ApiKeyInfoDtoKeyTypeEnum {
46
+ Stripe = 'stripe',
47
+ Shippo = 'shippo'
48
+ }
49
+
@@ -0,0 +1,52 @@
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 BulkChannelToggleDto
18
+ */
19
+ export interface BulkChannelToggleDto {
20
+ _id?: string;
21
+ /**
22
+ * Channel to toggle: email, push, or inApp
23
+ * @type {string}
24
+ * @memberof BulkChannelToggleDto
25
+ */
26
+ channel: string;
27
+ /**
28
+ * Enable or disable this channel for all notification types
29
+ * @type {boolean}
30
+ * @memberof BulkChannelToggleDto
31
+ */
32
+ enabled: boolean;
33
+ /**
34
+ * Optional category filter to only toggle specific notification categories
35
+ * @type {string}
36
+ * @memberof BulkChannelToggleDto
37
+ */
38
+ category?: BulkChannelToggleDtoCategoryEnum;
39
+ }
40
+
41
+ /**
42
+ * @export
43
+ * @enum {string}
44
+ */
45
+ export enum BulkChannelToggleDtoCategoryEnum {
46
+ Transactional = 'transactional',
47
+ Marketing = 'marketing',
48
+ Security = 'security',
49
+ Operational = 'operational',
50
+ Financial = 'financial'
51
+ }
52
+
@@ -12,7 +12,7 @@
12
12
  * Do not edit the class manually.
13
13
  */
14
14
  import { CartItemPopulated } from './cart-item-populated';
15
- import { ManualDiscount } from './manual-discount';
15
+ import { ManualDiscountDto } from './manual-discount-dto';
16
16
  /**
17
17
  *
18
18
  * @export
@@ -34,10 +34,10 @@ export interface CartBodyPopulated {
34
34
  discountsApplied: Array<string>;
35
35
  /**
36
36
  *
37
- * @type {ManualDiscount}
37
+ * @type {ManualDiscountDto}
38
38
  * @memberof CartBodyPopulated
39
39
  */
40
- manualDiscount: ManualDiscount;
40
+ manualDiscount: ManualDiscountDto;
41
41
  /**
42
42
  *
43
43
  * @type {Array<string>}
@@ -0,0 +1,39 @@
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 ChannelSettingsDto
18
+ */
19
+ export interface ChannelSettingsDto {
20
+ _id?: string;
21
+ /**
22
+ * Enable email notifications for this type
23
+ * @type {boolean}
24
+ * @memberof ChannelSettingsDto
25
+ */
26
+ email?: boolean;
27
+ /**
28
+ * Enable push notifications for this type
29
+ * @type {boolean}
30
+ * @memberof ChannelSettingsDto
31
+ */
32
+ push?: boolean;
33
+ /**
34
+ * Enable in-app notifications for this type
35
+ * @type {boolean}
36
+ * @memberof ChannelSettingsDto
37
+ */
38
+ inApp?: boolean;
39
+ }
@@ -11,42 +11,47 @@
11
11
  * https://github.com/swagger-api/swagger-codegen.git
12
12
  * Do not edit the class manually.
13
13
  */
14
- import { PopulatedDiscount } from './populated-discount';
15
14
  /**
16
15
  *
17
16
  * @export
18
- * @interface DiscountPaginatedResponse
17
+ * @interface CompletedOrderDto
19
18
  */
20
- export interface DiscountPaginatedResponse {
19
+ export interface CompletedOrderDto {
21
20
  _id?: string;
22
21
  /**
23
22
  *
24
- * @type {Array<PopulatedDiscount>}
25
- * @memberof DiscountPaginatedResponse
23
+ * @type {string}
24
+ * @memberof CompletedOrderDto
26
25
  */
27
- data: Array<PopulatedDiscount>;
26
+ orderId: string;
28
27
  /**
29
28
  *
30
- * @type {number}
31
- * @memberof DiscountPaginatedResponse
29
+ * @type {string}
30
+ * @memberof CompletedOrderDto
32
31
  */
33
- total: number;
32
+ orderStatus: string;
34
33
  /**
35
34
  *
36
- * @type {number}
37
- * @memberof DiscountPaginatedResponse
35
+ * @type {Date}
36
+ * @memberof CompletedOrderDto
38
37
  */
39
- totalPages: number;
38
+ createdAt: Date;
40
39
  /**
41
40
  *
42
41
  * @type {number}
43
- * @memberof DiscountPaginatedResponse
42
+ * @memberof CompletedOrderDto
44
43
  */
45
- page: number;
44
+ totalItems: number;
46
45
  /**
47
46
  *
48
47
  * @type {number}
49
- * @memberof DiscountPaginatedResponse
48
+ * @memberof CompletedOrderDto
49
+ */
50
+ reviewedItems: number;
51
+ /**
52
+ *
53
+ * @type {boolean}
54
+ * @memberof CompletedOrderDto
50
55
  */
51
- limit: number;
56
+ hasUnreviewedItems: boolean;
52
57
  }
@@ -102,18 +102,6 @@ export interface CreateAddressDto {
102
102
  * @memberof CreateAddressDto
103
103
  */
104
104
  isResidential?: boolean;
105
- /**
106
- *
107
- * @type {number}
108
- * @memberof CreateAddressDto
109
- */
110
- latitude?: number;
111
- /**
112
- *
113
- * @type {number}
114
- * @memberof CreateAddressDto
115
- */
116
- longitude?: number;
117
105
  /**
118
106
  *
119
107
  * @type {string}