feeef 0.1.6 → 0.1.8

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.
@@ -1,6 +1,4 @@
1
- import { InferInput } from '@vinejs/vine/types';
2
1
  import { AxiosInstance } from 'axios';
3
- import { CreateOrderSchema, SendOrderSchema } from '../validators/order.js';
4
2
  import { ModelRepository } from './repository.js';
5
3
  import { OrderEntity } from '../../core/entities/order.js';
6
4
  /**
@@ -13,7 +11,7 @@ export interface OrderModelTrackOptions {
13
11
  /**
14
12
  * Represents a repository for managing orders.
15
13
  */
16
- export declare class OrderRepository extends ModelRepository<OrderEntity, InferInput<typeof CreateOrderSchema>, InferInput<typeof CreateOrderSchema>> {
14
+ export declare class OrderRepository extends ModelRepository<OrderEntity, any, any> {
17
15
  /**
18
16
  * Constructs a new OrderRepository instance.
19
17
  * @param client - The AxiosInstance used for making HTTP requests.
@@ -24,7 +22,7 @@ export declare class OrderRepository extends ModelRepository<OrderEntity, InferI
24
22
  * @param data - The data representing the order to be sent.
25
23
  * @returns A Promise that resolves to the sent OrderEntity.
26
24
  */
27
- send(data: InferInput<typeof SendOrderSchema>): Promise<OrderEntity>;
25
+ send(data: any): Promise<OrderEntity>;
28
26
  /**
29
27
  * track the order by the order id
30
28
  * it will return the order status and history
@@ -1,12 +1,10 @@
1
- import { InferInput } from '@vinejs/vine/types';
2
1
  import { AxiosInstance } from 'axios';
3
- import { CreateProductSchema, UpdateProductSchema } from '../validators/product.js';
4
2
  import { ModelRepository } from './repository.js';
5
3
  import { ProductEntity } from '../../core/entities/product.js';
6
4
  /**
7
5
  * Represents a repository for managing products.
8
6
  */
9
- export declare class ProductRepository extends ModelRepository<ProductEntity, InferInput<typeof CreateProductSchema>, InferInput<typeof UpdateProductSchema>> {
7
+ export declare class ProductRepository extends ModelRepository<ProductEntity, any, any> {
10
8
  /**
11
9
  * Creates a new instance of the ProductRepository class.
12
10
  * @param client - The AxiosInstance used for making HTTP requests.
@@ -1,12 +1,10 @@
1
- import { InferInput } from '@vinejs/vine/types';
2
1
  import { AxiosInstance } from 'axios';
3
- import { CreateUserStoreSchema, UpdateUserStoreSchema } from '../validators/user_stores.js';
4
2
  import { ModelRepository, ModelCreateOptions } from './repository.js';
5
3
  import { StoreEntity } from '../../core/entities/store.js';
6
4
  /**
7
5
  * Repository for managing Store entities.
8
6
  */
9
- export declare class StoreRepository extends ModelRepository<StoreEntity, InferInput<typeof CreateUserStoreSchema>, InferInput<typeof UpdateUserStoreSchema>> {
7
+ export declare class StoreRepository extends ModelRepository<StoreEntity, any, any> {
10
8
  /**
11
9
  * Constructs a new StoreRepository instance.
12
10
  * @param client The AxiosInstance used for making HTTP requests.
@@ -17,5 +15,5 @@ export declare class StoreRepository extends ModelRepository<StoreEntity, InferI
17
15
  * @param options The options for creating the Store entity.
18
16
  * @returns A Promise that resolves to the created Store entity.
19
17
  */
20
- create(options: ModelCreateOptions<InferInput<typeof CreateUserStoreSchema>>): Promise<StoreEntity>;
18
+ create(options: ModelCreateOptions<any>): Promise<StoreEntity>;
21
19
  }
@@ -1,7 +1,4 @@
1
- import { InferInput } from '@vinejs/vine/types';
2
1
  import { AxiosInstance } from 'axios';
3
- import { SigninSchema, AuthUpdateUserSchema } from '../validators/auth.js';
4
- import { CreateUserSchema, UpdateUserSchema } from '../validators/users.js';
5
2
  import { ModelRepository } from './repository.js';
6
3
  import { AuthToken, UserEntity } from '../../core/entities/user.js';
7
4
  /**
@@ -15,7 +12,7 @@ export interface AuthResponse {
15
12
  * Represents a repository for managing user data.
16
13
  * Extends the ModelRepository class.
17
14
  */
18
- export declare class UserRepository extends ModelRepository<UserEntity, InferInput<typeof CreateUserSchema>, InferInput<typeof UpdateUserSchema>> {
15
+ export declare class UserRepository extends ModelRepository<UserEntity, any, any> {
19
16
  /**
20
17
  * Represents the authentication response.
21
18
  */
@@ -30,13 +27,13 @@ export declare class UserRepository extends ModelRepository<UserEntity, InferInp
30
27
  * @param credentials - The user credentials.
31
28
  * @returns A promise that resolves to the authentication response.
32
29
  */
33
- signin(credentials: InferInput<typeof SigninSchema>): Promise<AuthResponse>;
30
+ signin(credentials: any): Promise<AuthResponse>;
34
31
  /**
35
32
  * Signs up a new user with the provided credentials.
36
33
  * @param credentials - The user credentials.
37
34
  * @returns A promise that resolves to the authentication response.
38
35
  */
39
- signup(credentials: InferInput<typeof CreateUserSchema>): Promise<AuthResponse>;
36
+ signup(credentials: any): Promise<AuthResponse>;
40
37
  /**
41
38
  * Signs out the currently authenticated user.
42
39
  * @returns A promise that resolves when the user is signed out.
@@ -47,5 +44,5 @@ export declare class UserRepository extends ModelRepository<UserEntity, InferInp
47
44
  * @param data - The updated user data.
48
45
  * @returns A promise that resolves to the updated user entity.
49
46
  */
50
- updateMe(data: InferInput<typeof AuthUpdateUserSchema>): Promise<UserEntity>;
47
+ updateMe(data: any): Promise<UserEntity>;
51
48
  }
package/package.json CHANGED
@@ -1,10 +1,7 @@
1
1
  {
2
2
  "name": "feeef",
3
3
  "description": "feeef sdk for javascript",
4
- "version": "0.1.6",
5
- "engines": {
6
- "node": ">=18.16.0"
7
- },
4
+ "version": "0.1.8",
8
5
  "main": "build/index.js",
9
6
  "type": "module",
10
7
  "files": [
@@ -27,8 +24,7 @@
27
24
  "version": "npm run build",
28
25
  "prepublishOnly": "npm run build",
29
26
  "lint": "eslint . --ext=.ts",
30
- "format": "prettier --write .",
31
- "sync-labels": "github-label-sync --labels .github/labels.json vinejs/vine"
27
+ "format": "prettier --write ."
32
28
  },
33
29
  "devDependencies": {
34
30
  "@adonisjs/eslint-config": "^1.3.0",
@@ -59,7 +55,6 @@
59
55
  "@types/luxon": "^3.4.2"
60
56
  },
61
57
  "dependencies": {
62
- "@vinejs/vine": "^2.1.0",
63
58
  "axios": "^1.6.8",
64
59
  "axios-cache-interceptor": "^1.5.1",
65
60
  "luxon": "^3.5.0"
@@ -1,119 +0,0 @@
1
- export declare const PhoneShema: import("@vinejs/vine").VineString;
2
- export declare const SignupSchema: import("@vinejs/vine").VineObject<{
3
- referral: import("@vinejs/vine/schema/base/literal").NullableModifier<import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>>;
4
- name: import("@vinejs/vine").VineString;
5
- email: import("@vinejs/vine").VineString;
6
- phone: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
7
- photoFile: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineAny>;
8
- photoUrl: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
9
- password: import("@vinejs/vine").VineString;
10
- fcmToken: import("@vinejs/vine/schema/base/literal").NullableModifier<import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>>;
11
- }, {
12
- referral: string | null | undefined;
13
- name: string;
14
- email: string;
15
- phone: string | null | undefined;
16
- photoFile: any;
17
- photoUrl: string | null | undefined;
18
- password: string;
19
- fcmToken: string | null | undefined;
20
- }, {
21
- referral: string | null | undefined;
22
- name: string;
23
- email: string;
24
- phone: string | undefined;
25
- photoFile: any;
26
- photoUrl: string | undefined;
27
- password: string;
28
- fcmToken: string | null | undefined;
29
- }, {
30
- referral: string | null | undefined;
31
- name: string;
32
- email: string;
33
- phone: string | undefined;
34
- photoFile: any;
35
- photoUrl: string | undefined;
36
- password: string;
37
- fcmToken: string | null | undefined;
38
- }>;
39
- export declare const SigninSchema: import("@vinejs/vine").VineObject<{
40
- email: import("@vinejs/vine").VineString;
41
- password: import("@vinejs/vine").VineString;
42
- fcmToken: import("@vinejs/vine/schema/base/literal").NullableModifier<import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>>;
43
- }, {
44
- email: string;
45
- password: string;
46
- fcmToken: string | null | undefined;
47
- }, {
48
- email: string;
49
- password: string;
50
- fcmToken: string | null | undefined;
51
- }, {
52
- email: string;
53
- password: string;
54
- fcmToken: string | null | undefined;
55
- }>;
56
- export declare const ResetPasswordSchema: import("@vinejs/vine").VineObject<{
57
- email: import("@vinejs/vine").VineString;
58
- }, {
59
- email: string;
60
- }, {
61
- email: string;
62
- }, {
63
- email: string;
64
- }>;
65
- export declare const ResetPasswordWithTokenSchema: import("@vinejs/vine").VineObject<{
66
- uid: import("@vinejs/vine").VineString;
67
- token: import("@vinejs/vine").VineString;
68
- }, {
69
- uid: string;
70
- token: string;
71
- }, {
72
- uid: string;
73
- token: string;
74
- }, {
75
- uid: string;
76
- token: string;
77
- }>;
78
- export declare const SigninWithTokenSchema: import("@vinejs/vine").VineObject<{
79
- token: import("@vinejs/vine").VineString;
80
- }, {
81
- token: string;
82
- }, {
83
- token: string;
84
- }, {
85
- token: string;
86
- }>;
87
- export declare const AuthUpdateUserSchema: import("@vinejs/vine").VineObject<{
88
- name: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
89
- email: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
90
- phone: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
91
- photoFile: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineAny>;
92
- photoUrl: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
93
- oldPassword: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
94
- newPassword: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
95
- }, {
96
- name: string | null | undefined;
97
- email: string | null | undefined;
98
- phone: string | null | undefined;
99
- photoFile: any;
100
- photoUrl: string | null | undefined;
101
- oldPassword: string | null | undefined;
102
- newPassword: string | null | undefined;
103
- }, {
104
- name: string | undefined;
105
- email: string | undefined;
106
- phone: string | undefined;
107
- photoFile: any;
108
- photoUrl: string | undefined;
109
- oldPassword: string | undefined;
110
- newPassword: string | undefined;
111
- }, {
112
- name: string | undefined;
113
- email: string | undefined;
114
- phone: string | undefined;
115
- photoFile: any;
116
- photoUrl: string | undefined;
117
- oldPassword: string | undefined;
118
- newPassword: string | undefined;
119
- }>;
@@ -1 +0,0 @@
1
- export {};
@@ -1,165 +0,0 @@
1
- export declare const AvatarFileSchema: import("@vinejs/vine").VineAny;
2
- export declare const ImageFileSchema: import("@vinejs/vine").VineAny;
3
- export declare const DomainSchema: import("@vinejs/vine").VineObject<{
4
- name: import("@vinejs/vine").VineString;
5
- verifiedAt: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineDate>;
6
- metadata: import("@vinejs/vine/schema/base/main").OptionalModifier<import("@vinejs/vine").VineObject<{}, {}, {}, {}>>;
7
- }, {
8
- name: string;
9
- verifiedAt: string | number | null | undefined;
10
- metadata: {} | null | undefined;
11
- }, {
12
- name: string;
13
- verifiedAt: Date | undefined;
14
- metadata: {} | undefined;
15
- }, {
16
- name: string;
17
- verifiedAt: Date | undefined;
18
- metadata: {} | undefined;
19
- }>;
20
- export declare const StoreDecorationSchema: import("@vinejs/vine").VineObject<{
21
- primary: import("@vinejs/vine").VineNumber;
22
- onPrimary: import("@vinejs/vine").VineNumber;
23
- showStoreLogoInHeader: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineBoolean>;
24
- logoFullHeight: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineBoolean>;
25
- showStoreNameInHeader: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineBoolean>;
26
- metadata: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineAny>;
27
- }, {
28
- primary: string | number;
29
- onPrimary: string | number;
30
- showStoreLogoInHeader: string | number | boolean | null | undefined;
31
- logoFullHeight: string | number | boolean | null | undefined;
32
- showStoreNameInHeader: string | number | boolean | null | undefined;
33
- metadata: any;
34
- }, {
35
- primary: number;
36
- onPrimary: number;
37
- showStoreLogoInHeader: boolean | undefined;
38
- logoFullHeight: boolean | undefined;
39
- showStoreNameInHeader: boolean | undefined;
40
- metadata: any;
41
- }, {
42
- primary: number;
43
- onPrimary: number;
44
- showStoreLogoInHeader: boolean | undefined;
45
- logoFullHeight: boolean | undefined;
46
- showStoreNameInHeader: boolean | undefined;
47
- metadata: any;
48
- }>;
49
- export declare const CustomOrderTagSchema: import("@vinejs/vine").VineObject<{
50
- name: import("@vinejs/vine").VineString;
51
- color: import("@vinejs/vine").VineNumber;
52
- }, {
53
- name: string;
54
- color: string | number;
55
- }, {
56
- name: string;
57
- color: number;
58
- }, {
59
- name: string;
60
- color: number;
61
- }>;
62
- export declare const EmbaddedCategorySchema: import("@vinejs/vine").VineObject<{
63
- name: import("@vinejs/vine").VineString;
64
- description: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
65
- photoUrl: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
66
- ondarkPhotoUrl: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
67
- photoFile: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineAny>;
68
- ondarkPhotoFile: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineAny>;
69
- metadata: import("@vinejs/vine/schema/base/main").OptionalModifier<import("@vinejs/vine").VineObject<{}, {}, {}, {}>>;
70
- }, {
71
- name: string;
72
- description: string | null | undefined;
73
- photoUrl: string | null | undefined;
74
- ondarkPhotoUrl: string | null | undefined;
75
- photoFile: any;
76
- ondarkPhotoFile: any;
77
- metadata: {} | null | undefined;
78
- }, {
79
- name: string;
80
- description: string | undefined;
81
- photoUrl: string | undefined;
82
- ondarkPhotoUrl: string | undefined;
83
- photoFile: any;
84
- ondarkPhotoFile: any;
85
- metadata: {} | undefined;
86
- }, {
87
- name: string;
88
- description: string | undefined;
89
- photoUrl: string | undefined;
90
- ondarkPhotoUrl: string | undefined;
91
- photoFile: any;
92
- ondarkPhotoFile: any;
93
- metadata: {} | undefined;
94
- }>;
95
- export declare const EmbaddedAddressSchema: import("@vinejs/vine").VineObject<{
96
- country: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
97
- state: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
98
- city: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
99
- street: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
100
- zip: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
101
- metadata: import("@vinejs/vine/schema/base/main").OptionalModifier<import("@vinejs/vine/schema/base/main").OptionalModifier<import("@vinejs/vine").VineObject<{}, {}, {}, {}>>>;
102
- }, {
103
- country: string | null | undefined;
104
- state: string | null | undefined;
105
- city: string | null | undefined;
106
- street: string | null | undefined;
107
- zip: string | null | undefined;
108
- metadata: {} | null | undefined;
109
- }, {
110
- country: string | undefined;
111
- state: string | undefined;
112
- city: string | undefined;
113
- street: string | undefined;
114
- zip: string | undefined;
115
- metadata: {} | undefined;
116
- }, {
117
- country: string | undefined;
118
- state: string | undefined;
119
- city: string | undefined;
120
- street: string | undefined;
121
- zip: string | undefined;
122
- metadata: {} | undefined;
123
- }>;
124
- export declare const EmbaddedContactSchema: import("@vinejs/vine").VineObject<{
125
- type: import("@vinejs/vine").VineString;
126
- value: import("@vinejs/vine").VineString;
127
- name: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
128
- metadata: import("@vinejs/vine/schema/base/main").OptionalModifier<import("@vinejs/vine").VineObject<{}, {}, {}, {}>>;
129
- }, {
130
- type: string;
131
- value: string;
132
- name: string | null | undefined;
133
- metadata: {} | null | undefined;
134
- }, {
135
- type: string;
136
- value: string;
137
- name: string | undefined;
138
- metadata: {} | undefined;
139
- }, {
140
- type: string;
141
- value: string;
142
- name: string | undefined;
143
- metadata: {} | undefined;
144
- }>;
145
- export declare const StoreBannerSchema: import("@vinejs/vine").VineObject<{
146
- url: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineString>;
147
- title: import("@vinejs/vine").VineString;
148
- enabled: import("@vinejs/vine/schema/base/literal").OptionalModifier<import("@vinejs/vine").VineBoolean>;
149
- metadata: import("@vinejs/vine/schema/base/main").OptionalModifier<import("@vinejs/vine").VineObject<{}, {}, {}, {}>>;
150
- }, {
151
- url: string | null | undefined;
152
- title: string;
153
- enabled: string | number | boolean | null | undefined;
154
- metadata: {} | null | undefined;
155
- }, {
156
- url: string | undefined;
157
- title: string;
158
- enabled: boolean | undefined;
159
- metadata: {} | undefined;
160
- }, {
161
- url: string | undefined;
162
- title: string;
163
- enabled: boolean | undefined;
164
- metadata: {} | undefined;
165
- }>;