@procraft/widget-order 2.24.0 → 2.25.1
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/README.md +3 -0
- package/dist/CourseItem/Materials/index.js +1 -1
- package/dist/CourseItem/Materials/index.js.map +1 -1
- package/dist/CourseItem/OrderButton/index.js +5 -1
- package/dist/CourseItem/OrderButton/index.js.map +1 -1
- package/dist/modules/gql/generated/helpers/apollo-helpers.d.ts +15 -8
- package/dist/modules/gql/generated/types.d.ts +10 -2
- package/dist/modules/gql/generated/types.js +1 -0
- package/dist/modules/gql/generated/types.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/CourseItem/Materials/index.tsx +1 -1
- package/src/CourseItem/OrderButton/index.tsx +4 -0
- package/src/interfaces/CourseFragment.ts +0 -40
- package/src/modules/gql/generated/helpers/apollo-helpers.ts +19 -12
- package/src/modules/gql/generated/schema.json +139 -1
- package/src/modules/gql/generated/types.ts +10 -2
package/package.json
CHANGED
|
@@ -53,7 +53,7 @@ const Materials: React.FC<MaterialsProps> = ({ benefits, extraBenefits, limit, .
|
|
|
53
53
|
}, [])
|
|
54
54
|
|
|
55
55
|
const { materials, showAllButton } = useMemo(() => {
|
|
56
|
-
const allBenefits =
|
|
56
|
+
const allBenefits = extraBenefits.concat(benefits)
|
|
57
57
|
|
|
58
58
|
const total = allBenefits.length
|
|
59
59
|
|
|
@@ -223,6 +223,9 @@ export const OrderButton: React.FC<OrderButtonProps> = ({
|
|
|
223
223
|
case CourseSubKind.SUBSCRIPTION:
|
|
224
224
|
freeLabel = 'Бесплатная подписка'
|
|
225
225
|
break
|
|
226
|
+
case CourseSubKind.TRAINING:
|
|
227
|
+
freeLabel = 'Бесплатный тренинг'
|
|
228
|
+
break
|
|
226
229
|
default:
|
|
227
230
|
freeLabel = 'Бесплатный курс'
|
|
228
231
|
break
|
|
@@ -272,6 +275,7 @@ export const OrderButton: React.FC<OrderButtonProps> = ({
|
|
|
272
275
|
fieldsValueSelected,
|
|
273
276
|
uri,
|
|
274
277
|
catalogItem.course?.tariffId,
|
|
278
|
+
catalogItem.master?.currency,
|
|
275
279
|
dateIndex,
|
|
276
280
|
onClickDateIndex,
|
|
277
281
|
])
|
|
@@ -1,21 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
Maybe,
|
|
3
|
-
// CourseTariffCapacityRemainderDisplayKind,
|
|
4
|
-
// CourseTariffPriceKind,
|
|
5
3
|
OrderCatalogItemFragment,
|
|
6
4
|
CourseTariffFlowPublic,
|
|
7
5
|
CourseTariffFlowBehaviour,
|
|
8
6
|
CourseKind,
|
|
9
7
|
CourseSubKind,
|
|
10
8
|
} from '../modules/gql/generated/types'
|
|
11
|
-
// import { CourseFlowFragment } from './CourseFlowFragment'
|
|
12
|
-
|
|
13
|
-
// export type CourseFragmentCatalogItem = {
|
|
14
|
-
// __typename?: 'OrderCatalogItem_Fragment'
|
|
15
|
-
// } & Pick<
|
|
16
|
-
// OrderCatalogItemFragment,
|
|
17
|
-
// 'id' | 'uid' | 'name' | 'unitPrice' | 'course' | 'subscriptions' | 'title'
|
|
18
|
-
// >
|
|
19
9
|
|
|
20
10
|
export type CourseFragmentCatalogItem = {
|
|
21
11
|
__typename?: 'OrderCatalogItem_Fragment'
|
|
@@ -41,38 +31,8 @@ export type CourseFragment = {
|
|
|
41
31
|
flowBehaviour: CourseTariffFlowBehaviour
|
|
42
32
|
withClientForm: boolean
|
|
43
33
|
marketingBenefits: Array<string>
|
|
44
|
-
// flowDetails: Array<{
|
|
45
|
-
// __typename?: 'CourseTariffPerFlowDetailsCustom'
|
|
46
|
-
// id: string
|
|
47
|
-
// courseTariffId: number
|
|
48
|
-
// flowId: number
|
|
49
|
-
// // capacity?: Maybe<{
|
|
50
|
-
// // __typename?: 'CourseTariffCapacity'
|
|
51
|
-
// // value: number
|
|
52
|
-
// // isDisplayRemainder: boolean
|
|
53
|
-
// // remainderDisplayKind?: Maybe<CourseTariffCapacityRemainderDisplayKind>
|
|
54
|
-
// // remainderManualValue?: Maybe<number>
|
|
55
|
-
// // }>
|
|
56
|
-
// priceDetails: {
|
|
57
|
-
// __typename?: 'CourseTariffPriceDetails'
|
|
58
|
-
// kind: CourseTariffPriceKind
|
|
59
|
-
// changeByTime?: Maybe<{
|
|
60
|
-
// __typename?: 'CourseTariffPriceDetailsChangeByTime'
|
|
61
|
-
// items: Array<{
|
|
62
|
-
// __typename?: 'CourseTariffPriceDetailsChangeByTimeItem'
|
|
63
|
-
// priceMarketing: number
|
|
64
|
-
// priceReal: number
|
|
65
|
-
// startsAt?: Maybe<globalThis.Date>
|
|
66
|
-
// finishesAt?: Maybe<globalThis.Date>
|
|
67
|
-
// }>
|
|
68
|
-
// }>
|
|
69
|
-
// }
|
|
70
|
-
// }>
|
|
71
34
|
}>
|
|
72
35
|
>
|
|
73
36
|
|
|
74
|
-
// TODO Cleanup nested types
|
|
75
|
-
// flows?: Maybe<Array<{ __typename?: 'FlowPublicCustom' } & CourseFlowFragment>>
|
|
76
|
-
|
|
77
37
|
tariffPerFlowDataItems?: Maybe<Array<CourseTariffFlowPublic>>
|
|
78
38
|
}
|
|
@@ -100,13 +100,14 @@ export type CoursePublicCustomFieldPolicy = {
|
|
|
100
100
|
kind?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
101
101
|
subKind?: FieldPolicy<any> | FieldReadFunction<any>
|
|
102
102
|
};
|
|
103
|
-
export type CourseTariffFlowPublicKeySpecifier = ('courseId' | 'courseTariffId' | 'flowId' | 'priceDetails' | 'prolongation' | CourseTariffFlowPublicKeySpecifier)[];
|
|
103
|
+
export type CourseTariffFlowPublicKeySpecifier = ('courseId' | 'courseTariffId' | 'flowId' | 'priceDetails' | 'prolongation' | 'marketingBenefitsComputed' | CourseTariffFlowPublicKeySpecifier)[];
|
|
104
104
|
export type CourseTariffFlowPublicFieldPolicy = {
|
|
105
105
|
courseId?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
106
106
|
courseTariffId?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
107
107
|
flowId?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
108
108
|
priceDetails?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
109
|
-
prolongation?: FieldPolicy<any> | FieldReadFunction<any
|
|
109
|
+
prolongation?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
110
|
+
marketingBenefitsComputed?: FieldPolicy<any> | FieldReadFunction<any>
|
|
110
111
|
};
|
|
111
112
|
export type CourseTariffPriceDetailsKeySpecifier = ('kind' | 'changeByTime' | CourseTariffPriceDetailsKeySpecifier)[];
|
|
112
113
|
export type CourseTariffPriceDetailsFieldPolicy = {
|
|
@@ -133,7 +134,7 @@ export type CourseTariffProlongationItemFieldPolicy = {
|
|
|
133
134
|
price?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
134
135
|
periodInDays?: FieldPolicy<any> | FieldReadFunction<any>
|
|
135
136
|
};
|
|
136
|
-
export type CourseTariffPublicCustomKeySpecifier = ('id' | 'uid' | 'name' | 'courseId' | 'position' | 'isActive' | 'flowBehaviour' | 'marketingBenefits' | CourseTariffPublicCustomKeySpecifier)[];
|
|
137
|
+
export type CourseTariffPublicCustomKeySpecifier = ('id' | 'uid' | 'name' | 'courseId' | 'position' | 'isActive' | 'withClientForm' | 'flowBehaviour' | 'marketingBenefits' | CourseTariffPublicCustomKeySpecifier)[];
|
|
137
138
|
export type CourseTariffPublicCustomFieldPolicy = {
|
|
138
139
|
id?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
139
140
|
uid?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
@@ -141,6 +142,7 @@ export type CourseTariffPublicCustomFieldPolicy = {
|
|
|
141
142
|
courseId?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
142
143
|
position?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
143
144
|
isActive?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
145
|
+
withClientForm?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
144
146
|
flowBehaviour?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
145
147
|
marketingBenefits?: FieldPolicy<any> | FieldReadFunction<any>
|
|
146
148
|
};
|
|
@@ -181,11 +183,12 @@ export type LandingOrderPayloadKeySpecifier = ('order' | LandingOrderPayloadKeyS
|
|
|
181
183
|
export type LandingOrderPayloadFieldPolicy = {
|
|
182
184
|
order?: FieldPolicy<any> | FieldReadFunction<any>
|
|
183
185
|
};
|
|
184
|
-
export type LandingSiteKeySpecifier = ('id' | 'cardFields' | 'background' | LandingSiteKeySpecifier)[];
|
|
186
|
+
export type LandingSiteKeySpecifier = ('id' | 'cardFields' | 'background' | 'extraScript' | LandingSiteKeySpecifier)[];
|
|
185
187
|
export type LandingSiteFieldPolicy = {
|
|
186
188
|
id?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
187
189
|
cardFields?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
188
|
-
background?: FieldPolicy<any> | FieldReadFunction<any
|
|
190
|
+
background?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
191
|
+
extraScript?: FieldPolicy<any> | FieldReadFunction<any>
|
|
189
192
|
};
|
|
190
193
|
export type LandingSitePrivateKeySpecifier = ('id' | 'uid' | LandingSitePrivateKeySpecifier)[];
|
|
191
194
|
export type LandingSitePrivateFieldPolicy = {
|
|
@@ -259,12 +262,13 @@ export type MutationFieldPolicy = {
|
|
|
259
262
|
s3getSignedUrl?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
260
263
|
s3Upload?: FieldPolicy<any> | FieldReadFunction<any>
|
|
261
264
|
};
|
|
262
|
-
export type OrderCatalogItemMasterKeySpecifier = ('id' | 'uid' | OrderCatalogItemMasterKeySpecifier)[];
|
|
265
|
+
export type OrderCatalogItemMasterKeySpecifier = ('id' | 'uid' | 'currency' | OrderCatalogItemMasterKeySpecifier)[];
|
|
263
266
|
export type OrderCatalogItemMasterFieldPolicy = {
|
|
264
267
|
id?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
265
|
-
uid?: FieldPolicy<any> | FieldReadFunction<any
|
|
268
|
+
uid?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
269
|
+
currency?: FieldPolicy<any> | FieldReadFunction<any>
|
|
266
270
|
};
|
|
267
|
-
export type OrderCatalogItem_FragmentKeySpecifier = ('id' | 'uid' | 'name' | 'title' | 'unitPrice' | 'unitPriceOriginal' | 'master' | 'course' | 'sales' | 'promoCode' | 'priceWithPromoCode' | 'reviewsCount' | 'reviews' | 'fieldValues' | OrderCatalogItem_FragmentKeySpecifier)[];
|
|
271
|
+
export type OrderCatalogItem_FragmentKeySpecifier = ('id' | 'uid' | 'name' | 'title' | 'unitPrice' | 'unitPriceOriginal' | 'master' | 'course' | 'Tariff' | 'sales' | 'promoCode' | 'priceWithPromoCode' | 'reviewsCount' | 'reviews' | 'fieldValues' | OrderCatalogItem_FragmentKeySpecifier)[];
|
|
268
272
|
export type OrderCatalogItem_FragmentFieldPolicy = {
|
|
269
273
|
id?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
270
274
|
uid?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
@@ -274,6 +278,7 @@ export type OrderCatalogItem_FragmentFieldPolicy = {
|
|
|
274
278
|
unitPriceOriginal?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
275
279
|
master?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
276
280
|
course?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
281
|
+
Tariff?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
277
282
|
sales?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
278
283
|
promoCode?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
279
284
|
priceWithPromoCode?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
@@ -355,11 +360,12 @@ export type PrivateApiLandingViewerFieldPolicy = {
|
|
|
355
360
|
landing?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
356
361
|
masterClientCommon?: FieldPolicy<any> | FieldReadFunction<any>
|
|
357
362
|
};
|
|
358
|
-
export type PromoCode_FragmentKeySpecifier = ('id' | 'code' | '
|
|
363
|
+
export type PromoCode_FragmentKeySpecifier = ('id' | 'code' | 'value' | 'unit' | 'activeFrom' | 'activeTill' | 'isActive' | PromoCode_FragmentKeySpecifier)[];
|
|
359
364
|
export type PromoCode_FragmentFieldPolicy = {
|
|
360
365
|
id?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
361
366
|
code?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
362
|
-
|
|
367
|
+
value?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
368
|
+
unit?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
363
369
|
activeFrom?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
364
370
|
activeTill?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
365
371
|
isActive?: FieldPolicy<any> | FieldReadFunction<any>
|
|
@@ -388,11 +394,12 @@ export type QueryFieldPolicy = {
|
|
|
388
394
|
extraFieldsQuestions?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
389
395
|
promoCode?: FieldPolicy<any> | FieldReadFunction<any>
|
|
390
396
|
};
|
|
391
|
-
export type RestApiPayloadKeySpecifier = ('error' | 'message' | 'token' | RestApiPayloadKeySpecifier)[];
|
|
397
|
+
export type RestApiPayloadKeySpecifier = ('error' | 'message' | 'token' | 'methods' | RestApiPayloadKeySpecifier)[];
|
|
392
398
|
export type RestApiPayloadFieldPolicy = {
|
|
393
399
|
error?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
394
400
|
message?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
395
|
-
token?: FieldPolicy<any> | FieldReadFunction<any
|
|
401
|
+
token?: FieldPolicy<any> | FieldReadFunction<any>,
|
|
402
|
+
methods?: FieldPolicy<any> | FieldReadFunction<any>
|
|
396
403
|
};
|
|
397
404
|
export type SaleCustomKeySpecifier = ('id' | 'uid' | 'name' | 'isActive' | 'benefitKind' | 'benefitItems' | 'benefitAmount' | 'benefitUnit' | 'orderCondition' | SaleCustomKeySpecifier)[];
|
|
398
405
|
export type SaleCustomFieldPolicy = {
|
|
@@ -2137,6 +2137,12 @@
|
|
|
2137
2137
|
"description": null,
|
|
2138
2138
|
"isDeprecated": false,
|
|
2139
2139
|
"deprecationReason": null
|
|
2140
|
+
},
|
|
2141
|
+
{
|
|
2142
|
+
"name": "Training",
|
|
2143
|
+
"description": null,
|
|
2144
|
+
"isDeprecated": false,
|
|
2145
|
+
"deprecationReason": null
|
|
2140
2146
|
}
|
|
2141
2147
|
],
|
|
2142
2148
|
"possibleTypes": null
|
|
@@ -2254,6 +2260,30 @@
|
|
|
2254
2260
|
},
|
|
2255
2261
|
"isDeprecated": false,
|
|
2256
2262
|
"deprecationReason": null
|
|
2263
|
+
},
|
|
2264
|
+
{
|
|
2265
|
+
"name": "marketingBenefitsComputed",
|
|
2266
|
+
"description": null,
|
|
2267
|
+
"args": [],
|
|
2268
|
+
"type": {
|
|
2269
|
+
"kind": "NON_NULL",
|
|
2270
|
+
"name": null,
|
|
2271
|
+
"ofType": {
|
|
2272
|
+
"kind": "LIST",
|
|
2273
|
+
"name": null,
|
|
2274
|
+
"ofType": {
|
|
2275
|
+
"kind": "NON_NULL",
|
|
2276
|
+
"name": null,
|
|
2277
|
+
"ofType": {
|
|
2278
|
+
"kind": "SCALAR",
|
|
2279
|
+
"name": "String",
|
|
2280
|
+
"ofType": null
|
|
2281
|
+
}
|
|
2282
|
+
}
|
|
2283
|
+
}
|
|
2284
|
+
},
|
|
2285
|
+
"isDeprecated": false,
|
|
2286
|
+
"deprecationReason": null
|
|
2257
2287
|
}
|
|
2258
2288
|
],
|
|
2259
2289
|
"inputFields": null,
|
|
@@ -2622,6 +2652,22 @@
|
|
|
2622
2652
|
"isDeprecated": false,
|
|
2623
2653
|
"deprecationReason": null
|
|
2624
2654
|
},
|
|
2655
|
+
{
|
|
2656
|
+
"name": "withClientForm",
|
|
2657
|
+
"description": null,
|
|
2658
|
+
"args": [],
|
|
2659
|
+
"type": {
|
|
2660
|
+
"kind": "NON_NULL",
|
|
2661
|
+
"name": null,
|
|
2662
|
+
"ofType": {
|
|
2663
|
+
"kind": "SCALAR",
|
|
2664
|
+
"name": "Boolean",
|
|
2665
|
+
"ofType": null
|
|
2666
|
+
}
|
|
2667
|
+
},
|
|
2668
|
+
"isDeprecated": false,
|
|
2669
|
+
"deprecationReason": null
|
|
2670
|
+
},
|
|
2625
2671
|
{
|
|
2626
2672
|
"name": "flowBehaviour",
|
|
2627
2673
|
"description": null,
|
|
@@ -3375,6 +3421,18 @@
|
|
|
3375
3421
|
},
|
|
3376
3422
|
"isDeprecated": false,
|
|
3377
3423
|
"deprecationReason": null
|
|
3424
|
+
},
|
|
3425
|
+
{
|
|
3426
|
+
"name": "extraScript",
|
|
3427
|
+
"description": null,
|
|
3428
|
+
"args": [],
|
|
3429
|
+
"type": {
|
|
3430
|
+
"kind": "SCALAR",
|
|
3431
|
+
"name": "String",
|
|
3432
|
+
"ofType": null
|
|
3433
|
+
},
|
|
3434
|
+
"isDeprecated": false,
|
|
3435
|
+
"deprecationReason": null
|
|
3378
3436
|
}
|
|
3379
3437
|
],
|
|
3380
3438
|
"inputFields": null,
|
|
@@ -4456,6 +4514,22 @@
|
|
|
4456
4514
|
"defaultValue": null,
|
|
4457
4515
|
"isDeprecated": false,
|
|
4458
4516
|
"deprecationReason": null
|
|
4517
|
+
},
|
|
4518
|
+
{
|
|
4519
|
+
"name": "allowCall",
|
|
4520
|
+
"description": "Использовать отзвон с номера",
|
|
4521
|
+
"type": {
|
|
4522
|
+
"kind": "NON_NULL",
|
|
4523
|
+
"name": null,
|
|
4524
|
+
"ofType": {
|
|
4525
|
+
"kind": "SCALAR",
|
|
4526
|
+
"name": "Boolean",
|
|
4527
|
+
"ofType": null
|
|
4528
|
+
}
|
|
4529
|
+
},
|
|
4530
|
+
"defaultValue": null,
|
|
4531
|
+
"isDeprecated": false,
|
|
4532
|
+
"deprecationReason": null
|
|
4459
4533
|
}
|
|
4460
4534
|
],
|
|
4461
4535
|
"type": {
|
|
@@ -4836,6 +4910,22 @@
|
|
|
4836
4910
|
},
|
|
4837
4911
|
"isDeprecated": false,
|
|
4838
4912
|
"deprecationReason": null
|
|
4913
|
+
},
|
|
4914
|
+
{
|
|
4915
|
+
"name": "currency",
|
|
4916
|
+
"description": null,
|
|
4917
|
+
"args": [],
|
|
4918
|
+
"type": {
|
|
4919
|
+
"kind": "NON_NULL",
|
|
4920
|
+
"name": null,
|
|
4921
|
+
"ofType": {
|
|
4922
|
+
"kind": "SCALAR",
|
|
4923
|
+
"name": "String",
|
|
4924
|
+
"ofType": null
|
|
4925
|
+
}
|
|
4926
|
+
},
|
|
4927
|
+
"isDeprecated": false,
|
|
4928
|
+
"deprecationReason": null
|
|
4839
4929
|
}
|
|
4840
4930
|
],
|
|
4841
4931
|
"inputFields": null,
|
|
@@ -4968,6 +5058,18 @@
|
|
|
4968
5058
|
"isDeprecated": false,
|
|
4969
5059
|
"deprecationReason": null
|
|
4970
5060
|
},
|
|
5061
|
+
{
|
|
5062
|
+
"name": "Tariff",
|
|
5063
|
+
"description": "Тариф",
|
|
5064
|
+
"args": [],
|
|
5065
|
+
"type": {
|
|
5066
|
+
"kind": "OBJECT",
|
|
5067
|
+
"name": "CourseTariffPublicCustom",
|
|
5068
|
+
"ofType": null
|
|
5069
|
+
},
|
|
5070
|
+
"isDeprecated": false,
|
|
5071
|
+
"deprecationReason": null
|
|
5072
|
+
},
|
|
4971
5073
|
{
|
|
4972
5074
|
"name": "sales",
|
|
4973
5075
|
"description": null,
|
|
@@ -6318,7 +6420,7 @@
|
|
|
6318
6420
|
"deprecationReason": null
|
|
6319
6421
|
},
|
|
6320
6422
|
{
|
|
6321
|
-
"name": "
|
|
6423
|
+
"name": "value",
|
|
6322
6424
|
"description": null,
|
|
6323
6425
|
"args": [],
|
|
6324
6426
|
"type": {
|
|
@@ -6333,6 +6435,22 @@
|
|
|
6333
6435
|
"isDeprecated": false,
|
|
6334
6436
|
"deprecationReason": null
|
|
6335
6437
|
},
|
|
6438
|
+
{
|
|
6439
|
+
"name": "unit",
|
|
6440
|
+
"description": null,
|
|
6441
|
+
"args": [],
|
|
6442
|
+
"type": {
|
|
6443
|
+
"kind": "NON_NULL",
|
|
6444
|
+
"name": null,
|
|
6445
|
+
"ofType": {
|
|
6446
|
+
"kind": "SCALAR",
|
|
6447
|
+
"name": "String",
|
|
6448
|
+
"ofType": null
|
|
6449
|
+
}
|
|
6450
|
+
},
|
|
6451
|
+
"isDeprecated": false,
|
|
6452
|
+
"deprecationReason": null
|
|
6453
|
+
},
|
|
6336
6454
|
{
|
|
6337
6455
|
"name": "activeFrom",
|
|
6338
6456
|
"description": null,
|
|
@@ -6842,6 +6960,26 @@
|
|
|
6842
6960
|
},
|
|
6843
6961
|
"isDeprecated": false,
|
|
6844
6962
|
"deprecationReason": null
|
|
6963
|
+
},
|
|
6964
|
+
{
|
|
6965
|
+
"name": "methods",
|
|
6966
|
+
"description": null,
|
|
6967
|
+
"args": [],
|
|
6968
|
+
"type": {
|
|
6969
|
+
"kind": "LIST",
|
|
6970
|
+
"name": null,
|
|
6971
|
+
"ofType": {
|
|
6972
|
+
"kind": "NON_NULL",
|
|
6973
|
+
"name": null,
|
|
6974
|
+
"ofType": {
|
|
6975
|
+
"kind": "SCALAR",
|
|
6976
|
+
"name": "String",
|
|
6977
|
+
"ofType": null
|
|
6978
|
+
}
|
|
6979
|
+
}
|
|
6980
|
+
},
|
|
6981
|
+
"isDeprecated": false,
|
|
6982
|
+
"deprecationReason": null
|
|
6845
6983
|
}
|
|
6846
6984
|
],
|
|
6847
6985
|
"inputFields": null,
|
|
@@ -258,7 +258,8 @@ export enum CourseSubKind {
|
|
|
258
258
|
PRERECORDING = 'PreRecording',
|
|
259
259
|
MARATHON = 'Marathon',
|
|
260
260
|
INTENSIVE = 'Intensive',
|
|
261
|
-
COURSE = 'Course'
|
|
261
|
+
COURSE = 'Course',
|
|
262
|
+
TRAINING = 'Training'
|
|
262
263
|
}
|
|
263
264
|
|
|
264
265
|
export enum CourseTariffFlowBehaviour {
|
|
@@ -326,6 +327,7 @@ export interface CourseTariffPublicCustom {
|
|
|
326
327
|
courseId: Scalars['Int'];
|
|
327
328
|
position: Scalars['Int'];
|
|
328
329
|
isActive: Scalars['Boolean'];
|
|
330
|
+
withClientForm: Scalars['Boolean'];
|
|
329
331
|
flowBehaviour: CourseTariffFlowBehaviour;
|
|
330
332
|
marketingBenefits: Array<Scalars['String']>;
|
|
331
333
|
}
|
|
@@ -406,6 +408,7 @@ export interface LandingSite {
|
|
|
406
408
|
id: Scalars['ID'];
|
|
407
409
|
cardFields: Array<LandingCardField>;
|
|
408
410
|
background?: Maybe<PhotoData>;
|
|
411
|
+
extraScript?: Maybe<Scalars['String']>;
|
|
409
412
|
}
|
|
410
413
|
|
|
411
414
|
export interface LandingSitePrivate {
|
|
@@ -573,6 +576,7 @@ export type MutationSendSmsCodeArgs = {
|
|
|
573
576
|
phone: Scalars['String'];
|
|
574
577
|
promoCode?: Maybe<Scalars['String']>;
|
|
575
578
|
promoCodeIsFromCookie?: Maybe<Scalars['Boolean']>;
|
|
579
|
+
allowCall: Scalars['Boolean'];
|
|
576
580
|
};
|
|
577
581
|
|
|
578
582
|
|
|
@@ -640,6 +644,8 @@ export interface OrderCatalogItemFragment {
|
|
|
640
644
|
unitPriceOriginal?: Maybe<Scalars['Float']>;
|
|
641
645
|
master?: Maybe<OrderCatalogItemMaster>;
|
|
642
646
|
course?: Maybe<CourseItem>;
|
|
647
|
+
/** Тариф */
|
|
648
|
+
Tariff?: Maybe<CourseTariffPublicCustom>;
|
|
643
649
|
sales?: Maybe<Array<SaleCustom>>;
|
|
644
650
|
/** Примененный промокод */
|
|
645
651
|
promoCode?: Maybe<PromoCodeFragment>;
|
|
@@ -809,7 +815,8 @@ export interface PromoCodeFragment {
|
|
|
809
815
|
__typename?: 'PromoCode_Fragment';
|
|
810
816
|
id: Scalars['ID'];
|
|
811
817
|
code: Scalars['String'];
|
|
812
|
-
|
|
818
|
+
value: Scalars['Float'];
|
|
819
|
+
unit: Scalars['String'];
|
|
813
820
|
activeFrom?: Maybe<Scalars['String']>;
|
|
814
821
|
activeTill?: Maybe<Scalars['String']>;
|
|
815
822
|
isActive: Scalars['Boolean'];
|
|
@@ -890,6 +897,7 @@ export interface RestApiPayload {
|
|
|
890
897
|
error: Scalars['Boolean'];
|
|
891
898
|
message: Scalars['String'];
|
|
892
899
|
token?: Maybe<Scalars['String']>;
|
|
900
|
+
methods?: Maybe<Array<Scalars['String']>>;
|
|
893
901
|
}
|
|
894
902
|
|
|
895
903
|
export enum SaleBenefitKind {
|