orionplace-nuxt 0.1.2 → 0.1.3

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 (39) hide show
  1. package/README.md +52 -2
  2. package/bin/orionplace-nuxt.mjs +24 -9
  3. package/package.json +3 -2
  4. package/src/project-readme.mjs +64 -29
  5. package/src/setup.mjs +37 -7
  6. package/src/update.mjs +36 -0
  7. package/templates/app/app.vue +90 -0
  8. package/templates/app/composables/useOrionplaceAppLoad.ts +51 -0
  9. package/templates/app/interfaces/orionplace/apiBase/TMethod.ts +1 -0
  10. package/templates/app/interfaces/orionplace/appBase/IAppLoad.ts +15 -0
  11. package/templates/app/interfaces/orionplace/appBase/IAppLoadCommon.ts +54 -0
  12. package/templates/app/interfaces/orionplace/appBase/IApploadUserProfile.ts +13 -0
  13. package/templates/app/interfaces/orionplace/appBase/IForm.ts +21 -0
  14. package/templates/app/interfaces/orionplace/appBase/ISEO.ts +21 -0
  15. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonBanner.ts +11 -0
  16. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonContact.ts +8 -0
  17. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonCurrency.ts +15 -0
  18. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonEvents.ts +18 -0
  19. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonLocale.ts +14 -0
  20. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonLogos.ts +6 -0
  21. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonPath.ts +22 -0
  22. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonSEO.ts +13 -0
  23. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonSocial.ts +15 -0
  24. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonTariff.ts +7 -0
  25. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonUnit.ts +12 -0
  26. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonVariables.ts +7 -0
  27. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonVisualSettings.ts +11 -0
  28. package/templates/app/interfaces/orionplace/appBase/appLoadCommon/IAppLoadCommonWalletValue.ts +3 -0
  29. package/templates/app/interfaces/orionplace/category/ICategory.ts +40 -0
  30. package/templates/app/interfaces/orionplace/domains/IDomain.ts +13 -0
  31. package/templates/app/interfaces/orionplace/index.ts +29 -0
  32. package/templates/app/interfaces/orionplace/products/IProduct.ts +235 -0
  33. package/templates/app/interfaces/orionplace/shared/IGeoCoordinates.ts +4 -0
  34. package/templates/app/interfaces/orionplace/shared/ITransformValue.ts +3 -0
  35. package/templates/app/interfaces/orionplace/subscribeOptions/ISubscribeOption.ts +9 -0
  36. package/templates/app/interfaces/orionplace/subscribeTariff/ISubscribeTariff.ts +46 -0
  37. package/templates/app/interfaces/orionplace/subscribes/ISubscribe.ts +28 -0
  38. package/templates/app/interfaces/orionplace/transport.ts +30 -0
  39. package/templates/app/utils/orionplaceAppLoad.ts +33 -0
@@ -0,0 +1,13 @@
1
+ export interface IApploadUserProfile {
2
+ avatar: string | null;
3
+ first_name: string;
4
+ last_name: string;
5
+ email: string;
6
+ last_login: string | null;
7
+ date_joined: string;
8
+ phone: string;
9
+ password: boolean;
10
+ dob: string | null;
11
+ newsletter_active: boolean;
12
+ id: number;
13
+ }
@@ -0,0 +1,21 @@
1
+ import type { JsonValue } from '../transport';
2
+
3
+ export type IFormFields = { [name: string]: IFormField | IFormFields };
4
+ export interface IFormField {
5
+ form_class: string;
6
+ label: string;
7
+ required: boolean;
8
+ input_type: string;
9
+ attrs: Record<string, JsonValue>;
10
+ options?: { key: JsonValue; value: JsonValue }[];
11
+ sub_form?: IFormFields;
12
+ path?: string;
13
+ }
14
+ export interface IForm {
15
+ name: string;
16
+ form_type: 'form' | 'filters' | 'step';
17
+ tr?: string[];
18
+ form_data: IFormFields;
19
+ sub_filters_dict?: Record<string, IFormFields>;
20
+ filters_dict?: Record<string, JsonValue>;
21
+ }
@@ -0,0 +1,21 @@
1
+ export interface ISeoOg {
2
+ id?: number;
3
+ cat_id?: number;
4
+ og_property_name: string;
5
+ locale: Record<string, ISeoOgLocale>;
6
+ }
7
+
8
+ export interface ISeoOgLocale {
9
+ og_content_value?: string;
10
+ }
11
+
12
+ export interface ISeoTwitter {
13
+ id?: number;
14
+ cat_id?: number;
15
+ extra_meta_name: string;
16
+ locale: Record<string, ITwitterLocale>;
17
+ }
18
+
19
+ export interface ITwitterLocale {
20
+ extra_meta_content?: string;
21
+ }
@@ -0,0 +1,11 @@
1
+ export interface IAppLoadCommonBanner {
2
+ id: number;
3
+ target_locale: string;
4
+ category?: number;
5
+ images_desktop: string[];
6
+ images_wide: string[];
7
+ images_tablet: string[];
8
+ images_mobile: string[];
9
+ }
10
+
11
+ export type TBannerFormats = 'desktop' | 'wide' | 'tablet' | 'mobile';
@@ -0,0 +1,8 @@
1
+ export interface IAppLoadCommonContact {
2
+ company_name: string;
3
+ company_legal_name: string;
4
+ company_contact_phone: string;
5
+ company_contact_address: string;
6
+ company_tax_id: string;
7
+ company_organization_id: string;
8
+ }
@@ -0,0 +1,15 @@
1
+ export interface IAppLoadCommonCurrency {
2
+ id: number;
3
+ currency_code: string;
4
+ symbol_left: string;
5
+ symbol_right: string;
6
+ value?: number;
7
+ locales: Record<string, IAppLoadCommonCurrencyLocale>;
8
+ decimal_place?: number;
9
+ allowed_select: boolean;
10
+ }
11
+
12
+ export interface IAppLoadCommonCurrencyLocale {
13
+ id?: number;
14
+ currency_title?: string;
15
+ }
@@ -0,0 +1,18 @@
1
+ export interface IAppLoadCommonEvents {
2
+ id: number;
3
+ locale: string;
4
+ image: string | null;
5
+ image_wide: string | null;
6
+ image_tablet: string | null;
7
+ image_account: string | null;
8
+ image_mobile: string | null;
9
+ promo: boolean;
10
+ is_layout?: boolean;
11
+ is_modal?: boolean;
12
+ model_delay_sec?: number;
13
+ modal_display_count?: number;
14
+ modal_display_count_days?: number;
15
+ }
16
+
17
+ export type TEventsFormat =
18
+ 'desktop' | 'wide' | 'tablet' | 'account' | 'mobile';
@@ -0,0 +1,14 @@
1
+ export interface IAppLoadCommonLocale {
2
+ code?: string;
3
+ id?: number;
4
+ currency?: number;
5
+ weight?: number;
6
+ length?: number;
7
+ flag_img?: string;
8
+ human_name?: string;
9
+ locale?: Record<string, IAppLoadCommonLocaleName>;
10
+ }
11
+
12
+ export interface IAppLoadCommonLocaleName {
13
+ name?: string;
14
+ }
@@ -0,0 +1,6 @@
1
+ export interface IAppLoadCommonLogos {
2
+ big: string | null;
3
+ medium: string | null;
4
+ small: string | null;
5
+ ico: string | null;
6
+ }
@@ -0,0 +1,22 @@
1
+ import type { TMethod } from '../../apiBase/TMethod';
2
+ import type { IForm } from '../IForm';
3
+
4
+ export interface IAppLoadPathsRecord {
5
+ paths: IAppLoadPathObject;
6
+ }
7
+
8
+ export interface IAppLoadPathObject {
9
+ [key: string]: {
10
+ [key: string]: IAppLoadPath;
11
+ };
12
+ }
13
+
14
+ export interface IAppLoadPath {
15
+ url_name: string;
16
+ target: string;
17
+ methods: TMethod[];
18
+ ready?: string;
19
+ summary?: string;
20
+ description?: string;
21
+ forms: IForm[];
22
+ }
@@ -0,0 +1,13 @@
1
+ import type { ISeoOg, ISeoTwitter } from '../ISEO';
2
+
3
+ export interface IAppLoadCommonSeo {
4
+ locale: Record<string, IAppLoadCommonSeoLocale>;
5
+ og: ISeoOg[];
6
+ twitter: ISeoTwitter[];
7
+ }
8
+
9
+ export interface IAppLoadCommonSeoLocale {
10
+ page_title?: string;
11
+ meta_description?: string;
12
+ meta_keywords?: string;
13
+ }
@@ -0,0 +1,15 @@
1
+ export interface IAppLoadCommonSocial {
2
+ id: number;
3
+ link: string;
4
+ image_position: string;
5
+ sm_image: string;
6
+ sm_image_width: number;
7
+ sm_image_height: number;
8
+ locale: Record<string, IAppLoadCommonSocialLocale>;
9
+ }
10
+
11
+ export interface IAppLoadCommonSocialLocale {
12
+ id?: number;
13
+ caption?: string;
14
+ title?: string;
15
+ }
@@ -0,0 +1,7 @@
1
+ import type { ISubscribeTariff } from '../../subscribeTariff/ISubscribeTariff';
2
+ import type { ISubscribe } from '../../subscribes/ISubscribe';
3
+
4
+ export interface IAppLoadCommonTariff {
5
+ data: ISubscribeTariff[];
6
+ subscriptions: ISubscribe[];
7
+ }
@@ -0,0 +1,12 @@
1
+ export interface IAppLoadCommonUnit {
2
+ id: number;
3
+ unit: string;
4
+ value: number | string;
5
+ locales: Record<string, IAppLoadCommonUnitLocale>;
6
+ }
7
+
8
+ export interface IAppLoadCommonUnitLocale {
9
+ id?: number;
10
+ title?: string;
11
+ unit?: string;
12
+ }
@@ -0,0 +1,7 @@
1
+ export interface IAppLoadCommonVariables {
2
+ default_feedback_status?: number;
3
+ c_cart_positions?: number;
4
+ c_wishlist?: number;
5
+ default_blog_comment_status?: number;
6
+ allow_preorder?: boolean;
7
+ }
@@ -0,0 +1,11 @@
1
+ export interface IAppLoadCommonVisualSettings {
2
+ menu_image: boolean;
3
+ catalog_menu_image: boolean;
4
+ mobile_show_arrows: boolean;
5
+ show_filter_counters: boolean;
6
+ single_seller_mode: boolean;
7
+ blog_view_type?: number;
8
+ front_categories_count?: number;
9
+ front_categories_ordering?: string;
10
+ front_categories_ordering_direction?: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ export interface IAppLoadCommonWalletValue {
2
+ transform_value: number;
3
+ }
@@ -0,0 +1,40 @@
1
+ import type { ISeoOg, ISeoTwitter } from '../appBase/ISEO';
2
+
3
+ export interface ICategory {
4
+ id: number;
5
+ ordering?: number;
6
+ c_views?: number;
7
+ search_target?: boolean;
8
+ depth: number;
9
+ numchild: number;
10
+ logo_image?: string | null;
11
+ logo_image_id?: number | null;
12
+ menu_image?: string | null;
13
+ menu_image_id?: number | null;
14
+ separate_menu: boolean;
15
+ is_public: boolean;
16
+ c_images: number;
17
+ product_rep_1_id?: number | null;
18
+ product_rep_2_id?: number | null;
19
+ og?: ISeoOg[] | null;
20
+ twitter?: ISeoTwitter[] | null;
21
+ weight_filter?: boolean;
22
+ category_image_bg: string;
23
+ use_localized_banner: boolean;
24
+ locale: Record<string, ICategoryLocale>;
25
+ path_to_top?: number[];
26
+ childs?: ICategory[];
27
+ }
28
+
29
+ export interface ICategoryLocale {
30
+ id?: number;
31
+ cg_name?: string;
32
+ cg_description?: string;
33
+ cg_title?: string;
34
+ cg_slug?: string;
35
+ meta_description?: string;
36
+ meta_keywords?: string;
37
+ link?: string;
38
+ banner_image?: string | null;
39
+ banner_image_id?: number | null;
40
+ }
@@ -0,0 +1,13 @@
1
+ import type { ITransformValue } from '../shared/ITransformValue';
2
+
3
+ export interface IDomain {
4
+ id: number;
5
+ domain_extras: IDomainExtras;
6
+ }
7
+
8
+ export interface IDomainExtras {
9
+ period_id: number;
10
+ option_cost_id: number;
11
+ amount: Record<string, ITransformValue>;
12
+ days: number;
13
+ }
@@ -0,0 +1,29 @@
1
+ export * from './apiBase/TMethod';
2
+ export * from './appBase/IAppLoad';
3
+ export * from './appBase/IAppLoadCommon';
4
+ export * from './appBase/IApploadUserProfile';
5
+ export * from './appBase/IForm';
6
+ export * from './appBase/ISEO';
7
+ export * from './appBase/appLoadCommon/IAppLoadCommonBanner';
8
+ export * from './appBase/appLoadCommon/IAppLoadCommonContact';
9
+ export * from './appBase/appLoadCommon/IAppLoadCommonCurrency';
10
+ export * from './appBase/appLoadCommon/IAppLoadCommonEvents';
11
+ export * from './appBase/appLoadCommon/IAppLoadCommonLocale';
12
+ export * from './appBase/appLoadCommon/IAppLoadCommonLogos';
13
+ export * from './appBase/appLoadCommon/IAppLoadCommonPath';
14
+ export * from './appBase/appLoadCommon/IAppLoadCommonSEO';
15
+ export * from './appBase/appLoadCommon/IAppLoadCommonSocial';
16
+ export * from './appBase/appLoadCommon/IAppLoadCommonTariff';
17
+ export * from './appBase/appLoadCommon/IAppLoadCommonUnit';
18
+ export * from './appBase/appLoadCommon/IAppLoadCommonVariables';
19
+ export * from './appBase/appLoadCommon/IAppLoadCommonVisualSettings';
20
+ export * from './appBase/appLoadCommon/IAppLoadCommonWalletValue';
21
+ export * from './category/ICategory';
22
+ export * from './domains/IDomain';
23
+ export * from './products/IProduct';
24
+ export * from './shared/IGeoCoordinates';
25
+ export * from './shared/ITransformValue';
26
+ export * from './subscribeOptions/ISubscribeOption';
27
+ export * from './subscribeTariff/ISubscribeTariff';
28
+ export * from './subscribes/ISubscribe';
29
+ export * from './transport';
@@ -0,0 +1,235 @@
1
+ import type { ITransformValue } from '../shared/ITransformValue';
2
+
3
+ export interface IProduct {
4
+ id: number;
5
+ product_group_id: number;
6
+ whishlist_id?: number | null;
7
+ main_category?: number | null;
8
+ subscription_id?: number | null;
9
+ is_digital?: boolean;
10
+ locale: Record<string, Partial<IProductLocale>>;
11
+ discount: number;
12
+ cart_counts?: IProductCartCounts | null;
13
+ base_price_dict: Record<string, ITransformValue>;
14
+ product_price_dict: Record<string, ITransformValue>;
15
+ images?: IProductImages | null;
16
+ weight_dict: Record<string, ITransformValue>;
17
+ length_dict: IProductDimensions;
18
+ variants: IProductVariants;
19
+ flags: IProductFlags;
20
+ seller: IProductSeller;
21
+ status: IProductStatus;
22
+ c_real_left: number;
23
+ feedback_stat: IProductFeedbackStat;
24
+ related?: IProductRelated | null;
25
+ secondary_variants?: IProductSecondaryVariants;
26
+ feedback_allowed?: boolean;
27
+ attributes?: IProductAttribute[] | Record<string, IProductAttribute>;
28
+ videos?: IProductVideo[];
29
+ manufacture?: IProductManufacture | null;
30
+ refunds?: IProductRefunds | null;
31
+ feedbacks?: IProductFeedbacks | null;
32
+ promo?: IProductPromo | null;
33
+
34
+ }
35
+
36
+ export interface IProductAttribute {
37
+ id: number;
38
+ names: IProductAttributeName[];
39
+ locales: Record<string, string>;
40
+ }
41
+
42
+ export interface IProductAttributeName {
43
+ id: number;
44
+ locale: Record<string, Record<string, string>>;
45
+ }
46
+
47
+ export interface IProductVideo {
48
+ id: number;
49
+ product_video: string;
50
+ product: number;
51
+ preview: string;
52
+ }
53
+
54
+ export interface IProductManufacture {
55
+ id: number;
56
+ name: string;
57
+ image: string;
58
+ small_image: string;
59
+ }
60
+
61
+ export interface IProductRefunds {
62
+ customer_max_refund_days: number;
63
+ max_refund_days_with_defect: number;
64
+ }
65
+
66
+ export interface IProductPromo {
67
+ id: number;
68
+ locale: Record<string, string | { promo_name?: string; name?: string }>;
69
+ promo_value: number | Record<string, ITransformValue>;
70
+ promo_type: 'FREE_SHIPPING' | 'FIXED' | 'PERCENTAGE';
71
+ }
72
+
73
+ export interface IProductFeedbacks {
74
+ feedbacks?: {
75
+ data: IProductFeedback[];
76
+ rpag?: IProductPagination;
77
+ };
78
+ stats?: Record<string, number>;
79
+ c_feedback_images?: number;
80
+ image_row?: { data: unknown[]; rpag?: IProductPagination };
81
+ our_feedback_id?: number | null;
82
+ }
83
+
84
+ export interface IProductFeedback {
85
+ id: number;
86
+ rating?: number;
87
+ text?: string;
88
+ created_at?: string;
89
+ date_created?: string;
90
+ user?: { id?: number; name?: string; avatar?: string };
91
+ customer?: { id?: number; name?: string; avatar?: string };
92
+ images?: Array<string | { image?: string; url?: string }>;
93
+ [key: string]: unknown;
94
+ }
95
+
96
+ export interface IProductPagination {
97
+ has_next?: boolean;
98
+ has_previous?: boolean;
99
+ page?: number;
100
+ pages?: number;
101
+ total_count?: number;
102
+ selected_count?: number;
103
+ }
104
+
105
+ export interface IProductFeedbackStat {
106
+ c_feedbacks: number;
107
+ avg_raiting: number | string;
108
+ }
109
+
110
+ export interface IProductStatus {
111
+ status: EProductStatus;
112
+ status_display: string;
113
+ }
114
+
115
+ export const EProductStatus = {
116
+ PUBLISHED: 2,
117
+ PUBLISHED_AS_OPTION: 1,
118
+ UNPUBLISHED: 0,
119
+ TEMPORARY_STOPPED: -1,
120
+ LOW_SALE_STOCK: -2,
121
+ LOW_STOCK: -3,
122
+ INCOMPLETE: -4,
123
+ ON_MODERATION: -5,
124
+ } as const;
125
+ export type EProductStatus =
126
+ (typeof EProductStatus)[keyof typeof EProductStatus];
127
+
128
+ export interface IProductSeller {
129
+ id: number;
130
+ name: string;
131
+ raiting: number | string;
132
+ avatar?: string;
133
+ }
134
+
135
+ export interface IProductFlags {
136
+ flag_is_new?: boolean;
137
+ flag_is_soon_be_out?: boolean;
138
+ flag_is_popular?: boolean;
139
+ flag_is_good_deal?: boolean;
140
+ }
141
+
142
+ export interface IProductVariants {
143
+ main_variant?: IProductVariant;
144
+ }
145
+
146
+ export interface IProductVariant {
147
+ id: number;
148
+ value: IProductVariantValue[];
149
+ locale: Record<string, string>;
150
+ is_color: boolean;
151
+ second_exists: boolean;
152
+ }
153
+
154
+ export interface IProductVariantValue {
155
+ id: number;
156
+ color: string;
157
+ locale: Record<string, string>;
158
+ c_published: number;
159
+ reload_product?: number | null;
160
+ }
161
+
162
+ export interface IProductDimensions {
163
+ length: Record<string, ITransformValue>;
164
+ width: Record<string, ITransformValue>;
165
+ height: Record<string, ITransformValue>;
166
+ }
167
+
168
+ export interface IProductImages {
169
+ small: string[];
170
+ full: string[];
171
+ }
172
+
173
+ export interface IProductCartCounts {
174
+ modal_quantity?: number;
175
+ cart_id?: number;
176
+ cart_item_price_no_discount?: Record<string, ITransformValue>;
177
+ cart_item_price_after_promo?: Record<string, ITransformValue>;
178
+ }
179
+
180
+ export interface IProductRelated {
181
+ data: IProduct[];
182
+ }
183
+
184
+ export interface IProductSecondaryVariants {
185
+ secondary: IProductSecondaryVariantInfo;
186
+ variants: IProductSecondaryVariant[];
187
+ }
188
+
189
+ export interface IProductSecondaryVariantInfo {
190
+ id: number;
191
+ is_color: boolean;
192
+ locale: Record<string, string>;
193
+ value: null;
194
+ }
195
+
196
+ export interface IProductSecondaryVariant {
197
+ product: IProduct;
198
+ value: IProductSecondaryVariantValue;
199
+ }
200
+
201
+ export interface IProductSecondaryVariantValue {
202
+ id: number;
203
+ locale: Record<string, string>;
204
+ color: string;
205
+ }
206
+
207
+ export interface IProductLocale {
208
+ id?: number;
209
+ product_name?: string;
210
+ product_title?: string;
211
+ product_slug?: string;
212
+ meta_description?: string;
213
+ meta_keywords?: string;
214
+ product_description?: string;
215
+ short_description?: string;
216
+ }
217
+
218
+ export type IProductsListNames =
219
+ | 'main'
220
+ | 'new'
221
+ | 'featured'
222
+ | 'seller'
223
+ | 'manufacturer'
224
+ | 'productAlerts'
225
+ | 'productAlertsRelated'
226
+ | 'cart'
227
+ | 'cartPreview'
228
+ | 'cartUndeliverable'
229
+ | 'orders'
230
+ | 'feedbacks';
231
+
232
+ export interface IProcessingProduct {
233
+ id: number;
234
+ listName: IProductsListNames;
235
+ }
@@ -0,0 +1,4 @@
1
+ export interface IGeoCoordinates {
2
+ long: number | string;
3
+ lat: number | string;
4
+ }
@@ -0,0 +1,3 @@
1
+ export interface ITransformValue {
2
+ transform_value: number;
3
+ }
@@ -0,0 +1,9 @@
1
+ export interface ISubscribeOption {
2
+ id: number;
3
+ locale: Record<string, ISubscribeOptionLocale>;
4
+ }
5
+
6
+ export interface ISubscribeOptionLocale {
7
+ option_name?: string;
8
+ option_description?: string;
9
+ }
@@ -0,0 +1,46 @@
1
+ import type { JsonValue } from '../transport';
2
+ import type { ITransformValue } from '../shared/ITransformValue';
3
+ import type { ISubscribeOptionLocale } from '../subscribeOptions/ISubscribeOption';
4
+ import type { IDomainExtras } from '../domains/IDomain';
5
+
6
+ export interface ISubscribeTariff {
7
+ id: number;
8
+ locales: Record<string, ISubscribeTariffLocales>;
9
+ tariff_variables_json: Record<string, JsonValue>;
10
+ trial_days: number;
11
+ prices: ISubscribeTariffPrice[];
12
+ subscription: number;
13
+ tariff_image: ISubscribeTariffImages | null;
14
+ options: ISubscribeTariffOption[];
15
+ }
16
+
17
+ export interface ISubscribeTariffOption {
18
+ id: number;
19
+ locale: Record<string, ISubscribeOptionLocale>;
20
+ image: string | null;
21
+ eligiable_for_trial: boolean;
22
+ domain_extras: IDomainExtras[];
23
+ }
24
+
25
+ export interface ISubscribeTariffImages {
26
+ small: string[];
27
+ full: string[];
28
+ }
29
+
30
+ export interface ISubscribeTariffPrice {
31
+ period_id: number;
32
+ tariff_cost_id: number;
33
+ amount: Record<string, ITransformValue>;
34
+ days: number;
35
+ }
36
+
37
+ export interface ISubscribeTariffLocales {
38
+ id?: number;
39
+ tariff_name?: string;
40
+ tariff_title?: string;
41
+ tariff_slug?: string;
42
+ tariff_meta_description?: string;
43
+ tariff_meta_keywords?: string;
44
+ tariff_description?: string;
45
+ tariff_short_description?: string;
46
+ }
@@ -0,0 +1,28 @@
1
+ import type { JsonValue } from '../transport';
2
+ export interface ISubscribe {
3
+ id: number;
4
+ locale: Record<string, ISubscribeLocale>;
5
+ is_new_subs_allowed: boolean;
6
+ only_admin_can_subscribe: boolean;
7
+ translations: Record<string, JsonValue>;
8
+ user_data: Record<string, JsonValue>;
9
+ }
10
+
11
+ export interface ISubscribeUserData {
12
+ headings: Record<string, ISubscribeUserDataValue>;
13
+ hosts?: ISubscribeUserDataValue;
14
+ }
15
+
16
+ export interface ISubscribeUserDataValue {
17
+ tabs: string[];
18
+ }
19
+
20
+ export interface ISubscribeTranslations {
21
+ id: number;
22
+ trans: Record<string, string>;
23
+ }
24
+
25
+ export interface ISubscribeLocale {
26
+ subscription_name?: string;
27
+ subscription_description?: string;
28
+ }