hey-pharmacist-ecommerce 1.1.25 → 1.1.27
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 +4 -207
- package/dist/index.d.ts +4 -207
- package/dist/index.js +188 -233
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +189 -235
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/src/components/CartItem.tsx +0 -10
- package/src/components/ProductCard.tsx +4 -5
- package/src/index.ts +1 -0
- package/src/lib/Apis/api.ts +0 -8
- package/src/lib/Apis/apis/product-variants-api.ts +0 -96
- package/src/lib/Apis/apis/products-api.ts +7 -15
- package/src/lib/Apis/apis/shipping-api.ts +12 -214
- package/src/lib/Apis/models/category-filters.ts +0 -6
- package/src/lib/Apis/models/create-variant-dto.ts +0 -6
- package/src/lib/Apis/models/discounts-insights-dto.ts +0 -6
- package/src/lib/Apis/models/index.ts +0 -29
- package/src/lib/Apis/models/orders-insights-dto.ts +0 -6
- package/src/lib/Apis/models/payment.ts +0 -7
- package/src/lib/Apis/models/product-variant.ts +0 -6
- package/src/lib/Apis/models/products-insights-dto.ts +0 -6
- package/src/lib/Apis/models/rate-dto.ts +0 -6
- package/src/lib/Apis/models/update-product-variant-dto.ts +0 -6
- package/src/providers/WishlistProvider.tsx +3 -4
- package/src/screens/CheckoutScreen.tsx +25 -73
- package/src/lib/Apis/apis/chats-api.ts +0 -1101
- package/src/lib/Apis/apis/drafts-api.ts +0 -448
- package/src/lib/Apis/apis/open-aiapi.ts +0 -513
- package/src/lib/Apis/apis/payment-methods-api.ts +0 -411
- package/src/lib/Apis/apis/product-attributes-api.ts +0 -538
- package/src/lib/Apis/apis/product-favorite-list-api.ts +0 -321
- package/src/lib/Apis/apis/roles-api.ts +0 -614
- package/src/lib/Apis/apis/statistics-api.ts +0 -234
- package/src/lib/Apis/models/add-message-dto.ts +0 -56
- package/src/lib/Apis/models/chat.ts +0 -33
- package/src/lib/Apis/models/create-chat-dto.ts +0 -39
- package/src/lib/Apis/models/create-draft-dto.ts +0 -67
- package/src/lib/Apis/models/create-product-attribute-dto.ts +0 -33
- package/src/lib/Apis/models/create-role-dto.ts +0 -57
- package/src/lib/Apis/models/create-zone-dto.ts +0 -82
- package/src/lib/Apis/models/default-payment-method-request-dto.ts +0 -27
- package/src/lib/Apis/models/draft.ts +0 -79
- package/src/lib/Apis/models/google-analytics-request-dto.ts +0 -55
- package/src/lib/Apis/models/google-analytics-response-dto.ts +0 -39
- package/src/lib/Apis/models/my-favorite-list-dto.ts +0 -52
- package/src/lib/Apis/models/open-api.ts +0 -33
- package/src/lib/Apis/models/payment-method-data.ts +0 -34
- package/src/lib/Apis/models/payment-method.ts +0 -51
- package/src/lib/Apis/models/populated-chat-dto.ts +0 -95
- package/src/lib/Apis/models/product-attribute.ts +0 -57
- package/src/lib/Apis/models/product.ts +0 -142
- package/src/lib/Apis/models/role.ts +0 -69
- package/src/lib/Apis/models/single-message-populated.ts +0 -59
- package/src/lib/Apis/models/single-suggest-attribute.ts +0 -33
- package/src/lib/Apis/models/statistic-dto.ts +0 -171
- package/src/lib/Apis/models/suggest-attributes.ts +0 -28
- package/src/lib/Apis/models/update-product-attribute-dto.ts +0 -33
- package/src/lib/Apis/models/update-role-dto.ts +0 -57
- package/src/lib/Apis/models/update-zone-dto.ts +0 -82
- package/src/lib/Apis/models/user.ts +0 -232
- package/src/lib/Apis/models/zone-single-size.ts +0 -51
- package/src/lib/Apis/models/zone.ts +0 -106
|
@@ -1,234 +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 globalAxios, { AxiosResponse, AxiosInstance, AxiosRequestConfig } from 'axios';
|
|
15
|
-
import { Configuration } from '../configuration';
|
|
16
|
-
// Some imports not used depending on template conditions
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
19
|
-
import { GoogleAnalyticsRequestDto } from '../models';
|
|
20
|
-
import { GoogleAnalyticsResponseDto } from '../models';
|
|
21
|
-
import { StatisticDto } from '../models';
|
|
22
|
-
/**
|
|
23
|
-
* StatisticsApi - axios parameter creator
|
|
24
|
-
* @export
|
|
25
|
-
*/
|
|
26
|
-
export const StatisticsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
27
|
-
return {
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @summary Get google analytics data
|
|
31
|
-
* @param {GoogleAnalyticsRequestDto} body
|
|
32
|
-
* @param {*} [options] Override http request option.
|
|
33
|
-
* @throws {RequiredError}
|
|
34
|
-
*/
|
|
35
|
-
getGoogleAnalyticsData: async (body: GoogleAnalyticsRequestDto, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
36
|
-
// verify required parameter 'body' is not null or undefined
|
|
37
|
-
if (body === null || body === undefined) {
|
|
38
|
-
throw new RequiredError('body','Required parameter body was null or undefined when calling getGoogleAnalyticsData.');
|
|
39
|
-
}
|
|
40
|
-
const localVarPath = `/statistics/google-analytics`;
|
|
41
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
42
|
-
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
43
|
-
let baseOptions;
|
|
44
|
-
if (configuration) {
|
|
45
|
-
baseOptions = configuration.baseOptions;
|
|
46
|
-
}
|
|
47
|
-
const localVarRequestOptions :AxiosRequestConfig = { method: 'POST', ...baseOptions, ...options};
|
|
48
|
-
const localVarHeaderParameter = {} as any;
|
|
49
|
-
const localVarQueryParameter = {} as any;
|
|
50
|
-
|
|
51
|
-
// authentication bearer required
|
|
52
|
-
// http bearer authentication required
|
|
53
|
-
if (configuration && configuration.accessToken) {
|
|
54
|
-
const accessToken = typeof configuration.accessToken === 'function'
|
|
55
|
-
? await configuration.accessToken()
|
|
56
|
-
: await configuration.accessToken;
|
|
57
|
-
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
// authentication x-store-key required
|
|
61
|
-
if (configuration && configuration.apiKey) {
|
|
62
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
63
|
-
? await configuration.apiKey("x-store-key")
|
|
64
|
-
: await configuration.apiKey;
|
|
65
|
-
localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
69
|
-
|
|
70
|
-
const query = new URLSearchParams(localVarUrlObj.search);
|
|
71
|
-
for (const key in localVarQueryParameter) {
|
|
72
|
-
query.set(key, localVarQueryParameter[key]);
|
|
73
|
-
}
|
|
74
|
-
for (const key in options.params) {
|
|
75
|
-
query.set(key, options.params[key]);
|
|
76
|
-
}
|
|
77
|
-
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
78
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
79
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
80
|
-
const needsSerialization = (typeof body !== "string") || (localVarRequestOptions.headers ||= {})['Content-Type'] === 'application/json';
|
|
81
|
-
localVarRequestOptions.data = needsSerialization ? JSON.stringify(body !== undefined ? body : {}) : (body || "");
|
|
82
|
-
|
|
83
|
-
return {
|
|
84
|
-
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
85
|
-
options: localVarRequestOptions,
|
|
86
|
-
};
|
|
87
|
-
},
|
|
88
|
-
/**
|
|
89
|
-
*
|
|
90
|
-
* @summary Get my store statistics
|
|
91
|
-
* @param {*} [options] Override http request option.
|
|
92
|
-
* @throws {RequiredError}
|
|
93
|
-
*/
|
|
94
|
-
getMyStoreStats: async (options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
95
|
-
const localVarPath = `/statistics`;
|
|
96
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
97
|
-
const localVarUrlObj = new URL(localVarPath, 'https://example.com');
|
|
98
|
-
let baseOptions;
|
|
99
|
-
if (configuration) {
|
|
100
|
-
baseOptions = configuration.baseOptions;
|
|
101
|
-
}
|
|
102
|
-
const localVarRequestOptions :AxiosRequestConfig = { method: 'GET', ...baseOptions, ...options};
|
|
103
|
-
const localVarHeaderParameter = {} as any;
|
|
104
|
-
const localVarQueryParameter = {} as any;
|
|
105
|
-
|
|
106
|
-
// authentication bearer required
|
|
107
|
-
// http bearer authentication required
|
|
108
|
-
if (configuration && configuration.accessToken) {
|
|
109
|
-
const accessToken = typeof configuration.accessToken === 'function'
|
|
110
|
-
? await configuration.accessToken()
|
|
111
|
-
: await configuration.accessToken;
|
|
112
|
-
localVarHeaderParameter["Authorization"] = "Bearer " + accessToken;
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// authentication x-store-key required
|
|
116
|
-
if (configuration && configuration.apiKey) {
|
|
117
|
-
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
118
|
-
? await configuration.apiKey("x-store-key")
|
|
119
|
-
: await configuration.apiKey;
|
|
120
|
-
localVarHeaderParameter["x-store-key"] = localVarApiKeyValue;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
const query = new URLSearchParams(localVarUrlObj.search);
|
|
124
|
-
for (const key in localVarQueryParameter) {
|
|
125
|
-
query.set(key, localVarQueryParameter[key]);
|
|
126
|
-
}
|
|
127
|
-
for (const key in options.params) {
|
|
128
|
-
query.set(key, options.params[key]);
|
|
129
|
-
}
|
|
130
|
-
localVarUrlObj.search = (new URLSearchParams(query)).toString();
|
|
131
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
132
|
-
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
133
|
-
|
|
134
|
-
return {
|
|
135
|
-
url: localVarUrlObj.pathname + localVarUrlObj.search + localVarUrlObj.hash,
|
|
136
|
-
options: localVarRequestOptions,
|
|
137
|
-
};
|
|
138
|
-
},
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* StatisticsApi - functional programming interface
|
|
144
|
-
* @export
|
|
145
|
-
*/
|
|
146
|
-
export const StatisticsApiFp = function(configuration?: Configuration) {
|
|
147
|
-
return {
|
|
148
|
-
/**
|
|
149
|
-
*
|
|
150
|
-
* @summary Get google analytics data
|
|
151
|
-
* @param {GoogleAnalyticsRequestDto} body
|
|
152
|
-
* @param {*} [options] Override http request option.
|
|
153
|
-
* @throws {RequiredError}
|
|
154
|
-
*/
|
|
155
|
-
async getGoogleAnalyticsData(body: GoogleAnalyticsRequestDto, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<GoogleAnalyticsResponseDto>>> {
|
|
156
|
-
const localVarAxiosArgs = await StatisticsApiAxiosParamCreator(configuration).getGoogleAnalyticsData(body, options);
|
|
157
|
-
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
158
|
-
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
159
|
-
return axios.request(axiosRequestArgs);
|
|
160
|
-
};
|
|
161
|
-
},
|
|
162
|
-
/**
|
|
163
|
-
*
|
|
164
|
-
* @summary Get my store statistics
|
|
165
|
-
* @param {*} [options] Override http request option.
|
|
166
|
-
* @throws {RequiredError}
|
|
167
|
-
*/
|
|
168
|
-
async getMyStoreStats(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => Promise<AxiosResponse<StatisticDto>>> {
|
|
169
|
-
const localVarAxiosArgs = await StatisticsApiAxiosParamCreator(configuration).getMyStoreStats(options);
|
|
170
|
-
return (axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {
|
|
171
|
-
const axiosRequestArgs :AxiosRequestConfig = {...localVarAxiosArgs.options, url: basePath + localVarAxiosArgs.url};
|
|
172
|
-
return axios.request(axiosRequestArgs);
|
|
173
|
-
};
|
|
174
|
-
},
|
|
175
|
-
}
|
|
176
|
-
};
|
|
177
|
-
|
|
178
|
-
/**
|
|
179
|
-
* StatisticsApi - factory interface
|
|
180
|
-
* @export
|
|
181
|
-
*/
|
|
182
|
-
export const StatisticsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
183
|
-
return {
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @summary Get google analytics data
|
|
187
|
-
* @param {GoogleAnalyticsRequestDto} body
|
|
188
|
-
* @param {*} [options] Override http request option.
|
|
189
|
-
* @throws {RequiredError}
|
|
190
|
-
*/
|
|
191
|
-
async getGoogleAnalyticsData(body: GoogleAnalyticsRequestDto, options?: AxiosRequestConfig): Promise<AxiosResponse<GoogleAnalyticsResponseDto>> {
|
|
192
|
-
return StatisticsApiFp(configuration).getGoogleAnalyticsData(body, options).then((request) => request(axios, basePath));
|
|
193
|
-
},
|
|
194
|
-
/**
|
|
195
|
-
*
|
|
196
|
-
* @summary Get my store statistics
|
|
197
|
-
* @param {*} [options] Override http request option.
|
|
198
|
-
* @throws {RequiredError}
|
|
199
|
-
*/
|
|
200
|
-
async getMyStoreStats(options?: AxiosRequestConfig): Promise<AxiosResponse<StatisticDto>> {
|
|
201
|
-
return StatisticsApiFp(configuration).getMyStoreStats(options).then((request) => request(axios, basePath));
|
|
202
|
-
},
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* StatisticsApi - object-oriented interface
|
|
208
|
-
* @export
|
|
209
|
-
* @class StatisticsApi
|
|
210
|
-
* @extends {BaseAPI}
|
|
211
|
-
*/
|
|
212
|
-
export class StatisticsApi extends BaseAPI {
|
|
213
|
-
/**
|
|
214
|
-
*
|
|
215
|
-
* @summary Get google analytics data
|
|
216
|
-
* @param {GoogleAnalyticsRequestDto} body
|
|
217
|
-
* @param {*} [options] Override http request option.
|
|
218
|
-
* @throws {RequiredError}
|
|
219
|
-
* @memberof StatisticsApi
|
|
220
|
-
*/
|
|
221
|
-
public async getGoogleAnalyticsData(body: GoogleAnalyticsRequestDto, options?: AxiosRequestConfig) : Promise<AxiosResponse<GoogleAnalyticsResponseDto>> {
|
|
222
|
-
return StatisticsApiFp(this.configuration).getGoogleAnalyticsData(body, options).then((request) => request(this.axios, this.basePath));
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
*
|
|
226
|
-
* @summary Get my store statistics
|
|
227
|
-
* @param {*} [options] Override http request option.
|
|
228
|
-
* @throws {RequiredError}
|
|
229
|
-
* @memberof StatisticsApi
|
|
230
|
-
*/
|
|
231
|
-
public async getMyStoreStats(options?: AxiosRequestConfig) : Promise<AxiosResponse<StatisticDto>> {
|
|
232
|
-
return StatisticsApiFp(this.configuration).getMyStoreStats(options).then((request) => request(this.axios, this.basePath));
|
|
233
|
-
}
|
|
234
|
-
}
|
|
@@ -1,56 +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 AddMessageDto
|
|
18
|
-
*/
|
|
19
|
-
export interface AddMessageDto {
|
|
20
|
-
_id?: string;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof AddMessageDto
|
|
25
|
-
*/
|
|
26
|
-
chatId: string;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof AddMessageDto
|
|
31
|
-
*/
|
|
32
|
-
message: string;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {Blob}
|
|
36
|
-
* @memberof AddMessageDto
|
|
37
|
-
*/
|
|
38
|
-
file: Blob;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof AddMessageDto
|
|
43
|
-
*/
|
|
44
|
-
type?: AddMessageDtoTypeEnum;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @export
|
|
49
|
-
* @enum {string}
|
|
50
|
-
*/
|
|
51
|
-
export enum AddMessageDtoTypeEnum {
|
|
52
|
-
Image = 'image',
|
|
53
|
-
Video = 'video',
|
|
54
|
-
Audio = 'audio'
|
|
55
|
-
}
|
|
56
|
-
|
|
@@ -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 Chat
|
|
18
|
-
*/
|
|
19
|
-
export interface Chat {
|
|
20
|
-
_id?: string;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {Date}
|
|
24
|
-
* @memberof Chat
|
|
25
|
-
*/
|
|
26
|
-
createdAt: Date;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {Date}
|
|
30
|
-
* @memberof Chat
|
|
31
|
-
*/
|
|
32
|
-
updatedAt: Date;
|
|
33
|
-
}
|
|
@@ -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 CreateChatDto
|
|
18
|
-
*/
|
|
19
|
-
export interface CreateChatDto {
|
|
20
|
-
_id?: string;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof CreateChatDto
|
|
25
|
-
*/
|
|
26
|
-
message: string;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof CreateChatDto
|
|
31
|
-
*/
|
|
32
|
-
sentTo: string;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof CreateChatDto
|
|
37
|
-
*/
|
|
38
|
-
createdBy: string;
|
|
39
|
-
}
|
|
@@ -1,67 +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 CreateDraftDto
|
|
18
|
-
*/
|
|
19
|
-
export interface CreateDraftDto {
|
|
20
|
-
_id?: string;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof CreateDraftDto
|
|
25
|
-
*/
|
|
26
|
-
userId: string;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof CreateDraftDto
|
|
31
|
-
*/
|
|
32
|
-
storeId: string;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {boolean}
|
|
36
|
-
* @memberof CreateDraftDto
|
|
37
|
-
*/
|
|
38
|
-
isAdminDraft: boolean;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof CreateDraftDto
|
|
43
|
-
*/
|
|
44
|
-
category: CreateDraftDtoCategoryEnum;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {any}
|
|
48
|
-
* @memberof CreateDraftDto
|
|
49
|
-
*/
|
|
50
|
-
data: any;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @export
|
|
55
|
-
* @enum {string}
|
|
56
|
-
*/
|
|
57
|
-
export enum CreateDraftDtoCategoryEnum {
|
|
58
|
-
PRODUCT = 'PRODUCT',
|
|
59
|
-
ORDER = 'ORDER',
|
|
60
|
-
USER = 'USER',
|
|
61
|
-
STORE = 'STORE',
|
|
62
|
-
CATEGORY = 'CATEGORY',
|
|
63
|
-
VARIANT = 'VARIANT',
|
|
64
|
-
DISCOUNT = 'DISCOUNT',
|
|
65
|
-
BUNDLE = 'BUNDLE'
|
|
66
|
-
}
|
|
67
|
-
|
|
@@ -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 CreateProductAttributeDto
|
|
18
|
-
*/
|
|
19
|
-
export interface CreateProductAttributeDto {
|
|
20
|
-
_id?: string;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof CreateProductAttributeDto
|
|
25
|
-
*/
|
|
26
|
-
name: string;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {Array<string>}
|
|
30
|
-
* @memberof CreateProductAttributeDto
|
|
31
|
-
*/
|
|
32
|
-
possibleValues: Array<string>;
|
|
33
|
-
}
|
|
@@ -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 CreateRoleDto
|
|
18
|
-
*/
|
|
19
|
-
export interface CreateRoleDto {
|
|
20
|
-
_id?: string;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {Date}
|
|
24
|
-
* @memberof CreateRoleDto
|
|
25
|
-
*/
|
|
26
|
-
createdAt?: Date;
|
|
27
|
-
/**
|
|
28
|
-
*
|
|
29
|
-
* @type {Date}
|
|
30
|
-
* @memberof CreateRoleDto
|
|
31
|
-
*/
|
|
32
|
-
updatedAt?: Date;
|
|
33
|
-
/**
|
|
34
|
-
*
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof CreateRoleDto
|
|
37
|
-
*/
|
|
38
|
-
name?: string;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {string}
|
|
42
|
-
* @memberof CreateRoleDto
|
|
43
|
-
*/
|
|
44
|
-
description?: string;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {boolean}
|
|
48
|
-
* @memberof CreateRoleDto
|
|
49
|
-
*/
|
|
50
|
-
canGetOrders?: boolean;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {boolean}
|
|
54
|
-
* @memberof CreateRoleDto
|
|
55
|
-
*/
|
|
56
|
-
canGetProducts?: boolean;
|
|
57
|
-
}
|
|
@@ -1,82 +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 { ZoneSingleSize } from './zone-single-size';
|
|
15
|
-
/**
|
|
16
|
-
*
|
|
17
|
-
* @export
|
|
18
|
-
* @interface CreateZoneDto
|
|
19
|
-
*/
|
|
20
|
-
export interface CreateZoneDto {
|
|
21
|
-
_id?: string;
|
|
22
|
-
/**
|
|
23
|
-
*
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof CreateZoneDto
|
|
26
|
-
*/
|
|
27
|
-
name?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof CreateZoneDto
|
|
32
|
-
*/
|
|
33
|
-
description?: string;
|
|
34
|
-
/**
|
|
35
|
-
*
|
|
36
|
-
* @type {Array<string>}
|
|
37
|
-
* @memberof CreateZoneDto
|
|
38
|
-
*/
|
|
39
|
-
zipCodes?: Array<string>;
|
|
40
|
-
/**
|
|
41
|
-
*
|
|
42
|
-
* @type {number}
|
|
43
|
-
* @memberof CreateZoneDto
|
|
44
|
-
*/
|
|
45
|
-
cost?: number;
|
|
46
|
-
/**
|
|
47
|
-
*
|
|
48
|
-
* @type {boolean}
|
|
49
|
-
* @memberof CreateZoneDto
|
|
50
|
-
*/
|
|
51
|
-
isFreeShipping?: boolean;
|
|
52
|
-
/**
|
|
53
|
-
*
|
|
54
|
-
* @type {number}
|
|
55
|
-
* @memberof CreateZoneDto
|
|
56
|
-
*/
|
|
57
|
-
estimatedDeliveryTime?: number;
|
|
58
|
-
/**
|
|
59
|
-
*
|
|
60
|
-
* @type {boolean}
|
|
61
|
-
* @memberof CreateZoneDto
|
|
62
|
-
*/
|
|
63
|
-
active?: boolean;
|
|
64
|
-
/**
|
|
65
|
-
*
|
|
66
|
-
* @type {boolean}
|
|
67
|
-
* @memberof CreateZoneDto
|
|
68
|
-
*/
|
|
69
|
-
deleted?: boolean;
|
|
70
|
-
/**
|
|
71
|
-
*
|
|
72
|
-
* @type {string}
|
|
73
|
-
* @memberof CreateZoneDto
|
|
74
|
-
*/
|
|
75
|
-
storeAddressId?: string;
|
|
76
|
-
/**
|
|
77
|
-
*
|
|
78
|
-
* @type {Array<ZoneSingleSize>}
|
|
79
|
-
* @memberof CreateZoneDto
|
|
80
|
-
*/
|
|
81
|
-
sizes?: Array<ZoneSingleSize>;
|
|
82
|
-
}
|
|
@@ -1,27 +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 DefaultPaymentMethodRequestDTO
|
|
18
|
-
*/
|
|
19
|
-
export interface DefaultPaymentMethodRequestDTO {
|
|
20
|
-
_id?: string;
|
|
21
|
-
/**
|
|
22
|
-
*
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof DefaultPaymentMethodRequestDTO
|
|
25
|
-
*/
|
|
26
|
-
paymentMethodId: string;
|
|
27
|
-
}
|