hey-pharmacist-ecommerce 1.1.24 → 1.1.26

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 (62) hide show
  1. package/dist/index.d.mts +1 -206
  2. package/dist/index.d.ts +1 -206
  3. package/dist/index.js +48 -234
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.mjs +48 -234
  6. package/dist/index.mjs.map +1 -1
  7. package/package.json +1 -1
  8. package/src/components/CartItem.tsx +0 -10
  9. package/src/components/ProductCard.tsx +4 -5
  10. package/src/lib/Apis/api.ts +0 -8
  11. package/src/lib/Apis/apis/product-variants-api.ts +0 -96
  12. package/src/lib/Apis/apis/products-api.ts +7 -15
  13. package/src/lib/Apis/apis/shipping-api.ts +12 -214
  14. package/src/lib/Apis/models/category-filters.ts +0 -6
  15. package/src/lib/Apis/models/create-variant-dto.ts +0 -6
  16. package/src/lib/Apis/models/discounts-insights-dto.ts +0 -6
  17. package/src/lib/Apis/models/index.ts +0 -29
  18. package/src/lib/Apis/models/orders-insights-dto.ts +0 -6
  19. package/src/lib/Apis/models/payment.ts +0 -7
  20. package/src/lib/Apis/models/product-variant.ts +0 -6
  21. package/src/lib/Apis/models/products-insights-dto.ts +0 -6
  22. package/src/lib/Apis/models/rate-dto.ts +0 -6
  23. package/src/lib/Apis/models/update-product-variant-dto.ts +0 -6
  24. package/src/providers/WishlistProvider.tsx +2 -3
  25. package/src/screens/CheckoutScreen.tsx +26 -74
  26. package/src/lib/Apis/apis/chats-api.ts +0 -1101
  27. package/src/lib/Apis/apis/drafts-api.ts +0 -448
  28. package/src/lib/Apis/apis/open-aiapi.ts +0 -513
  29. package/src/lib/Apis/apis/payment-methods-api.ts +0 -411
  30. package/src/lib/Apis/apis/product-attributes-api.ts +0 -538
  31. package/src/lib/Apis/apis/product-favorite-list-api.ts +0 -321
  32. package/src/lib/Apis/apis/roles-api.ts +0 -614
  33. package/src/lib/Apis/apis/statistics-api.ts +0 -234
  34. package/src/lib/Apis/models/add-message-dto.ts +0 -56
  35. package/src/lib/Apis/models/chat.ts +0 -33
  36. package/src/lib/Apis/models/create-chat-dto.ts +0 -39
  37. package/src/lib/Apis/models/create-draft-dto.ts +0 -67
  38. package/src/lib/Apis/models/create-product-attribute-dto.ts +0 -33
  39. package/src/lib/Apis/models/create-role-dto.ts +0 -57
  40. package/src/lib/Apis/models/create-zone-dto.ts +0 -82
  41. package/src/lib/Apis/models/default-payment-method-request-dto.ts +0 -27
  42. package/src/lib/Apis/models/draft.ts +0 -79
  43. package/src/lib/Apis/models/google-analytics-request-dto.ts +0 -55
  44. package/src/lib/Apis/models/google-analytics-response-dto.ts +0 -39
  45. package/src/lib/Apis/models/my-favorite-list-dto.ts +0 -52
  46. package/src/lib/Apis/models/open-api.ts +0 -33
  47. package/src/lib/Apis/models/payment-method-data.ts +0 -34
  48. package/src/lib/Apis/models/payment-method.ts +0 -51
  49. package/src/lib/Apis/models/populated-chat-dto.ts +0 -95
  50. package/src/lib/Apis/models/product-attribute.ts +0 -57
  51. package/src/lib/Apis/models/product.ts +0 -142
  52. package/src/lib/Apis/models/role.ts +0 -69
  53. package/src/lib/Apis/models/single-message-populated.ts +0 -59
  54. package/src/lib/Apis/models/single-suggest-attribute.ts +0 -33
  55. package/src/lib/Apis/models/statistic-dto.ts +0 -171
  56. package/src/lib/Apis/models/suggest-attributes.ts +0 -28
  57. package/src/lib/Apis/models/update-product-attribute-dto.ts +0 -33
  58. package/src/lib/Apis/models/update-role-dto.ts +0 -57
  59. package/src/lib/Apis/models/update-zone-dto.ts +0 -82
  60. package/src/lib/Apis/models/user.ts +0 -232
  61. package/src/lib/Apis/models/zone-single-size.ts +0 -51
  62. package/src/lib/Apis/models/zone.ts +0 -106
@@ -1,79 +0,0 @@
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 Draft
18
- */
19
- export interface Draft {
20
- _id?: string;
21
- /**
22
- *
23
- * @type {Date}
24
- * @memberof Draft
25
- */
26
- createdAt: Date;
27
- /**
28
- *
29
- * @type {Date}
30
- * @memberof Draft
31
- */
32
- updatedAt: Date;
33
- /**
34
- *
35
- * @type {string}
36
- * @memberof Draft
37
- */
38
- userId: string;
39
- /**
40
- *
41
- * @type {string}
42
- * @memberof Draft
43
- */
44
- storeId: string;
45
- /**
46
- *
47
- * @type {boolean}
48
- * @memberof Draft
49
- */
50
- isAdminDraft: boolean;
51
- /**
52
- *
53
- * @type {string}
54
- * @memberof Draft
55
- */
56
- category: DraftCategoryEnum;
57
- /**
58
- *
59
- * @type {any}
60
- * @memberof Draft
61
- */
62
- data: any;
63
- }
64
-
65
- /**
66
- * @export
67
- * @enum {string}
68
- */
69
- export enum DraftCategoryEnum {
70
- PRODUCT = 'PRODUCT',
71
- ORDER = 'ORDER',
72
- USER = 'USER',
73
- STORE = 'STORE',
74
- CATEGORY = 'CATEGORY',
75
- VARIANT = 'VARIANT',
76
- DISCOUNT = 'DISCOUNT',
77
- BUNDLE = 'BUNDLE'
78
- }
79
-
@@ -1,55 +0,0 @@
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 GoogleAnalyticsRequestDto
18
- */
19
- export interface GoogleAnalyticsRequestDto {
20
- _id?: string;
21
- /**
22
- *
23
- * @type {string}
24
- * @memberof GoogleAnalyticsRequestDto
25
- */
26
- startDate: string;
27
- /**
28
- *
29
- * @type {string}
30
- * @memberof GoogleAnalyticsRequestDto
31
- */
32
- endDate: string;
33
- /**
34
- *
35
- * @type {string}
36
- * @memberof GoogleAnalyticsRequestDto
37
- */
38
- dimension: GoogleAnalyticsRequestDtoDimensionEnum;
39
- }
40
-
41
- /**
42
- * @export
43
- * @enum {string}
44
- */
45
- export enum GoogleAnalyticsRequestDtoDimensionEnum {
46
- City = 'city',
47
- Country = 'country',
48
- DeviceCategory = 'deviceCategory',
49
- Browser = 'browser',
50
- PagePath = 'pagePath',
51
- Source = 'source',
52
- Medium = 'medium',
53
- UserType = 'userType'
54
- }
55
-
@@ -1,39 +0,0 @@
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 GoogleAnalyticsResponseDto
18
- */
19
- export interface GoogleAnalyticsResponseDto {
20
- _id?: string;
21
- /**
22
- *
23
- * @type {number}
24
- * @memberof GoogleAnalyticsResponseDto
25
- */
26
- activeUsers: number;
27
- /**
28
- *
29
- * @type {number}
30
- * @memberof GoogleAnalyticsResponseDto
31
- */
32
- totalUsers: number;
33
- /**
34
- *
35
- * @type {number}
36
- * @memberof GoogleAnalyticsResponseDto
37
- */
38
- transactions: number;
39
- }
@@ -1,52 +0,0 @@
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 { Product } from './product';
15
- /**
16
- *
17
- * @export
18
- * @interface MyFavoriteListDTO
19
- */
20
- export interface MyFavoriteListDTO {
21
- _id?: string;
22
- /**
23
- *
24
- * @type {string}
25
- * @memberof MyFavoriteListDTO
26
- */
27
- id: string;
28
- /**
29
- *
30
- * @type {Date}
31
- * @memberof MyFavoriteListDTO
32
- */
33
- createdAt: Date;
34
- /**
35
- *
36
- * @type {Date}
37
- * @memberof MyFavoriteListDTO
38
- */
39
- updatedAt: Date;
40
- /**
41
- *
42
- * @type {string}
43
- * @memberof MyFavoriteListDTO
44
- */
45
- user: string;
46
- /**
47
- *
48
- * @type {Array<Product>}
49
- * @memberof MyFavoriteListDTO
50
- */
51
- items: Array<Product>;
52
- }
@@ -1,33 +0,0 @@
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 OpenApi
18
- */
19
- export interface OpenApi {
20
- _id?: string;
21
- /**
22
- *
23
- * @type {string}
24
- * @memberof OpenApi
25
- */
26
- text: string;
27
- /**
28
- *
29
- * @type {string}
30
- * @memberof OpenApi
31
- */
32
- title: string;
33
- }
@@ -1,34 +0,0 @@
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 { PaymentMethod } from './payment-method';
15
- /**
16
- *
17
- * @export
18
- * @interface PaymentMethodData
19
- */
20
- export interface PaymentMethodData {
21
- _id?: string;
22
- /**
23
- *
24
- * @type {Array<PaymentMethod>}
25
- * @memberof PaymentMethodData
26
- */
27
- paymentMethods: Array<PaymentMethod>;
28
- /**
29
- *
30
- * @type {string}
31
- * @memberof PaymentMethodData
32
- */
33
- defaultPaymentMethod: string;
34
- }
@@ -1,51 +0,0 @@
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 PaymentMethod
18
- */
19
- export interface PaymentMethod {
20
- _id?: string;
21
- /**
22
- *
23
- * @type {string}
24
- * @memberof PaymentMethod
25
- */
26
- id: string;
27
- /**
28
- *
29
- * @type {string}
30
- * @memberof PaymentMethod
31
- */
32
- brand: string;
33
- /**
34
- *
35
- * @type {string}
36
- * @memberof PaymentMethod
37
- */
38
- last4: string;
39
- /**
40
- *
41
- * @type {number}
42
- * @memberof PaymentMethod
43
- */
44
- expMonth: number;
45
- /**
46
- *
47
- * @type {number}
48
- * @memberof PaymentMethod
49
- */
50
- expYear: number;
51
- }
@@ -1,95 +0,0 @@
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 { SingleMessagePopulated } from './single-message-populated';
15
- import { User } from './user';
16
- /**
17
- *
18
- * @export
19
- * @interface PopulatedChatDto
20
- */
21
- export interface PopulatedChatDto {
22
- _id?: string;
23
- /**
24
- *
25
- * @type {string}
26
- * @memberof PopulatedChatDto
27
- */
28
- id: string;
29
- /**
30
- *
31
- * @type {Array<User>}
32
- * @memberof PopulatedChatDto
33
- */
34
- participants: Array<User>;
35
- /**
36
- *
37
- * @type {Array<SingleMessagePopulated>}
38
- * @memberof PopulatedChatDto
39
- */
40
- conversation: Array<SingleMessagePopulated>;
41
- /**
42
- *
43
- * @type {User}
44
- * @memberof PopulatedChatDto
45
- */
46
- createdBy: User;
47
- /**
48
- *
49
- * @type {boolean}
50
- * @memberof PopulatedChatDto
51
- */
52
- isArchived: boolean;
53
- /**
54
- *
55
- * @type {boolean}
56
- * @memberof PopulatedChatDto
57
- */
58
- isClosed: boolean;
59
- /**
60
- *
61
- * @type {boolean}
62
- * @memberof PopulatedChatDto
63
- */
64
- isDeleted: boolean;
65
- /**
66
- *
67
- * @type {Date}
68
- * @memberof PopulatedChatDto
69
- */
70
- createdAt: Date;
71
- /**
72
- *
73
- * @type {Date}
74
- * @memberof PopulatedChatDto
75
- */
76
- updatedAt: Date;
77
- /**
78
- *
79
- * @type {SingleMessagePopulated}
80
- * @memberof PopulatedChatDto
81
- */
82
- lastMessage: SingleMessagePopulated;
83
- /**
84
- *
85
- * @type {number}
86
- * @memberof PopulatedChatDto
87
- */
88
- unreadMessages: number;
89
- /**
90
- *
91
- * @type {boolean}
92
- * @memberof PopulatedChatDto
93
- */
94
- hasUnreadMessages: boolean;
95
- }
@@ -1,57 +0,0 @@
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 ProductAttribute
18
- */
19
- export interface ProductAttribute {
20
- _id?: string;
21
- /**
22
- *
23
- * @type {Date}
24
- * @memberof ProductAttribute
25
- */
26
- createdAt: Date;
27
- /**
28
- *
29
- * @type {Date}
30
- * @memberof ProductAttribute
31
- */
32
- updatedAt: Date;
33
- /**
34
- *
35
- * @type {string}
36
- * @memberof ProductAttribute
37
- */
38
- id: string;
39
- /**
40
- *
41
- * @type {string}
42
- * @memberof ProductAttribute
43
- */
44
- storeId: string;
45
- /**
46
- *
47
- * @type {string}
48
- * @memberof ProductAttribute
49
- */
50
- name: string;
51
- /**
52
- *
53
- * @type {Array<string>}
54
- * @memberof ProductAttribute
55
- */
56
- possibleValues: Array<string>;
57
- }
@@ -1,142 +0,0 @@
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 { SingleProductMedia } from './single-product-media';
15
- /**
16
- *
17
- * @export
18
- * @interface Product
19
- */
20
- export interface Product {
21
- _id?: string;
22
- /**
23
- *
24
- * @type {Date}
25
- * @memberof Product
26
- */
27
- createdAt: Date;
28
- /**
29
- *
30
- * @type {Date}
31
- * @memberof Product
32
- */
33
- updatedAt: Date;
34
- /**
35
- *
36
- * @type {string}
37
- * @memberof Product
38
- */
39
- id: string;
40
- /**
41
- *
42
- * @type {Array<string>}
43
- * @memberof Product
44
- */
45
- parentSubCategories: Array<string>;
46
- /**
47
- *
48
- * @type {Array<string>}
49
- * @memberof Product
50
- */
51
- parentCategories: Array<string>;
52
- /**
53
- *
54
- * @type {Array<string>}
55
- * @memberof Product
56
- */
57
- productVariants: Array<string>;
58
- /**
59
- *
60
- * @type {string}
61
- * @memberof Product
62
- */
63
- storeId: string;
64
- /**
65
- *
66
- * @type {string}
67
- * @memberof Product
68
- */
69
- name: string;
70
- /**
71
- *
72
- * @type {string}
73
- * @memberof Product
74
- */
75
- description: string;
76
- /**
77
- *
78
- * @type {Array<SingleProductMedia>}
79
- * @memberof Product
80
- */
81
- productMedia: Array<SingleProductMedia>;
82
- /**
83
- *
84
- * @type {Array<string>}
85
- * @memberof Product
86
- */
87
- tags: Array<string>;
88
- /**
89
- *
90
- * @type {boolean}
91
- * @memberof Product
92
- */
93
- isActive: boolean;
94
- /**
95
- *
96
- * @type {string}
97
- * @memberof Product
98
- */
99
- brand: string;
100
- /**
101
- *
102
- * @type {Array<string>}
103
- * @memberof Product
104
- */
105
- embedding: Array<string>;
106
- /**
107
- *
108
- * @type {string}
109
- * @memberof Product
110
- */
111
- sku: string;
112
- /**
113
- *
114
- * @type {Array<string>}
115
- * @memberof Product
116
- */
117
- frequentlyBoughtProducts: Array<string>;
118
- /**
119
- *
120
- * @type {boolean}
121
- * @memberof Product
122
- */
123
- showStock: boolean;
124
- /**
125
- *
126
- * @type {Array<string>}
127
- * @memberof Product
128
- */
129
- reviews: Array<string>;
130
- /**
131
- *
132
- * @type {string}
133
- * @memberof Product
134
- */
135
- upc: string;
136
- /**
137
- *
138
- * @type {boolean}
139
- * @memberof Product
140
- */
141
- homeScreenFeatured: boolean;
142
- }
@@ -1,69 +0,0 @@
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 Role
18
- */
19
- export interface Role {
20
- _id?: string;
21
- /**
22
- *
23
- * @type {Date}
24
- * @memberof Role
25
- */
26
- createdAt: Date;
27
- /**
28
- *
29
- * @type {Date}
30
- * @memberof Role
31
- */
32
- updatedAt: Date;
33
- /**
34
- *
35
- * @type {string}
36
- * @memberof Role
37
- */
38
- id: string;
39
- /**
40
- *
41
- * @type {string}
42
- * @memberof Role
43
- */
44
- name: string;
45
- /**
46
- *
47
- * @type {string}
48
- * @memberof Role
49
- */
50
- storeId: string;
51
- /**
52
- *
53
- * @type {string}
54
- * @memberof Role
55
- */
56
- description: string;
57
- /**
58
- *
59
- * @type {boolean}
60
- * @memberof Role
61
- */
62
- canGetOrders: boolean;
63
- /**
64
- *
65
- * @type {boolean}
66
- * @memberof Role
67
- */
68
- canGetProducts: boolean;
69
- }